cirq-core 1.5.0.dev20250325195502__py3-none-any.whl → 1.5.0.dev20250326013841__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 +2 -2
- cirq/contrib/paulistring/pauli_string_measurement_with_readout_mitigation_test.py +4 -8
- {cirq_core-1.5.0.dev20250325195502.dist-info → cirq_core-1.5.0.dev20250326013841.dist-info}/METADATA +1 -1
- {cirq_core-1.5.0.dev20250325195502.dist-info → cirq_core-1.5.0.dev20250326013841.dist-info}/RECORD +9 -9
- {cirq_core-1.5.0.dev20250325195502.dist-info → cirq_core-1.5.0.dev20250326013841.dist-info}/LICENSE +0 -0
- {cirq_core-1.5.0.dev20250325195502.dist-info → cirq_core-1.5.0.dev20250326013841.dist-info}/WHEEL +0 -0
- {cirq_core-1.5.0.dev20250325195502.dist-info → cirq_core-1.5.0.dev20250326013841.dist-info}/top_level.txt +0 -0
cirq/_version.py
CHANGED
cirq/_version_test.py
CHANGED
|
@@ -83,8 +83,8 @@ def _validate_input(
|
|
|
83
83
|
|
|
84
84
|
if all(q == ops.I for q in pauli_str):
|
|
85
85
|
raise ValueError(
|
|
86
|
-
"Empty Pauli strings or Pauli strings consisting"
|
|
87
|
-
"only of Pauli I are not allowed. Please provide"
|
|
86
|
+
"Empty Pauli strings or Pauli strings consisting "
|
|
87
|
+
"only of Pauli I are not allowed. Please provide "
|
|
88
88
|
"valid input Pauli strings."
|
|
89
89
|
)
|
|
90
90
|
if pauli_str.coefficient.imag != 0:
|
|
@@ -36,13 +36,9 @@ def _create_ghz(number_of_qubits: int, qubits: Sequence[cirq.Qid]) -> cirq.Circu
|
|
|
36
36
|
def _generate_random_pauli_string(qubits: Sequence[cirq.Qid], enable_coeff: bool = False):
|
|
37
37
|
pauli_ops = [cirq.I, cirq.X, cirq.Y, cirq.Z]
|
|
38
38
|
|
|
39
|
-
# Ensure at least one non-identity.
|
|
40
|
-
operators = {q: cirq.I(q) for q in qubits} # Start with all identities
|
|
41
|
-
# Choose a random subset of qubits to have non-identity operators
|
|
42
|
-
non_identity_qubits = random.sample(qubits, random.randint(1, len(qubits)))
|
|
43
|
-
for q in non_identity_qubits:
|
|
44
|
-
operators[q] = random.choice([cirq.X, cirq.Y, cirq.Z])(q) # Only non-identity ops
|
|
45
39
|
operators = {q: random.choice(pauli_ops) for q in qubits}
|
|
40
|
+
# Ensure at least one non-identity.
|
|
41
|
+
operators[random.choice(qubits)] = random.choice(pauli_ops[1:])
|
|
46
42
|
|
|
47
43
|
if enable_coeff:
|
|
48
44
|
coefficient = (2 * random.random() - 1) * 100
|
|
@@ -461,8 +457,8 @@ def test_all_pauli_strings_are_pauli_i() -> None:
|
|
|
461
457
|
|
|
462
458
|
with pytest.raises(
|
|
463
459
|
ValueError,
|
|
464
|
-
match="Empty Pauli strings or Pauli strings consisting"
|
|
465
|
-
"only of Pauli I are not allowed. Please provide"
|
|
460
|
+
match="Empty Pauli strings or Pauli strings consisting "
|
|
461
|
+
"only of Pauli I are not allowed. Please provide "
|
|
466
462
|
"valid input Pauli strings.",
|
|
467
463
|
):
|
|
468
464
|
measure_pauli_strings(
|
{cirq_core-1.5.0.dev20250325195502.dist-info → cirq_core-1.5.0.dev20250326013841.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.dev20250326013841
|
|
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.dev20250325195502.dist-info → cirq_core-1.5.0.dev20250326013841.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=8oTTttHZjJdni2fil1IL3AxrTdbx--IpmLGgHJbBllk,1206
|
|
8
|
+
cirq/_version_test.py,sha256=_4FkRqiKPZUTNl6NRxcoEF7J9kuLyBwhHpoFhNsdf88,147
|
|
9
9
|
cirq/conftest.py,sha256=X7yLFL8GLhg2CjPw0hp5e_dGASfvHx1-QT03aUbhKJw,1168
|
|
10
10
|
cirq/json_resolver_cache.py,sha256=p-vEOa-8GQ2cFIAdze-kd6C1un1uRvtujVPljVKaHBg,13557
|
|
11
11
|
cirq/py.typed,sha256=VFSlmh_lNwnaXzwY-ZuW-C2Ws5PkuDoVgBdNCs0jXJE,63
|
|
@@ -96,8 +96,8 @@ cirq/contrib/paulistring/optimize.py,sha256=qhBOGxLYovUua_xVqXWgVDPRRmv4VOmyFgKV
|
|
|
96
96
|
cirq/contrib/paulistring/optimize_test.py,sha256=jie0UomSCIj90TMv3MIi4hd32iTjttQ8-zr7ZDs0tug,3560
|
|
97
97
|
cirq/contrib/paulistring/pauli_string_dag.py,sha256=vg0994h84zHIejSdwfqR-mdwmHOWWOAOOcGuStfKPdk,1106
|
|
98
98
|
cirq/contrib/paulistring/pauli_string_dag_test.py,sha256=rlwbuh0DvFv1GlJIqEG1OI_geY77dzxo4bb7qqDkz8M,1125
|
|
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=1Vuvng02ocNUziCgE9XjYrTQIAxSfvM4eqY0Hc6LZpk,15677
|
|
100
|
+
cirq/contrib/paulistring/pauli_string_measurement_with_readout_mitigation_test.py,sha256=AqQTKNuPLFDrB7XUHWAZDi6y8B9-Bf0-iAGg3TXnSBo,21436
|
|
101
101
|
cirq/contrib/paulistring/pauli_string_optimize.py,sha256=81MDk6rKl0jmw7DXFkA02YmluiXLLznuuCTvca7mVoY,2815
|
|
102
102
|
cirq/contrib/paulistring/pauli_string_optimize_test.py,sha256=f1BWjg8IGw5ChXFYNVhYKNIrFul8PgvpnOEadkRm-3Q,2897
|
|
103
103
|
cirq/contrib/paulistring/recombine.py,sha256=SU6DNj3Y9Wicf9pMP3IYzdWV7Fuz1DA_1v2AtUVnuF4,4355
|
|
@@ -1206,8 +1206,8 @@ cirq/work/sampler.py,sha256=bE5tmVkcR6cZZMLETxDfHehdsYUMbx2RvBeIBetehI4,19187
|
|
|
1206
1206
|
cirq/work/sampler_test.py,sha256=hL2UWx3dz2ukZVNxWftiKVvJcQoLplLZdQm-k1QcA40,13282
|
|
1207
1207
|
cirq/work/zeros_sampler.py,sha256=x1C7cup66a43n-3tm8QjhiqJa07qcJW10FxNp9jJ59Q,2356
|
|
1208
1208
|
cirq/work/zeros_sampler_test.py,sha256=JIkpBBFPJe5Ba4142vzogyWyboG1Q1ZAm0UVGgOoZn8,3279
|
|
1209
|
-
cirq_core-1.5.0.
|
|
1210
|
-
cirq_core-1.5.0.
|
|
1211
|
-
cirq_core-1.5.0.
|
|
1212
|
-
cirq_core-1.5.0.
|
|
1213
|
-
cirq_core-1.5.0.
|
|
1209
|
+
cirq_core-1.5.0.dev20250326013841.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
|
|
1210
|
+
cirq_core-1.5.0.dev20250326013841.dist-info/METADATA,sha256=e6_72WE_aqQDP7QP1T8LmPCAD9NZsx3HBzGzccUwYIU,4817
|
|
1211
|
+
cirq_core-1.5.0.dev20250326013841.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
1212
|
+
cirq_core-1.5.0.dev20250326013841.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
|
|
1213
|
+
cirq_core-1.5.0.dev20250326013841.dist-info/RECORD,,
|
{cirq_core-1.5.0.dev20250325195502.dist-info → cirq_core-1.5.0.dev20250326013841.dist-info}/LICENSE
RENAMED
|
File without changes
|
{cirq_core-1.5.0.dev20250325195502.dist-info → cirq_core-1.5.0.dev20250326013841.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|