cirq-core 1.5.0.dev20250115203248__py3-none-any.whl → 1.5.0.dev20250116154200__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.dev20250115203248"
31
+ __version__ = "1.5.0.dev20250116154200"
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.dev20250115203248"
6
+ assert cirq.__version__ == "1.5.0.dev20250116154200"
@@ -45,6 +45,36 @@ class ClassicallyControlledOperation(raw_types.Operation):
45
45
 
46
46
  This object is typically created via
47
47
  `operation.with_classical_controls(*conditions)`.
48
+
49
+ Examples:
50
+
51
+ >>> import cirq
52
+ >>> a, b, c = cirq.LineQubit.range(3)
53
+ >>> circuit1 = cirq.Circuit(
54
+ ... cirq.measure(a, key='control_key'),
55
+ ... cirq.X(b).with_classical_controls('control_key'))
56
+ >>> print(circuit1)
57
+ 0: ─────────────M───────
58
+
59
+ 1: ─────────────╫───X───
60
+ ║ ║
61
+ control_key: ═══@═══^═══
62
+ >>> circuit2 = cirq.Circuit([
63
+ ... cirq.measure(a, key='control_key1'),
64
+ ... cirq.measure(b, key='control_key2'),
65
+ ... cirq.X(c).with_classical_controls('control_key1', 'control_key2')])
66
+ >>> print(circuit2)
67
+ ┌──┐
68
+ 0: ───────────────M─────────
69
+
70
+ 1: ───────────────╫M────────
71
+ ║║
72
+ 2: ───────────────╫╫────X───
73
+ ║║ ║
74
+ control_key1: ════@╬════^═══
75
+ ║ ║
76
+ control_key2: ═════@════^═══
77
+ └──┘
48
78
  """
49
79
 
50
80
  def __init__(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cirq-core
3
- Version: 1.5.0.dev20250115203248
3
+ Version: 1.5.0.dev20250116154200
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=iSHm8APdCroTg7ujM8Fuhnvc-gHCIzwk6mnNRxrfQqs,1206
8
- cirq/_version_test.py,sha256=2uYLP3003Dg7UAtb4MivgNIVlj7SWKrqxlBsC2g7HfA,147
7
+ cirq/_version.py,sha256=MCaD9tHzVF11b47ZN1tVkjkpIdDDj_dhqvmLYkGog0w,1206
8
+ cirq/_version_test.py,sha256=aFW3LDWaIIXmV9Lmh2rqwHslE3tCsfCFjzMJeOVZcX8,147
9
9
  cirq/conftest.py,sha256=X7yLFL8GLhg2CjPw0hp5e_dGASfvHx1-QT03aUbhKJw,1168
10
10
  cirq/json_resolver_cache.py,sha256=cpbvJMNIh0U-l1mEVb-TqhJUEXfm2vpuR3v432ORSmg,13702
11
11
  cirq/py.typed,sha256=VFSlmh_lNwnaXzwY-ZuW-C2Ws5PkuDoVgBdNCs0jXJE,63
@@ -268,7 +268,7 @@ cirq/ops/arithmetic_operation.py,sha256=PBqIwOfADRlsij11Lo1ao_OZM-O8PDlObgZBxGKs
268
268
  cirq/ops/arithmetic_operation_test.py,sha256=axy8xy9IvDb-ATUV-LE1HNWRqCEz06VyZWVrLNOtXXI,4942
269
269
  cirq/ops/boolean_hamiltonian.py,sha256=li003lNq6zS8pNPTobqzfzYJvyvaIpCVo3wkliI6Hzk,14930
270
270
  cirq/ops/boolean_hamiltonian_test.py,sha256=1ey5yfYZPKZDsfM3jpCPAOpbPs_y8i4K_WvDK2d5_4Y,8518
271
- cirq/ops/classically_controlled_operation.py,sha256=qTOsbGRZFbQIaBj9iee31V_V8oMLqWIJjgFomy3kg4A,9104
271
+ cirq/ops/classically_controlled_operation.py,sha256=M4NAcChYcz-a88oyIwOnV4uP06S18Cbef4VnhMmjyrA,10374
272
272
  cirq/ops/classically_controlled_operation_test.py,sha256=nIYyXfNH4E2IibZSLk6QDVHpfJQbuI_iWwirCH8rhi8,50209
273
273
  cirq/ops/clifford_gate.py,sha256=MOmmW5ZhxzuPvBB7oJnIhKSpZWlyYwplew29h-UtmU8,39762
274
274
  cirq/ops/clifford_gate_test.py,sha256=zEdXXDA-M7wkHO6GTlltcWz6qyEiF0UaiWP8NwRTUmY,39270
@@ -1203,8 +1203,8 @@ cirq/work/sampler.py,sha256=bE5tmVkcR6cZZMLETxDfHehdsYUMbx2RvBeIBetehI4,19187
1203
1203
  cirq/work/sampler_test.py,sha256=hL2UWx3dz2ukZVNxWftiKVvJcQoLplLZdQm-k1QcA40,13282
1204
1204
  cirq/work/zeros_sampler.py,sha256=x1C7cup66a43n-3tm8QjhiqJa07qcJW10FxNp9jJ59Q,2356
1205
1205
  cirq/work/zeros_sampler_test.py,sha256=JIkpBBFPJe5Ba4142vzogyWyboG1Q1ZAm0UVGgOoZn8,3279
1206
- cirq_core-1.5.0.dev20250115203248.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1207
- cirq_core-1.5.0.dev20250115203248.dist-info/METADATA,sha256=3J5IJJbVwSh3V7McW4DIC0mFCTcxtpA-Cmh-iWfD-wA,2105
1208
- cirq_core-1.5.0.dev20250115203248.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
1209
- cirq_core-1.5.0.dev20250115203248.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1210
- cirq_core-1.5.0.dev20250115203248.dist-info/RECORD,,
1206
+ cirq_core-1.5.0.dev20250116154200.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1207
+ cirq_core-1.5.0.dev20250116154200.dist-info/METADATA,sha256=tl7ugzdwJCBmKv0iS8eTAD3BGvl9t-Rmh37yUXcefs4,2105
1208
+ cirq_core-1.5.0.dev20250116154200.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
1209
+ cirq_core-1.5.0.dev20250116154200.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1210
+ cirq_core-1.5.0.dev20250116154200.dist-info/RECORD,,