cirq-core 1.5.0.dev20240719161626__py3-none-any.whl → 1.5.0.dev20240720215906__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/experiments/xeb_simulation.py +1 -1
- cirq/experiments/xeb_simulation_test.py +1 -1
- {cirq_core-1.5.0.dev20240719161626.dist-info → cirq_core-1.5.0.dev20240720215906.dist-info}/METADATA +1 -1
- {cirq_core-1.5.0.dev20240719161626.dist-info → cirq_core-1.5.0.dev20240720215906.dist-info}/RECORD +10 -10
- {cirq_core-1.5.0.dev20240719161626.dist-info → cirq_core-1.5.0.dev20240720215906.dist-info}/LICENSE +0 -0
- {cirq_core-1.5.0.dev20240719161626.dist-info → cirq_core-1.5.0.dev20240720215906.dist-info}/WHEEL +0 -0
- {cirq_core-1.5.0.dev20240719161626.dist-info → cirq_core-1.5.0.dev20240720215906.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:
|
|
@@ -107,7 +107,7 @@ def simulate_2q_xeb_circuits(
|
|
|
107
107
|
# Need an actual object; not np.random or else multiprocessing will
|
|
108
108
|
# fail to pickle the closure object:
|
|
109
109
|
# https://github.com/quantumlib/Cirq/issues/3717
|
|
110
|
-
simulator = sim.Simulator(seed=np.random.RandomState())
|
|
110
|
+
simulator = sim.Simulator(seed=np.random.RandomState(), dtype=np.complex128)
|
|
111
111
|
_simulate_2q_xeb_circuit = _Simulate_2q_XEB_Circuit(simulator=simulator)
|
|
112
112
|
|
|
113
113
|
tasks = tuple(
|
|
@@ -76,7 +76,7 @@ def _ref_simulate_2q_xeb_circuit(task: Dict[str, Any]):
|
|
|
76
76
|
tcircuit = circuit[:circuit_depth]
|
|
77
77
|
tcircuit = cirq.resolve_parameters_once(tcircuit, param_resolver=param_resolver)
|
|
78
78
|
|
|
79
|
-
pure_sim = cirq.Simulator()
|
|
79
|
+
pure_sim = cirq.Simulator(dtype=np.complex128)
|
|
80
80
|
psi = pure_sim.simulate(tcircuit)
|
|
81
81
|
psi_vector = psi.final_state_vector
|
|
82
82
|
pure_probs = cirq.state_vector_to_probabilities(psi_vector)
|
{cirq_core-1.5.0.dev20240719161626.dist-info → cirq_core-1.5.0.dev20240720215906.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.dev20240720215906
|
|
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.dev20240719161626.dist-info → cirq_core-1.5.0.dev20240720215906.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=qWf7WGQCKqbcvL7noax2Has0rytfmts3dscLywWTidw,1206
|
|
8
|
+
cirq/_version_test.py,sha256=xoly0YgCV1lQhnowYa6T9ZCpg-_PT_-eXHh6Av-Sz6E,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,14 +196,14 @@ 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
|
|
203
203
|
cirq/experiments/xeb_sampling.py,sha256=6ZOidGi7Kt6p4cMQCjK7qQuIUXVHCYl47B2GnL8M-Bw,14987
|
|
204
204
|
cirq/experiments/xeb_sampling_test.py,sha256=0XkQGvcURsug3IblE_wZrHVDoOQV3WuQilrqCJbDHjI,6784
|
|
205
|
-
cirq/experiments/xeb_simulation.py,sha256=
|
|
206
|
-
cirq/experiments/xeb_simulation_test.py,sha256=
|
|
205
|
+
cirq/experiments/xeb_simulation.py,sha256=yML2NAnYTRFG1wsQHvxtNEGEMXuExbWjrE2JYuCqnrk,5076
|
|
206
|
+
cirq/experiments/xeb_simulation_test.py,sha256=m_Eo9IJiebnJWyg9jwLW9BkVUeTkPxKEvWPVLj0VNho,5449
|
|
207
207
|
cirq/interop/__init__.py,sha256=zYD7hdcL5qUZ2MDzmCRZ7CgfCZ048fMKtJXCW7GMK_Y,722
|
|
208
208
|
cirq/interop/quirk/__init__.py,sha256=rGKgFDaKFSHdGTEw5iD4GCg_SKzbAfA1qcr4t2lPlZI,1092
|
|
209
209
|
cirq/interop/quirk/url_to_circuit.py,sha256=1ToWnFJdJIhCko9q62BEvOoCGxCpOUl8891IdCa52MM,14211
|
|
@@ -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.dev20240720215906.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
|
|
1185
|
+
cirq_core-1.5.0.dev20240720215906.dist-info/METADATA,sha256=m1Dp-LdtpXBGgGjjIFKWhJckJISEjZXQyBKJZmamVGo,2007
|
|
1186
|
+
cirq_core-1.5.0.dev20240720215906.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
1187
|
+
cirq_core-1.5.0.dev20240720215906.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
|
|
1188
|
+
cirq_core-1.5.0.dev20240720215906.dist-info/RECORD,,
|
{cirq_core-1.5.0.dev20240719161626.dist-info → cirq_core-1.5.0.dev20240720215906.dist-info}/LICENSE
RENAMED
|
File without changes
|
{cirq_core-1.5.0.dev20240719161626.dist-info → cirq_core-1.5.0.dev20240720215906.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|