cirq-core 1.7.0.dev20250925163735__py3-none-any.whl → 1.7.0.dev20250925223930__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/devices/grid_qubit.py +5 -5
- cirq/linalg/decompositions.py +1 -1
- cirq/ops/named_qubit.py +2 -2
- cirq/transformers/gauge_compiling/idle_moments_gauge.py +3 -1
- cirq/vis/density_matrix.py +1 -1
- {cirq_core-1.7.0.dev20250925163735.dist-info → cirq_core-1.7.0.dev20250925223930.dist-info}/METADATA +1 -1
- {cirq_core-1.7.0.dev20250925163735.dist-info → cirq_core-1.7.0.dev20250925223930.dist-info}/RECORD +12 -12
- {cirq_core-1.7.0.dev20250925163735.dist-info → cirq_core-1.7.0.dev20250925223930.dist-info}/WHEEL +0 -0
- {cirq_core-1.7.0.dev20250925163735.dist-info → cirq_core-1.7.0.dev20250925223930.dist-info}/licenses/LICENSE +0 -0
- {cirq_core-1.7.0.dev20250925163735.dist-info → cirq_core-1.7.0.dev20250925223930.dist-info}/top_level.txt +0 -0
cirq/_version.py
CHANGED
cirq/_version_test.py
CHANGED
cirq/devices/grid_qubit.py
CHANGED
|
@@ -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 ('
|
|
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 ('
|
|
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
|
cirq/linalg/decompositions.py
CHANGED
|
@@ -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
|
|
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
|
|
169
|
+
A list of ``NamedQid``s.
|
|
170
170
|
"""
|
|
171
171
|
return [NamedQid(f"{prefix}{i}", dimension=dimension) for i in range(*args)]
|
|
172
172
|
|
|
@@ -187,7 +187,9 @@ class IdleMomentsGauge:
|
|
|
187
187
|
for q in op.qubits:
|
|
188
188
|
active_moments[q].append((m_id, is_mergable))
|
|
189
189
|
|
|
190
|
-
single_qubit_moments = [
|
|
190
|
+
single_qubit_moments = [
|
|
191
|
+
{op.qubits[0]: op for op in m if len(op.qubits) == 1} for m in circuit
|
|
192
|
+
]
|
|
191
193
|
non_single_qubit_moments = [[op for op in m if len(op.qubits) != 1] for m in circuit]
|
|
192
194
|
|
|
193
195
|
for q, active in active_moments.items():
|
cirq/vis/density_matrix.py
CHANGED
|
@@ -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
|
{cirq_core-1.7.0.dev20250925163735.dist-info → cirq_core-1.7.0.dev20250925223930.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cirq-core
|
|
3
|
-
Version: 1.7.0.
|
|
3
|
+
Version: 1.7.0.dev20250925223930
|
|
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.7.0.dev20250925163735.dist-info → cirq_core-1.7.0.dev20250925223930.dist-info}/RECORD
RENAMED
|
@@ -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=
|
|
8
|
-
cirq/_version_test.py,sha256=
|
|
7
|
+
cirq/_version.py,sha256=AyP-jMhCZv_doo5pZ3O-KjdOP8Z_Cxx8QHomagnS1Zo,1206
|
|
8
|
+
cirq/_version_test.py,sha256=n9bB5uKZnc7YbY1pmlqMyhfKJ5iaqM6QOAbIDskSx9s,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=
|
|
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=
|
|
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=
|
|
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
|
|
@@ -1143,7 +1143,7 @@ cirq/transformers/gauge_compiling/gauge_compiling.py,sha256=bXqAEVBXHplnxRMwNA0G
|
|
|
1143
1143
|
cirq/transformers/gauge_compiling/gauge_compiling_test.py,sha256=JFG7aCe-PxPGZDPCAx82ILu6PX_laFvCDlaabwvL0Kc,5272
|
|
1144
1144
|
cirq/transformers/gauge_compiling/gauge_compiling_test_utils.py,sha256=NUbcz-tGS58QPohpsmMx0RbB4d79GMSoyVxdL3CPiZc,5060
|
|
1145
1145
|
cirq/transformers/gauge_compiling/gauge_compiling_test_utils_test.py,sha256=qPcs2BWU-1gOEz0NCLixBLO9I1PVIOLShB7wkprcQZY,1896
|
|
1146
|
-
cirq/transformers/gauge_compiling/idle_moments_gauge.py,sha256=
|
|
1146
|
+
cirq/transformers/gauge_compiling/idle_moments_gauge.py,sha256=9NVZMXTgcEQN-AmT_eqfYIsSKVi_dC1UaSQav6B2t0k,8491
|
|
1147
1147
|
cirq/transformers/gauge_compiling/idle_moments_gauge_test.py,sha256=OSb0840o0M8Qpde_Dp3-sRCGrJCO4rBgArDLnnT8D-g,6903
|
|
1148
1148
|
cirq/transformers/gauge_compiling/iswap_gauge.py,sha256=CfW3hgO6AgUB7D6tC8J2XZQw2Ge77LT44BygCzMW4Xc,3536
|
|
1149
1149
|
cirq/transformers/gauge_compiling/iswap_gauge_test.py,sha256=V6g-jyGujMKEzGtOi_OhMxX5oTznGXJi9tCNKI9Qrb8,901
|
|
@@ -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=
|
|
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.
|
|
1240
|
-
cirq_core-1.7.0.
|
|
1241
|
-
cirq_core-1.7.0.
|
|
1242
|
-
cirq_core-1.7.0.
|
|
1243
|
-
cirq_core-1.7.0.
|
|
1239
|
+
cirq_core-1.7.0.dev20250925223930.dist-info/licenses/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
|
|
1240
|
+
cirq_core-1.7.0.dev20250925223930.dist-info/METADATA,sha256=O9e_dgU7CNoZFdvYpels3Z5_mQUuIrivsf_xau9GE2o,4758
|
|
1241
|
+
cirq_core-1.7.0.dev20250925223930.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
1242
|
+
cirq_core-1.7.0.dev20250925223930.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
|
|
1243
|
+
cirq_core-1.7.0.dev20250925223930.dist-info/RECORD,,
|
{cirq_core-1.7.0.dev20250925163735.dist-info → cirq_core-1.7.0.dev20250925223930.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|