cirq-core 1.7.0.dev20250925163735__py3-none-any.whl → 1.7.0.dev20250925212546__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, 11, 0): # pragma: no cover
28
28
  'of Cirq (e.g. "python -m pip install cirq==1.5.0")'
29
29
  )
30
30
 
31
- __version__ = "1.7.0.dev20250925163735"
31
+ __version__ = "1.7.0.dev20250925212546"
cirq/_version_test.py CHANGED
@@ -3,4 +3,4 @@ import cirq
3
3
 
4
4
 
5
5
  def test_version() -> None:
6
- assert cirq.__version__ == "1.7.0.dev20250925163735"
6
+ assert cirq.__version__ == "1.7.0.dev20250925212546"
@@ -285,7 +285,7 @@ class GridQid(_BaseGridQid):
285
285
 
286
286
  @staticmethod
287
287
  def from_diagram(diagram: str, dimension: int) -> list[GridQid]:
288
- """Parse ASCII art device layout into a device.
288
+ r"""Parse ASCII art device layout into a device.
289
289
 
290
290
  As an example, the below diagram will create a list of GridQid in a
291
291
  pyramid structure.
@@ -322,7 +322,7 @@ class GridQid(_BaseGridQid):
322
322
  a row. Alphanumeric characters are assigned as qid.
323
323
  Dots ('.'), dashes ('-'), and spaces (' ') are treated as
324
324
  empty locations in the grid. If diagram has characters other
325
- than alphanumerics, spacers, and newlines ('\\n'), an error will
325
+ than alphanumerics, spacers, and newlines ('\n'), an error will
326
326
  be thrown. The top-left corner of the diagram will be have
327
327
  coordinate (0, 0).
328
328
 
@@ -439,7 +439,7 @@ class GridQubit(_BaseGridQid):
439
439
 
440
440
  @staticmethod
441
441
  def from_diagram(diagram: str) -> list[GridQubit]:
442
- """Parse ASCII art into device layout info.
442
+ r"""Parse ASCII art into device layout info.
443
443
 
444
444
  As an example, the below diagram will create a list of
445
445
  GridQubit in a pyramid structure.
@@ -476,7 +476,7 @@ class GridQubit(_BaseGridQid):
476
476
  a row. Alphanumeric characters are assigned as qid.
477
477
  Dots ('.'), dashes ('-'), and spaces (' ') are treated as
478
478
  empty locations in the grid. If diagram has characters other
479
- than alphanumerics, spacers, and newlines ('\\n'), an error will
479
+ than alphanumerics, spacers, and newlines ('\n'), an error will
480
480
  be thrown. The top-left corner of the diagram will be have
481
481
  coordinate (0,0).
482
482
 
@@ -503,7 +503,7 @@ class GridQubit(_BaseGridQid):
503
503
 
504
504
 
505
505
  def _ascii_diagram_to_coords(diagram: str) -> list[tuple[int, int]]:
506
- """Parse ASCII art device layout into info about qids coordinates
506
+ r"""Parse ASCII art device layout into info about qids coordinates
507
507
 
508
508
  Args:
509
509
  diagram: String representing the qid layout. Each line represents
@@ -243,7 +243,7 @@ def so4_to_magic_su2s(
243
243
 
244
244
  @value.value_equality(approximate=True)
245
245
  class AxisAngleDecomposition:
246
- """Represents a unitary operation as an axis, angle, and global phase.
246
+ r"""Represents a unitary operation as an axis, angle, and global phase.
247
247
 
248
248
  The unitary $U$ is decomposed as follows:
249
249
 
cirq/ops/named_qubit.py CHANGED
@@ -148,7 +148,7 @@ class NamedQid(_BaseNamedQid):
148
148
 
149
149
  @staticmethod
150
150
  def range(*args, prefix: str, dimension: int) -> list[NamedQid]:
151
- """Returns a range of ``NamedQid``\\s.
151
+ """Returns a range of ``NamedQid``s.
152
152
 
153
153
  The range returned starts with the prefix, and followed by a qid for
154
154
  each number in the range, e.g.:
@@ -166,7 +166,7 @@ class NamedQid(_BaseNamedQid):
166
166
  dimension: The dimension of the qid's Hilbert space, i.e.
167
167
  the number of quantum levels.
168
168
  Returns:
169
- A list of ``NamedQid``\\s.
169
+ A list of ``NamedQid``s.
170
170
  """
171
171
  return [NamedQid(f"{prefix}{i}", dimension=dimension) for i in range(*args)]
172
172
 
@@ -84,7 +84,7 @@ def plot_density_matrix(
84
84
  show_text: bool = False,
85
85
  title: str | None = None,
86
86
  ) -> plt.Axes:
87
- """Generates a plot for a given density matrix.
87
+ r"""Generates a plot for a given density matrix.
88
88
 
89
89
  1. Each entry of the density matrix, a complex number, is plotted as an
90
90
  Argand Diagram where the partially filled red circle represents the magnitude
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cirq-core
3
- Version: 1.7.0.dev20250925163735
3
+ Version: 1.7.0.dev20250925212546
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=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=TvZSYtLeQ-fI3R4DZRX9aDk4sLshNuix_A-HMdXndgU,1206
8
- cirq/_version_test.py,sha256=UBj3sF7PIbexh4kSxVnq9loc0cmIi8G8jtiNO6xOyYg,155
7
+ cirq/_version.py,sha256=H9f6gmW-72eQU-77ifteEnh0pqUwan4gGGRJpU8he7o,1206
8
+ cirq/_version_test.py,sha256=bpBco-A5ShCknIkdcn4Ib7A9fJsHa1ndIahLt9GYBJ4,155
9
9
  cirq/conftest.py,sha256=wSDKNdIQRDfLnXvOCWD3erheOw8JHRhdfQ53EyTUIXg,1239
10
10
  cirq/json_resolver_cache.py,sha256=A5DIgFAY1hUNt9vai_C3-gGBv24116CJMzQxMcXOax4,13726
11
11
  cirq/py.typed,sha256=VFSlmh_lNwnaXzwY-ZuW-C2Ws5PkuDoVgBdNCs0jXJE,63
@@ -172,7 +172,7 @@ cirq/devices/device.py,sha256=Ejkn0qIW8r406kn7rCOQ96SEJu4dUuKK13hazJl1VYg,5383
172
172
  cirq/devices/device_test.py,sha256=Zh7_hHiG0OENZmGhH8hj9OdotbiJfP-4hCD5tpfF5UA,1194
173
173
  cirq/devices/grid_device_metadata.py,sha256=pgh2wu33i9rWOqqYgsTMtLuB2k4L8EAD6tMx_o_ju5g,8602
174
174
  cirq/devices/grid_device_metadata_test.py,sha256=jNTQGFUrl-xCtuP6s04_FWtP1S87ot9TwYbXq-K950g,8799
175
- cirq/devices/grid_qubit.py,sha256=qBRUVaJaS-ZkpUJfv1LdPwV-kRsl1xJ2DslZW5naJxI,19125
175
+ cirq/devices/grid_qubit.py,sha256=B38Y9z8ZzUi778TtfZMEDg1mkmsUGn7Dor6Y0Jmx-NE,19126
176
176
  cirq/devices/grid_qubit_test.py,sha256=DtLAKSTRvTQ7XXujxDzhQIWgNbmFxdx-5A2tvDxUsaY,15642
177
177
  cirq/devices/insertion_noise_model.py,sha256=FCVsVsrPyGT0WsvIWQUgu4IliSRpck3znrEmlI-xOPU,3609
178
178
  cirq/devices/insertion_noise_model_test.py,sha256=MjJoouDxVobkqKEvlLSy82E5749LXHzaaTbCzZuFxe0,4068
@@ -266,7 +266,7 @@ cirq/ion/__init__.py,sha256=F6tf4JZOGpDdxX0FxT42qgq8rF96ZTFHMJ0OV09Yj1c,787
266
266
  cirq/linalg/__init__.py,sha256=k3hZ6NMJN9b9ExgzkoHG4W2SFVEpYf8ZCSmIkOtRBOU,4029
267
267
  cirq/linalg/combinators.py,sha256=7V9oNSojc466NvOXyt4FMu50yDQ77iM5N4oZ37fV9tc,5347
268
268
  cirq/linalg/combinators_test.py,sha256=GohGZwFF87XW37sZtldaG5TlDp5-DA0Nc7k2gTZIlNo,4922
269
- cirq/linalg/decompositions.py,sha256=qUgmm61cmoNZhOMji4q8kR8ki0SqBwU-Y8sR71mCA7Y,38562
269
+ cirq/linalg/decompositions.py,sha256=iJbIjq_a7X085ZYlzxaPZtHrWh2fPro_fIOXSzDwGoU,38563
270
270
  cirq/linalg/decompositions_test.py,sha256=eUl-O-PaY_IVuznJLPKnthiAIM_mI1bkJZJGgp6xWkI,25896
271
271
  cirq/linalg/diagonalize.py,sha256=3PpGmlI7CCkQS3JKr0AkgdHOZedXLniZkxmUtpCNQPk,10074
272
272
  cirq/linalg/diagonalize_test.py,sha256=4gpQ2MmjK9C8khX1LTR1hfXAdP7Hl8e5jf1UszbXTFs,9177
@@ -337,7 +337,7 @@ cirq/ops/measurement_gate.py,sha256=i7ThYTd1xdzOG274jzFnzqEz5Qmv6wggcubWa-3FDZE,
337
337
  cirq/ops/measurement_gate_test.py,sha256=IF8ceuD2Sb4kFlp9x9evwl8F7j4BkCvZXSgKCP4Ac1g,18573
338
338
  cirq/ops/mixed_unitary_channel.py,sha256=guje2Jbj2uWG8NSlwazK1r-XjxlTHA6s7ti52tWS-Nk,5246
339
339
  cirq/ops/mixed_unitary_channel_test.py,sha256=QXnkw6-kP9HowdoV5aUtnEBAGG0bjqgzxKYe0dbV5XY,5277
340
- cirq/ops/named_qubit.py,sha256=e2GdyDfeyKNgmXiiQh8yW59t4qDIvAEzXjb_NfyhgHs,9997
340
+ cirq/ops/named_qubit.py,sha256=WCSRXbffhGSyX-W78p_OPcz5--1PIMptfnyY5cg3rCI,9993
341
341
  cirq/ops/named_qubit_test.py,sha256=bS3sjjVo0Lm7cjoxBGkSsx5FGkUgSM1QxwBjVOHATis,5343
342
342
  cirq/ops/op_tree.py,sha256=w2jnYMi8UtV13CROphi4Gesydc5YzmuvXJZsIAGm65k,5277
343
343
  cirq/ops/op_tree_test.py,sha256=npk2P6asFc3Z-K_xQ0l9JNam4uBwWMZTGT8rDO5xUmQ,6104
@@ -1207,7 +1207,7 @@ cirq/value/type_alias.py,sha256=64tVzxOqzwtKTwuqXan-PeTyjy7i6J928FCg5NtMcw4,1121
1207
1207
  cirq/value/value_equality_attr.py,sha256=JcjTVy_TQ56SXa7n_qAWJkUbICC3i6vWcM5K3g_OwNQ,10461
1208
1208
  cirq/value/value_equality_attr_test.py,sha256=ZWsjAlJd9M_-HONqTXcdjpIaFCilLcelyodZl1fIu2Y,6557
1209
1209
  cirq/vis/__init__.py,sha256=YzNrNjIyUiTxKHGzYw92qzOYzx8aXkm2y_1hkfVohtU,1171
1210
- cirq/vis/density_matrix.py,sha256=7Mydxi7r1at6W0t7lH99Gq__deyCQ9RxHf-HveKLTZw,4820
1210
+ cirq/vis/density_matrix.py,sha256=IefN6zgEyqEcCXjHhv6tM5JgRQRed0mT2C8je6Vl584,4821
1211
1211
  cirq/vis/density_matrix_test.py,sha256=yoOQd0XqCECfmM6ycsBEF2hEyM5NTeNNAoVYEhRj8pk,7082
1212
1212
  cirq/vis/heatmap.py,sha256=nKb91MmL5HxMQd95u0v3pf0zrV2dMqdUGCMDxOyoOO4,17620
1213
1213
  cirq/vis/heatmap_test.py,sha256=5Z6EymBugK_tygqKb_qHy7rBI1LfIG67tzPtGUWSUB4,20587
@@ -1236,8 +1236,8 @@ cirq/work/sampler.py,sha256=rxbMWvrhu3gfNSBjZKozw28lLKVvBAS_1EGyPdYe8Xg,19041
1236
1236
  cirq/work/sampler_test.py,sha256=SsMrRvLDYELyOAWLKISjkdEfrBwLYWRsT6D8WrsLM3Q,13533
1237
1237
  cirq/work/zeros_sampler.py,sha256=Fs2JWwq0n9zv7_G5Rm-9vPeHUag7uctcMOHg0JTkZpc,2371
1238
1238
  cirq/work/zeros_sampler_test.py,sha256=lQLgQDGBLtfImryys2HzQ2jOSGxHgc7-koVBUhv8qYk,3345
1239
- cirq_core-1.7.0.dev20250925163735.dist-info/licenses/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1240
- cirq_core-1.7.0.dev20250925163735.dist-info/METADATA,sha256=3quT-l2WM6jmOzXA4A-8VCBZElJcNkb30K02o0_Y8YY,4758
1241
- cirq_core-1.7.0.dev20250925163735.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
1242
- cirq_core-1.7.0.dev20250925163735.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1243
- cirq_core-1.7.0.dev20250925163735.dist-info/RECORD,,
1239
+ cirq_core-1.7.0.dev20250925212546.dist-info/licenses/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1240
+ cirq_core-1.7.0.dev20250925212546.dist-info/METADATA,sha256=wJa0QLPdzsQ-GSrDuPdR6SLqW8ZkTo9-8KyU2io70lY,4758
1241
+ cirq_core-1.7.0.dev20250925212546.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
1242
+ cirq_core-1.7.0.dev20250925212546.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1243
+ cirq_core-1.7.0.dev20250925212546.dist-info/RECORD,,