cirq-core 1.6.0.dev20250429191011__py3-none-any.whl → 1.6.0.dev20250429201501__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.6.0.dev20250429191011"
31
+ __version__ = "1.6.0.dev20250429201501"
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.6.0.dev20250429191011"
6
+ assert cirq.__version__ == "1.6.0.dev20250429201501"
cirq/ops/raw_types.py CHANGED
@@ -203,8 +203,10 @@ class Gate(metaclass=value.ABCMetaImplementAnyOneOf):
203
203
  to create an Operation on q1 and q2 is equivalent to MyGate(q1,q2).
204
204
 
205
205
  Gates operate on a certain number of qubits. All implementations of gate
206
- must implement the `num_qubits` method declaring how many qubits they
207
- act on.
206
+ must implement a method to declare the number of qubits (if a gate acting
207
+ on qubits) or the qid shape (if acting on qudits). In general, this means
208
+ that a Gate subclass should implement only `_qid_shape_` if it can act on
209
+ qudits, otherwise it should define only `_num_qubits_`.
208
210
 
209
211
  Linear combinations of gates can be created by adding gates together and
210
212
  multiplying them by scalars.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cirq-core
3
- Version: 1.6.0.dev20250429191011
3
+ Version: 1.6.0.dev20250429201501
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=0m3sYIyxRNv9jvAo6rzJ-cnbpny3KGnAByrbU7bApgQ,34720
4
4
  cirq/_doc.py,sha256=yDyWUD_2JDS0gShfGRb-rdqRt9-WeL7DhkqX7np0Nko,2879
5
5
  cirq/_import.py,sha256=cfocxtT1BJ4HkfZ-VO8YyIhPP-xfqHDkLrzz6eeO5U0,8421
6
6
  cirq/_import_test.py,sha256=6K_v0riZJXOXUphHNkGA8MY-JcmGlezFaGmvrNhm3OQ,1015
7
- cirq/_version.py,sha256=TINfUySl1gUeyWl8fEGWVsdGC2ARRZcs-ZB6Ns9laco,1206
8
- cirq/_version_test.py,sha256=BfCGmD-7v6LZtj5i8FO9brNmbG_nWltgMgCO3vBEuf4,147
7
+ cirq/_version.py,sha256=DGBK08QEDxTbuIvEpF3kiRItGzu5lnOeXZfbiyyluZM,1206
8
+ cirq/_version_test.py,sha256=AZO4Ny59ZZChp7DWi8UW6BFiUKgcojXJz40EtSF-2RE,147
9
9
  cirq/conftest.py,sha256=X7yLFL8GLhg2CjPw0hp5e_dGASfvHx1-QT03aUbhKJw,1168
10
10
  cirq/json_resolver_cache.py,sha256=-4KqEEYb6aps-seafnFTHTp3SZc0D8mr4O-pCKIajn8,13653
11
11
  cirq/py.typed,sha256=VFSlmh_lNwnaXzwY-ZuW-C2Ws5PkuDoVgBdNCs0jXJE,63
@@ -363,7 +363,7 @@ cirq/ops/qubit_order_or_list.py,sha256=WVnhQcOYCgAhiB4t47Kji-pN1tnvs--X5deCQwwGV
363
363
  cirq/ops/qubit_order_test.py,sha256=B9xMIxlaI7YjRUNA6AkHJuUCFejGYw-lT7ZaSl31yTU,4238
364
364
  cirq/ops/random_gate_channel.py,sha256=HqE7wWehH6cNPEcsqNIFj99lL7iNzK-YAyXXJrzQxkk,5141
365
365
  cirq/ops/random_gate_channel_test.py,sha256=6pJgavUZAw9WSxgcDPNwQk1Wzt4ffD-1dED2IcpKUcg,8398
366
- cirq/ops/raw_types.py,sha256=L1cyblfPsBwIOh8dW1RAFsS4GRrnIFln8pOWgD9_gqY,43728
366
+ cirq/ops/raw_types.py,sha256=MfOTIYszz0PuedZss2u9aA3cwqtfyEv30FtwtkJx2io,43937
367
367
  cirq/ops/raw_types_test.py,sha256=YyyR1UDyW4Vail8Zsvz-nCLlqRsnjCnuzQEBn2oEZyM,34751
368
368
  cirq/ops/state_preparation_channel.py,sha256=ypePZSkI2WiXR4Z0K4PbqZe5pA8YzB0lScFZEHccixA,4794
369
369
  cirq/ops/state_preparation_channel_test.py,sha256=tSjrd5cCkd0nEV26WzJN-IVVHtm7HjfHGImYcvhYec8,5923
@@ -1209,8 +1209,8 @@ cirq/work/sampler.py,sha256=sW0RhIelGABAKbqTM58shwyyCPgf86JIv9IGdJe__js,19186
1209
1209
  cirq/work/sampler_test.py,sha256=mdk1J-WrvbPUYhY41VhWf9_te4DnXr_XMPcugWwc4-I,13281
1210
1210
  cirq/work/zeros_sampler.py,sha256=8_Ne6dBkDANtTZuql7Eb0Qg_E_P3-_gu-ybFzxTbKAQ,2356
1211
1211
  cirq/work/zeros_sampler_test.py,sha256=JIkpBBFPJe5Ba4142vzogyWyboG1Q1ZAm0UVGgOoZn8,3279
1212
- cirq_core-1.6.0.dev20250429191011.dist-info/licenses/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1213
- cirq_core-1.6.0.dev20250429191011.dist-info/METADATA,sha256=FZTJRIwZUdgryXgRKnqchr0jTt-WzpVwCeJmovkWeZA,4908
1214
- cirq_core-1.6.0.dev20250429191011.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
1215
- cirq_core-1.6.0.dev20250429191011.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1216
- cirq_core-1.6.0.dev20250429191011.dist-info/RECORD,,
1212
+ cirq_core-1.6.0.dev20250429201501.dist-info/licenses/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1213
+ cirq_core-1.6.0.dev20250429201501.dist-info/METADATA,sha256=FFMtWrImPH-RESS6y2NeyXYICZ0INm_2Cphc3dmzF_0,4908
1214
+ cirq_core-1.6.0.dev20250429201501.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
1215
+ cirq_core-1.6.0.dev20250429201501.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1216
+ cirq_core-1.6.0.dev20250429201501.dist-info/RECORD,,