cirq-core 1.5.0.dev20250325195502__py3-none-any.whl → 1.5.0.dev20250326180639__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 CHANGED
@@ -28,4 +28,4 @@ if sys.version_info < (3, 10, 0): # pragma: no cover
28
28
  'of cirq (e.g. "python -m pip install cirq==1.1.*")'
29
29
  )
30
30
 
31
- __version__ = "1.5.0.dev20250325195502"
31
+ __version__ = "1.5.0.dev20250326180639"
cirq/_version_test.py CHANGED
@@ -3,4 +3,4 @@ import cirq
3
3
 
4
4
 
5
5
  def test_version():
6
- assert cirq.__version__ == "1.5.0.dev20250325195502"
6
+ assert cirq.__version__ == "1.5.0.dev20250326180639"
@@ -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(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cirq-core
3
- Version: 1.5.0.dev20250325195502
3
+ Version: 1.5.0.dev20250326180639
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
@@ -45,14 +45,6 @@ Requires-Dist: pylatex~=1.4; extra == "contrib"
45
45
  Requires-Dist: quimb>=1.8; extra == "contrib"
46
46
  Requires-Dist: opt-einsum; extra == "contrib"
47
47
 
48
- <div align='center' width='50%'>
49
-
50
- | ⚠️ WARNING |
51
- |:----------:|
52
- | **This is a development version of `cirq-core` and may be<br>unstable. For the latest stable release of `cirq-core`,<br>please visit** <https://pypi.org/project/cirq-core>.|
53
-
54
- </div>
55
-
56
48
  <div align="center">
57
49
  <img width="220px" alt="Cirq logo"
58
50
  src="https://raw.githubusercontent.com/quantumlib/Cirq/refs/heads/main/docs/images/Cirq_logo_color.svg">
@@ -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=U3MJCocwW-TV5L0g04JNSzDO_bwhyNrhQyPFHgt4yww,1206
8
- cirq/_version_test.py,sha256=udRc-gXGRFohn0mREqa9EDUrbLSRt1HDpF8wevpJJUI,147
7
+ cirq/_version.py,sha256=Hhp5gJ7XpvBQWbmEqyjE4W5aRr-246yUmuxzAvv51-c,1206
8
+ cirq/_version_test.py,sha256=eQkcaDkwKkDeJ39hi84AZopu-pa1_m1tYewwkXJzdg4,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=ULhFIH8LBbDNHpPd0ulXTCm-hGqpbZBxrQLolSKfBg4,15675
100
- cirq/contrib/paulistring/pauli_string_measurement_with_readout_mitigation_test.py,sha256=srkjiczY5WLfwzltmc0cn0J6atZyJ8qWL-oiUZuGPDI,21717
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.dev20250325195502.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1210
- cirq_core-1.5.0.dev20250325195502.dist-info/METADATA,sha256=SXbdZlj5gz1jPjFba_SamqhqG1JLv_UnPowosLoPrQM,4817
1211
- cirq_core-1.5.0.dev20250325195502.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
1212
- cirq_core-1.5.0.dev20250325195502.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1213
- cirq_core-1.5.0.dev20250325195502.dist-info/RECORD,,
1209
+ cirq_core-1.5.0.dev20250326180639.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1210
+ cirq_core-1.5.0.dev20250326180639.dist-info/METADATA,sha256=2VDCNAt-dlDIL9_ePKhKSMtqUPgKP-3Y4aHIrCF4BMg,4564
1211
+ cirq_core-1.5.0.dev20250326180639.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
1212
+ cirq_core-1.5.0.dev20250326180639.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1213
+ cirq_core-1.5.0.dev20250326180639.dist-info/RECORD,,