cirq-core 1.5.0.dev20240803000525__py3-none-any.whl → 1.5.0.dev20240805211201__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.dev20240803000525"
31
+ __version__ = "1.5.0.dev20240805211201"
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.dev20240803000525"
6
+ assert cirq.__version__ == "1.5.0.dev20240805211201"
@@ -105,7 +105,7 @@ class RandomizedBenchMarkResult:
105
105
  The plt.Axes containing the plot.
106
106
  """
107
107
  show_plot = not ax
108
- if not ax:
108
+ if ax is None:
109
109
  fig, ax = plt.subplots(1, 1, figsize=(8, 8)) # pragma: no cover
110
110
  ax.set_ylim((0.0, 1.0)) # pragma: no cover
111
111
  ax.plot(self._num_cfds_seq, self._gnd_state_probs, 'ro', label='data', **plot_kwargs)
@@ -629,7 +629,7 @@ def scatter_plot_normalized_kak_interaction_coefficients(
629
629
  >>> plt.show()
630
630
  """
631
631
  show_plot = not ax
632
- if not ax:
632
+ if ax is None:
633
633
  fig = plt.figure()
634
634
  ax = cast(mplot3d.axes3d.Axes3D, fig.add_subplot(1, 1, 1, projection='3d'))
635
635
 
cirq/vis/heatmap.py CHANGED
@@ -296,7 +296,7 @@ class Heatmap:
296
296
  is plotted on. ``collection`` is the collection of paths drawn and filled.
297
297
  """
298
298
  show_plot = not ax
299
- if not ax:
299
+ if ax is None:
300
300
  fig, ax = plt.subplots(figsize=(8, 8))
301
301
  original_config = copy.deepcopy(self._config)
302
302
  self.update_config(**kwargs)
@@ -413,7 +413,7 @@ class TwoQubitInteractionHeatmap(Heatmap):
413
413
  is plotted on. ``collection`` is the collection of paths drawn and filled.
414
414
  """
415
415
  show_plot = not ax
416
- if not ax:
416
+ if ax is None:
417
417
  fig, ax = plt.subplots(figsize=(8, 8))
418
418
  original_config = copy.deepcopy(self._config)
419
419
  self.update_config(**kwargs)
@@ -85,7 +85,7 @@ def plot_state_histogram(
85
85
  The axis that was plotted on.
86
86
  """
87
87
  show_fig = not ax
88
- if not ax:
88
+ if ax is None:
89
89
  fig, ax = plt.subplots(1, 1)
90
90
  if isinstance(data, result.Result):
91
91
  values = get_state_histogram(data)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cirq-core
3
- Version: 1.5.0.dev20240803000525
3
+ Version: 1.5.0.dev20240805211201
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
@@ -8,22 +8,22 @@ Author-email: cirq-dev@googlegroups.com
8
8
  License: Apache 2
9
9
  Requires-Python: >=3.10.0
10
10
  License-File: LICENSE
11
- Requires-Dist: attrs >=21.3.0
12
- Requires-Dist: duet >=0.2.8
13
- Requires-Dist: matplotlib ~=3.0
14
- Requires-Dist: networkx >=2.4
15
- Requires-Dist: numpy ~=1.22
11
+ Requires-Dist: attrs>=21.3.0
12
+ Requires-Dist: duet>=0.2.8
13
+ Requires-Dist: matplotlib~=3.0
14
+ Requires-Dist: networkx>=2.4
15
+ Requires-Dist: numpy~=1.22
16
16
  Requires-Dist: pandas
17
- Requires-Dist: sortedcontainers ~=2.0
18
- Requires-Dist: scipy ~=1.0
17
+ Requires-Dist: sortedcontainers~=2.0
18
+ Requires-Dist: scipy~=1.0
19
19
  Requires-Dist: sympy
20
- Requires-Dist: typing-extensions >=4.2
20
+ Requires-Dist: typing-extensions>=4.2
21
21
  Requires-Dist: tqdm
22
22
  Provides-Extra: contrib
23
- Requires-Dist: ply >=3.6 ; extra == 'contrib'
24
- Requires-Dist: pylatex ~=1.4 ; extra == 'contrib'
25
- Requires-Dist: quimb ~=1.7 ; extra == 'contrib'
26
- Requires-Dist: opt-einsum ; extra == 'contrib'
23
+ Requires-Dist: ply>=3.6; extra == "contrib"
24
+ Requires-Dist: pylatex~=1.4; extra == "contrib"
25
+ Requires-Dist: quimb~=1.7; extra == "contrib"
26
+ Requires-Dist: opt-einsum; extra == "contrib"
27
27
 
28
28
  **This is a development version of Cirq-core and may be unstable.**
29
29
 
@@ -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=SW_FWJCmGvx5ivLhWbk785XiQJa6pOWxLEhmjg7UmRc,1206
8
- cirq/_version_test.py,sha256=5Z79J3pybgJBPPQT2dj2jfr0QpwcYxu6X3IXD9eA5Qk,147
7
+ cirq/_version.py,sha256=XZsYzwUTP3GE8GG6WR0xCcyMF10fnGFnS52n1yBae2k,1206
8
+ cirq/_version_test.py,sha256=7G2N-4Ol8pCnhJ151gJUy7wns3PMIDyZQEpLETh3-sA,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
@@ -184,7 +184,7 @@ cirq/experiments/n_qubit_tomography.py,sha256=9M_kf2-1hvFxfZOWND7ACwHYgD9SJU5nYF
184
184
  cirq/experiments/n_qubit_tomography_test.py,sha256=wHfV2OpGYSDXfoyEh-B5dc1Dv8sxKNFbUoHyjIWZoFk,4362
185
185
  cirq/experiments/purity_estimation.py,sha256=6D1UwFlQRzHeajXMTyTUfBYAc0jJQ8Cfz4lteFKeUaM,2467
186
186
  cirq/experiments/purity_estimation_test.py,sha256=xlBGp0NOBYR0IhTy3bckHPgi81FkGSGxKqk9hwXG-I8,923
187
- cirq/experiments/qubit_characterizations.py,sha256=yimdW20qqP4iP0wyO83W6VSQWDToJKO6Nx4okBxjn_I,36726
187
+ cirq/experiments/qubit_characterizations.py,sha256=-a-krc7Pw68VjsVvQmeZ92oXrpeME31j4cVrAkKFkr4,36730
188
188
  cirq/experiments/qubit_characterizations_test.py,sha256=b_ONqxyW6s01Ts8T65BEdb4e8Xy24Qp4zTGXWesL0ic,9733
189
189
  cirq/experiments/random_quantum_circuit_generation.py,sha256=R_w7z35plUHEYBY0-F80bPcWJSSSjNQDaP2GbxVBEZg,28143
190
190
  cirq/experiments/random_quantum_circuit_generation_test.py,sha256=1rvgN8-Ajedn_70FyYKVzjvzR6NVpHj6KQgo6tra-Jc,15995
@@ -246,7 +246,7 @@ cirq/ion/__init__.py,sha256=GKBoQfjGrCOkVQR1MqK32s9YxA8PsrKecekz7LChUlk,734
246
246
  cirq/linalg/__init__.py,sha256=iMN1jVWzuZrSdHuE-gN2N1QyP0q6wgj6F4zetxJLCJQ,2527
247
247
  cirq/linalg/combinators.py,sha256=5q_cNjnJrDgC7qMX8rYdnCmBKXT_iVbtxnCeJQ4ZPTM,5350
248
248
  cirq/linalg/combinators_test.py,sha256=nZ3snkVA2nAOZ6WJK1hNd1f_i2a5xNdnostfMD1upbc,4699
249
- cirq/linalg/decompositions.py,sha256=hqo76094MnUrMUe1BFQagfB3fArEPjo8Jkb1fEL2Yc8,39225
249
+ cirq/linalg/decompositions.py,sha256=cNIcKylK4tnGgIreO7X4cpsRmwvOycKRSS8xf9gaIG0,39229
250
250
  cirq/linalg/decompositions_test.py,sha256=-6q2u3BDG9b32QSUAjhmBNWrL3KzyiMH_R0WIHhdOqU,25790
251
251
  cirq/linalg/diagonalize.py,sha256=Ym7C0JTAC9xfRQDYI72U6NxMYg0DfchjfXcbdg_92QE,10051
252
252
  cirq/linalg/diagonalize_test.py,sha256=H-JcLvcCBdN-DrKo2o1Gs7B8Q9SU70oAZmdT4yTLAi4,9089
@@ -1154,11 +1154,11 @@ cirq/value/value_equality_attr_test.py,sha256=k_nl5hWxo4yMO6WNu0wU68wyeb-RN9Ua_I
1154
1154
  cirq/vis/__init__.py,sha256=e3Z1PI-Ay0hDHhIgFZEDwQIuO8C_aayNdL-EByF0J4o,1001
1155
1155
  cirq/vis/density_matrix.py,sha256=kMAPcRh6f0ghZKSe86nB_2iFngrDsw0pNael1EZ5BEw,4819
1156
1156
  cirq/vis/density_matrix_test.py,sha256=Xg41NQZBfoyrkaX3n9pW4q1LIxWpOW3Cr_I_Wx51GlQ,6965
1157
- cirq/vis/heatmap.py,sha256=VVAj_aW0u4jRId2T1RUl_gL-xcxsG6jjKbf8qVJQl9A,17686
1157
+ cirq/vis/heatmap.py,sha256=L1jLSXMM52BcriCqYrhbb7yv1fXverJuwgOM-0ZOL6c,17694
1158
1158
  cirq/vis/heatmap_test.py,sha256=5kWIxJZZbZcc93XZrZ18lF2gRUleR1iqYbWfHs4cvu4,20531
1159
1159
  cirq/vis/histogram.py,sha256=gQUrcebsk5wgPT38pWFW55jG9zaKhxp8zLRGmmVDk8s,5107
1160
1160
  cirq/vis/histogram_test.py,sha256=Qlw0e3amw_MFga-hNweiLzRCH174W9bB2qkmX_RiS-U,1904
1161
- cirq/vis/state_histogram.py,sha256=lmYrPrqWoxhdXGbBdMahKK4isqmmeO6v45KKVbH3MkA,4260
1161
+ cirq/vis/state_histogram.py,sha256=4Wd25783W_s0R3qzhSrPFXRjyxQb0_u0lTbDMW8-DK0,4264
1162
1162
  cirq/vis/state_histogram_test.py,sha256=KzxDJedwE-KZR-K_TZlMh01DroSnZPArZPOo4CBEYWI,3761
1163
1163
  cirq/vis/vis_utils.py,sha256=CsNHb9vMBF9UjxZ2k5XqMESbATOx0FXhWAwxFbq-9pQ,1239
1164
1164
  cirq/vis/vis_utils_test.py,sha256=-aiL5WmhPDs_5BF2lDol1koD4JuHTiYxLK2ofyWrbCU,939
@@ -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.dev20240803000525.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1185
- cirq_core-1.5.0.dev20240803000525.dist-info/METADATA,sha256=xnME2LBGldhLKr9IiLVLmADAmTJ-4ZTn8hnfpSYcZdY,2007
1186
- cirq_core-1.5.0.dev20240803000525.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
1187
- cirq_core-1.5.0.dev20240803000525.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1188
- cirq_core-1.5.0.dev20240803000525.dist-info/RECORD,,
1184
+ cirq_core-1.5.0.dev20240805211201.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1185
+ cirq_core-1.5.0.dev20240805211201.dist-info/METADATA,sha256=Hm5OsrWm-lnCUv61fJrfjX4G2N814aFc-mecnhmeSOM,1992
1186
+ cirq_core-1.5.0.dev20240805211201.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
1187
+ cirq_core-1.5.0.dev20240805211201.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1188
+ cirq_core-1.5.0.dev20240805211201.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: bdist_wheel (0.44.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5