cirq-core 1.6.0.dev20250515174529__py3-none-any.whl → 1.6.0.dev20250516154249__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.

Files changed (112) hide show
  1. cirq/_compat.py +3 -0
  2. cirq/_doc.py +2 -0
  3. cirq/_import.py +2 -0
  4. cirq/_import_test.py +4 -2
  5. cirq/_version.py +1 -1
  6. cirq/_version_test.py +1 -1
  7. cirq/circuits/_block_diagram_drawer.py +2 -0
  8. cirq/circuits/_block_diagram_drawer_test.py +2 -0
  9. cirq/circuits/_box_drawing_character_data.py +2 -0
  10. cirq/circuits/_box_drawing_character_data_test.py +2 -0
  11. cirq/circuits/_bucket_priority_queue.py +2 -0
  12. cirq/circuits/_bucket_priority_queue_test.py +2 -0
  13. cirq/circuits/circuit_operation_test.py +3 -0
  14. cirq/circuits/circuit_test.py +2 -0
  15. cirq/circuits/frozen_circuit_test.py +2 -0
  16. cirq/circuits/insert_strategy_test.py +2 -0
  17. cirq/circuits/moment_test.py +2 -0
  18. cirq/circuits/optimization_pass_test.py +2 -0
  19. cirq/circuits/qasm_output_test.py +3 -0
  20. cirq/circuits/text_diagram_drawer_test.py +2 -0
  21. cirq/contrib/acquaintance/bipartite_test.py +2 -0
  22. cirq/contrib/acquaintance/devices_test.py +2 -0
  23. cirq/contrib/acquaintance/executor_test.py +2 -0
  24. cirq/contrib/acquaintance/inspection_utils_test.py +2 -0
  25. cirq/contrib/acquaintance/mutation_utils_test.py +2 -0
  26. cirq/contrib/acquaintance/optimizers_test.py +3 -0
  27. cirq/contrib/acquaintance/permutation_test.py +2 -0
  28. cirq/contrib/acquaintance/shift_swap_network_test.py +2 -0
  29. cirq/contrib/acquaintance/shift_test.py +2 -0
  30. cirq/contrib/acquaintance/strategies/cubic_test.py +2 -0
  31. cirq/contrib/acquaintance/strategies/quartic_paired_test.py +2 -0
  32. cirq/contrib/acquaintance/testing.py +2 -0
  33. cirq/contrib/acquaintance/topological_sort_test.py +2 -0
  34. cirq/contrib/bayesian_network/bayesian_network_gate_test.py +3 -0
  35. cirq/contrib/circuitdag/circuit_dag_test.py +2 -0
  36. cirq/contrib/graph_device/graph_device_test.py +2 -0
  37. cirq/contrib/graph_device/hypergraph_test.py +2 -0
  38. cirq/contrib/graph_device/uniform_graph_device.py +2 -0
  39. cirq/contrib/graph_device/uniform_graph_device_test.py +2 -0
  40. cirq/contrib/hacks/disable_validation.py +2 -0
  41. cirq/contrib/hacks/disable_validation_test.py +2 -0
  42. cirq/contrib/json.py +2 -0
  43. cirq/contrib/json_test.py +3 -0
  44. cirq/contrib/noise_models/noise_models_test.py +2 -0
  45. cirq/contrib/paulistring/clifford_optimize.py +2 -0
  46. cirq/contrib/paulistring/clifford_optimize_test.py +2 -0
  47. cirq/contrib/paulistring/clifford_target_gateset_test.py +2 -0
  48. cirq/contrib/paulistring/optimize.py +2 -0
  49. cirq/contrib/paulistring/optimize_test.py +2 -0
  50. cirq/contrib/paulistring/pauli_string_dag.py +2 -0
  51. cirq/contrib/paulistring/pauli_string_dag_test.py +2 -0
  52. cirq/contrib/paulistring/pauli_string_optimize.py +5 -1
  53. cirq/contrib/paulistring/pauli_string_optimize_test.py +2 -0
  54. cirq/contrib/paulistring/recombine.py +2 -0
  55. cirq/contrib/paulistring/recombine_test.py +2 -0
  56. cirq/contrib/paulistring/separate.py +2 -0
  57. cirq/contrib/paulistring/separate_test.py +2 -0
  58. cirq/contrib/qasm_import/_lexer.py +2 -0
  59. cirq/contrib/qasm_import/_lexer_test.py +2 -0
  60. cirq/contrib/qasm_import/_parser.py +2 -0
  61. cirq/contrib/qasm_import/_parser_test.py +2 -0
  62. cirq/contrib/qasm_import/exception.py +2 -0
  63. cirq/contrib/qasm_import/qasm.py +6 -2
  64. cirq/contrib/qasm_import/qasm_test.py +3 -0
  65. cirq/contrib/qcircuit/qcircuit_diagram_info.py +2 -0
  66. cirq/contrib/qcircuit/qcircuit_diagram_info_test.py +2 -0
  67. cirq/contrib/qcircuit/qcircuit_pdf.py +7 -2
  68. cirq/contrib/qcircuit/qcircuit_pdf_test.py +2 -0
  69. cirq/contrib/qcircuit/qcircuit_test.py +2 -0
  70. cirq/contrib/quantum_volume/quantum_volume.py +2 -0
  71. cirq/contrib/quantum_volume/quantum_volume_test.py +2 -0
  72. cirq/contrib/quimb/density_matrix_test.py +3 -0
  73. cirq/contrib/quimb/grid_circuits.py +2 -0
  74. cirq/contrib/quimb/grid_circuits_test.py +3 -0
  75. cirq/contrib/quimb/mps_simulator_test.py +3 -0
  76. cirq/contrib/quimb/state_vector_test.py +3 -0
  77. cirq/contrib/quirk/export_to_quirk.py +2 -0
  78. cirq/contrib/quirk/export_to_quirk_test.py +2 -0
  79. cirq/contrib/quirk/linearize_circuit.py +2 -0
  80. cirq/contrib/routing/device.py +2 -0
  81. cirq/contrib/routing/device_test.py +2 -0
  82. cirq/contrib/routing/greedy_test.py +2 -0
  83. cirq/contrib/routing/initialization_test.py +2 -0
  84. cirq/contrib/routing/router.py +4 -2
  85. cirq/contrib/routing/router_test.py +2 -0
  86. cirq/contrib/routing/swap_network_test.py +2 -0
  87. cirq/contrib/routing/utils_test.py +3 -0
  88. cirq/contrib/shuffle_circuits/shuffle_circuits_with_readout_benchmarking.py +4 -2
  89. cirq/contrib/shuffle_circuits/shuffle_circuits_with_readout_benchmarking_test.py +3 -0
  90. cirq/contrib/svg/svg_test.py +3 -0
  91. cirq/devices/device_test.py +3 -0
  92. cirq/devices/grid_device_metadata_test.py +3 -0
  93. cirq/interop/quirk/cells/parse_test.py +10 -10
  94. cirq/ops/pauli_string_phasor.py +1 -1
  95. cirq/testing/equals_tester_test.py +19 -17
  96. cirq/value/random_state_test.py +3 -3
  97. cirq/value/timestamp.py +4 -0
  98. cirq/value/timestamp_test.py +10 -10
  99. cirq/vis/density_matrix_test.py +17 -17
  100. cirq/work/collector_test.py +13 -10
  101. cirq/work/observable_measurement.py +14 -2
  102. cirq/work/observable_measurement_data.py +3 -3
  103. cirq/work/observable_measurement_test.py +43 -27
  104. cirq/work/observable_settings.py +2 -12
  105. cirq/work/observable_settings_test.py +7 -7
  106. cirq/work/pauli_sum_collector_test.py +7 -9
  107. cirq/work/sampler_test.py +25 -22
  108. {cirq_core-1.6.0.dev20250515174529.dist-info → cirq_core-1.6.0.dev20250516154249.dist-info}/METADATA +1 -1
  109. {cirq_core-1.6.0.dev20250515174529.dist-info → cirq_core-1.6.0.dev20250516154249.dist-info}/RECORD +112 -112
  110. {cirq_core-1.6.0.dev20250515174529.dist-info → cirq_core-1.6.0.dev20250516154249.dist-info}/WHEEL +0 -0
  111. {cirq_core-1.6.0.dev20250515174529.dist-info → cirq_core-1.6.0.dev20250516154249.dist-info}/licenses/LICENSE +0 -0
  112. {cirq_core-1.6.0.dev20250515174529.dist-info → cirq_core-1.6.0.dev20250516154249.dist-info}/top_level.txt +0 -0
cirq/_compat.py CHANGED
@@ -13,6 +13,9 @@
13
13
  # limitations under the License.
14
14
 
15
15
  """Workarounds for compatibility issues between versions and libraries."""
16
+
17
+ from __future__ import annotations
18
+
16
19
  import contextlib
17
20
  import contextvars
18
21
  import dataclasses
cirq/_doc.py CHANGED
@@ -13,6 +13,8 @@
13
13
  # limitations under the License.
14
14
  """Workaround for associating docstrings with public constants."""
15
15
 
16
+ from __future__ import annotations
17
+
16
18
  from typing import Any, Dict
17
19
 
18
20
  RECORDED_CONST_DOCS: Dict[int, str] = {}
cirq/_import.py CHANGED
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  import importlib
16
18
  import sys
17
19
  from contextlib import contextmanager
cirq/_import_test.py CHANGED
@@ -12,12 +12,14 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  from cirq import _import
16
18
 
17
19
 
18
- def test_lazy_loader():
20
+ def test_lazy_loader() -> None:
19
21
  linalg = _import.LazyLoader("linalg", globals(), "scipy.linalg")
20
- linalg.fun = 1
22
+ linalg.fun = 1 # type: ignore[attr-defined]
21
23
  assert linalg._module is None
22
24
  assert "linalg" not in linalg.__dict__
23
25
 
cirq/_version.py CHANGED
@@ -28,4 +28,4 @@ if sys.version_info < (3, 11, 0): # pragma: no cover
28
28
  'of cirq (e.g. "python -m pip install cirq==1.5.0")'
29
29
  )
30
30
 
31
- __version__ = "1.6.0.dev20250515174529"
31
+ __version__ = "1.6.0.dev20250516154249"
cirq/_version_test.py CHANGED
@@ -3,4 +3,4 @@ import cirq
3
3
 
4
4
 
5
5
  def test_version() -> None:
6
- assert cirq.__version__ == "1.6.0.dev20250515174529"
6
+ assert cirq.__version__ == "1.6.0.dev20250516154249"
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  import collections
16
18
  from typing import Dict, List, Optional, Tuple
17
19
 
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  import itertools
16
18
 
17
19
  import pytest
@@ -14,6 +14,8 @@
14
14
 
15
15
  """Exposes structured data about unicode/ascii box drawing characters."""
16
16
 
17
+ from __future__ import annotations
18
+
17
19
  from typing import List, NamedTuple, Optional
18
20
 
19
21
  _BoxDrawCharacterSet = NamedTuple(
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  from cirq.circuits._box_drawing_character_data import (
16
18
  BOLD_BOX_CHARS,
17
19
  box_draw_character,
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  from typing import Any, Generic, Iterable, Iterator, List, Optional, Set, Tuple, TypeVar
16
18
 
17
19
  TItem = TypeVar('TItem')
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  import pytest
16
18
 
17
19
  import cirq
@@ -11,6 +11,9 @@
11
11
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
+
15
+ from __future__ import annotations
16
+
14
17
  import unittest.mock as mock
15
18
  from typing import Optional
16
19
 
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  import itertools
16
18
  import os
17
19
  import time
@@ -16,6 +16,8 @@
16
16
  Behavior shared with Circuit is tested with parameters in circuit_test.py.
17
17
  """
18
18
 
19
+ from __future__ import annotations
20
+
19
21
  import pytest
20
22
  import sympy
21
23
 
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  import pickle
16
18
 
17
19
  import pytest
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  import numpy as np
16
18
  import pytest
17
19
  import sympy
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  from typing import List, Optional, Set
16
18
 
17
19
  import pytest
@@ -11,6 +11,9 @@
11
11
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
+
15
+ from __future__ import annotations
16
+
14
17
  import os
15
18
  import re
16
19
 
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  from unittest import mock
16
18
 
17
19
  import pytest
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  import itertools
16
18
 
17
19
  import pytest
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  import pytest
16
18
 
17
19
  import cirq
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  from itertools import combinations
16
18
  from string import ascii_lowercase
17
19
  from typing import Dict, Sequence, Tuple
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  from itertools import combinations, product
16
18
 
17
19
  import pytest
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  from string import ascii_lowercase as alphabet
16
18
 
17
19
  import pytest
@@ -11,6 +11,9 @@
11
11
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
+
15
+ from __future__ import annotations
16
+
14
17
  import cirq
15
18
  import cirq.contrib.acquaintance as cca
16
19
  import cirq.testing as ct
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  import random
16
18
 
17
19
  import pytest
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  import itertools
16
18
  import random
17
19
 
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  import cirq
16
18
  import cirq.contrib.acquaintance as cca
17
19
 
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  import itertools
16
18
 
17
19
  import pytest
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  import itertools
16
18
  import random
17
19
 
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  from typing import cast, Sequence, TYPE_CHECKING
16
18
 
17
19
  from cirq import devices, ops, protocols
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  import pytest
16
18
 
17
19
  import cirq
@@ -11,6 +11,9 @@
11
11
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
+
15
+ from __future__ import annotations
16
+
14
17
  import numpy as np
15
18
  import pytest
16
19
 
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  import itertools
16
18
  import random
17
19
 
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  import pytest
16
18
 
17
19
  import cirq
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  import random
16
18
 
17
19
  import pytest
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  from typing import Any, Dict, Hashable, Iterable, Mapping, Optional
16
18
 
17
19
  from cirq import devices, ops
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  import pytest
16
18
 
17
19
  import cirq
@@ -14,6 +14,8 @@
14
14
 
15
15
  """Tools for disabling validation in circuit construction."""
16
16
 
17
+ from __future__ import annotations
18
+
17
19
  import contextlib
18
20
 
19
21
 
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  import pytest
16
18
 
17
19
  import cirq
cirq/contrib/json.py CHANGED
@@ -1,6 +1,8 @@
1
1
  # pylint: disable=wrong-or-nonexistent-copyright-notice
2
2
  """Functions for JSON serialization and de-serialization for classes in Contrib."""
3
3
 
4
+ from __future__ import annotations
5
+
4
6
  from cirq.protocols.json_serialization import DEFAULT_RESOLVERS
5
7
 
6
8
 
cirq/contrib/json_test.py CHANGED
@@ -1,4 +1,7 @@
1
1
  # pylint: disable=wrong-or-nonexistent-copyright-notice
2
+
3
+ from __future__ import annotations
4
+
2
5
  import cirq
3
6
  from cirq.contrib.acquaintance import SwapPermutationGate
4
7
  from cirq.contrib.bayesian_network import BayesianNetworkGate
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  import cirq
16
18
  import cirq.contrib.noise_models as ccn
17
19
  from cirq import ops
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  from typing import cast, Tuple
16
18
 
17
19
  from cirq import circuits, ops, protocols, transformers
@@ -13,6 +13,8 @@
13
13
  # limitations under the License.
14
14
 
15
15
 
16
+ from __future__ import annotations
17
+
16
18
  import cirq
17
19
  from cirq.contrib.paulistring import clifford_optimized_circuit, CliffordTargetGateset
18
20
 
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  import pytest
16
18
  import sympy
17
19
 
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  from typing import Callable
16
18
 
17
19
  from cirq import circuits, ops, transformers
@@ -13,6 +13,8 @@
13
13
  # limitations under the License.
14
14
 
15
15
 
16
+ from __future__ import annotations
17
+
16
18
  import cirq
17
19
  from cirq.contrib.paulistring import optimized_circuit
18
20
 
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  from typing import cast
16
18
 
17
19
  from cirq import circuits, ops, protocols
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  import cirq
16
18
  from cirq.contrib.paulistring import convert_and_separate_circuit, pauli_string_dag_from_circuit
17
19
 
@@ -14,15 +14,19 @@
14
14
 
15
15
  from __future__ import annotations
16
16
 
17
+ from typing import TYPE_CHECKING
18
+
17
19
  import networkx
18
20
 
19
21
  from cirq import circuits, linalg
20
- from cirq.contrib import circuitdag
21
22
  from cirq.contrib.paulistring.pauli_string_dag import pauli_string_dag_from_circuit
22
23
  from cirq.contrib.paulistring.recombine import move_pauli_strings_into_circuit
23
24
  from cirq.contrib.paulistring.separate import convert_and_separate_circuit
24
25
  from cirq.ops import PauliStringGateOperation
25
26
 
27
+ if TYPE_CHECKING:
28
+ from cirq.contrib import circuitdag
29
+
26
30
 
27
31
  def pauli_string_optimized_circuit(
28
32
  circuit: circuits.Circuit, move_cliffords: bool = True, atol: float = 1e-8
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  import cirq
16
18
  from cirq.contrib.paulistring import CliffordTargetGateset, pauli_string_optimized_circuit
17
19
 
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  from typing import Any, Callable, cast, Iterable, List, Sequence, Tuple, Union
16
18
 
17
19
  from cirq import circuits, ops, protocols
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  import cirq
16
18
  from cirq.contrib.paulistring import (
17
19
  convert_and_separate_circuit,
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  from typing import Iterator, Tuple
16
18
 
17
19
  from cirq import circuits, ops, transformers
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  import cirq
16
18
  from cirq.contrib.paulistring import convert_and_separate_circuit
17
19
 
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  import re
16
18
  from typing import Optional
17
19
 
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  import pytest
16
18
 
17
19
  from cirq.contrib.qasm_import import QasmException
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  import dataclasses
16
18
  import functools
17
19
  import operator
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
  import re
16
18
  import textwrap
17
19
  from typing import Callable
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from __future__ import annotations
16
+
15
17
 
16
18
  class QasmException(Exception):
17
19
  def __init__(self, message: str) -> None: