cirq-core 1.5.0.dev20240718003828__py3-none-any.whl → 1.5.0.dev20240719215931__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/experiments/two_qubit_xeb.py +7 -4
- cirq/ops/common_gates_test.py +0 -2
- cirq/ops/eigen_gate.py +5 -1
- {cirq_core-1.5.0.dev20240718003828.dist-info → cirq_core-1.5.0.dev20240719215931.dist-info}/METADATA +1 -1
- {cirq_core-1.5.0.dev20240718003828.dist-info → cirq_core-1.5.0.dev20240719215931.dist-info}/RECORD +10 -10
- {cirq_core-1.5.0.dev20240718003828.dist-info → cirq_core-1.5.0.dev20240719215931.dist-info}/LICENSE +0 -0
- {cirq_core-1.5.0.dev20240718003828.dist-info → cirq_core-1.5.0.dev20240719215931.dist-info}/WHEEL +0 -0
- {cirq_core-1.5.0.dev20240718003828.dist-info → cirq_core-1.5.0.dev20240719215931.dist-info}/top_level.txt +0 -0
cirq/_version.py
CHANGED
cirq/_version_test.py
CHANGED
|
@@ -354,7 +354,7 @@ def parallel_xeb_workflow(
|
|
|
354
354
|
n_repetitions: int = 10**4,
|
|
355
355
|
n_combinations: int = 10,
|
|
356
356
|
n_circuits: int = 20,
|
|
357
|
-
cycle_depths: Sequence[int] =
|
|
357
|
+
cycle_depths: Sequence[int] = (5, 25, 50, 100, 200, 300),
|
|
358
358
|
random_state: 'cirq.RANDOM_STATE_OR_SEED_LIKE' = None,
|
|
359
359
|
ax: Optional[plt.Axes] = None,
|
|
360
360
|
**plot_kwargs,
|
|
@@ -402,7 +402,10 @@ def parallel_xeb_workflow(
|
|
|
402
402
|
ax.plot(**plot_kwargs)
|
|
403
403
|
|
|
404
404
|
circuit_library = rqcg.generate_library_of_2q_circuits(
|
|
405
|
-
n_library_circuits=n_circuits,
|
|
405
|
+
n_library_circuits=n_circuits,
|
|
406
|
+
two_qubit_gate=entangling_gate,
|
|
407
|
+
random_state=rs,
|
|
408
|
+
max_cycle_depth=max(cycle_depths),
|
|
406
409
|
)
|
|
407
410
|
|
|
408
411
|
combs_by_layer = rqcg.get_random_combinations_for_device(
|
|
@@ -435,7 +438,7 @@ def parallel_two_qubit_xeb(
|
|
|
435
438
|
n_repetitions: int = 10**4,
|
|
436
439
|
n_combinations: int = 10,
|
|
437
440
|
n_circuits: int = 20,
|
|
438
|
-
cycle_depths: Sequence[int] =
|
|
441
|
+
cycle_depths: Sequence[int] = (5, 25, 50, 100, 200, 300),
|
|
439
442
|
random_state: 'cirq.RANDOM_STATE_OR_SEED_LIKE' = None,
|
|
440
443
|
ax: Optional[plt.Axes] = None,
|
|
441
444
|
**plot_kwargs,
|
|
@@ -483,7 +486,7 @@ def run_rb_and_xeb(
|
|
|
483
486
|
np.logspace(np.log10(5), np.log10(1000), 5, dtype=int)
|
|
484
487
|
),
|
|
485
488
|
entangling_gate: 'cirq.Gate' = ops.CZ,
|
|
486
|
-
depths_xeb: Sequence[int] =
|
|
489
|
+
depths_xeb: Sequence[int] = (5, 25, 50, 100, 200, 300),
|
|
487
490
|
xeb_combinations: int = 10,
|
|
488
491
|
random_state: 'cirq.RANDOM_STATE_OR_SEED_LIKE' = None,
|
|
489
492
|
) -> InferredXEBResult:
|
cirq/ops/common_gates_test.py
CHANGED
|
@@ -899,8 +899,6 @@ def test_cphase_unitary(angle_rads, expected_unitary):
|
|
|
899
899
|
np.testing.assert_allclose(cirq.unitary(cirq.cphase(angle_rads)), expected_unitary)
|
|
900
900
|
|
|
901
901
|
|
|
902
|
-
# TODO(#6663): fix this use case.
|
|
903
|
-
@pytest.mark.xfail
|
|
904
902
|
def test_parameterized_cphase():
|
|
905
903
|
assert cirq.cphase(sympy.pi) == cirq.CZ
|
|
906
904
|
assert cirq.cphase(sympy.pi / 2) == cirq.CZ**0.5
|
cirq/ops/eigen_gate.py
CHANGED
|
@@ -309,8 +309,12 @@ class EigenGate(raw_types.Gate):
|
|
|
309
309
|
def _canonical_exponent(self):
|
|
310
310
|
if self._canonical_exponent_cached is None:
|
|
311
311
|
period = self._period()
|
|
312
|
-
if not period
|
|
312
|
+
if not period:
|
|
313
313
|
self._canonical_exponent_cached = self._exponent
|
|
314
|
+
elif protocols.is_parameterized(self._exponent):
|
|
315
|
+
self._canonical_exponent_cached = self._exponent
|
|
316
|
+
if isinstance(self._exponent, sympy.Expr) and self._exponent.is_constant():
|
|
317
|
+
self._canonical_exponent_cached = float(self._exponent)
|
|
314
318
|
else:
|
|
315
319
|
self._canonical_exponent_cached = self._exponent % period
|
|
316
320
|
return self._canonical_exponent_cached
|
{cirq_core-1.5.0.dev20240718003828.dist-info → cirq_core-1.5.0.dev20240719215931.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cirq-core
|
|
3
|
-
Version: 1.5.0.
|
|
3
|
+
Version: 1.5.0.dev20240719215931
|
|
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.5.0.dev20240718003828.dist-info → cirq_core-1.5.0.dev20240719215931.dist-info}/RECORD
RENAMED
|
@@ -4,8 +4,8 @@ cirq/_compat_test.py,sha256=Qq3ZcfgD-Nb81cEppQdJqhAyrVqXKtfXZYGXT0p-Wh0,34718
|
|
|
4
4
|
cirq/_doc.py,sha256=yDyWUD_2JDS0gShfGRb-rdqRt9-WeL7DhkqX7np0Nko,2879
|
|
5
5
|
cirq/_import.py,sha256=p9gMHJscbtDDkfHOaulvd3Aer0pwUF5AXpL89XR8dNw,8402
|
|
6
6
|
cirq/_import_test.py,sha256=6K_v0riZJXOXUphHNkGA8MY-JcmGlezFaGmvrNhm3OQ,1015
|
|
7
|
-
cirq/_version.py,sha256=
|
|
8
|
-
cirq/_version_test.py,sha256=
|
|
7
|
+
cirq/_version.py,sha256=q_ly-uKniQb5B6TXOMUaGD17FwRdbKNLODmWfXl54h0,1206
|
|
8
|
+
cirq/_version_test.py,sha256=4kWU0nUgnzQU506hU32WWzy0dSv5hgj-KTHVcQS-Obk,147
|
|
9
9
|
cirq/conftest.py,sha256=X7yLFL8GLhg2CjPw0hp5e_dGASfvHx1-QT03aUbhKJw,1168
|
|
10
10
|
cirq/json_resolver_cache.py,sha256=ytePZtNZgKjOF2NiVpUTuotB-JKZmQNOFIFdvXqsxHw,13271
|
|
11
11
|
cirq/py.typed,sha256=VFSlmh_lNwnaXzwY-ZuW-C2Ws5PkuDoVgBdNCs0jXJE,63
|
|
@@ -196,7 +196,7 @@ cirq/experiments/t1_decay_experiment.py,sha256=ealdmc_RTE__z1YUcaDEncDzQOaiT0K6I
|
|
|
196
196
|
cirq/experiments/t1_decay_experiment_test.py,sha256=Pgbm-37JiCdw9iQg2OaXVvs72xGWV2629CgsTQlLQnw,9139
|
|
197
197
|
cirq/experiments/t2_decay_experiment.py,sha256=lTgZ9yJ7Fk9_ozUCHysQn1qKrMQwTpsgEv-QnvsEif0,19158
|
|
198
198
|
cirq/experiments/t2_decay_experiment_test.py,sha256=DFR0BGn0Id4qNPfqIExj70TEAqf7Vrc8eK91Wj0YKTc,15031
|
|
199
|
-
cirq/experiments/two_qubit_xeb.py,sha256=
|
|
199
|
+
cirq/experiments/two_qubit_xeb.py,sha256=5-rieJ2ct6TQt7zHHq_2Yafu6ScQjjeEPawzWWTfoAA,19933
|
|
200
200
|
cirq/experiments/two_qubit_xeb_test.py,sha256=Tlr32vuJpyepkMBVVkN6ipjRyDr8DIixfBumEeGXzDM,10073
|
|
201
201
|
cirq/experiments/xeb_fitting.py,sha256=tD678gTY495cDA6b55YIPdwq22VQFbB2AlnkeX_X9P0,29332
|
|
202
202
|
cirq/experiments/xeb_fitting_test.py,sha256=LEgC76mYFwsX-ZqRqg2j85EiHACq8nK9ITrcl-TgeiA,15286
|
|
@@ -276,7 +276,7 @@ cirq/ops/common_channels_test.py,sha256=EL_PxbqD3KPC8ioihiukhmW8bUdclqqigKoFyUQp
|
|
|
276
276
|
cirq/ops/common_gate_families.py,sha256=e5M8wlDYtdrpWBrhdns6iizIvSqzfxDyIsBdxt8hVMc,8611
|
|
277
277
|
cirq/ops/common_gate_families_test.py,sha256=Oo3C7BPO3gt3ePuqwsI_lx_lY38et8Ps4AuVydX2Aww,5275
|
|
278
278
|
cirq/ops/common_gates.py,sha256=YMcadPVRhrvkwYwm6-_TNYM9sz9TY7KSi0g7FvBTeCk,58075
|
|
279
|
-
cirq/ops/common_gates_test.py,sha256=
|
|
279
|
+
cirq/ops/common_gates_test.py,sha256=XCVswZbd_k9Y2k5n-2TXnS8CnJoLoC3VmBQN0QijIKw,46218
|
|
280
280
|
cirq/ops/control_values.py,sha256=nNDN6pgz_aWkUfrpOZ9zHHD42AGFaplWhVQj9rmJwbQ,13410
|
|
281
281
|
cirq/ops/control_values_test.py,sha256=iDtdQjL39u80MaR16XLp00LRZqWgJqC54cIeADWf0IY,12906
|
|
282
282
|
cirq/ops/controlled_gate.py,sha256=uVTZk6pA1ZpEwbVggLeXyAFq18_QJ38hWYhk9GbvQnc,14253
|
|
@@ -287,7 +287,7 @@ cirq/ops/dense_pauli_string.py,sha256=SPrNsgeC2-ETqD2wbZ7R7lOltIUWITqBUHH02dVaMz
|
|
|
287
287
|
cirq/ops/dense_pauli_string_test.py,sha256=duvgzhgTV9wuem4kDSwtL62SEUCThkz1tdP984-C4_s,21504
|
|
288
288
|
cirq/ops/diagonal_gate.py,sha256=W_yXf4qZY_AeP32VN-0u4lS0-WsqjWTg2VSABaO06Wk,9024
|
|
289
289
|
cirq/ops/diagonal_gate_test.py,sha256=cPHxjc7g2oTcXt5UFm470oo0eJupubSNzs4TccKHlSc,6223
|
|
290
|
-
cirq/ops/eigen_gate.py,sha256=
|
|
290
|
+
cirq/ops/eigen_gate.py,sha256=CJCXX0hHqsgVWIYvhpEcUq6TH4gnDOdRO9TihmoaKhQ,18381
|
|
291
291
|
cirq/ops/eigen_gate_test.py,sha256=-7l6GmAd1EYzHoGREQN1n7J1VOQKbThH2mA88TRODs8,13928
|
|
292
292
|
cirq/ops/fourier_transform.py,sha256=pynO07OcZSVCeL8L0pNQ9m_y5_wrpTWOMf99BHpjXdU,7579
|
|
293
293
|
cirq/ops/fourier_transform_test.py,sha256=PIK4bWnCIy2TuX0fgclHeU1CBDT6zRVoQpv1v1jt62c,6220
|
|
@@ -1181,8 +1181,8 @@ cirq/work/sampler.py,sha256=JEAeQQRF3bqlO9AkOf4XbrTATDI5f5JgyM_FAUCNxao,19751
|
|
|
1181
1181
|
cirq/work/sampler_test.py,sha256=B2ZsuqGT854gQtBIAh8k0LiG9Vj5wSzcGvkxOUoTcW4,13217
|
|
1182
1182
|
cirq/work/zeros_sampler.py,sha256=x1C7cup66a43n-3tm8QjhiqJa07qcJW10FxNp9jJ59Q,2356
|
|
1183
1183
|
cirq/work/zeros_sampler_test.py,sha256=JIkpBBFPJe5Ba4142vzogyWyboG1Q1ZAm0UVGgOoZn8,3279
|
|
1184
|
-
cirq_core-1.5.0.
|
|
1185
|
-
cirq_core-1.5.0.
|
|
1186
|
-
cirq_core-1.5.0.
|
|
1187
|
-
cirq_core-1.5.0.
|
|
1188
|
-
cirq_core-1.5.0.
|
|
1184
|
+
cirq_core-1.5.0.dev20240719215931.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
|
|
1185
|
+
cirq_core-1.5.0.dev20240719215931.dist-info/METADATA,sha256=yG5_RiIwqntgejcUYBtF3OvbjGEjgdvDRQ-WUg_gOnk,2007
|
|
1186
|
+
cirq_core-1.5.0.dev20240719215931.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
1187
|
+
cirq_core-1.5.0.dev20240719215931.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
|
|
1188
|
+
cirq_core-1.5.0.dev20240719215931.dist-info/RECORD,,
|
{cirq_core-1.5.0.dev20240718003828.dist-info → cirq_core-1.5.0.dev20240719215931.dist-info}/LICENSE
RENAMED
|
File without changes
|
{cirq_core-1.5.0.dev20240718003828.dist-info → cirq_core-1.5.0.dev20240719215931.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|