cirq-core 1.5.0.dev20241002233716__py3-none-any.whl → 1.5.0.dev20241003235812__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.dev20241002233716"
31
+ __version__ = "1.5.0.dev20241003235812"
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.dev20241002233716"
6
+ assert cirq.__version__ == "1.5.0.dev20241003235812"
cirq/vis/heatmap.py CHANGED
@@ -28,7 +28,6 @@ from typing import (
28
28
  SupportsFloat,
29
29
  Tuple,
30
30
  Union,
31
- TYPE_CHECKING,
32
31
  )
33
32
 
34
33
  import matplotlib as mpl
@@ -40,8 +39,6 @@ from mpl_toolkits import axes_grid1
40
39
  from cirq.devices import grid_qubit
41
40
  from cirq.vis import vis_utils
42
41
 
43
- if TYPE_CHECKING:
44
- from numpy.typing import ArrayLike
45
42
 
46
43
  QubitTuple = Tuple[grid_qubit.GridQubit, ...]
47
44
 
@@ -240,8 +237,8 @@ class Heatmap:
240
237
  ax: plt.Axes,
241
238
  ) -> None:
242
239
  """Writes annotations to the center of cells. Internal."""
243
- facecolor: ArrayLike
244
- for (center, annotation), facecolor in zip(centers_and_annot, collection.get_facecolor()):
240
+ face_colors = cast(np.ndarray, collection.get_facecolor())
241
+ for (center, annotation), facecolor in zip(centers_and_annot, face_colors):
245
242
  # Calculate the center of the cell, assuming that it is a square
246
243
  # centered at (x=col, y=row).
247
244
  if not annotation:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cirq-core
3
- Version: 1.5.0.dev20241002233716
3
+ Version: 1.5.0.dev20241003235812
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
@@ -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=2DlrR3naBFSmdoRBfmIh98HV7R9AMcb_kTce1umh_PE,1206
8
- cirq/_version_test.py,sha256=NZbUTk8v7zt2CI6IS_nymuxF3T0x4DHWVA7Zeye-nrU,147
7
+ cirq/_version.py,sha256=LZS2i3xfrQwVVKv_iIEocJC3o8_wAn7XaYWbPrkDK_8,1206
8
+ cirq/_version_test.py,sha256=u7jU10eda4nn6z_pURehchtt1uLEkbsXd8zEMSg810M,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
@@ -1157,7 +1157,7 @@ cirq/value/value_equality_attr_test.py,sha256=k_nl5hWxo4yMO6WNu0wU68wyeb-RN9Ua_I
1157
1157
  cirq/vis/__init__.py,sha256=YzNrNjIyUiTxKHGzYw92qzOYzx8aXkm2y_1hkfVohtU,1171
1158
1158
  cirq/vis/density_matrix.py,sha256=kMAPcRh6f0ghZKSe86nB_2iFngrDsw0pNael1EZ5BEw,4819
1159
1159
  cirq/vis/density_matrix_test.py,sha256=Xg41NQZBfoyrkaX3n9pW4q1LIxWpOW3Cr_I_Wx51GlQ,6965
1160
- cirq/vis/heatmap.py,sha256=lyx1CfPAM8NSv5LcpQM05TFS20QDuzadsffC923_Hls,17821
1160
+ cirq/vis/heatmap.py,sha256=bJFROjpY0XklepoG1n-aNcmJlhULoKdPP3rUUuRQqCA,17768
1161
1161
  cirq/vis/heatmap_test.py,sha256=5kWIxJZZbZcc93XZrZ18lF2gRUleR1iqYbWfHs4cvu4,20531
1162
1162
  cirq/vis/histogram.py,sha256=gQUrcebsk5wgPT38pWFW55jG9zaKhxp8zLRGmmVDk8s,5107
1163
1163
  cirq/vis/histogram_test.py,sha256=Qlw0e3amw_MFga-hNweiLzRCH174W9bB2qkmX_RiS-U,1904
@@ -1184,8 +1184,8 @@ cirq/work/sampler.py,sha256=JEAeQQRF3bqlO9AkOf4XbrTATDI5f5JgyM_FAUCNxao,19751
1184
1184
  cirq/work/sampler_test.py,sha256=B2ZsuqGT854gQtBIAh8k0LiG9Vj5wSzcGvkxOUoTcW4,13217
1185
1185
  cirq/work/zeros_sampler.py,sha256=x1C7cup66a43n-3tm8QjhiqJa07qcJW10FxNp9jJ59Q,2356
1186
1186
  cirq/work/zeros_sampler_test.py,sha256=JIkpBBFPJe5Ba4142vzogyWyboG1Q1ZAm0UVGgOoZn8,3279
1187
- cirq_core-1.5.0.dev20241002233716.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1188
- cirq_core-1.5.0.dev20241002233716.dist-info/METADATA,sha256=hDvyFY1ZVOFLecgxK_ilp4J1J67LTx1w29VK8cRj6Aw,1992
1189
- cirq_core-1.5.0.dev20241002233716.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
1190
- cirq_core-1.5.0.dev20241002233716.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1191
- cirq_core-1.5.0.dev20241002233716.dist-info/RECORD,,
1187
+ cirq_core-1.5.0.dev20241003235812.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1188
+ cirq_core-1.5.0.dev20241003235812.dist-info/METADATA,sha256=uXRFflU62ZIPuODiuYPNT0uEhVL4sZdz1uwiftYWejg,1992
1189
+ cirq_core-1.5.0.dev20241003235812.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
1190
+ cirq_core-1.5.0.dev20241003235812.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1191
+ cirq_core-1.5.0.dev20241003235812.dist-info/RECORD,,