cirq-core 1.7.0.dev20250923234614__py3-none-any.whl → 1.7.0.dev20250924002546__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/linalg/transformations.py +1 -1
- cirq/ops/clifford_gate.py +1 -1
- cirq/sim/clifford/stabilizer_state_ch_form.py +4 -4
- cirq/sim/state_vector_simulation_state.py +2 -2
- cirq/testing/lin_alg_utils.py +1 -1
- cirq/transformers/heuristic_decompositions/two_qubit_gate_tabulation.py +1 -1
- {cirq_core-1.7.0.dev20250923234614.dist-info → cirq_core-1.7.0.dev20250924002546.dist-info}/METADATA +1 -1
- {cirq_core-1.7.0.dev20250923234614.dist-info → cirq_core-1.7.0.dev20250924002546.dist-info}/RECORD +13 -13
- {cirq_core-1.7.0.dev20250923234614.dist-info → cirq_core-1.7.0.dev20250924002546.dist-info}/WHEEL +0 -0
- {cirq_core-1.7.0.dev20250923234614.dist-info → cirq_core-1.7.0.dev20250924002546.dist-info}/licenses/LICENSE +0 -0
- {cirq_core-1.7.0.dev20250923234614.dist-info → cirq_core-1.7.0.dev20250924002546.dist-info}/top_level.txt +0 -0
cirq/_version.py
CHANGED
cirq/_version_test.py
CHANGED
cirq/linalg/transformations.py
CHANGED
|
@@ -82,7 +82,7 @@ def match_global_phase(a: np.ndarray, b: np.ndarray) -> tuple[np.ndarray, np.nda
|
|
|
82
82
|
return np.copy(a), np.copy(b)
|
|
83
83
|
|
|
84
84
|
# Find the entry with the largest magnitude in one of the matrices.
|
|
85
|
-
k = max(np.ndindex(*a.shape), key=lambda t: abs(b[t]))
|
|
85
|
+
k = max(np.ndindex(*a.shape), key=lambda t: abs(b[t].item()))
|
|
86
86
|
|
|
87
87
|
def dephase(v):
|
|
88
88
|
r = np.real(v)
|
cirq/ops/clifford_gate.py
CHANGED
|
@@ -639,7 +639,7 @@ class SingleQubitCliffordGate(CliffordGate):
|
|
|
639
639
|
return None
|
|
640
640
|
# Find the entry with the largest magnitude in the input unitary, to find
|
|
641
641
|
# the global phase difference between the input unitary and the gate unitary.
|
|
642
|
-
k = max(np.ndindex(*u.shape), key=lambda t: abs(u[t]))
|
|
642
|
+
k = max(np.ndindex(*u.shape), key=lambda t: abs(u[t].item()))
|
|
643
643
|
return gate, u[k] / protocols.unitary(gate)[k]
|
|
644
644
|
|
|
645
645
|
def pauli_tuple(self, pauli: Pauli) -> tuple[Pauli, bool]:
|
|
@@ -288,10 +288,10 @@ class StabilizerStateChForm(qis.StabilizerState):
|
|
|
288
288
|
copy = StabilizerStateChForm(self.n)
|
|
289
289
|
copy.G = self.G[axes][:, axes]
|
|
290
290
|
copy.F = self.F[axes][:, axes]
|
|
291
|
-
copy.M = self.M[axes][:, axes]
|
|
292
|
-
copy.gamma = self.gamma[axes]
|
|
293
|
-
copy.v = self.v[axes]
|
|
294
|
-
copy.s = self.s[axes]
|
|
291
|
+
copy.M = self.M[axes][:, axes]
|
|
292
|
+
copy.gamma = self.gamma[axes]
|
|
293
|
+
copy.v = self.v[axes]
|
|
294
|
+
copy.s = self.s[axes]
|
|
295
295
|
copy.omega = self.omega
|
|
296
296
|
return copy
|
|
297
297
|
|
|
@@ -55,7 +55,7 @@ class _BufferedStateVector(qis.QuantumStateRepresentation):
|
|
|
55
55
|
*,
|
|
56
56
|
initial_state: np.ndarray | cirq.STATE_VECTOR_LIKE = 0,
|
|
57
57
|
qid_shape: tuple[int, ...] | None = None,
|
|
58
|
-
dtype: type[np.complexfloating] | None = None,
|
|
58
|
+
dtype: type[np.complexfloating] | np.dtype[np.complexfloating] | None = None,
|
|
59
59
|
buffer: np.ndarray | None = None,
|
|
60
60
|
):
|
|
61
61
|
"""Initializes the object with the inputs.
|
|
@@ -324,7 +324,7 @@ class StateVectorSimulationState(SimulationState[_BufferedStateVector]):
|
|
|
324
324
|
prng: np.random.RandomState | None = None,
|
|
325
325
|
qubits: Sequence[cirq.Qid] | None = None,
|
|
326
326
|
initial_state: np.ndarray | cirq.STATE_VECTOR_LIKE = 0,
|
|
327
|
-
dtype: type[np.complexfloating] = np.complex64,
|
|
327
|
+
dtype: type[np.complexfloating] | np.dtype[np.complexfloating] = np.complex64,
|
|
328
328
|
classical_data: cirq.ClassicalDataStore | None = None,
|
|
329
329
|
):
|
|
330
330
|
"""Inits StateVectorSimulationState.
|
cirq/testing/lin_alg_utils.py
CHANGED
|
@@ -28,7 +28,7 @@ if TYPE_CHECKING:
|
|
|
28
28
|
|
|
29
29
|
def random_superposition(
|
|
30
30
|
dim: int, *, random_state: cirq.RANDOM_STATE_OR_SEED_LIKE = None
|
|
31
|
-
) -> np.ndarray:
|
|
31
|
+
) -> np.ndarray[tuple[int], np.dtype[np.complex128]]:
|
|
32
32
|
"""Returns a random unit-length vector from the uniform distribution.
|
|
33
33
|
|
|
34
34
|
Args:
|
|
@@ -109,7 +109,7 @@ class TwoQubitGateTabulation:
|
|
|
109
109
|
success = infidelities[nearest_ind] < self.max_expected_infidelity
|
|
110
110
|
|
|
111
111
|
# shape (n,2,2,2)
|
|
112
|
-
inner_gates = np.array(self.single_qubit_gates[nearest_ind])
|
|
112
|
+
inner_gates: np.ndarray = np.array(self.single_qubit_gates[nearest_ind])
|
|
113
113
|
|
|
114
114
|
if inner_gates.size == 0: # Only need base gate
|
|
115
115
|
kR, kL, actual = _outer_locals_for_unitary(unitary, self.base_gate)
|
{cirq_core-1.7.0.dev20250923234614.dist-info → cirq_core-1.7.0.dev20250924002546.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.dev20250924002546
|
|
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.dev20250923234614.dist-info → cirq_core-1.7.0.dev20250924002546.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=kuf9nC8D_Jp_6DszUAdtj-jrxFRRHyB-76054_umP2E,1206
|
|
8
|
+
cirq/_version_test.py,sha256=tcyJTkNHcj5Z4sEojWIgBveJo5BWDqq0spVbBbAcAyc,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
|
|
@@ -276,7 +276,7 @@ cirq/linalg/predicates.py,sha256=V-zUR07_rEBjXFPgif6EYrEHM6uDUzPOIcZTo0HguYE,121
|
|
|
276
276
|
cirq/linalg/predicates_test.py,sha256=D_0TSF787MluJBJ_WctBPz8SsGBJesYgndCUISniw3Q,21911
|
|
277
277
|
cirq/linalg/tolerance.py,sha256=4TZ_BjldOhPuP2CwYvMdzHCc9Lzfwi9ZkndSKObyyBg,1893
|
|
278
278
|
cirq/linalg/tolerance_test.py,sha256=uAqJk--Rhxr9XXLh3dAvK_BDcbJUccEAFIFdLHiMEHU,2423
|
|
279
|
-
cirq/linalg/transformations.py,sha256=
|
|
279
|
+
cirq/linalg/transformations.py,sha256=VhIQTC1yqmPZK6SJvVH8DkKinvkqBtecogRuk7tKAJk,32595
|
|
280
280
|
cirq/linalg/transformations_test.py,sha256=2HdnYDzNDq7djdPByQmRphKkpy6k3rK9nC8uZfDlSZs,26462
|
|
281
281
|
cirq/neutral_atoms/__init__.py,sha256=VoQBkmZ5m4TPxjxShRixjqJbnc-IAnAWkGOPu8MBS5o,813
|
|
282
282
|
cirq/neutral_atoms/convert_to_neutral_atom_gates.py,sha256=2sIJd5CzWjehMi_rfFW8QXSnafwdWqzrnrzKbWlkXf0,1156
|
|
@@ -289,7 +289,7 @@ cirq/ops/boolean_hamiltonian.py,sha256=x25fraM9NNs-XzDKDl2AZ1AMpkVovfe-dNm_0wOol
|
|
|
289
289
|
cirq/ops/boolean_hamiltonian_test.py,sha256=_4mFFrbO9C21oZYutr_pl01_bqDDxvgY_h4DWKGkse0,8630
|
|
290
290
|
cirq/ops/classically_controlled_operation.py,sha256=27G87DA_PbQOJQyaZ83N1-w5LF4aoJQinwnLCeL6iaA,10319
|
|
291
291
|
cirq/ops/classically_controlled_operation_test.py,sha256=-LDfOotkjxdXJXACVoteWkgmyaTuCcmV4Vy3DHZaWvY,50861
|
|
292
|
-
cirq/ops/clifford_gate.py,sha256=
|
|
292
|
+
cirq/ops/clifford_gate.py,sha256=qSgMKRbUQNO8SEPmDcwvIrGpad-S_sAuT3PqnbkFzfg,40085
|
|
293
293
|
cirq/ops/clifford_gate_test.py,sha256=nuIGDqc7AWf5KJY3JJSe4mt8egLlcyuf5oorX_aBdsU,41268
|
|
294
294
|
cirq/ops/common_channels.py,sha256=ZZa2JCyPtrKfGhcAGCUUzA4qym8S9isKs-xs-TEkhKs,37022
|
|
295
295
|
cirq/ops/common_channels_test.py,sha256=dPveO6j3qxmdRXaQhEIvj5vKRE0v3pQ9ICmjnSSbP0Q,30761
|
|
@@ -956,7 +956,7 @@ cirq/sim/simulator_test.py,sha256=jAdAH81AcxBItNv5NVy_dinaFmw6nVzSAR3OQp6nWvc,19
|
|
|
956
956
|
cirq/sim/sparse_simulator.py,sha256=wsnWvlDW6kmjdfLSToe8CHGbcFnks-niKr2-N9qgDsQ,12936
|
|
957
957
|
cirq/sim/sparse_simulator_test.py,sha256=ZZ9dRplyB0NY2o9GDq1CknMvbDt6MUjjOHI_V55iL_g,54534
|
|
958
958
|
cirq/sim/state_vector.py,sha256=vneN-w6UoROjCV_ugVvegZlkF4hnHB0MR2KJFZTcCmM,13333
|
|
959
|
-
cirq/sim/state_vector_simulation_state.py,sha256=
|
|
959
|
+
cirq/sim/state_vector_simulation_state.py,sha256=xjbJWZh1x5LnxTbhDRfeUi7hDse9Kzs5N4KZ6eKTOQI,17616
|
|
960
960
|
cirq/sim/state_vector_simulation_state_test.py,sha256=eStINvpYZRajxJO85E-2ifQzSopQABYDG4SlSSvP4-I,9987
|
|
961
961
|
cirq/sim/state_vector_simulator.py,sha256=vQlFlnnczQn5dmSBACzouZnCgxJhIM3O38KfGiv-Caw,8206
|
|
962
962
|
cirq/sim/state_vector_simulator_test.py,sha256=DU0_pTgDubV-paZZXgRrYnHia9f0cd9aes3xelZiTXE,7972
|
|
@@ -972,7 +972,7 @@ cirq/sim/clifford/stabilizer_sampler.py,sha256=JE30zh0SOlE1MswbFtZE_Rfc831qkB3pg
|
|
|
972
972
|
cirq/sim/clifford/stabilizer_sampler_test.py,sha256=kR-_IYcpAmO3ay-cVpfBXSN-G8JUssYdR8QGNcykBX4,1390
|
|
973
973
|
cirq/sim/clifford/stabilizer_simulation_state.py,sha256=7ZQyFGbzkWC6kh4_jmZvtW5mLPapEoe61lye43tzfso,6704
|
|
974
974
|
cirq/sim/clifford/stabilizer_simulation_state_test.py,sha256=I9pMnSWTInRW2BVj8n-qUQ9qxyocHj0Z5zNhqRKfqWI,4385
|
|
975
|
-
cirq/sim/clifford/stabilizer_state_ch_form.py,sha256=
|
|
975
|
+
cirq/sim/clifford/stabilizer_state_ch_form.py,sha256=c5nZxVp0EQ9Mr4fiFuupvrjWXOqj3RiPA7DoGcrqd7c,14115
|
|
976
976
|
cirq/sim/clifford/stabilizer_state_ch_form_test.py,sha256=UuvgpwexGB5LzMfaa3Gws2vHhC9pyHrqW_gDtx_pAYM,3201
|
|
977
977
|
cirq/study/__init__.py,sha256=OyJhZjBiEkNbtSuSZaOwHGwwnOIGgnn-W8ec0xHhHBI,1647
|
|
978
978
|
cirq/study/flatten_expressions.py,sha256=q9U-AukDri63yC4pF_dEKCX81RfquK4z31ktLkL0gz0,15528
|
|
@@ -1023,7 +1023,7 @@ cirq/testing/gate_features.py,sha256=7hFdlkFCDDiQ6gJaEQ6ICAQgMOu-bgGvFUz-7rVCRx0
|
|
|
1023
1023
|
cirq/testing/gate_features_test.py,sha256=4cMncHo6SvyMvSFY1m9eQOwwKMUuADlWaavgbOMC8ZM,2390
|
|
1024
1024
|
cirq/testing/json.py,sha256=Lzpfv_vn8NqYUhmB373Ay9NY9qkfd_piJMsLI4uSRSM,6683
|
|
1025
1025
|
cirq/testing/json_test.py,sha256=wKpzoEHPariqLdZaIxgb87Tx1gAIbIXoXWUyR8TykGw,1152
|
|
1026
|
-
cirq/testing/lin_alg_utils.py,sha256=
|
|
1026
|
+
cirq/testing/lin_alg_utils.py,sha256=2sQHttNkmY8hIs8uXa09JOaLGggLaYX2u3zhjFw1R2k,6323
|
|
1027
1027
|
cirq/testing/lin_alg_utils_test.py,sha256=HiCNYby5ZXVcXJLb8CNatExtuAacrphgUERsqKswF6U,4245
|
|
1028
1028
|
cirq/testing/logs.py,sha256=s5w_qv-DLyZ_4S76u3ZH5zrV1jVSOW8ktmouR7aOXBI,4034
|
|
1029
1029
|
cirq/testing/logs_test.py,sha256=spuIb0EOJxW-UNEuBds20ouIE1ROdqL9TbyTlqn1p6o,5811
|
|
@@ -1156,7 +1156,7 @@ cirq/transformers/gauge_compiling/sqrt_iswap_gauge_test.py,sha256=2KJ14je7QNISHQ
|
|
|
1156
1156
|
cirq/transformers/heuristic_decompositions/__init__.py,sha256=_LEidXfFkmJicQapJVR1etyH1fLJ3ZwtBgq2M2_ECZI,926
|
|
1157
1157
|
cirq/transformers/heuristic_decompositions/gate_tabulation_math_utils.py,sha256=awhnFQiCvAIX73-_u44U7I8_m-xk9TG5KUjbDH_B8K4,10797
|
|
1158
1158
|
cirq/transformers/heuristic_decompositions/gate_tabulation_math_utils_test.py,sha256=WJ2P6QfwY2l6RYUfMeWbn096MHDiTYXQAV6-0ThR0AQ,1571
|
|
1159
|
-
cirq/transformers/heuristic_decompositions/two_qubit_gate_tabulation.py,sha256=
|
|
1159
|
+
cirq/transformers/heuristic_decompositions/two_qubit_gate_tabulation.py,sha256=xo_XZnbKTgNfoEPtBmwG6CFFyEzUYGPGVJN-N6fIH1o,20101
|
|
1160
1160
|
cirq/transformers/heuristic_decompositions/two_qubit_gate_tabulation_test.py,sha256=bvgDe-3KhwTLSokL7X93IZgneGNLrgzSgNulMhsoARs,3922
|
|
1161
1161
|
cirq/transformers/routing/__init__.py,sha256=pgovVolGz4pePMfa5siwZ7zWJcU4Jqb3NxIqpRsGSUw,1178
|
|
1162
1162
|
cirq/transformers/routing/initial_mapper.py,sha256=N3_n8zhPP0TFQkPr46j-1zZw1R9RcMCUZF0-NfZWOfo,3050
|
|
@@ -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.dev20250924002546.dist-info/licenses/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
|
|
1240
|
+
cirq_core-1.7.0.dev20250924002546.dist-info/METADATA,sha256=0EkDWzgoMKBCesqU7jJUejGssbaGnDKmDTTQc-YykcM,4758
|
|
1241
|
+
cirq_core-1.7.0.dev20250924002546.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
1242
|
+
cirq_core-1.7.0.dev20250924002546.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
|
|
1243
|
+
cirq_core-1.7.0.dev20250924002546.dist-info/RECORD,,
|
{cirq_core-1.7.0.dev20250923234614.dist-info → cirq_core-1.7.0.dev20250924002546.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|