cirq-core 1.5.0.dev20250310232256__py3-none-any.whl → 1.5.0.dev20250311143612__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.dev20250310232256"
31
+ __version__ = "1.5.0.dev20250311143612"
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.dev20250310232256"
6
+ assert cirq.__version__ == "1.5.0.dev20250311143612"
@@ -14,7 +14,6 @@
14
14
 
15
15
  import re
16
16
  import textwrap
17
- import warnings
18
17
  from typing import Callable
19
18
 
20
19
  import numpy as np
@@ -1486,19 +1485,14 @@ def _test_parse_exception(qasm: str, cirq_err: str, qiskit_err: str | None):
1486
1485
  parser = QasmParser()
1487
1486
  with pytest.raises(QasmException, match=re.escape(cirq_err)):
1488
1487
  parser.parse(qasm)
1489
- try:
1490
- import qiskit
1491
-
1492
- if qiskit_err is None:
1493
- qiskit.QuantumCircuit.from_qasm_str(qasm)
1494
- return
1495
- with pytest.raises(qiskit.qasm2.exceptions.QASM2ParseError, match=re.escape(qiskit_err)):
1496
- qiskit.QuantumCircuit.from_qasm_str(qasm)
1497
- except ImportError: # pragma: no cover
1498
- warnings.warn(
1499
- "Skipped _test_qiskit_parse_exception because "
1500
- "qiskit isn't installed to verify against."
1501
- )
1488
+ pytest.importorskip("qiskit")
1489
+ import qiskit.qasm2
1490
+
1491
+ if qiskit_err is None:
1492
+ qiskit.QuantumCircuit.from_qasm_str(qasm)
1493
+ return
1494
+ with pytest.raises(qiskit.qasm2.exceptions.QASM2ParseError, match=re.escape(qiskit_err)):
1495
+ qiskit.QuantumCircuit.from_qasm_str(qasm)
1502
1496
 
1503
1497
 
1504
1498
  def test_nested_custom_gate_has_keyword_in_name():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cirq-core
3
- Version: 1.5.0.dev20250310232256
3
+ Version: 1.5.0.dev20250311143612
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=dNNUwZOT9EEm3jrmTc1EiLZQhzKiItN39dBRgLj8_M8,1206
8
- cirq/_version_test.py,sha256=T9WkO4DDPqjmxIm9ZWaP0eyUR2C_nkamETLvqrlNWxs,147
7
+ cirq/_version.py,sha256=ppBJzleBjqnuQfxMvQgHCwYGAOslFSMFNs65B777MEU,1206
8
+ cirq/_version_test.py,sha256=ABbez-Cu2IVT6j3Jj6MTOHDtffp0-xHJaWQBJzw6-BA,147
9
9
  cirq/conftest.py,sha256=X7yLFL8GLhg2CjPw0hp5e_dGASfvHx1-QT03aUbhKJw,1168
10
10
  cirq/json_resolver_cache.py,sha256=p-vEOa-8GQ2cFIAdze-kd6C1un1uRvtujVPljVKaHBg,13557
11
11
  cirq/py.typed,sha256=VFSlmh_lNwnaXzwY-ZuW-C2Ws5PkuDoVgBdNCs0jXJE,63
@@ -106,7 +106,7 @@ cirq/contrib/qasm_import/__init__.py,sha256=RKX0vGDC2Pe5rH5rM4ClXdvtrAU16ePFImQp
106
106
  cirq/contrib/qasm_import/_lexer.py,sha256=-72amAxuZbkybMH-xBynqYqx1-TnRVpl51Dd2qtjjCY,2928
107
107
  cirq/contrib/qasm_import/_lexer_test.py,sha256=mgzCMoXwngMOJ8JZYVqaSNRIiZEnnzpla_3jo9UMLjQ,6217
108
108
  cirq/contrib/qasm_import/_parser.py,sha256=S9Yme100Yp3Ye8wGoCm0MkAeweOvPI1uOV7UbbDoEDc,26053
109
- cirq/contrib/qasm_import/_parser_test.py,sha256=PL0Os1pZmvS8xg8kgXoeEng322lR9nlpBrlanKzmkyU,39925
109
+ cirq/contrib/qasm_import/_parser_test.py,sha256=uyVd7nBQX0rTrIFT21RSNbaL5qCTjGdcCjswnlTZvpA,39723
110
110
  cirq/contrib/qasm_import/exception.py,sha256=Wm6cwUPIkNMPjkv-ELpQ-zSoXaiLOddOQ4iYybwuS6I,695
111
111
  cirq/contrib/qasm_import/qasm.py,sha256=CP444IWCw4zlDNA7HxsTJ2xIak4mZhQv62ZiLlUc2zo,914
112
112
  cirq/contrib/qasm_import/qasm_test.py,sha256=e5b7LVn_6FIFZ6kINqMzJFIjzgtTgutVhgXgX_DcTc0,1861
@@ -1204,8 +1204,8 @@ cirq/work/sampler.py,sha256=bE5tmVkcR6cZZMLETxDfHehdsYUMbx2RvBeIBetehI4,19187
1204
1204
  cirq/work/sampler_test.py,sha256=hL2UWx3dz2ukZVNxWftiKVvJcQoLplLZdQm-k1QcA40,13282
1205
1205
  cirq/work/zeros_sampler.py,sha256=x1C7cup66a43n-3tm8QjhiqJa07qcJW10FxNp9jJ59Q,2356
1206
1206
  cirq/work/zeros_sampler_test.py,sha256=JIkpBBFPJe5Ba4142vzogyWyboG1Q1ZAm0UVGgOoZn8,3279
1207
- cirq_core-1.5.0.dev20250310232256.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1208
- cirq_core-1.5.0.dev20250310232256.dist-info/METADATA,sha256=mBiYj9YCpNEUYMbZOIiLe1W6drKE0zCwyihjc6pPItA,4817
1209
- cirq_core-1.5.0.dev20250310232256.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
1210
- cirq_core-1.5.0.dev20250310232256.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1211
- cirq_core-1.5.0.dev20250310232256.dist-info/RECORD,,
1207
+ cirq_core-1.5.0.dev20250311143612.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1208
+ cirq_core-1.5.0.dev20250311143612.dist-info/METADATA,sha256=fYcykUHWkgA82oKNLugF3cvZWwTTKVfFheZ1Njusz_s,4817
1209
+ cirq_core-1.5.0.dev20250311143612.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
1210
+ cirq_core-1.5.0.dev20250311143612.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1211
+ cirq_core-1.5.0.dev20250311143612.dist-info/RECORD,,