cirq-core 1.5.0.dev20250121234557__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 CHANGED
@@ -28,4 +28,4 @@ if sys.version_info < (3, 10, 0): # pragma: no cover
28
28
  'of cirq (e.g. "python -m pip install cirq==1.1.*")'
29
29
  )
30
30
 
31
- __version__ = "1.5.0.dev20250121234557"
31
+ __version__ = "1.5.0.dev20250122072446"
cirq/_version_test.py CHANGED
@@ -3,4 +3,4 @@ import cirq
3
3
 
4
4
 
5
5
  def test_version():
6
- assert cirq.__version__ == "1.5.0.dev20250121234557"
6
+ assert cirq.__version__ == "1.5.0.dev20250122072446"
@@ -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(
@@ -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()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cirq-core
3
- Version: 1.5.0.dev20250121234557
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
@@ -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=ejPswaxgWYxO1GQJKgtWovDWenzTtsykhNG3Xgr0ZY0,1206
8
- cirq/_version_test.py,sha256=Z6dlR_3LN0v8-XrsD0r2ZtWPFriRg52fzcqUo1Z8vGo,147
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=o6drWh7kEBga6SWt5_E_UaSsqxFcKJ-twJv-tXTXJoU,13493
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=j55nFjdF0r63oaT7cGw0YtosavaV24qUjC9T-8Y4Ghw,8997
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=cp-lKHBIXbFa2PmJnJQ8jD5W-vTWnpOZ5GdqM-5Gy8Q,11608
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.dev20250121234557.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1203
- cirq_core-1.5.0.dev20250121234557.dist-info/METADATA,sha256=v1lMNyp74w-P0_Tc-0pdANnNLstVupaXK60ru-aZGKk,2105
1204
- cirq_core-1.5.0.dev20250121234557.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
1205
- cirq_core-1.5.0.dev20250121234557.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1206
- cirq_core-1.5.0.dev20250121234557.dist-info/RECORD,,
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,,