cirq-core 1.6.0.dev20250702010746__py3-none-any.whl → 1.6.0.dev20250702182429__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/paulistring/pauli_string_measurement_with_readout_mitigation.py +7 -6
- cirq/contrib/paulistring/pauli_string_measurement_with_readout_mitigation_test.py +6 -9
- {cirq_core-1.6.0.dev20250702010746.dist-info → cirq_core-1.6.0.dev20250702182429.dist-info}/METADATA +1 -1
- {cirq_core-1.6.0.dev20250702010746.dist-info → cirq_core-1.6.0.dev20250702182429.dist-info}/RECORD +9 -9
- {cirq_core-1.6.0.dev20250702010746.dist-info → cirq_core-1.6.0.dev20250702182429.dist-info}/WHEEL +0 -0
- {cirq_core-1.6.0.dev20250702010746.dist-info → cirq_core-1.6.0.dev20250702182429.dist-info}/licenses/LICENSE +0 -0
- {cirq_core-1.6.0.dev20250702010746.dist-info → cirq_core-1.6.0.dev20250702182429.dist-info}/top_level.txt +0 -0
cirq/_version.py
CHANGED
cirq/_version_test.py
CHANGED
|
@@ -286,7 +286,7 @@ def _build_many_one_qubits_empty_confusion_matrix(qubits_length: int) -> list[np
|
|
|
286
286
|
|
|
287
287
|
|
|
288
288
|
def _process_pauli_measurement_results(
|
|
289
|
-
qubits:
|
|
289
|
+
qubits: Sequence[ops.Qid],
|
|
290
290
|
pauli_string_groups: list[list[ops.PauliString]],
|
|
291
291
|
circuit_results: list[ResultDict],
|
|
292
292
|
calibration_results: dict[tuple[ops.Qid, ...], SingleQubitReadoutCalibrationResult],
|
|
@@ -304,10 +304,11 @@ def _process_pauli_measurement_results(
|
|
|
304
304
|
|
|
305
305
|
Args:
|
|
306
306
|
qubits: Qubits to build confusion matrices for. In a sorted order.
|
|
307
|
-
|
|
307
|
+
pauli_string_groups: The lists of QWC Pauli string groups that are measured.
|
|
308
308
|
circuit_results: A list of ResultDict obtained
|
|
309
309
|
from running the Pauli measurement circuits.
|
|
310
|
-
|
|
310
|
+
calibration_results: A dictionary of SingleQubitReadoutCalibrationResult
|
|
311
|
+
for tuples of qubits present in `pauli_string_groups`.
|
|
311
312
|
pauli_repetitions: The number of repetitions used for Pauli string measurements.
|
|
312
313
|
timestamp: The timestamp of the calibration results.
|
|
313
314
|
disable_readout_mitigation: If set to True, returns no error-mitigated error
|
|
@@ -326,7 +327,7 @@ def _process_pauli_measurement_results(
|
|
|
326
327
|
|
|
327
328
|
calibration_result = (
|
|
328
329
|
calibration_results[tuple(pauli_readout_qubits)]
|
|
329
|
-
if disable_readout_mitigation
|
|
330
|
+
if not disable_readout_mitigation
|
|
330
331
|
else None
|
|
331
332
|
)
|
|
332
333
|
|
|
@@ -458,9 +459,9 @@ def measure_pauli_strings(
|
|
|
458
459
|
qubits_list = sorted(unique_qubit_tuples)
|
|
459
460
|
|
|
460
461
|
# Build the basis-change circuits for each Pauli string group
|
|
461
|
-
pauli_measurement_circuits
|
|
462
|
+
pauli_measurement_circuits: list[circuits.Circuit] = []
|
|
462
463
|
for input_circuit, pauli_string_groups in normalized_circuits_to_pauli.items():
|
|
463
|
-
qid_list =
|
|
464
|
+
qid_list = sorted(input_circuit.all_qubits())
|
|
464
465
|
basis_change_circuits = []
|
|
465
466
|
input_circuit_unfrozen = input_circuit.unfreeze()
|
|
466
467
|
for pauli_strings in pauli_string_groups:
|
|
@@ -874,23 +874,20 @@ def test_group_paulis_type_mismatch() -> None:
|
|
|
874
874
|
|
|
875
875
|
def test_process_pauli_measurement_results_raises_error_on_missing_calibration() -> None:
|
|
876
876
|
"""Test that the function raises an error if the calibration result is missing."""
|
|
877
|
-
qubits:
|
|
877
|
+
qubits: Sequence[cirq.Qid] = cirq.LineQubit.range(5)
|
|
878
878
|
|
|
879
879
|
measurement_op = cirq.measure(*qubits, key='m')
|
|
880
|
-
test_circuits
|
|
881
|
-
for _ in range(3):
|
|
882
|
-
circuit_list = []
|
|
883
|
-
|
|
884
|
-
circuit = _create_ghz(5, qubits) + measurement_op
|
|
885
|
-
circuit_list.append(circuit)
|
|
886
|
-
test_circuits.extend(circuit_list)
|
|
880
|
+
test_circuits: list[cirq.Circuit] = [_create_ghz(5, qubits) + measurement_op for _ in range(3)]
|
|
887
881
|
|
|
888
882
|
pauli_strings = [_generate_random_pauli_string(qubits, True) for _ in range(3)]
|
|
889
883
|
sampler = cirq.Simulator()
|
|
890
884
|
|
|
891
885
|
circuit_results = sampler.run_batch(test_circuits, repetitions=1000)
|
|
892
886
|
|
|
893
|
-
|
|
887
|
+
pauli_strings_qubits = sorted(
|
|
888
|
+
set(itertools.chain.from_iterable(ps.qubits for ps in pauli_strings))
|
|
889
|
+
)
|
|
890
|
+
empty_calibration_result_dict = {tuple(pauli_strings_qubits): None}
|
|
894
891
|
|
|
895
892
|
with pytest.raises(
|
|
896
893
|
ValueError,
|
{cirq_core-1.6.0.dev20250702010746.dist-info → cirq_core-1.6.0.dev20250702182429.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.dev20250702182429
|
|
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.dev20250702010746.dist-info → cirq_core-1.6.0.dev20250702182429.dist-info}/RECORD
RENAMED
|
@@ -4,8 +4,8 @@ cirq/_compat_test.py,sha256=emXpdD5ZvwLRlFAoQB8YatmZyU3b4e9jg6FppMTUhkU,33900
|
|
|
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=fToh_g4iC5kx7yo1VRDyZHKdz8PySiptf-27EeYouCI,1278
|
|
8
|
+
cirq/_version_test.py,sha256=CCO4jaJ7yz87XMFjwtEF-AQn6NC2JBP9Q1Z-KnteQYg,155
|
|
9
9
|
cirq/conftest.py,sha256=X7yLFL8GLhg2CjPw0hp5e_dGASfvHx1-QT03aUbhKJw,1168
|
|
10
10
|
cirq/json_resolver_cache.py,sha256=hYyG53VJeV61X0oukK5ndZYega8lkL2FyaL1m0j6h5M,13556
|
|
11
11
|
cirq/py.typed,sha256=VFSlmh_lNwnaXzwY-ZuW-C2Ws5PkuDoVgBdNCs0jXJE,63
|
|
@@ -96,8 +96,8 @@ cirq/contrib/paulistring/optimize.py,sha256=F02c_9nuc8a41XNsA9bzTGaW2kR3hZw-MdaQ
|
|
|
96
96
|
cirq/contrib/paulistring/optimize_test.py,sha256=FsmwyYFIGyyiO115oYgmCfaSV3De55Azd0_rzsi_xnU,3618
|
|
97
97
|
cirq/contrib/paulistring/pauli_string_dag.py,sha256=28bUVNsIS9WYKdyYCNIVrkRwqQOKlkpmCacWow6N6D0,1142
|
|
98
98
|
cirq/contrib/paulistring/pauli_string_dag_test.py,sha256=nH_1h5LQobV9rb5gitLmrvpIwWwrcRmNdUGDAhFMZtI,1168
|
|
99
|
-
cirq/contrib/paulistring/pauli_string_measurement_with_readout_mitigation.py,sha256=
|
|
100
|
-
cirq/contrib/paulistring/pauli_string_measurement_with_readout_mitigation_test.py,sha256=
|
|
99
|
+
cirq/contrib/paulistring/pauli_string_measurement_with_readout_mitigation.py,sha256=otBl5RV6Xsvv1M2Ze6mSz7_wSzsvWt_K7kDWbJNqXYg,21087
|
|
100
|
+
cirq/contrib/paulistring/pauli_string_measurement_with_readout_mitigation_test.py,sha256=e8WaWlBC0HDhkBNG9TMZ_3eT-dFHW3jnGd1ftQbXoo0,36841
|
|
101
101
|
cirq/contrib/paulistring/pauli_string_optimize.py,sha256=ejHf7Bo0iUvnNBeZ5IN0bT0SIXF79DSGr1NxoAyVfiQ,2960
|
|
102
102
|
cirq/contrib/paulistring/pauli_string_optimize_test.py,sha256=_14FS9TAvzRsmnTZxJUsMXPNcenv5mb0eD2gGTxvohE,2955
|
|
103
103
|
cirq/contrib/paulistring/recombine.py,sha256=phJ-SY4zdqZpIZca0iSsY0lK6NdXd0M0sOOWnUdGn5U,4353
|
|
@@ -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.dev20250702182429.dist-info/licenses/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
|
|
1224
|
+
cirq_core-1.6.0.dev20250702182429.dist-info/METADATA,sha256=Or8db6795rcYLA4X9yLQmVJfochkOb_4bgLJDgOHejA,4857
|
|
1225
|
+
cirq_core-1.6.0.dev20250702182429.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
1226
|
+
cirq_core-1.6.0.dev20250702182429.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
|
|
1227
|
+
cirq_core-1.6.0.dev20250702182429.dist-info/RECORD,,
|
{cirq_core-1.6.0.dev20250702010746.dist-info → cirq_core-1.6.0.dev20250702182429.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|