cirq-core 1.5.0.dev20250121211209__py3-none-any.whl → 1.5.0.dev20250122072446__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/contrib/acquaintance/gates.py +2 -2
- cirq/ops/phased_iswap_gate.py +1 -1
- cirq/ops/swap_gates.py +2 -2
- {cirq_core-1.5.0.dev20250121211209.dist-info → cirq_core-1.5.0.dev20250122072446.dist-info}/METADATA +1 -1
- {cirq_core-1.5.0.dev20250121211209.dist-info → cirq_core-1.5.0.dev20250122072446.dist-info}/RECORD +10 -10
- {cirq_core-1.5.0.dev20250121211209.dist-info → cirq_core-1.5.0.dev20250122072446.dist-info}/LICENSE +0 -0
- {cirq_core-1.5.0.dev20250121211209.dist-info → cirq_core-1.5.0.dev20250122072446.dist-info}/WHEEL +0 -0
- {cirq_core-1.5.0.dev20250121211209.dist-info → cirq_core-1.5.0.dev20250122072446.dist-info}/top_level.txt +0 -0
cirq/_version.py
CHANGED
cirq/_version_test.py
CHANGED
|
@@ -316,10 +316,10 @@ class SwapNetworkGate(PermutationGate):
|
|
|
316
316
|
parts_qubits = list(left_part + right_part)
|
|
317
317
|
parts[i] = parts_qubits[: len(right_part)]
|
|
318
318
|
parts[i + 1] = parts_qubits[len(right_part) :]
|
|
319
|
-
layers.prior_interstitial.sort(key=op_sort_key)
|
|
319
|
+
layers.prior_interstitial.sort(key=op_sort_key) # type: ignore[arg-type]
|
|
320
320
|
for l in ('prior_interstitial', 'pre', 'intra', 'post'):
|
|
321
321
|
yield getattr(layers, l)
|
|
322
|
-
layers.posterior_interstitial.sort(key=op_sort_key)
|
|
322
|
+
layers.posterior_interstitial.sort(key=op_sort_key) # type: ignore[arg-type]
|
|
323
323
|
yield layers.posterior_interstitial
|
|
324
324
|
|
|
325
325
|
assert list(
|
cirq/ops/phased_iswap_gate.py
CHANGED
|
@@ -253,4 +253,4 @@ def givens(angle_rads: value.TParamVal) -> PhasedISwapPowGate:
|
|
|
253
253
|
A phased iswap gate for the given rotation.
|
|
254
254
|
"""
|
|
255
255
|
pi = sympy.pi if protocols.is_parameterized(angle_rads) else np.pi
|
|
256
|
-
return PhasedISwapPowGate() ** (2 * angle_rads / pi)
|
|
256
|
+
return cast(PhasedISwapPowGate, PhasedISwapPowGate() ** (2 * angle_rads / pi))
|
cirq/ops/swap_gates.py
CHANGED
|
@@ -25,7 +25,7 @@ raised to a power (i.e. SQRT_ISWAP_INV=cirq.ISWAP**-0.5). See the definition in
|
|
|
25
25
|
EigenGate.
|
|
26
26
|
"""
|
|
27
27
|
|
|
28
|
-
from typing import Optional, Tuple, TYPE_CHECKING, List
|
|
28
|
+
from typing import cast, Optional, Tuple, TYPE_CHECKING, List
|
|
29
29
|
|
|
30
30
|
import numpy as np
|
|
31
31
|
import sympy
|
|
@@ -294,7 +294,7 @@ class ISwapPowGate(gate_features.InterchangeableQubitsGate, eigen_gate.EigenGate
|
|
|
294
294
|
def riswap(rads: value.TParamVal) -> ISwapPowGate:
|
|
295
295
|
"""Returns gate with matrix exp(+i angle_rads (X⊗X + Y⊗Y) / 2)."""
|
|
296
296
|
pi = sympy.pi if protocols.is_parameterized(rads) else np.pi
|
|
297
|
-
return ISwapPowGate() ** (2 * rads / pi)
|
|
297
|
+
return cast(ISwapPowGate, ISwapPowGate() ** (2 * rads / pi))
|
|
298
298
|
|
|
299
299
|
|
|
300
300
|
SWAP = SwapPowGate()
|
{cirq_core-1.5.0.dev20250121211209.dist-info → cirq_core-1.5.0.dev20250122072446.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cirq-core
|
|
3
|
-
Version: 1.5.0.
|
|
3
|
+
Version: 1.5.0.dev20250122072446
|
|
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.5.0.dev20250121211209.dist-info → cirq_core-1.5.0.dev20250122072446.dist-info}/RECORD
RENAMED
|
@@ -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=
|
|
8
|
-
cirq/_version_test.py,sha256=
|
|
7
|
+
cirq/_version.py,sha256=470G-P6DA3djKNF_HCkuRFOH7f0FirM6QHAJHkyprS8,1206
|
|
8
|
+
cirq/_version_test.py,sha256=4qRn82WFPwcgLmCjI2RUccL_VFZjv_vZgidg5VGjld8,147
|
|
9
9
|
cirq/conftest.py,sha256=X7yLFL8GLhg2CjPw0hp5e_dGASfvHx1-QT03aUbhKJw,1168
|
|
10
10
|
cirq/json_resolver_cache.py,sha256=p-vEOa-8GQ2cFIAdze-kd6C1un1uRvtujVPljVKaHBg,13557
|
|
11
11
|
cirq/py.typed,sha256=VFSlmh_lNwnaXzwY-ZuW-C2Ws5PkuDoVgBdNCs0jXJE,63
|
|
@@ -42,7 +42,7 @@ cirq/contrib/acquaintance/devices.py,sha256=1hWW9_WF5TZQXFMu9-yXNTk3GfSETyjikNbo
|
|
|
42
42
|
cirq/contrib/acquaintance/devices_test.py,sha256=icl_9SOp8PuZu7msfW5H7zP7_-zfTwTjyPPkajDu-w4,1088
|
|
43
43
|
cirq/contrib/acquaintance/executor.py,sha256=cdj8U9Wiv8HAupU_hezEaMbeFSq1nMgqPfWrk-8XsrI,8609
|
|
44
44
|
cirq/contrib/acquaintance/executor_test.py,sha256=ir-LKuQTfHm5WCcjmLriJ8qCT89YnltLpFx89Q3bF_I,7837
|
|
45
|
-
cirq/contrib/acquaintance/gates.py,sha256=
|
|
45
|
+
cirq/contrib/acquaintance/gates.py,sha256=YSsxvvyXQQOsEOr9lKdy0s00w6EAN7mWbu3Y0zjHEU8,13545
|
|
46
46
|
cirq/contrib/acquaintance/gates_test.py,sha256=5FVX7zAtZSUqDPNsXk_Wm7LwDmHIApzgNhjAIX1IQBM,15010
|
|
47
47
|
cirq/contrib/acquaintance/inspection_utils.py,sha256=-olAKpSZPm4Q9xhaQwAjT2ovUqZQd5zXAJ0ImkffOWk,2607
|
|
48
48
|
cirq/contrib/acquaintance/inspection_utils_test.py,sha256=N5WyOkZaP7Vy0DRoiq6ZtQ1S99j5F7XyRPnyRLJqmtM,1250
|
|
@@ -340,7 +340,7 @@ cirq/ops/pauli_sum_exponential.py,sha256=n3fhKWJVMudzGuOcdPHskVNx3fHE2MAblVdkzbD
|
|
|
340
340
|
cirq/ops/pauli_sum_exponential_test.py,sha256=wVnJ3FSpEimHT8ERVkmljALrgSuuDYo6GRg91uJ7ztk,5370
|
|
341
341
|
cirq/ops/permutation_gate.py,sha256=2h8n76N2M3nu5MA8JkRQgVLByq5cOEluKUN042ClSRs,4196
|
|
342
342
|
cirq/ops/permutation_gate_test.py,sha256=SwXRgsZNLn5jnGhfcKPJ0J0CIssNzElbFaqylV2TXD8,3281
|
|
343
|
-
cirq/ops/phased_iswap_gate.py,sha256=
|
|
343
|
+
cirq/ops/phased_iswap_gate.py,sha256=UVg7-aPKxKU984CaKfEVZveu_nC4xGfNlUGx17a43AY,9023
|
|
344
344
|
cirq/ops/phased_iswap_gate_test.py,sha256=oH3RQ8tlSD0sU5Cf3M0uR92y3M1Xd7Yk3ayOoca9Neg,6708
|
|
345
345
|
cirq/ops/phased_x_gate.py,sha256=qjlkdbj7SWMvgTJkTqEqsLe2XDgAGioA6ayanns-apg,9983
|
|
346
346
|
cirq/ops/phased_x_gate_test.py,sha256=IpY-Z-MsqtYbyIEdxWu1NqgAJF2B7nddxPc2Hxafr4s,10202
|
|
@@ -361,7 +361,7 @@ cirq/ops/raw_types.py,sha256=pPbdomUXHrS8e_eb4sZTVoOrOcbI_yW4ekn97Eowr6U,41700
|
|
|
361
361
|
cirq/ops/raw_types_test.py,sha256=AtcaAgu50IK_bsMXo4MkM_fjWQj9EQrkn9ved0_cJoo,33872
|
|
362
362
|
cirq/ops/state_preparation_channel.py,sha256=PjVtoLbjBAy_XqnFAY40Am-NifeuCFVVLW6RJxph5sQ,4778
|
|
363
363
|
cirq/ops/state_preparation_channel_test.py,sha256=yKUvLw_ft6cvIgRJcFQ779wZS-V6V-pzQq-rZRWdCmU,5922
|
|
364
|
-
cirq/ops/swap_gates.py,sha256=
|
|
364
|
+
cirq/ops/swap_gates.py,sha256=8DrW7Hn-m0dx0e57FUPfjggRF0zC_HGbr3Eomm54jfE,11634
|
|
365
365
|
cirq/ops/swap_gates_test.py,sha256=_CihLf6rY4PNphCkH-S5mLJQYZW9ILjnnwUyQ9b0Blg,7452
|
|
366
366
|
cirq/ops/tags.py,sha256=B3nEsZQTurGPJodH7aDoreNSatqawTxwsmw8fSKaIlc,2294
|
|
367
367
|
cirq/ops/tags_test.py,sha256=4V9twOuCXd7Glvj9p3RW-tZ4-bfLtC1tmonR4soKNA0,1158
|
|
@@ -1199,8 +1199,8 @@ cirq/work/sampler.py,sha256=bE5tmVkcR6cZZMLETxDfHehdsYUMbx2RvBeIBetehI4,19187
|
|
|
1199
1199
|
cirq/work/sampler_test.py,sha256=hL2UWx3dz2ukZVNxWftiKVvJcQoLplLZdQm-k1QcA40,13282
|
|
1200
1200
|
cirq/work/zeros_sampler.py,sha256=x1C7cup66a43n-3tm8QjhiqJa07qcJW10FxNp9jJ59Q,2356
|
|
1201
1201
|
cirq/work/zeros_sampler_test.py,sha256=JIkpBBFPJe5Ba4142vzogyWyboG1Q1ZAm0UVGgOoZn8,3279
|
|
1202
|
-
cirq_core-1.5.0.
|
|
1203
|
-
cirq_core-1.5.0.
|
|
1204
|
-
cirq_core-1.5.0.
|
|
1205
|
-
cirq_core-1.5.0.
|
|
1206
|
-
cirq_core-1.5.0.
|
|
1202
|
+
cirq_core-1.5.0.dev20250122072446.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
|
|
1203
|
+
cirq_core-1.5.0.dev20250122072446.dist-info/METADATA,sha256=7qHaIYvtwyqsMcAD9TMOHh9mVdw8ixUszxYjpfA498Y,2105
|
|
1204
|
+
cirq_core-1.5.0.dev20250122072446.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
1205
|
+
cirq_core-1.5.0.dev20250122072446.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
|
|
1206
|
+
cirq_core-1.5.0.dev20250122072446.dist-info/RECORD,,
|
{cirq_core-1.5.0.dev20250121211209.dist-info → cirq_core-1.5.0.dev20250122072446.dist-info}/LICENSE
RENAMED
|
File without changes
|
{cirq_core-1.5.0.dev20250121211209.dist-info → cirq_core-1.5.0.dev20250122072446.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|