cirq-core 1.6.0.dev20250610235631__py3-none-any.whl → 1.6.0.dev20250613142538__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of cirq-core might be problematic. Click here for more details.
- cirq/_version.py +1 -1
- cirq/_version_test.py +1 -1
- cirq/contrib/qasm_import/_parser.py +447 -6
- cirq/contrib/qasm_import/_parser_test.py +768 -35
- cirq/ops/eigen_gate.py +4 -4
- {cirq_core-1.6.0.dev20250610235631.dist-info → cirq_core-1.6.0.dev20250613142538.dist-info}/METADATA +1 -1
- {cirq_core-1.6.0.dev20250610235631.dist-info → cirq_core-1.6.0.dev20250613142538.dist-info}/RECORD +10 -10
- {cirq_core-1.6.0.dev20250610235631.dist-info → cirq_core-1.6.0.dev20250613142538.dist-info}/WHEEL +0 -0
- {cirq_core-1.6.0.dev20250610235631.dist-info → cirq_core-1.6.0.dev20250613142538.dist-info}/licenses/LICENSE +0 -0
- {cirq_core-1.6.0.dev20250610235631.dist-info → cirq_core-1.6.0.dev20250613142538.dist-info}/top_level.txt +0 -0
cirq/ops/eigen_gate.py
CHANGED
|
@@ -107,10 +107,10 @@ class EigenGate(raw_types.Gate):
|
|
|
107
107
|
ValueError: If the supplied exponent is a complex number with an
|
|
108
108
|
imaginary component.
|
|
109
109
|
"""
|
|
110
|
-
if
|
|
110
|
+
if isinstance(exponent, str):
|
|
111
111
|
raise TypeError(
|
|
112
112
|
"Gate exponent must be a number or sympy expression. "
|
|
113
|
-
f"
|
|
113
|
+
f"Received a string instead: {exponent!r}"
|
|
114
114
|
)
|
|
115
115
|
if isinstance(exponent, complex):
|
|
116
116
|
if exponent.imag:
|
|
@@ -293,10 +293,10 @@ class EigenGate(raw_types.Gate):
|
|
|
293
293
|
return _approximate_common_period(real_periods)
|
|
294
294
|
|
|
295
295
|
def __pow__(self, exponent: value.TParamVal) -> EigenGate:
|
|
296
|
-
if
|
|
296
|
+
if isinstance(exponent, str):
|
|
297
297
|
raise TypeError(
|
|
298
298
|
"Gate exponent must be a number or sympy expression. "
|
|
299
|
-
f"
|
|
299
|
+
f"Received a string instead: {exponent!r}"
|
|
300
300
|
)
|
|
301
301
|
new_exponent = protocols.mul(self._exponent, exponent, NotImplemented)
|
|
302
302
|
if new_exponent is NotImplemented:
|
{cirq_core-1.6.0.dev20250610235631.dist-info → cirq_core-1.6.0.dev20250613142538.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cirq-core
|
|
3
|
-
Version: 1.6.0.
|
|
3
|
+
Version: 1.6.0.dev20250613142538
|
|
4
4
|
Summary: A framework for creating, editing, and invoking Noisy Intermediate Scale Quantum (NISQ) circuits.
|
|
5
5
|
Home-page: http://github.com/quantumlib/cirq
|
|
6
6
|
Author: The Cirq Developers
|
{cirq_core-1.6.0.dev20250610235631.dist-info → cirq_core-1.6.0.dev20250613142538.dist-info}/RECORD
RENAMED
|
@@ -4,8 +4,8 @@ cirq/_compat_test.py,sha256=l9Ipt2aEVDM6SKqtanyPw91ZrYZV4m0SlabJJB_lq1o,34045
|
|
|
4
4
|
cirq/_doc.py,sha256=BrnoABo1hk5RgB3Cgww4zLHUfiyFny0F1V-tOMCbdaU,2909
|
|
5
5
|
cirq/_import.py,sha256=ixBu4EyGl46Ram2cP3p5eZVEFDW5L2DS-VyTjz4N9iw,8429
|
|
6
6
|
cirq/_import_test.py,sha256=oF4izzOVZLc7NZ0aZHFcGv-r01eiFFt_JORx_x7_D4s,1089
|
|
7
|
-
cirq/_version.py,sha256=
|
|
8
|
-
cirq/_version_test.py,sha256=
|
|
7
|
+
cirq/_version.py,sha256=I12oajrpuXEngiXnmfLkqB2PNqXwKO1t5ogCW_KD_t8,1206
|
|
8
|
+
cirq/_version_test.py,sha256=Wte_XrbsR9_blq-9AZLMur3G_fe2Q4pkAcDR3d7gTyA,155
|
|
9
9
|
cirq/conftest.py,sha256=X7yLFL8GLhg2CjPw0hp5e_dGASfvHx1-QT03aUbhKJw,1168
|
|
10
10
|
cirq/json_resolver_cache.py,sha256=S-zUVI4D_XnAxyR6z7WHDImCVmB_awJp6EStD1-CNPU,13621
|
|
11
11
|
cirq/py.typed,sha256=VFSlmh_lNwnaXzwY-ZuW-C2Ws5PkuDoVgBdNCs0jXJE,63
|
|
@@ -107,8 +107,8 @@ cirq/contrib/paulistring/separate_test.py,sha256=mp_ixjxS9-YypnJkgApFzSV0QGJt0SD
|
|
|
107
107
|
cirq/contrib/qasm_import/__init__.py,sha256=RKX0vGDC2Pe5rH5rM4ClXdvtrAU16ePFImQpiJtJVNo,744
|
|
108
108
|
cirq/contrib/qasm_import/_lexer.py,sha256=ZCS3aEwJ5tW3FndBAhQfG65U6McCfF_z_3-hxoH6zmk,2934
|
|
109
109
|
cirq/contrib/qasm_import/_lexer_test.py,sha256=ZSqML1jhT5EgGK3HXwcqZYaJcNlB2gPLXOQiSG8OyfE,7333
|
|
110
|
-
cirq/contrib/qasm_import/_parser.py,sha256=
|
|
111
|
-
cirq/contrib/qasm_import/_parser_test.py,sha256=
|
|
110
|
+
cirq/contrib/qasm_import/_parser.py,sha256=7mh7PB4ngub1K48RWulJ0adWx--LdkFKLBh7j6rhyEg,43526
|
|
111
|
+
cirq/contrib/qasm_import/_parser_test.py,sha256=V96NsSVVAmDqFNz36KCzk0bAJg2UbBZOwIsWJnYpGaA,67648
|
|
112
112
|
cirq/contrib/qasm_import/exception.py,sha256=DdqXaHmZU1TaxaHqXW23yp9bqXxdxqkq4tErGd9VHj8,731
|
|
113
113
|
cirq/contrib/qasm_import/qasm.py,sha256=k_uX-ITaxHRcrP87kuUNgudloG_ns0HURJLoyq4scqU,989
|
|
114
114
|
cirq/contrib/qasm_import/qasm_test.py,sha256=mwgl7dIOt50hvxTVTiy1HpVxAjyBSb59R3_Hi-5LUIU,1906
|
|
@@ -295,7 +295,7 @@ cirq/ops/dense_pauli_string.py,sha256=1TijNu1D2HIbbnwLbT_f546R2L4OCQtm1bKjqhno1K
|
|
|
295
295
|
cirq/ops/dense_pauli_string_test.py,sha256=JLfTLO13Qnr9c5jZOPBTJWD4409vm7uV6vi8R7m1kOg,21517
|
|
296
296
|
cirq/ops/diagonal_gate.py,sha256=HNMxcgKgfZ2ZcXGaPhcBp6yOwu_stpSN3_GtNeWnR5s,8909
|
|
297
297
|
cirq/ops/diagonal_gate_test.py,sha256=JRQWrL4cEYzVjwal-EewyIPgThUwLdrE6f9i7ifd6Rk,6319
|
|
298
|
-
cirq/ops/eigen_gate.py,sha256=
|
|
298
|
+
cirq/ops/eigen_gate.py,sha256=OoUpOwHw6VZ2CpH0Qb-eQLD4c-cjj8wFwBr8NEc7C0g,17788
|
|
299
299
|
cirq/ops/eigen_gate_test.py,sha256=3ZN7texyQ_svk8YAaH3liZiGAgq_SBpNb46nIzKYfWM,16909
|
|
300
300
|
cirq/ops/fourier_transform.py,sha256=JMledJB0tPjLlIlG9bfapJSqass94rXkAheXragQxq8,7455
|
|
301
301
|
cirq/ops/fourier_transform_test.py,sha256=sX5TfZd9-n1WTyZcqOQ0x6yyI8k6rasywijMo3bc1ls,6426
|
|
@@ -1220,8 +1220,8 @@ cirq/work/sampler.py,sha256=rxbMWvrhu3gfNSBjZKozw28lLKVvBAS_1EGyPdYe8Xg,19041
|
|
|
1220
1220
|
cirq/work/sampler_test.py,sha256=SsMrRvLDYELyOAWLKISjkdEfrBwLYWRsT6D8WrsLM3Q,13533
|
|
1221
1221
|
cirq/work/zeros_sampler.py,sha256=Fs2JWwq0n9zv7_G5Rm-9vPeHUag7uctcMOHg0JTkZpc,2371
|
|
1222
1222
|
cirq/work/zeros_sampler_test.py,sha256=lQLgQDGBLtfImryys2HzQ2jOSGxHgc7-koVBUhv8qYk,3345
|
|
1223
|
-
cirq_core-1.6.0.
|
|
1224
|
-
cirq_core-1.6.0.
|
|
1225
|
-
cirq_core-1.6.0.
|
|
1226
|
-
cirq_core-1.6.0.
|
|
1227
|
-
cirq_core-1.6.0.
|
|
1223
|
+
cirq_core-1.6.0.dev20250613142538.dist-info/licenses/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
|
|
1224
|
+
cirq_core-1.6.0.dev20250613142538.dist-info/METADATA,sha256=0dhaoR8YvXLbJM6NvRlleBv5fg2w2_6hMMoZCoUd4-o,4857
|
|
1225
|
+
cirq_core-1.6.0.dev20250613142538.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
1226
|
+
cirq_core-1.6.0.dev20250613142538.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
|
|
1227
|
+
cirq_core-1.6.0.dev20250613142538.dist-info/RECORD,,
|
{cirq_core-1.6.0.dev20250610235631.dist-info → cirq_core-1.6.0.dev20250613142538.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|