cirq-core 1.6.0.dev20250521215048__py3-none-any.whl → 1.6.0.dev20250522221502__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/circuits/circuit.py +3 -3
- cirq/linalg/decompositions.py +1 -1
- cirq/ops/arithmetic_operation.py +5 -5
- cirq/ops/op_tree.py +1 -1
- cirq/ops/raw_types.py +1 -1
- {cirq_core-1.6.0.dev20250521215048.dist-info → cirq_core-1.6.0.dev20250522221502.dist-info}/METADATA +1 -1
- {cirq_core-1.6.0.dev20250521215048.dist-info → cirq_core-1.6.0.dev20250522221502.dist-info}/RECORD +12 -12
- {cirq_core-1.6.0.dev20250521215048.dist-info → cirq_core-1.6.0.dev20250522221502.dist-info}/WHEEL +0 -0
- {cirq_core-1.6.0.dev20250521215048.dist-info → cirq_core-1.6.0.dev20250522221502.dist-info}/licenses/LICENSE +0 -0
- {cirq_core-1.6.0.dev20250521215048.dist-info → cirq_core-1.6.0.dev20250522221502.dist-info}/top_level.txt +0 -0
cirq/_version.py
CHANGED
cirq/_version_test.py
CHANGED
cirq/circuits/circuit.py
CHANGED
|
@@ -918,7 +918,7 @@ class AbstractCircuit(abc.ABC):
|
|
|
918
918
|
def all_qubits(self) -> frozenset[cirq.Qid]:
|
|
919
919
|
"""Returns the qubits acted upon by Operations in this circuit.
|
|
920
920
|
|
|
921
|
-
Returns:
|
|
921
|
+
Returns: frozenset of `cirq.Qid` objects acted on by all operations
|
|
922
922
|
in this circuit.
|
|
923
923
|
"""
|
|
924
924
|
return frozenset(q for m in self.moments for q in m.qubits)
|
|
@@ -966,7 +966,7 @@ class AbstractCircuit(abc.ABC):
|
|
|
966
966
|
def _measurement_key_objs_(self) -> frozenset[cirq.MeasurementKey]:
|
|
967
967
|
"""Returns the set of all measurement keys in this circuit.
|
|
968
968
|
|
|
969
|
-
Returns:
|
|
969
|
+
Returns: frozenset of `cirq.MeasurementKey` objects that are
|
|
970
970
|
in this circuit.
|
|
971
971
|
"""
|
|
972
972
|
return self.all_measurement_key_objs()
|
|
@@ -974,7 +974,7 @@ class AbstractCircuit(abc.ABC):
|
|
|
974
974
|
def all_measurement_key_names(self) -> frozenset[str]:
|
|
975
975
|
"""Returns the set of all measurement key names in this circuit.
|
|
976
976
|
|
|
977
|
-
Returns:
|
|
977
|
+
Returns: frozenset of strings that are the measurement key
|
|
978
978
|
names in this circuit.
|
|
979
979
|
"""
|
|
980
980
|
return frozenset(
|
cirq/linalg/decompositions.py
CHANGED
cirq/ops/arithmetic_operation.py
CHANGED
|
@@ -44,21 +44,21 @@ class ArithmeticGate(Gate, metaclass=abc.ABCMeta):
|
|
|
44
44
|
>>> class Add(cirq.ArithmeticGate):
|
|
45
45
|
... def __init__(
|
|
46
46
|
... self,
|
|
47
|
-
... target_register:
|
|
48
|
-
... input_register:
|
|
47
|
+
... target_register: int | Sequence[int],
|
|
48
|
+
... input_register: int | Sequence[int],
|
|
49
49
|
... ):
|
|
50
50
|
... self.target_register = target_register
|
|
51
51
|
... self.input_register = input_register
|
|
52
52
|
...
|
|
53
|
-
... def registers(self) ->
|
|
53
|
+
... def registers(self) -> Sequence[int | Sequence[int]]:
|
|
54
54
|
... return self.target_register, self.input_register
|
|
55
55
|
...
|
|
56
56
|
... def with_registers(
|
|
57
|
-
... self, *new_registers:
|
|
57
|
+
... self, *new_registers: int | Sequence[int]
|
|
58
58
|
... ) -> 'Add':
|
|
59
59
|
... return Add(*new_registers)
|
|
60
60
|
...
|
|
61
|
-
... def apply(self, *register_values: int) ->
|
|
61
|
+
... def apply(self, *register_values: int) -> int | Iterable[int]:
|
|
62
62
|
... return sum(register_values)
|
|
63
63
|
>>> cirq.unitary(
|
|
64
64
|
... Add(target_register=[2, 2],
|
cirq/ops/op_tree.py
CHANGED
|
@@ -40,7 +40,7 @@ document(
|
|
|
40
40
|
- A list of operations (a `list[cirq.Operation]`).
|
|
41
41
|
- A list of lists of operations (a `list[list[cirq.Operation]]`).
|
|
42
42
|
- A list mixing operations and generators of operations
|
|
43
|
-
(a `list[
|
|
43
|
+
(a `list[cirq.Operation | Iterator[cirq.Operation]]`).
|
|
44
44
|
- Generally anything that can be iterated, and its items iterated, and
|
|
45
45
|
so forth recursively until a bottom layer of operations is found.
|
|
46
46
|
""",
|
cirq/ops/raw_types.py
CHANGED
|
@@ -449,7 +449,7 @@ class Gate(metaclass=value.ABCMetaImplementAnyOneOf):
|
|
|
449
449
|
|
|
450
450
|
@value.alternative(requires='_num_qubits_', implementation=_default_shape_from_num_qubits)
|
|
451
451
|
def _qid_shape_(self) -> tuple[int, ...]:
|
|
452
|
-
"""Returns a
|
|
452
|
+
"""Returns a tuple containing the number of quantum levels of each qid
|
|
453
453
|
the gate acts on. E.g. (2, 2, 2) for the three-qubit CCZ gate and
|
|
454
454
|
(3, 3) for a 2-qutrit ternary gate.
|
|
455
455
|
"""
|
{cirq_core-1.6.0.dev20250521215048.dist-info → cirq_core-1.6.0.dev20250522221502.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cirq-core
|
|
3
|
-
Version: 1.6.0.
|
|
3
|
+
Version: 1.6.0.dev20250522221502
|
|
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.6.0.dev20250521215048.dist-info → cirq_core-1.6.0.dev20250522221502.dist-info}/RECORD
RENAMED
|
@@ -4,8 +4,8 @@ cirq/_compat_test.py,sha256=ZSmenkbqEfRJpGsvutmV8vgIlfZCWj8GAVgi3t5YRso,34635
|
|
|
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=quYcck8HTHOZSVgajBGWaOpAOx5x_ig31ySSlelpQuo,1206
|
|
8
|
+
cirq/_version_test.py,sha256=Z0FoiEy2GzNUDBciLQdlIipjz0Vq46prN5a1k93W_uk,155
|
|
9
9
|
cirq/conftest.py,sha256=X7yLFL8GLhg2CjPw0hp5e_dGASfvHx1-QT03aUbhKJw,1168
|
|
10
10
|
cirq/json_resolver_cache.py,sha256=S-zUVI4D_XnAxyR6z7WHDImCVmB_awJp6EStD1-CNPU,13621
|
|
11
11
|
cirq/py.typed,sha256=VFSlmh_lNwnaXzwY-ZuW-C2Ws5PkuDoVgBdNCs0jXJE,63
|
|
@@ -16,7 +16,7 @@ cirq/circuits/_box_drawing_character_data.py,sha256=hExbMJHm9LGORhlhNiUvPiHquv4p
|
|
|
16
16
|
cirq/circuits/_box_drawing_character_data_test.py,sha256=GyiNQDtiu_drzEe_y8DOXCFRYDKr2k8KetXN5RVDp18,1668
|
|
17
17
|
cirq/circuits/_bucket_priority_queue.py,sha256=U564r2mou4aZsOlpVYiZCgirqS6mVznG3ESyawBt4gE,6749
|
|
18
18
|
cirq/circuits/_bucket_priority_queue_test.py,sha256=7XXeGMhz-dyfo9xeqbBKSxJ0hHVuakGMR45Zp7she88,5324
|
|
19
|
-
cirq/circuits/circuit.py,sha256=
|
|
19
|
+
cirq/circuits/circuit.py,sha256=om-XK7MQzTXssrKf8KOA4OPCZwOUQ4FWfVmFlV-6ctk,118908
|
|
20
20
|
cirq/circuits/circuit_operation.py,sha256=5LN0vXQT8hoUP8Vhkozm3d6hPqw0BUX5WBhKMr5qOng,36252
|
|
21
21
|
cirq/circuits/circuit_operation_test.py,sha256=hSwtOjX_GVnYtFXBVPVu_LjY12CPLWx8r8Y6Vz42v-I,48868
|
|
22
22
|
cirq/circuits/circuit_test.py,sha256=8lOt-U48Taxa2DzGG0XP0uXgzA0mAJAKaVpkXDzmJ98,162773
|
|
@@ -254,7 +254,7 @@ cirq/ion/__init__.py,sha256=F6tf4JZOGpDdxX0FxT42qgq8rF96ZTFHMJ0OV09Yj1c,787
|
|
|
254
254
|
cirq/linalg/__init__.py,sha256=0dSlIBy-TVzf7b_-rLLlrS8ZFkgCfYg0pJjWs72xYOk,4045
|
|
255
255
|
cirq/linalg/combinators.py,sha256=7V9oNSojc466NvOXyt4FMu50yDQ77iM5N4oZ37fV9tc,5347
|
|
256
256
|
cirq/linalg/combinators_test.py,sha256=GohGZwFF87XW37sZtldaG5TlDp5-DA0Nc7k2gTZIlNo,4922
|
|
257
|
-
cirq/linalg/decompositions.py,sha256=
|
|
257
|
+
cirq/linalg/decompositions.py,sha256=q0h8waz3Xn_KjY83glyJVxk4ZfXbh1Dz-uXriWv_VjA,38573
|
|
258
258
|
cirq/linalg/decompositions_test.py,sha256=b61HGNDPhykEazp48lHk8Kgw08cKCMW4ZHtVDN8yDFA,25472
|
|
259
259
|
cirq/linalg/diagonalize.py,sha256=3PpGmlI7CCkQS3JKr0AkgdHOZedXLniZkxmUtpCNQPk,10074
|
|
260
260
|
cirq/linalg/diagonalize_test.py,sha256=c6-ksL2PDZ5hqr2ib2iS0uEnJuCHSv16cuiJK4PLjok,9161
|
|
@@ -271,7 +271,7 @@ cirq/neutral_atoms/convert_to_neutral_atom_gates.py,sha256=2sIJd5CzWjehMi_rfFW8Q
|
|
|
271
271
|
cirq/neutral_atoms/convert_to_neutral_atom_gates_test.py,sha256=fhCJubuFa81aRwd__sgBLc7D2z5VnwfzH-0lZvEv6jo,1905
|
|
272
272
|
cirq/neutral_atoms/neutral_atom_devices.py,sha256=2q7sPeQIb9UbseTPyRSaHeo4dZKF_EcNUDH5u6eIb98,1394
|
|
273
273
|
cirq/ops/__init__.py,sha256=HNtQJBFeiJJ-MbbNqe3f6KfcmZ_4YP5oTcCcZnGkYbY,8318
|
|
274
|
-
cirq/ops/arithmetic_operation.py,sha256=
|
|
274
|
+
cirq/ops/arithmetic_operation.py,sha256=FO2ne5ZHIcUCJySgOC60UApfDtfVBaZqlrhM46f7-34,10051
|
|
275
275
|
cirq/ops/arithmetic_operation_test.py,sha256=F5fPQF_sRWi8qyP_SgDzJ8kfX0jUVMj59_VOPpbXH_0,4938
|
|
276
276
|
cirq/ops/boolean_hamiltonian.py,sha256=x25fraM9NNs-XzDKDl2AZ1AMpkVovfe-dNm_0wOolyI,14927
|
|
277
277
|
cirq/ops/boolean_hamiltonian_test.py,sha256=g99wUCiC_fap2UCkO7StpwKzR3GomESwbLXLL785VOY,8577
|
|
@@ -327,7 +327,7 @@ cirq/ops/mixed_unitary_channel.py,sha256=guje2Jbj2uWG8NSlwazK1r-XjxlTHA6s7ti52tW
|
|
|
327
327
|
cirq/ops/mixed_unitary_channel_test.py,sha256=QXnkw6-kP9HowdoV5aUtnEBAGG0bjqgzxKYe0dbV5XY,5277
|
|
328
328
|
cirq/ops/named_qubit.py,sha256=e2GdyDfeyKNgmXiiQh8yW59t4qDIvAEzXjb_NfyhgHs,9997
|
|
329
329
|
cirq/ops/named_qubit_test.py,sha256=MHjKXSxHCVV3rUYtsQ0_FZVV6Sh--r3zdGc0rmmdaBs,5257
|
|
330
|
-
cirq/ops/op_tree.py,sha256=
|
|
330
|
+
cirq/ops/op_tree.py,sha256=w2jnYMi8UtV13CROphi4Gesydc5YzmuvXJZsIAGm65k,5277
|
|
331
331
|
cirq/ops/op_tree_test.py,sha256=1WAIeVkmmEU3wRaEnM9DdGBU0_CVbYMwgunIO2LrBc4,5737
|
|
332
332
|
cirq/ops/parallel_gate.py,sha256=B6uwL0lPJLiv_TL62U4HGyv7FZn_CvljSUK7jKTuu-M,6257
|
|
333
333
|
cirq/ops/parallel_gate_test.py,sha256=ruFdVnB8PS9LOPQLPZACdf0nh3l-sApQe9bk10EDBJI,6463
|
|
@@ -366,7 +366,7 @@ cirq/ops/qubit_order_or_list.py,sha256=5kChRv1gUnBKB-kF6okXoXcCa5CXbJ6HoB6ETpfl3
|
|
|
366
366
|
cirq/ops/qubit_order_test.py,sha256=e8gBGSCHyKu9nJHPwEPVO060uDpJCpO0ok5n6toR0PU,4274
|
|
367
367
|
cirq/ops/random_gate_channel.py,sha256=i4eg9GA4CF6ZWQRrICa5lfYqvdZzN8oLEWwXHcxRStM,5115
|
|
368
368
|
cirq/ops/random_gate_channel_test.py,sha256=p-xtDOMIYBJ1wVHLJmrALi-ZU978l3AVuX0kgoan1Ac,8523
|
|
369
|
-
cirq/ops/raw_types.py,sha256=
|
|
369
|
+
cirq/ops/raw_types.py,sha256=IAMUkEn0lFrvlr0Ay_B-C0aZN2_azuUGk6HLzkLYl5E,43579
|
|
370
370
|
cirq/ops/raw_types_test.py,sha256=YyyR1UDyW4Vail8Zsvz-nCLlqRsnjCnuzQEBn2oEZyM,34751
|
|
371
371
|
cirq/ops/state_preparation_channel.py,sha256=3qbqrrYaVN2eHL1qiBHcItj1Pzjxhtq10tSEkRz9GNM,4781
|
|
372
372
|
cirq/ops/state_preparation_channel_test.py,sha256=Seis5RvdCCSgMlED9JYKZIfAElJdtoUHSPgoYTiMEnU,6023
|
|
@@ -1220,8 +1220,8 @@ cirq/work/sampler.py,sha256=rxbMWvrhu3gfNSBjZKozw28lLKVvBAS_1EGyPdYe8Xg,19041
|
|
|
1220
1220
|
cirq/work/sampler_test.py,sha256=SsMrRvLDYELyOAWLKISjkdEfrBwLYWRsT6D8WrsLM3Q,13533
|
|
1221
1221
|
cirq/work/zeros_sampler.py,sha256=Fs2JWwq0n9zv7_G5Rm-9vPeHUag7uctcMOHg0JTkZpc,2371
|
|
1222
1222
|
cirq/work/zeros_sampler_test.py,sha256=lQLgQDGBLtfImryys2HzQ2jOSGxHgc7-koVBUhv8qYk,3345
|
|
1223
|
-
cirq_core-1.6.0.
|
|
1224
|
-
cirq_core-1.6.0.
|
|
1225
|
-
cirq_core-1.6.0.
|
|
1226
|
-
cirq_core-1.6.0.
|
|
1227
|
-
cirq_core-1.6.0.
|
|
1223
|
+
cirq_core-1.6.0.dev20250522221502.dist-info/licenses/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
|
|
1224
|
+
cirq_core-1.6.0.dev20250522221502.dist-info/METADATA,sha256=h7yCfUqkVoUhyaBgQnQDsgxE5kXN36vne4zDeNP45TI,4857
|
|
1225
|
+
cirq_core-1.6.0.dev20250522221502.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
|
1226
|
+
cirq_core-1.6.0.dev20250522221502.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
|
|
1227
|
+
cirq_core-1.6.0.dev20250522221502.dist-info/RECORD,,
|
{cirq_core-1.6.0.dev20250521215048.dist-info → cirq_core-1.6.0.dev20250522221502.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|