cirq-core 1.4.0.dev20240305200948__py3-none-any.whl → 1.4.0.dev20240308194844__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
@@ -1 +1 @@
1
- __version__ = "1.4.0.dev20240305200948"
1
+ __version__ = "1.4.0.dev20240308194844"
cirq/testing/__init__.py CHANGED
@@ -69,7 +69,12 @@ from cirq.testing.equivalent_basis_map import assert_equivalent_computational_ba
69
69
 
70
70
  from cirq.testing.equivalent_repr_eval import assert_equivalent_repr
71
71
 
72
- from cirq.testing.gate_features import SingleQubitGate, TwoQubitGate, ThreeQubitGate
72
+ from cirq.testing.gate_features import (
73
+ SingleQubitGate,
74
+ TwoQubitGate,
75
+ ThreeQubitGate,
76
+ DoesNotSupportSerializationGate,
77
+ )
73
78
 
74
79
  from cirq.testing.json import assert_json_roundtrip_works
75
80
 
@@ -36,3 +36,13 @@ class ThreeQubitGate(raw_types.Gate):
36
36
 
37
37
  def _num_qubits_(self) -> int:
38
38
  return 3
39
+
40
+
41
+ class DoesNotSupportSerializationGate(raw_types.Gate):
42
+ """A gate that can't be serialized."""
43
+
44
+ def __init__(self, n_qubits: int = 1):
45
+ self.n_qubits = n_qubits
46
+
47
+ def _num_qubits_(self) -> int:
48
+ return self.n_qubits
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cirq-core
3
- Version: 1.4.0.dev20240305200948
3
+ Version: 1.4.0.dev20240308194844
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,7 +4,7 @@ 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=1vDRtYiVXs5ML7R3xwBeuDGAozVDf7PQTJraiY-MUGg,40
7
+ cirq/_version.py,sha256=iaNaQ8BjqtNa02H2B1F7EeB3-Jyrw0SD6J-IQK8fz9M,40
8
8
  cirq/_version_test.py,sha256=yYS6xm5-nuBRQJa9R3n41WdvFtVyY7Lb5Q8bea3VgBI,133
9
9
  cirq/conftest.py,sha256=X7yLFL8GLhg2CjPw0hp5e_dGASfvHx1-QT03aUbhKJw,1168
10
10
  cirq/json_resolver_cache.py,sha256=S0HaPOCUIck-vNSQlS6KxnQtle6w-2dGuSxkUbJQY9Y,13168
@@ -934,7 +934,7 @@ cirq/study/sweepable.py,sha256=BMgq8lxVnyJGBeu4gFUt_0P_v4gFwKgazZFftRUEwnA,4185
934
934
  cirq/study/sweepable_test.py,sha256=xjUksIurfbh240fEC7Al_TuiHGz7xZGktQUh86XBG9U,4772
935
935
  cirq/study/sweeps.py,sha256=IzonyU-LgEcMpvQrKZbl14v-BHi01oncp9CmHtLw0J4,19813
936
936
  cirq/study/sweeps_test.py,sha256=IqZp0ywYA430nNE_slBfc4vdKjULttzPl8ytxHLlgWo,11966
937
- cirq/testing/__init__.py,sha256=hbGRltgVaFhA6fMG2aVuRY-tXOluRyy4Rh9EQxqhQLg,3816
937
+ cirq/testing/__init__.py,sha256=cACho8s-V5tNOjBcDUtr2DipQxQcbUgbr4MESJb4l1I,3870
938
938
  cirq/testing/circuit_compare.py,sha256=nBQES45wLVThOqC3WrPrYKLQP7HQ2pH5DjlJ5bHkrtU,19176
939
939
  cirq/testing/circuit_compare_test.py,sha256=AduZCzwBNFCYrjEpyS1DvIR6jU8GaFqQBBgPXyIALoU,19743
940
940
  cirq/testing/consistent_act_on.py,sha256=ofYxdotw7fDfEVaAoM3NJEG2-hTHmi5FlLZkLYfVBWE,7733
@@ -968,7 +968,7 @@ cirq/testing/equivalent_basis_map.py,sha256=pUsJtO87hUGyAeGXR_pSKKkQ72vltsDj01EO
968
968
  cirq/testing/equivalent_basis_map_test.py,sha256=Wiz0AzdU4JMBUqgwgEts4yu2Zwi9GyEuVyYRRzEfbXI,1488
969
969
  cirq/testing/equivalent_repr_eval.py,sha256=vM8M9j-kVoxMg5BA1BCfZ3TgjFL5XthO7gXcau6BOak,3378
970
970
  cirq/testing/equivalent_repr_eval_test.py,sha256=FTe_1O9sl84cSmTuxPP8m38P_3mzXrF4yU5X8Bj2wnc,2964
971
- cirq/testing/gate_features.py,sha256=RKmctzrmDl-q59pYkkriufOobFDHYnSpTDCYatLIWhQ,1125
971
+ cirq/testing/gate_features.py,sha256=39lXCy54-V-b7WT0UC4CQaNCsFLHDLagJVVMG8fCz98,1367
972
972
  cirq/testing/gate_features_test.py,sha256=I5hTTazOYucDCqowWtdYN4rvd9hK-9Nlv3fRjs21Bvw,2168
973
973
  cirq/testing/json.py,sha256=is5G95eKX4QirzElQxAbxXBf-zF-N9G6I3ptjL0Ne64,6646
974
974
  cirq/testing/json_test.py,sha256=Qblb8hCGk8FUNk-L0lwOMs91YKpsfcOj7O3Ng1YG3y4,1092
@@ -1152,8 +1152,8 @@ cirq/work/sampler.py,sha256=JEAeQQRF3bqlO9AkOf4XbrTATDI5f5JgyM_FAUCNxao,19751
1152
1152
  cirq/work/sampler_test.py,sha256=B2ZsuqGT854gQtBIAh8k0LiG9Vj5wSzcGvkxOUoTcW4,13217
1153
1153
  cirq/work/zeros_sampler.py,sha256=x1C7cup66a43n-3tm8QjhiqJa07qcJW10FxNp9jJ59Q,2356
1154
1154
  cirq/work/zeros_sampler_test.py,sha256=JIkpBBFPJe5Ba4142vzogyWyboG1Q1ZAm0UVGgOoZn8,3279
1155
- cirq_core-1.4.0.dev20240305200948.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1156
- cirq_core-1.4.0.dev20240305200948.dist-info/METADATA,sha256=tnL8LDbMPPEVI0G7gC1PA8r4p4d5iVvtHgNne4RkRDU,2110
1157
- cirq_core-1.4.0.dev20240305200948.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
1158
- cirq_core-1.4.0.dev20240305200948.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1159
- cirq_core-1.4.0.dev20240305200948.dist-info/RECORD,,
1155
+ cirq_core-1.4.0.dev20240308194844.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1156
+ cirq_core-1.4.0.dev20240308194844.dist-info/METADATA,sha256=pHW_C1NTzayuBsuR8ZyOikBlQSomiKQwLYx-uKvjFL0,2110
1157
+ cirq_core-1.4.0.dev20240308194844.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
1158
+ cirq_core-1.4.0.dev20240308194844.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1159
+ cirq_core-1.4.0.dev20240308194844.dist-info/RECORD,,