cirq-core 1.6.0.dev20250515172309__py3-none-any.whl → 1.6.0.dev20250516060316__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 (98) hide show
  1. cirq/_compat.py +4 -1
  2. cirq/_doc.py +2 -0
  3. cirq/_import.py +2 -0
  4. cirq/_import_test.py +2 -0
  5. cirq/_version.py +6 -6
  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/ops/pauli_string_phasor.py +1 -1
  94. {cirq_core-1.6.0.dev20250515172309.dist-info → cirq_core-1.6.0.dev20250516060316.dist-info}/METADATA +2 -3
  95. {cirq_core-1.6.0.dev20250515172309.dist-info → cirq_core-1.6.0.dev20250516060316.dist-info}/RECORD +98 -98
  96. {cirq_core-1.6.0.dev20250515172309.dist-info → cirq_core-1.6.0.dev20250516060316.dist-info}/WHEEL +0 -0
  97. {cirq_core-1.6.0.dev20250515172309.dist-info → cirq_core-1.6.0.dev20250516060316.dist-info}/licenses/LICENSE +0 -0
  98. {cirq_core-1.6.0.dev20250515172309.dist-info → cirq_core-1.6.0.dev20250516060316.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
@@ -534,7 +537,7 @@ class DeprecatedModuleLoader(importlib.abc.Loader):
534
537
  sys.modules[self.old_module_name] = sys.modules[self.new_module_name]
535
538
  return sys.modules[self.old_module_name]
536
539
  method(self.new_module_name)
537
- # https://docs.python.org/3.5/library/importlib.html#importlib.abc.Loader.load_module
540
+ # https://docs.python.org/3.11/library/importlib.html#importlib.abc.Loader.load_module
538
541
  assert self.new_module_name in sys.modules, (
539
542
  f"Wrapped loader {self.loader} was "
540
543
  f"expected to insert "
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,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 import _import
16
18
 
17
19
 
cirq/_version.py CHANGED
@@ -13,19 +13,19 @@
13
13
  # limitations under the License.
14
14
 
15
15
  """Define version number here, read it from setup.py automatically,
16
- and warn users that the latest version of cirq uses python 3.10+"""
16
+ and warn users that the latest version of cirq uses python 3.11+"""
17
17
 
18
18
  import sys
19
19
 
20
- if sys.version_info < (3, 10, 0): # pragma: no cover
20
+ if sys.version_info < (3, 11, 0): # pragma: no cover
21
21
  raise SystemError(
22
- "You installed the latest version of cirq but aren't on python 3.10+.\n"
22
+ "You installed the latest version of cirq but aren't on python 3.11+.\n"
23
23
  'To fix this error, you need to either:\n'
24
24
  '\n'
25
- 'A) Update to python 3.10 or later.\n'
25
+ 'A) Update to python 3.11 or later.\n'
26
26
  '- OR -\n'
27
27
  'B) Explicitly install an older deprecated-but-compatible version '
28
- 'of cirq (e.g. "python -m pip install cirq==1.1.*")'
28
+ 'of cirq (e.g. "python -m pip install cirq==1.5.0")'
29
29
  )
30
30
 
31
- __version__ = "1.6.0.dev20250515172309"
31
+ __version__ = "1.6.0.dev20250516060316"
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.dev20250515172309"
6
+ assert cirq.__version__ == "1.6.0.dev20250516060316"
@@ -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