cirq-core 1.4.0.dev20240320235012__py3-none-any.whl → 1.4.0.dev20240322180154__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.dev20240320235012"
1
+ __version__ = "1.4.0.dev20240322180154"
@@ -92,16 +92,12 @@ class SupportsDecompose(Protocol):
92
92
  """An object that can be decomposed into simpler operations.
93
93
 
94
94
  All decomposition methods should ultimately terminate on basic 1-qubit and
95
- 2-qubit gates included by default in Cirq. Cirq does not make any guarantees
96
- about what the final gate set is. Currently, decompositions within Cirq
97
- happen to converge towards the X, Y, Z, CZ, PhasedX, specified-matrix gates,
98
- and others. This set will vary from release to release. Because of this
99
- variability, it is important for consumers of decomposition to look for
100
- generic properties of gates, such as "two qubit gate with a unitary matrix",
101
- instead of specific gate types such as CZ gates (though a consumer is
102
- of course free to handle CZ gates in a special way, and consumers can
103
- give an `intercepting_decomposer` to `cirq.decompose` that attempts to
104
- target a specific gate set).
95
+ 2-qubit gates included by default in Cirq. If a custom decomposition is not
96
+ specified, Cirq will decompose all operations to XPow/YPow/ZPow/CZPow/Measurement
97
+ + Global phase gateset. However, the default decomposition in Cirq should be a last resort
98
+ fallback and it is recommended for consumers of decomposition to either not depend
99
+ upon a specific target gateset, or give an `intercepting_decomposer` to `cirq.decompose`
100
+ that attempts to target a specific gate set.
105
101
 
106
102
  For example, `cirq.TOFFOLI` has a `_decompose_` method that returns a pair
107
103
  of Hadamard gates surrounding a `cirq.CCZ`. Although `cirq.CCZ` is not a
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cirq-core
3
- Version: 1.4.0.dev20240320235012
3
+ Version: 1.4.0.dev20240322180154
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=Kf3dh7KBoeRmAqbmuYSZKevqC-2POzUS6uGPUdBiPiM,40
7
+ cirq/_version.py,sha256=wy3xLcZD2aspIH9CDURpyoy6xTORSvSsvafBdtZZSeM,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=9g_JQMmfBzTuV-3s2flUbXIgcLjs4K7LjAFFgngdG1U,13204
@@ -389,7 +389,7 @@ cirq/protocols/commutes_protocol.py,sha256=KW849TNso6d_pzTlAN8SRN2pjz72LJ8uAhQSY
389
389
  cirq/protocols/commutes_protocol_test.py,sha256=h0Lky4jrs7Hxrh4MeHxmxNciuofKGGZ2eC-ceWP8wKU,5849
390
390
  cirq/protocols/control_key_protocol.py,sha256=S3b4XOvTIj6TxNbj0W33fjdvXiWSKOtflvfEGeruzWw,2630
391
391
  cirq/protocols/control_key_protocol_test.py,sha256=190gp4QBu5QpP2doMmzx9RkAkp6VZOOWGOXp0RIFgqc,970
392
- cirq/protocols/decompose_protocol.py,sha256=nzCnAAGHvEV6UQdC_CU-MPQuQBkHPB5AGIBHgqf7KxE,19156
392
+ cirq/protocols/decompose_protocol.py,sha256=0zDsymAFfTSo8mze516oNCvc2OmEUQAOaxoSyTQR0Cc,18919
393
393
  cirq/protocols/decompose_protocol_test.py,sha256=5L5lQN_FV9qtE3NHPsnxtdgUtY5uDEIfxZkBHbgDrGs,16025
394
394
  cirq/protocols/equal_up_to_global_phase_protocol.py,sha256=0a93790FDjID46cX94PVAlA9i9Fu7uN8cj6qT94NH9w,4101
395
395
  cirq/protocols/equal_up_to_global_phase_protocol_test.py,sha256=9H54KKkS3-_BrTSrEynDq1-sAcYfhLVmVqveLHieg24,5722
@@ -1154,8 +1154,8 @@ cirq/work/sampler.py,sha256=JEAeQQRF3bqlO9AkOf4XbrTATDI5f5JgyM_FAUCNxao,19751
1154
1154
  cirq/work/sampler_test.py,sha256=B2ZsuqGT854gQtBIAh8k0LiG9Vj5wSzcGvkxOUoTcW4,13217
1155
1155
  cirq/work/zeros_sampler.py,sha256=x1C7cup66a43n-3tm8QjhiqJa07qcJW10FxNp9jJ59Q,2356
1156
1156
  cirq/work/zeros_sampler_test.py,sha256=JIkpBBFPJe5Ba4142vzogyWyboG1Q1ZAm0UVGgOoZn8,3279
1157
- cirq_core-1.4.0.dev20240320235012.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1158
- cirq_core-1.4.0.dev20240320235012.dist-info/METADATA,sha256=Z54PA5RN88-mzuw3QH3UmtWgtQxvD9MdV1EQA5ZO6Ws,2090
1159
- cirq_core-1.4.0.dev20240320235012.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
1160
- cirq_core-1.4.0.dev20240320235012.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1161
- cirq_core-1.4.0.dev20240320235012.dist-info/RECORD,,
1157
+ cirq_core-1.4.0.dev20240322180154.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1158
+ cirq_core-1.4.0.dev20240322180154.dist-info/METADATA,sha256=B5boV_5sLUVBnrUP99wT336DvAmksbSCO0pYzfLKjak,2090
1159
+ cirq_core-1.4.0.dev20240322180154.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
1160
+ cirq_core-1.4.0.dev20240322180154.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1161
+ cirq_core-1.4.0.dev20240322180154.dist-info/RECORD,,