cirq-core 1.5.0.dev20241114152643__py3-none-any.whl → 1.5.0.dev20241118045917__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.dev20241114152643"
31
+ __version__ = "1.5.0.dev20241118045917"
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.dev20241114152643"
6
+ assert cirq.__version__ == "1.5.0.dev20241118045917"
cirq/ops/raw_types.py CHANGED
@@ -939,7 +939,9 @@ class TaggedOperation(Operation):
939
939
  return protocols.trace_distance_bound(self.sub_operation)
940
940
 
941
941
  def _phase_by_(self, phase_turns: float, qubit_index: int) -> 'cirq.Operation':
942
- return protocols.phase_by(self.sub_operation, phase_turns, qubit_index)
942
+ return protocols.phase_by(
943
+ self.sub_operation, phase_turns, qubit_index, default=NotImplemented
944
+ )
943
945
 
944
946
  def __pow__(self, exponent: Any) -> 'cirq.Operation':
945
947
  return self.sub_operation**exponent
@@ -662,6 +662,8 @@ def test_tagged_operation_forwards_protocols():
662
662
  assert cirq.commutes(tagged_x, clifford_x)
663
663
  assert cirq.commutes(clifford_x, tagged_x)
664
664
  assert cirq.commutes(tagged_x, tagged_x)
665
+ assert cirq.phase_by(clifford_x, 0.125, 0, default=None) is None
666
+ assert cirq.phase_by(tagged_x, 0.125, 0, default=None) is None
665
667
 
666
668
  assert cirq.trace_distance_bound(y**0.001) == cirq.trace_distance_bound(
667
669
  (y**0.001).with_tags(tag)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cirq-core
3
- Version: 1.5.0.dev20241114152643
3
+ Version: 1.5.0.dev20241118045917
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=8zrPIJnoPcQ1_rGQ1YpZJ_AhxUALZcJHxjP01z0abtg,1206
8
- cirq/_version_test.py,sha256=TWs2mCu6J6J7OzDO-bxvxp_cZQL8ktUJ_ZLsjbF54jk,147
7
+ cirq/_version.py,sha256=bg5R-aZvxZKDXGzogZcVeLqM2pIHj4k10aX18mgu_AU,1206
8
+ cirq/_version_test.py,sha256=qYLPmCA_UaiDG13VyRBRlcr9uN0eeuwtQM79jepu7TI,147
9
9
  cirq/conftest.py,sha256=X7yLFL8GLhg2CjPw0hp5e_dGASfvHx1-QT03aUbhKJw,1168
10
10
  cirq/json_resolver_cache.py,sha256=ytePZtNZgKjOF2NiVpUTuotB-JKZmQNOFIFdvXqsxHw,13271
11
11
  cirq/py.typed,sha256=VFSlmh_lNwnaXzwY-ZuW-C2Ws5PkuDoVgBdNCs0jXJE,63
@@ -359,8 +359,8 @@ cirq/ops/qubit_order_or_list.py,sha256=WVnhQcOYCgAhiB4t47Kji-pN1tnvs--X5deCQwwGV
359
359
  cirq/ops/qubit_order_test.py,sha256=B9xMIxlaI7YjRUNA6AkHJuUCFejGYw-lT7ZaSl31yTU,4238
360
360
  cirq/ops/random_gate_channel.py,sha256=gKDqZa6AwdCIuuh2UOvO5oxCdGRDOInA7fI3ZLQ-LTY,5121
361
361
  cirq/ops/random_gate_channel_test.py,sha256=U3EAaAlCZkgFIYxqwcSkPsaVGrKA2PSeG_DK2ou--AE,8606
362
- cirq/ops/raw_types.py,sha256=DKSboh6g59N1myE4GxdXlLnVo-efIzo3o7Bg_HVmaLY,40263
363
- cirq/ops/raw_types_test.py,sha256=RWUiB2TypXxbDTVaetQ7h-buGScUcQgY6YsFkmodZGY,33484
362
+ cirq/ops/raw_types.py,sha256=ISnjY0TPcle_qe6uzHCF_4d_SQevJ4lSWJWGR36lYuU,40309
363
+ cirq/ops/raw_types_test.py,sha256=bZUOQSfPDZgH6Z98PKX0oBP2iWXwSh3b9dty1dFcFfM,33620
364
364
  cirq/ops/state_preparation_channel.py,sha256=PjVtoLbjBAy_XqnFAY40Am-NifeuCFVVLW6RJxph5sQ,4778
365
365
  cirq/ops/state_preparation_channel_test.py,sha256=yKUvLw_ft6cvIgRJcFQ779wZS-V6V-pzQq-rZRWdCmU,5922
366
366
  cirq/ops/swap_gates.py,sha256=9eJMGyOiA8W9k2xJ_w5PaLOCHGvB6C4T2RLddIZ5qE8,11601
@@ -1187,8 +1187,8 @@ cirq/work/sampler.py,sha256=y6qtCpAwO8SqZ_JKU8PwlbMLHpJskNPqGWD_pNbyZew,19779
1187
1187
  cirq/work/sampler_test.py,sha256=hL2UWx3dz2ukZVNxWftiKVvJcQoLplLZdQm-k1QcA40,13282
1188
1188
  cirq/work/zeros_sampler.py,sha256=x1C7cup66a43n-3tm8QjhiqJa07qcJW10FxNp9jJ59Q,2356
1189
1189
  cirq/work/zeros_sampler_test.py,sha256=JIkpBBFPJe5Ba4142vzogyWyboG1Q1ZAm0UVGgOoZn8,3279
1190
- cirq_core-1.5.0.dev20241114152643.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1191
- cirq_core-1.5.0.dev20241114152643.dist-info/METADATA,sha256=FRdUFuF6e8tzZvbleC6Vd_I3S0VVq1zrgY_ugZryqqM,1992
1192
- cirq_core-1.5.0.dev20241114152643.dist-info/WHEEL,sha256=bFJAMchF8aTQGUgMZzHJyDDMPTO3ToJ7x23SLJa1SVo,92
1193
- cirq_core-1.5.0.dev20241114152643.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1194
- cirq_core-1.5.0.dev20241114152643.dist-info/RECORD,,
1190
+ cirq_core-1.5.0.dev20241118045917.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1191
+ cirq_core-1.5.0.dev20241118045917.dist-info/METADATA,sha256=86glCkZbGBivMoJgEZhiCMZIXSLVngBgylEyOC397PU,1992
1192
+ cirq_core-1.5.0.dev20241118045917.dist-info/WHEEL,sha256=bFJAMchF8aTQGUgMZzHJyDDMPTO3ToJ7x23SLJa1SVo,92
1193
+ cirq_core-1.5.0.dev20241118045917.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1194
+ cirq_core-1.5.0.dev20241118045917.dist-info/RECORD,,