cirq-core 1.5.0.dev20241111211633__py3-none-any.whl → 1.5.0.dev20241114152643__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 (47) hide show
  1. cirq/__init__.py +0 -1
  2. cirq/_version.py +1 -1
  3. cirq/_version_test.py +1 -1
  4. cirq/circuits/circuit.py +1 -1
  5. cirq/circuits/frozen_circuit.py +1 -1
  6. cirq/circuits/moment.py +2 -1
  7. cirq/contrib/acquaintance/permutation.py +1 -1
  8. cirq/contrib/paulistring/clifford_target_gateset.py +2 -1
  9. cirq/ops/clifford_gate.py +3 -3
  10. cirq/ops/common_gates.py +1 -3
  11. cirq/ops/controlled_gate.py +2 -2
  12. cirq/ops/controlled_gate_test.py +1 -1
  13. cirq/ops/controlled_operation.py +1 -1
  14. cirq/ops/controlled_operation_test.py +1 -1
  15. cirq/ops/dense_pauli_string.py +1 -1
  16. cirq/ops/eigen_gate.py +1 -1
  17. cirq/ops/gate_operation.py +1 -1
  18. cirq/ops/global_phase_op.py +1 -1
  19. cirq/ops/identity.py +1 -1
  20. cirq/ops/parallel_gate.py +1 -2
  21. cirq/ops/pauli_gates.py +1 -1
  22. cirq/ops/pauli_string.py +1 -1
  23. cirq/ops/phased_x_gate.py +4 -2
  24. cirq/ops/raw_types.py +2 -2
  25. cirq/protocols/act_on_protocol.py +1 -1
  26. cirq/protocols/apply_channel_protocol.py +1 -1
  27. cirq/protocols/apply_mixture_protocol.py +1 -2
  28. cirq/protocols/apply_unitary_protocol.py +1 -1
  29. cirq/protocols/commutes_protocol.py +1 -1
  30. cirq/protocols/control_key_protocol.py +1 -1
  31. cirq/protocols/decompose_protocol.py +1 -1
  32. cirq/protocols/json_serialization.py +1 -1
  33. cirq/protocols/kraus_protocol.py +1 -3
  34. cirq/protocols/measurement_key_protocol.py +1 -1
  35. cirq/protocols/mixture_protocol.py +2 -1
  36. cirq/protocols/qasm.py +1 -1
  37. cirq/protocols/qid_shape_protocol.py +1 -1
  38. cirq/protocols/unitary_protocol.py +1 -1
  39. cirq/sim/clifford/stabilizer_simulation_state.py +1 -1
  40. cirq/sim/simulation_state_base.py +1 -1
  41. cirq/testing/consistent_protocols_test.py +1 -1
  42. {cirq_core-1.5.0.dev20241111211633.dist-info → cirq_core-1.5.0.dev20241114152643.dist-info}/METADATA +1 -1
  43. {cirq_core-1.5.0.dev20241111211633.dist-info → cirq_core-1.5.0.dev20241114152643.dist-info}/RECORD +46 -47
  44. cirq/type_workarounds.py +0 -23
  45. {cirq_core-1.5.0.dev20241111211633.dist-info → cirq_core-1.5.0.dev20241114152643.dist-info}/LICENSE +0 -0
  46. {cirq_core-1.5.0.dev20241111211633.dist-info → cirq_core-1.5.0.dev20241114152643.dist-info}/WHEEL +0 -0
  47. {cirq_core-1.5.0.dev20241111211633.dist-info → cirq_core-1.5.0.dev20241114152643.dist-info}/top_level.txt +0 -0
cirq/__init__.py CHANGED
@@ -26,7 +26,6 @@ from cirq import (
26
26
  # Low level
27
27
  _version,
28
28
  _doc,
29
- type_workarounds,
30
29
  )
31
30
 
32
31
  with _import.delay_import('cirq.protocols'):
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.dev20241111211633"
31
+ __version__ = "1.5.0.dev20241114152643"
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.dev20241111211633"
6
+ assert cirq.__version__ == "1.5.0.dev20241114152643"
cirq/circuits/circuit.py CHANGED
@@ -25,6 +25,7 @@ import html
25
25
  import itertools
26
26
  import math
27
27
  from collections import defaultdict
28
+ from types import NotImplementedType
28
29
  from typing import (
29
30
  AbstractSet,
30
31
  Any,
@@ -62,7 +63,6 @@ from cirq.circuits.moment import Moment
62
63
  from cirq.circuits.qasm_output import QasmOutput
63
64
  from cirq.circuits.text_diagram_drawer import TextDiagramDrawer
64
65
  from cirq.protocols import circuit_diagram_info_protocol
65
- from cirq.type_workarounds import NotImplementedType
66
66
 
67
67
  if TYPE_CHECKING:
68
68
  import cirq
@@ -13,6 +13,7 @@
13
13
  # limitations under the License.
14
14
  """An immutable version of the Circuit data structure."""
15
15
  from functools import cached_property
16
+ from types import NotImplementedType
16
17
  from typing import (
17
18
  AbstractSet,
18
19
  FrozenSet,
@@ -30,7 +31,6 @@ import numpy as np
30
31
  from cirq import protocols, _compat
31
32
  from cirq.circuits import AbstractCircuit, Alignment, Circuit
32
33
  from cirq.circuits.insert_strategy import InsertStrategy
33
- from cirq.type_workarounds import NotImplementedType
34
34
 
35
35
  if TYPE_CHECKING:
36
36
  import cirq
cirq/circuits/moment.py CHANGED
@@ -15,6 +15,7 @@
15
15
  """A simplified time-slice of operations within a sequenced circuit."""
16
16
 
17
17
  import itertools
18
+ from types import NotImplementedType
18
19
  from typing import (
19
20
  AbstractSet,
20
21
  Any,
@@ -33,6 +34,7 @@ from typing import (
33
34
  TYPE_CHECKING,
34
35
  Union,
35
36
  )
37
+
36
38
  from typing_extensions import Self
37
39
 
38
40
  import numpy as np
@@ -41,7 +43,6 @@ from cirq import protocols, ops, qis, _compat
41
43
  from cirq._import import LazyLoader
42
44
  from cirq.ops import raw_types, op_tree
43
45
  from cirq.protocols import circuit_diagram_info_protocol
44
- from cirq.type_workarounds import NotImplementedType
45
46
 
46
47
  if TYPE_CHECKING:
47
48
  import cirq
@@ -13,6 +13,7 @@
13
13
  # limitations under the License.
14
14
 
15
15
  import abc
16
+ from types import NotImplementedType
16
17
  from typing import (
17
18
  Any,
18
19
  cast,
@@ -28,7 +29,6 @@ from typing import (
28
29
  )
29
30
 
30
31
  from cirq import circuits, ops, protocols, transformers, value
31
- from cirq.type_workarounds import NotImplementedType
32
32
 
33
33
  if TYPE_CHECKING:
34
34
  import cirq
@@ -12,12 +12,13 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from types import NotImplementedType
15
16
  from typing import List, Union, Type, cast, TYPE_CHECKING
16
17
  from enum import Enum
18
+
17
19
  import numpy as np
18
20
 
19
21
  from cirq import ops, transformers, protocols, linalg
20
- from cirq.type_workarounds import NotImplementedType
21
22
 
22
23
  if TYPE_CHECKING:
23
24
  import cirq
cirq/ops/clifford_gate.py CHANGED
@@ -12,10 +12,11 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- from typing import Any, Dict, List, Optional, Sequence, Tuple, TYPE_CHECKING, Union
16
-
17
15
  import functools
18
16
  from dataclasses import dataclass
17
+ from types import NotImplementedType
18
+ from typing import Any, Dict, List, Optional, Sequence, Tuple, TYPE_CHECKING, Union
19
+
19
20
  import numpy as np
20
21
 
21
22
  from cirq import protocols, value, linalg, qis
@@ -23,7 +24,6 @@ from cirq._import import LazyLoader
23
24
  from cirq._compat import cached_method
24
25
  from cirq.ops import common_gates, named_qubit, raw_types, pauli_gates, phased_x_z_gate
25
26
  from cirq.ops.pauli_gates import Pauli
26
- from cirq.type_workarounds import NotImplementedType
27
27
 
28
28
  if TYPE_CHECKING:
29
29
  import cirq
cirq/ops/common_gates.py CHANGED
@@ -25,6 +25,7 @@ Each of these are implemented as EigenGates, which means that they can be
25
25
  raised to a power (i.e. cirq.H**0.5). See the definition in EigenGate.
26
26
  """
27
27
 
28
+ from types import NotImplementedType
28
29
  from typing import (
29
30
  Any,
30
31
  cast,
@@ -46,9 +47,6 @@ from cirq import protocols, value
46
47
  from cirq._compat import proper_repr
47
48
  from cirq._doc import document
48
49
  from cirq.ops import controlled_gate, eigen_gate, gate_features, raw_types, control_values as cv
49
-
50
- from cirq.type_workarounds import NotImplementedType
51
-
52
50
  from cirq.ops.swap_gates import ISWAP, SWAP, ISwapPowGate, SwapPowGate
53
51
  from cirq.ops.measurement_gate import MeasurementGate
54
52
 
@@ -12,6 +12,7 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from types import NotImplementedType
15
16
  from typing import (
16
17
  AbstractSet,
17
18
  Any,
@@ -35,7 +36,6 @@ from cirq.ops import (
35
36
  matrix_gates,
36
37
  control_values as cv,
37
38
  )
38
- from cirq.type_workarounds import NotImplementedType
39
39
 
40
40
  if TYPE_CHECKING:
41
41
  import cirq
@@ -255,7 +255,7 @@ class ControlledGate(raw_types.Gate):
255
255
  def _has_mixture_(self) -> bool:
256
256
  return protocols.has_mixture(self.sub_gate)
257
257
 
258
- def _mixture_(self) -> Union[np.ndarray, NotImplementedType]:
258
+ def _mixture_(self) -> Union[Sequence[tuple[float, np.ndarray]], NotImplementedType]:
259
259
  qubits = line_qubit.LineQid.for_gate(self)
260
260
  op = self.sub_gate.on(*qubits[self.num_controls() :])
261
261
  c_op = cop.ControlledOperation(qubits[: self.num_controls()], op, self.control_values)
@@ -12,6 +12,7 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from types import NotImplementedType
15
16
  from typing import Union, Tuple, cast
16
17
 
17
18
  import numpy as np
@@ -19,7 +20,6 @@ import pytest
19
20
  import sympy
20
21
 
21
22
  import cirq
22
- from cirq.type_workarounds import NotImplementedType
23
23
 
24
24
 
25
25
  class GateUsingWorkspaceForApplyUnitary(cirq.testing.SingleQubitGate):
@@ -12,6 +12,7 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from types import NotImplementedType
15
16
  from typing import (
16
17
  AbstractSet,
17
18
  Any,
@@ -38,7 +39,6 @@ from cirq.ops import (
38
39
  raw_types,
39
40
  control_values as cv,
40
41
  )
41
- from cirq.type_workarounds import NotImplementedType
42
42
 
43
43
  if TYPE_CHECKING:
44
44
  import cirq
@@ -14,6 +14,7 @@
14
14
 
15
15
  import itertools
16
16
  import re
17
+ from types import NotImplementedType
17
18
  from typing import cast, Tuple, Union
18
19
 
19
20
  import numpy as np
@@ -22,7 +23,6 @@ import sympy
22
23
 
23
24
  import cirq
24
25
  from cirq import protocols
25
- from cirq.type_workarounds import NotImplementedType
26
26
 
27
27
 
28
28
  class GateUsingWorkspaceForApplyUnitary(cirq.testing.SingleQubitGate):
@@ -14,6 +14,7 @@
14
14
 
15
15
  import abc
16
16
  import numbers
17
+ from types import NotImplementedType
17
18
  from typing import (
18
19
  AbstractSet,
19
20
  Any,
@@ -38,7 +39,6 @@ import sympy
38
39
  from cirq import protocols, linalg, value
39
40
  from cirq._compat import proper_repr
40
41
  from cirq.ops import raw_types, identity, pauli_gates, global_phase_op, pauli_string
41
- from cirq.type_workarounds import NotImplementedType
42
42
 
43
43
  if TYPE_CHECKING:
44
44
  import cirq
cirq/ops/eigen_gate.py CHANGED
@@ -15,6 +15,7 @@ import abc
15
15
  import fractions
16
16
  import math
17
17
  import numbers
18
+ from types import NotImplementedType
18
19
  from typing import (
19
20
  AbstractSet,
20
21
  Any,
@@ -35,7 +36,6 @@ import sympy
35
36
  from cirq import value, protocols
36
37
  from cirq.linalg import tolerance
37
38
  from cirq.ops import raw_types
38
- from cirq.type_workarounds import NotImplementedType
39
39
 
40
40
  if TYPE_CHECKING:
41
41
  import cirq
@@ -16,6 +16,7 @@
16
16
 
17
17
  import re
18
18
  import warnings
19
+ from types import NotImplementedType
19
20
  from typing import (
20
21
  AbstractSet,
21
22
  Any,
@@ -38,7 +39,6 @@ import numpy as np
38
39
 
39
40
  from cirq import ops, protocols, value
40
41
  from cirq.ops import raw_types, gate_features, control_values as cv
41
- from cirq.type_workarounds import NotImplementedType
42
42
 
43
43
  if TYPE_CHECKING:
44
44
  import cirq
@@ -13,6 +13,7 @@
13
13
  # limitations under the License.
14
14
  """A no-qubit global phase operation."""
15
15
 
16
+ from types import NotImplementedType
16
17
  from typing import AbstractSet, Any, cast, Dict, Sequence, Tuple, Union, Optional, Collection
17
18
 
18
19
  import numpy as np
@@ -21,7 +22,6 @@ import sympy
21
22
  import cirq
22
23
  from cirq import value, protocols
23
24
  from cirq.ops import raw_types, controlled_gate, control_values as cv
24
- from cirq.type_workarounds import NotImplementedType
25
25
 
26
26
 
27
27
  @value.value_equality(approximate=True)
cirq/ops/identity.py CHANGED
@@ -13,6 +13,7 @@
13
13
  # limitations under the License.
14
14
  """IdentityGate."""
15
15
 
16
+ from types import NotImplementedType
16
17
  from typing import Any, Dict, Optional, Tuple, TYPE_CHECKING, Sequence, Union
17
18
 
18
19
  import numpy as np
@@ -20,7 +21,6 @@ import sympy
20
21
 
21
22
  from cirq import protocols, value
22
23
  from cirq._doc import document
23
- from cirq.type_workarounds import NotImplementedType
24
24
  from cirq.ops import raw_types
25
25
 
26
26
  if TYPE_CHECKING:
cirq/ops/parallel_gate.py CHANGED
@@ -12,14 +12,13 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
-
15
+ from types import NotImplementedType
16
16
  from typing import AbstractSet, Union, Any, Optional, Tuple, TYPE_CHECKING, Dict
17
17
 
18
18
  import numpy as np
19
19
 
20
20
  from cirq import protocols, value
21
21
  from cirq.ops import raw_types
22
- from cirq.type_workarounds import NotImplementedType
23
22
 
24
23
  if TYPE_CHECKING:
25
24
  import cirq
cirq/ops/pauli_gates.py CHANGED
@@ -12,12 +12,12 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
  import abc
15
+ from types import NotImplementedType
15
16
  from typing import Any, cast, Tuple, TYPE_CHECKING, Union, Dict
16
17
 
17
18
  from cirq._doc import document
18
19
  from cirq._import import LazyLoader
19
20
  from cirq.ops import common_gates, raw_types, identity
20
- from cirq.type_workarounds import NotImplementedType
21
21
 
22
22
 
23
23
  if TYPE_CHECKING:
cirq/ops/pauli_string.py CHANGED
@@ -14,6 +14,7 @@
14
14
  import cmath
15
15
  import math
16
16
  import numbers
17
+ from types import NotImplementedType
17
18
  from typing import (
18
19
  Any,
19
20
  cast,
@@ -56,7 +57,6 @@ from cirq.ops import (
56
57
  pauli_interaction_gate,
57
58
  raw_types,
58
59
  )
59
- from cirq.type_workarounds import NotImplementedType
60
60
 
61
61
  if TYPE_CHECKING:
62
62
  import cirq
cirq/ops/phased_x_gate.py CHANGED
@@ -12,10 +12,13 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
  """An `XPowGate` conjugated by `ZPowGate`s."""
15
+
16
+ from types import NotImplementedType
15
17
  from typing import AbstractSet, Any, cast, Dict, Optional, Sequence, Tuple, Union
16
18
 
17
19
  import math
18
20
  import numbers
21
+
19
22
  import numpy as np
20
23
  import sympy
21
24
 
@@ -23,7 +26,6 @@ import cirq
23
26
  from cirq import value, protocols
24
27
  from cirq._compat import proper_repr
25
28
  from cirq.ops import common_gates, raw_types
26
- from cirq.type_workarounds import NotImplementedType
27
29
 
28
30
 
29
31
  @value.value_equality(manual_cls=True, approximate=True)
@@ -130,7 +132,7 @@ class PhasedXPowGate(raw_types.Gate):
130
132
  def _has_unitary_(self):
131
133
  return not self._is_parameterized_()
132
134
 
133
- def _unitary_(self) -> Union[np.ndarray, NotImplementedType]:
135
+ def _unitary_(self) -> Optional[Union[np.ndarray, NotImplementedType]]:
134
136
  """See `cirq.SupportsUnitary`."""
135
137
  if self._is_parameterized_():
136
138
  return None
cirq/ops/raw_types.py CHANGED
@@ -16,6 +16,7 @@
16
16
 
17
17
  import abc
18
18
  import functools
19
+ from types import NotImplementedType
19
20
  from typing import (
20
21
  cast,
21
22
  AbstractSet,
@@ -42,7 +43,6 @@ import sympy
42
43
  from cirq import protocols, value
43
44
  from cirq._import import LazyLoader
44
45
  from cirq._compat import __cirq_debug__, _method_cache_name, cached_method
45
- from cirq.type_workarounds import NotImplementedType
46
46
  from cirq.ops import control_values as cv
47
47
 
48
48
  # Lazy imports to break circular dependencies.
@@ -879,7 +879,7 @@ class TaggedOperation(Operation):
879
879
  def _has_kraus_(self) -> bool:
880
880
  return protocols.has_kraus(self.sub_operation)
881
881
 
882
- def _kraus_(self) -> Union[Tuple[np.ndarray], NotImplementedType]:
882
+ def _kraus_(self) -> Union[Tuple[np.ndarray, ...], NotImplementedType]:
883
883
  return protocols.kraus(self.sub_operation, NotImplemented)
884
884
 
885
885
  @cached_method
@@ -12,13 +12,13 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from types import NotImplementedType
15
16
  from typing import Any, Optional, Sequence, TYPE_CHECKING, Union
16
17
 
17
18
  from typing_extensions import Protocol
18
19
 
19
20
  from cirq import ops
20
21
  from cirq._doc import doc_private
21
- from cirq.type_workarounds import NotImplementedType
22
22
 
23
23
  if TYPE_CHECKING:
24
24
  import cirq
@@ -14,6 +14,7 @@
14
14
 
15
15
  """A protocol for implementing high performance channel evolutions."""
16
16
 
17
+ from types import NotImplementedType
17
18
  from typing import Any, Iterable, Optional, Sequence, TypeVar, Tuple, Union
18
19
 
19
20
  import numpy as np
@@ -24,7 +25,6 @@ from cirq._doc import doc_private
24
25
  from cirq.protocols.apply_unitary_protocol import apply_unitary, ApplyUnitaryArgs
25
26
  from cirq.protocols.kraus_protocol import kraus
26
27
  from cirq.protocols import qid_shape_protocol
27
- from cirq.type_workarounds import NotImplementedType
28
28
 
29
29
  # This is a special indicator value used by the apply_channel method
30
30
  # to determine whether or not the caller provided a 'default' argument. It must
@@ -14,6 +14,7 @@
14
14
 
15
15
  """A protocol for implementing high performance mixture evolutions."""
16
16
 
17
+ from types import NotImplementedType
17
18
  from typing import Any, cast, Iterable, Optional, Tuple, TypeVar, Union
18
19
 
19
20
  import numpy as np
@@ -22,10 +23,8 @@ from typing_extensions import Protocol
22
23
  from cirq import linalg
23
24
  from cirq._doc import doc_private
24
25
  from cirq.protocols.apply_unitary_protocol import apply_unitary, ApplyUnitaryArgs
25
-
26
26
  from cirq.protocols.mixture_protocol import mixture
27
27
  from cirq.protocols import qid_shape_protocol
28
- from cirq.type_workarounds import NotImplementedType
29
28
 
30
29
  # This is a special indicator value used by the apply_mixture method
31
30
  # to determine whether or not the caller provided a 'default' argument. It must
@@ -15,6 +15,7 @@
15
15
  """A protocol for implementing high performance unitary left-multiplies."""
16
16
 
17
17
  import warnings
18
+ from types import NotImplementedType
18
19
  from typing import Any, cast, Iterable, Optional, Sequence, Tuple, TYPE_CHECKING, TypeVar, Union
19
20
 
20
21
  import numpy as np
@@ -24,7 +25,6 @@ from cirq import linalg, qis
24
25
  from cirq._doc import doc_private
25
26
  from cirq.protocols import qid_shape_protocol
26
27
  from cirq.protocols.decompose_protocol import _try_decompose_into_operations_and_qubits
27
- from cirq.type_workarounds import NotImplementedType
28
28
 
29
29
  if TYPE_CHECKING:
30
30
  import cirq
@@ -13,6 +13,7 @@
13
13
  # limitations under the License.
14
14
  """Protocol for determining commutativity."""
15
15
 
16
+ from types import NotImplementedType
16
17
  from typing import Any, overload, TypeVar, Union
17
18
 
18
19
  import numpy as np
@@ -20,7 +21,6 @@ from typing_extensions import Protocol
20
21
 
21
22
  from cirq import linalg
22
23
  from cirq._doc import doc_private
23
- from cirq.type_workarounds import NotImplementedType
24
24
 
25
25
  # This is a special indicator value used by the unitary method to determine
26
26
  # whether or not the caller provided a 'default' argument.
@@ -13,13 +13,13 @@
13
13
  # limitations under the License.
14
14
  """Protocol for object that have control keys."""
15
15
 
16
+ from types import NotImplementedType
16
17
  from typing import Any, FrozenSet, TYPE_CHECKING, Union
17
18
 
18
19
  from typing_extensions import Protocol
19
20
 
20
21
  from cirq._doc import doc_private
21
22
  from cirq.protocols import measurement_key_protocol
22
- from cirq.type_workarounds import NotImplementedType
23
23
 
24
24
  if TYPE_CHECKING:
25
25
  import cirq
@@ -15,6 +15,7 @@ import itertools
15
15
  import dataclasses
16
16
  import inspect
17
17
  from collections import defaultdict
18
+ from types import NotImplementedType
18
19
  from typing import (
19
20
  TYPE_CHECKING,
20
21
  Any,
@@ -37,7 +38,6 @@ from typing_extensions import Protocol
37
38
  from cirq import devices, ops
38
39
  from cirq._doc import doc_private
39
40
  from cirq.protocols import qid_shape_protocol
40
- from cirq.type_workarounds import NotImplementedType
41
41
 
42
42
  if TYPE_CHECKING:
43
43
  import cirq
@@ -17,6 +17,7 @@ import gzip
17
17
  import json
18
18
  import numbers
19
19
  import pathlib
20
+ from types import NotImplementedType
20
21
  from typing import (
21
22
  Any,
22
23
  Callable,
@@ -39,7 +40,6 @@ import sympy
39
40
  from typing_extensions import Protocol
40
41
 
41
42
  from cirq._doc import doc_private
42
- from cirq.type_workarounds import NotImplementedType
43
43
 
44
44
  ObjectFactory = Union[Type, Callable[..., Any]]
45
45
 
@@ -14,6 +14,7 @@
14
14
 
15
15
  """Protocol and methods for obtaining Kraus representation of quantum channels."""
16
16
 
17
+ from types import NotImplementedType
17
18
  from typing import Any, Sequence, Tuple, TypeVar, Union
18
19
  import warnings
19
20
 
@@ -25,9 +26,6 @@ from cirq.protocols.decompose_protocol import _try_decompose_into_operations_and
25
26
  from cirq.protocols.mixture_protocol import has_mixture
26
27
 
27
28
 
28
- from cirq.type_workarounds import NotImplementedType
29
-
30
-
31
29
  # This is a special indicator value used by the channel method to determine
32
30
  # whether or not the caller provided a 'default' argument. It must be of type
33
31
  # Sequence[np.ndarray] to ensure the method has the correct type signature in
@@ -13,13 +13,13 @@
13
13
  # limitations under the License.
14
14
  """Protocol for object that have measurement keys."""
15
15
 
16
+ from types import NotImplementedType
16
17
  from typing import Any, FrozenSet, Mapping, Optional, Tuple, TYPE_CHECKING, Union
17
18
 
18
19
  from typing_extensions import Protocol
19
20
 
20
21
  from cirq import value
21
22
  from cirq._doc import doc_private
22
- from cirq.type_workarounds import NotImplementedType
23
23
 
24
24
  if TYPE_CHECKING:
25
25
  import cirq
@@ -13,6 +13,8 @@
13
13
  # limitations under the License.
14
14
 
15
15
  """Protocol for objects that are mixtures (probabilistic combinations)."""
16
+
17
+ from types import NotImplementedType
16
18
  from typing import Any, Sequence, Tuple, Union
17
19
 
18
20
  import numpy as np
@@ -21,7 +23,6 @@ from typing_extensions import Protocol
21
23
  from cirq._doc import doc_private
22
24
  from cirq.protocols.decompose_protocol import _try_decompose_into_operations_and_qubits
23
25
  from cirq.protocols.has_unitary_protocol import has_unitary
24
- from cirq.type_workarounds import NotImplementedType
25
26
 
26
27
  # This is a special indicator value used by the inverse method to determine
27
28
  # whether or not the caller provided a 'default' argument.
cirq/protocols/qasm.py CHANGED
@@ -13,13 +13,13 @@
13
13
  # limitations under the License.
14
14
 
15
15
  import string
16
+ from types import NotImplementedType
16
17
  from typing import TYPE_CHECKING, Union, Any, Tuple, TypeVar, Optional, Dict, Iterable
17
18
 
18
19
  from typing_extensions import Protocol
19
20
 
20
21
  from cirq import ops
21
22
  from cirq._doc import doc_private
22
- from cirq.type_workarounds import NotImplementedType
23
23
 
24
24
  if TYPE_CHECKING:
25
25
  import cirq
@@ -12,13 +12,13 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from types import NotImplementedType
15
16
  from typing import Any, Sequence, Tuple, TypeVar, Union
16
17
 
17
18
  from typing_extensions import Protocol
18
19
 
19
20
  from cirq import ops
20
21
  from cirq._doc import document, doc_private
21
- from cirq.type_workarounds import NotImplementedType
22
22
 
23
23
  # This is a special indicator value used by the methods to determine whether or
24
24
  # not the caller provided a 'default' argument. It must be of type
@@ -12,6 +12,7 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from types import NotImplementedType
15
16
  from typing import Any, TypeVar, Union, Optional
16
17
 
17
18
  import numpy as np
@@ -21,7 +22,6 @@ from cirq._doc import doc_private
21
22
  from cirq.protocols import qid_shape_protocol
22
23
  from cirq.protocols.apply_unitary_protocol import ApplyUnitaryArgs, apply_unitaries
23
24
  from cirq.protocols.decompose_protocol import _try_decompose_into_operations_and_qubits
24
- from cirq.type_workarounds import NotImplementedType
25
25
 
26
26
  # This is a special indicator value used by the unitary method to determine
27
27
  # whether or not the caller provided a 'default' argument. It must be of type
@@ -13,6 +13,7 @@
13
13
  # limitations under the License.
14
14
 
15
15
  import abc
16
+ from types import NotImplementedType
16
17
  from typing import Any, cast, Generic, Optional, Sequence, TYPE_CHECKING, TypeVar, Union
17
18
 
18
19
  import numpy as np
@@ -23,7 +24,6 @@ from cirq.ops import common_gates, global_phase_op, matrix_gates, swap_gates
23
24
  from cirq.ops.clifford_gate import SingleQubitCliffordGate
24
25
  from cirq.protocols import has_unitary, num_qubits, unitary
25
26
  from cirq.sim.simulation_state import SimulationState
26
- from cirq.type_workarounds import NotImplementedType
27
27
 
28
28
  if TYPE_CHECKING:
29
29
  import cirq
@@ -13,6 +13,7 @@
13
13
  # limitations under the License.
14
14
  """An interface for quantum states as targets for operations."""
15
15
  import abc
16
+ from types import NotImplementedType
16
17
  from typing import (
17
18
  Any,
18
19
  Dict,
@@ -32,7 +33,6 @@ from typing_extensions import Self
32
33
  import numpy as np
33
34
 
34
35
  from cirq import protocols, value
35
- from cirq.type_workarounds import NotImplementedType
36
36
 
37
37
  if TYPE_CHECKING:
38
38
  import cirq
@@ -12,6 +12,7 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ from types import NotImplementedType
15
16
  from typing import AbstractSet, Sequence, Union, List, Tuple
16
17
 
17
18
  import pytest
@@ -21,7 +22,6 @@ import sympy
21
22
 
22
23
  import cirq
23
24
  from cirq._compat import proper_repr
24
- from cirq.type_workarounds import NotImplementedType
25
25
  import cirq.testing.consistent_controlled_gate_op_test as controlled_gate_op_test
26
26
 
27
27
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cirq-core
3
- Version: 1.5.0.dev20241111211633
3
+ Version: 1.5.0.dev20241114152643
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
@@ -1,15 +1,14 @@
1
- cirq/__init__.py,sha256=Mb0NBH9rGcJCnEBoLapnbgJ5YHLCHNDBgPhHQcqWMF0,28084
1
+ cirq/__init__.py,sha256=xi-1fue3KEYu9kIQauVX0XNR6gvoBkz_MoZGENXfMpc,28062
2
2
  cirq/_compat.py,sha256=wl0Z7OYLpt07Vjts5l82jWjZE3WTy3uMHXaHwLwZKuo,29406
3
3
  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=Fq1LsliZq4JyX7uM3Ho-fy3EpG4hd4ObOQtGJJsbST4,1206
8
- cirq/_version_test.py,sha256=-zKPPvSjSOK1UCd9KZWdiQO7m8Num6OFcmq5Z3yKvQg,147
7
+ cirq/_version.py,sha256=8zrPIJnoPcQ1_rGQ1YpZJ_AhxUALZcJHxjP01z0abtg,1206
8
+ cirq/_version_test.py,sha256=TWs2mCu6J6J7OzDO-bxvxp_cZQL8ktUJ_ZLsjbF54jk,147
9
9
  cirq/conftest.py,sha256=X7yLFL8GLhg2CjPw0hp5e_dGASfvHx1-QT03aUbhKJw,1168
10
10
  cirq/json_resolver_cache.py,sha256=ytePZtNZgKjOF2NiVpUTuotB-JKZmQNOFIFdvXqsxHw,13271
11
11
  cirq/py.typed,sha256=VFSlmh_lNwnaXzwY-ZuW-C2Ws5PkuDoVgBdNCs0jXJE,63
12
- cirq/type_workarounds.py,sha256=-qyat6dmVoz8z76I-JLrnK1vAXmY9G1Qa3LYjQ4rJlI,959
13
12
  cirq/circuits/__init__.py,sha256=HKunqRpZoDmjy1IiK9Cn84MTGT84_PMeQ5VDCPafcWk,1335
14
13
  cirq/circuits/_block_diagram_drawer.py,sha256=06ceNV01cMx4irIGYnztfLt_HDNhK3AwfsiNh686hjU,9510
15
14
  cirq/circuits/_block_diagram_drawer_test.py,sha256=g21rH5iZgqf8L5ruDh0NR13B-7-0O7IGQsNp03EhRHo,11391
@@ -17,15 +16,15 @@ cirq/circuits/_box_drawing_character_data.py,sha256=QLoCXwcLL7091RdxEKO259goxt4R
17
16
  cirq/circuits/_box_drawing_character_data_test.py,sha256=XO94z0piwZRHaNZHTf-5tKHQ4MKcDruMeRIKdT8GbYA,1624
18
17
  cirq/circuits/_bucket_priority_queue.py,sha256=hxFuii2fKD8G6EKT_aVLEsA7FmSfqFXPwIbA0KsoSC4,6745
19
18
  cirq/circuits/_bucket_priority_queue_test.py,sha256=t6u_hG7K2e2WKWrgCsKxNRtp4ghKwiCrp0_WSY0W25k,5288
20
- cirq/circuits/circuit.py,sha256=uDm3vkFesQbNLnKevL8bgcV850GZedMtqtLOzTdiUck,114604
19
+ cirq/circuits/circuit.py,sha256=qo_38CMj8lUXELHN0BEPNY029w6_YxY4qqMqZ7DhGtQ,114588
21
20
  cirq/circuits/circuit_operation.py,sha256=3CfJd7zhEMub792vgb2VO545rsj68yX_YEYMirySI3U,34705
22
21
  cirq/circuits/circuit_operation_test.py,sha256=u-23dDZ6htNSiP8oXR67rmtb-XDBmObvbJjJrARhmis,44646
23
22
  cirq/circuits/circuit_test.py,sha256=sRZC558PZZZUHByZ1R00_j8ez6TL9l5ZmT8YLGopH_Q,160117
24
- cirq/circuits/frozen_circuit.py,sha256=s-OWD4ngioE41NG1jQJbLrJd7dP283aYn7IOahbJQw4,9259
23
+ cirq/circuits/frozen_circuit.py,sha256=qSbLHqIszCbVipNZQy4N829v_mWf8N2926cYRzpxGqE,9243
25
24
  cirq/circuits/frozen_circuit_test.py,sha256=rHyii8hLhOQ6jdA8dC1OcYPGnyeBC4uY5Q53XspkkCk,4133
26
25
  cirq/circuits/insert_strategy.py,sha256=L0OLXuo24TtBfdJGOAG2PsVDMrbvQl4iN5lUk6IPuyo,2851
27
26
  cirq/circuits/insert_strategy_test.py,sha256=dgz13_ssa_GWqzzx5W4G4sJJw4SUHC3-g3K0_Z4TRiA,686
28
- cirq/circuits/moment.py,sha256=ABYiqNVUKbUrZUDxGvKLZKOq8pgoZgf3K6DzPSGtaQw,26180
27
+ cirq/circuits/moment.py,sha256=mcwSw4Qa0UFUx3pGqYjPzxEBNP45TjN9EcMgGjT-Zoo,26165
29
28
  cirq/circuits/moment_test.py,sha256=SAZR-BxNiFaYaPLKLN59LCBqxvBMrVJWa-js1kfhOZA,26905
30
29
  cirq/circuits/optimization_pass.py,sha256=uw3ne0-ebZo6GNjwfQMuQ3b5u9RCgyaXRfhpbljlxao,6468
31
30
  cirq/circuits/optimization_pass_test.py,sha256=eQB0NBJ9EvqjgSFGQMgaHIh5niQhksdnvqSXhsj3nOg,5947
@@ -51,7 +50,7 @@ cirq/contrib/acquaintance/mutation_utils.py,sha256=HM9mjXufOYRrCO1ydusiJuCh4RnzJ
51
50
  cirq/contrib/acquaintance/mutation_utils_test.py,sha256=r_0IdvjSqres1KWs4o4HEb8a5WATovIBOUIAjVeIzns,7848
52
51
  cirq/contrib/acquaintance/optimizers.py,sha256=xAdmecOLiO4-GDO8v5O3uYNAjjSKSDk8_vz7rm7Mjm4,2092
53
52
  cirq/contrib/acquaintance/optimizers_test.py,sha256=-MBJT0JkvxjEwknHA6Q6PoAzrC_JwRBjAfpMwQjWoj0,2455
54
- cirq/contrib/acquaintance/permutation.py,sha256=0Qfg6UYmEJDgHCFaedFHzdmgsqCGwzKnJC0pCBt-EJE,11870
53
+ cirq/contrib/acquaintance/permutation.py,sha256=bv9JW0sS6yefCKv5ev0Bt94zN3hduO3uwCTm8_D4da8,11854
55
54
  cirq/contrib/acquaintance/permutation_test.py,sha256=ASeOCXr4oiIK31L31uWsDokZemp5fHoMtWrPVEZcfmk,11503
56
55
  cirq/contrib/acquaintance/shift.py,sha256=9t2YQn5sfMNfyOuc9LonrL3rjB-HwqmTS8TP2Ebg-kE,3059
57
56
  cirq/contrib/acquaintance/shift_swap_network.py,sha256=XQaF8akqi4F_zb1_dYmV3u_T9Yumnene36AtkqcEtQo,5283
@@ -91,7 +90,7 @@ cirq/contrib/noise_models/noise_models_test.py,sha256=nELHWYWbRp6RCurjTSEAumpZPM
91
90
  cirq/contrib/paulistring/__init__.py,sha256=5KmN-WfpVgQoHJEznRZA-gBXOP5i7hn42juzUEcWlto,1618
92
91
  cirq/contrib/paulistring/clifford_optimize.py,sha256=q2lTMivOGoxncxnQ8CxnwlV9kSsHzETsTWG705FG9qw,7849
93
92
  cirq/contrib/paulistring/clifford_optimize_test.py,sha256=IttwXaYRftUb84Sz3fEJFDl9fZ8NwzcbNsuFAJeLR_8,3890
94
- cirq/contrib/paulistring/clifford_target_gateset.py,sha256=7hO3o7dLOC83rf-mzzNBiC49JjZ9dNBqb_m0it4bmgk,6368
93
+ cirq/contrib/paulistring/clifford_target_gateset.py,sha256=r2Nkq3gbENGyeRrRHtjdx5_uoSR0UfXojlTLhNNGTL8,6353
95
94
  cirq/contrib/paulistring/clifford_target_gateset_test.py,sha256=Q_Zqbfp6yVzLabpKLnhIFCnGBaCgsgiABXCuAixwySQ,8668
96
95
  cirq/contrib/paulistring/optimize.py,sha256=qhBOGxLYovUua_xVqXWgVDPRRmv4VOmyFgKVBVuaYR0,2707
97
96
  cirq/contrib/paulistring/optimize_test.py,sha256=jie0UomSCIj90TMv3MIi4hd32iTjttQ8-zr7ZDs0tug,3560
@@ -271,25 +270,25 @@ cirq/ops/boolean_hamiltonian.py,sha256=li003lNq6zS8pNPTobqzfzYJvyvaIpCVo3wkliI6H
271
270
  cirq/ops/boolean_hamiltonian_test.py,sha256=1ey5yfYZPKZDsfM3jpCPAOpbPs_y8i4K_WvDK2d5_4Y,8518
272
271
  cirq/ops/classically_controlled_operation.py,sha256=bMqKutwzqbvN2r7mOVOI12HTPDGSJLkhQQgfAcTtbDU,9166
273
272
  cirq/ops/classically_controlled_operation_test.py,sha256=MNU0Adff4kTosqsrQ3PUT3ARcZee_PkchT6u0xDl8Qg,48039
274
- cirq/ops/clifford_gate.py,sha256=ARbHGptZxQo6kX9QTrh_kZ89N7lW6V3GQSE3o-1kixU,39366
273
+ cirq/ops/clifford_gate.py,sha256=qAKS0wqqoHljOF63treyR95I6H0yWFZBiHQoM4sLgSc,39350
275
274
  cirq/ops/clifford_gate_test.py,sha256=NF_if1X8LCMA9hy0vBO7lxvVPdumlvMMnI2XRQ-RLpk,37472
276
275
  cirq/ops/common_channels.py,sha256=h2BlRs1qCz96qZmcOgXMWOVLjvvGtl4yb-r8XqyQVjM,38276
277
276
  cirq/ops/common_channels_test.py,sha256=EL_PxbqD3KPC8ioihiukhmW8bUdclqqigKoFyUQpmIM,29690
278
277
  cirq/ops/common_gate_families.py,sha256=e5M8wlDYtdrpWBrhdns6iizIvSqzfxDyIsBdxt8hVMc,8611
279
278
  cirq/ops/common_gate_families_test.py,sha256=Oo3C7BPO3gt3ePuqwsI_lx_lY38et8Ps4AuVydX2Aww,5275
280
- cirq/ops/common_gates.py,sha256=YMcadPVRhrvkwYwm6-_TNYM9sz9TY7KSi0g7FvBTeCk,58075
279
+ cirq/ops/common_gates.py,sha256=amEfFE2Euje55UVWfk2TGErhzylSUmAriLQfJudrxGY,58057
281
280
  cirq/ops/common_gates_test.py,sha256=XCVswZbd_k9Y2k5n-2TXnS8CnJoLoC3VmBQN0QijIKw,46218
282
281
  cirq/ops/control_values.py,sha256=nNDN6pgz_aWkUfrpOZ9zHHD42AGFaplWhVQj9rmJwbQ,13410
283
282
  cirq/ops/control_values_test.py,sha256=iDtdQjL39u80MaR16XLp00LRZqWgJqC54cIeADWf0IY,12906
284
- cirq/ops/controlled_gate.py,sha256=uVTZk6pA1ZpEwbVggLeXyAFq18_QJ38hWYhk9GbvQnc,14253
285
- cirq/ops/controlled_gate_test.py,sha256=6cc9ZY_Obo_ZY4iveaaIv6LXn50REey-t4sThA8qOTs,23099
286
- cirq/ops/controlled_operation.py,sha256=sbT1PGUQjV8a014e8TOeZY2N1q6QXF4n0RVJswBtOX0,14014
287
- cirq/ops/controlled_operation_test.py,sha256=ioAq2we54vDPAf6ttoUPLWqt1nQzLmkcQ9GQRL60t88,16459
288
- cirq/ops/dense_pauli_string.py,sha256=SPrNsgeC2-ETqD2wbZ7R7lOltIUWITqBUHH02dVaMzA,24525
283
+ cirq/ops/controlled_gate.py,sha256=8ELuov5mOUp_cNwwrwMEjB4NwDph4Cpi7ezABx86W8Y,14261
284
+ cirq/ops/controlled_gate_test.py,sha256=oasofj1Qu4iD2xJffAGDSDB8FN0xzhn5t912rqkKUXI,23083
285
+ cirq/ops/controlled_operation.py,sha256=7X6NgihCuV5iaK-ya9cYZHlBAgN-eFcOFZ3PhGYlkFY,13998
286
+ cirq/ops/controlled_operation_test.py,sha256=iRRkzxMmsChYiWYMuz5-q3xq2mWV1wJY8Y8QQ1ieP5c,16443
287
+ cirq/ops/dense_pauli_string.py,sha256=4BKgDZivok-JvZpN8Mfwt533KIRzxkKYJ2Juw0aIcSY,24509
289
288
  cirq/ops/dense_pauli_string_test.py,sha256=duvgzhgTV9wuem4kDSwtL62SEUCThkz1tdP984-C4_s,21504
290
289
  cirq/ops/diagonal_gate.py,sha256=_-Pzt3T6U1Oq6DwExIjCmVYBBSWY6EoBNCKHpzWIRzk,9021
291
290
  cirq/ops/diagonal_gate_test.py,sha256=cPHxjc7g2oTcXt5UFm470oo0eJupubSNzs4TccKHlSc,6223
292
- cirq/ops/eigen_gate.py,sha256=YFb42bTPkt9EkH6kx2u3gUQT97S1BK5a4YOzZcCnsmw,18350
291
+ cirq/ops/eigen_gate.py,sha256=eQ6-MOknop7CrejsTuQ0KZWf4mZnQBi8wEaTQXw4KSQ,18334
293
292
  cirq/ops/eigen_gate_test.py,sha256=-7l6GmAd1EYzHoGREQN1n7J1VOQKbThH2mA88TRODs8,13928
294
293
  cirq/ops/fourier_transform.py,sha256=pynO07OcZSVCeL8L0pNQ9m_y5_wrpTWOMf99BHpjXdU,7579
295
294
  cirq/ops/fourier_transform_test.py,sha256=PIK4bWnCIy2TuX0fgclHeU1CBDT6zRVoQpv1v1jt62c,6220
@@ -297,15 +296,15 @@ cirq/ops/fsim_gate.py,sha256=eAQP2XPWW_1nItjzv__75eqhruCbKkFB1Y_eL1ov10c,18725
297
296
  cirq/ops/fsim_gate_test.py,sha256=owW1VpXntJqxlzhtppnyfaS9gQKFNA6UzCHksgPHaHU,25165
298
297
  cirq/ops/gate_features.py,sha256=414mSi3kgKSwLOeAG_WEZKn8ZMaLtOowed7os1qSnM4,1049
299
298
  cirq/ops/gate_features_test.py,sha256=mnlqJnSpllcOnTUdvmUs_ssnPRhAIgHhKIAK2Z86Dfg,2347
300
- cirq/ops/gate_operation.py,sha256=Fa3O_-bLGAtFznYv-b_RWAn2X4JgvM3yGbqbLcsJkgM,13736
299
+ cirq/ops/gate_operation.py,sha256=IGCyqe9YguIlajnQ3EV61Y0vUxOT_SrRxvNEFwKtUak,13720
301
300
  cirq/ops/gate_operation_test.py,sha256=ftd-GZxvOtzFS1L153K89_PV1volGroU7G5nFGp9afE,17507
302
301
  cirq/ops/gateset.py,sha256=Tx1CIlve0RhnX9jHZsCVw7EHtfC6b3drbBncmCEtcsQ,21634
303
302
  cirq/ops/gateset_test.py,sha256=BY5UJ1k3NC0jz0d4yocyO1qcQU6e4UbN9mapWE7z7AM,16361
304
- cirq/ops/global_phase_op.py,sha256=XYnzmquhGaVY91oYm9RHo1qbX1eOx2ZqLPzLsl8jyQw,4842
303
+ cirq/ops/global_phase_op.py,sha256=4qYUov6BnBql2_yqUHI9DE60fLiLmCsKI9ZkfMLRRyo,4826
305
304
  cirq/ops/global_phase_op_test.py,sha256=FjtUsohIYabTtiGytvPQw9Rzkqd6dlT7qrj4oltDbTI,9814
306
305
  cirq/ops/greedy_qubit_manager.py,sha256=O9qY8GB1KGxm3B7JEjq50sGVD51bNwTSupJpi3WUeAc,4039
307
306
  cirq/ops/greedy_qubit_manager_test.py,sha256=iVZDKes-r08raTiJHpYNmP-Dp89ok3hIU-QboL2BHdw,3300
308
- cirq/ops/identity.py,sha256=vS4Gown5dJWm89gNKBZ9vXQL3ijwAJZ9JFu7NtfAQw8,5827
307
+ cirq/ops/identity.py,sha256=MmyA7YWsWb8jHTZLiDCl0qjk1TvW1E2QncqLrCKMmKo,5811
309
308
  cirq/ops/identity_test.py,sha256=-z5TjxNaD3_z73nGdR3RbHt6ytaYOAyYggCzwZtlQDw,7568
310
309
  cirq/ops/kraus_channel.py,sha256=tCPAEzr_GAL5vTwI43rBoiOnT04l-ebZanuuEuYWDo8,5085
311
310
  cirq/ops/kraus_channel_test.py,sha256=qH2Y9cngXzKCabd-Mq5xBYcM_wyL8c6KkrXw8kZr7Dc,4726
@@ -323,17 +322,17 @@ cirq/ops/named_qubit.py,sha256=niAsH7m32n3lEVIcy1nnVDPkPqk6PY2qlriz7mzgZmk,10006
323
322
  cirq/ops/named_qubit_test.py,sha256=mtJVRe4JzFSNckMQJSGCj1P0VBtpGh--6YxKbIEE3TQ,5221
324
323
  cirq/ops/op_tree.py,sha256=iXsIFcQCciU7C9SiPxhd_zrp4TBGCsmnqxKDjUl1aEo,6159
325
324
  cirq/ops/op_tree_test.py,sha256=h4phqrxQwYAfyu8o4f_fLi3WP2kdVuzWqrSCWGLHo_c,5575
326
- cirq/ops/parallel_gate.py,sha256=RSj1SuiwbDCMWxvTmi3xz7oE2QXBFgA59emijh4JPkE,6335
325
+ cirq/ops/parallel_gate.py,sha256=duCtDht-HRlYM3V7JmFnB_l2rx5PRqAwyRMjug9kvnM,6318
327
326
  cirq/ops/parallel_gate_test.py,sha256=M6o3AyXFQrwyiOTtGxlYH09TbHdjtTxCuMjmn-ALnn0,6298
328
327
  cirq/ops/parity_gates.py,sha256=tmyb42wBRwaUzELwUcxhRDPfqwM-6KMIO2OcynsFnFA,14384
329
328
  cirq/ops/parity_gates_test.py,sha256=7C0BmJl1HuoyVzfA8-lVCTiE1qNYQhMtyQlVx2uvFKA,11244
330
- cirq/ops/pauli_gates.py,sha256=sqqQEKEU89cmb1pzLPnrZ5XC0LchSXid8tHLQs8xJnk,6984
329
+ cirq/ops/pauli_gates.py,sha256=ro72hKI_PZkdhWW_qjrRrTPSykvMlbGuQHSQenyUwQM,6968
331
330
  cirq/ops/pauli_gates_test.py,sha256=bHt7A2w0auWxN9gyKAVeimT1KeOHz5C_CjFHSK1V-Co,7752
332
331
  cirq/ops/pauli_interaction_gate.py,sha256=Ep7XwZMVP81Qq1J2MTc3kJ79h26daOZcLPxqN3KTYFk,5519
333
332
  cirq/ops/pauli_interaction_gate_test.py,sha256=U9ORW5Ayx5PESPFiGESzWY-02qHklYcM1mYW56RWe_A,4544
334
333
  cirq/ops/pauli_measurement_gate.py,sha256=AS9tzLGAOhJzRzVsW9m-WPz5Wx0sMS1jzhppn5qtW84,7239
335
334
  cirq/ops/pauli_measurement_gate_test.py,sha256=uh3J0Ps3V3578V8qkRiEgIl6jBiv8DsXlk_vzLvOEhQ,6720
336
- cirq/ops/pauli_string.py,sha256=WSBDv939ujl51KiE0UDsYHUk3d5B9degjNLCuFvyQ6c,67519
335
+ cirq/ops/pauli_string.py,sha256=G_w4vq1Jt6eHp1YEtTnfnpQ9QnoIGhtRI6zgXOWh8vY,67503
337
336
  cirq/ops/pauli_string_phasor.py,sha256=qcQZqjg8Ua-_KmiHQYYt9X_vELjs_oXsyUwlYfrmcL0,17614
338
337
  cirq/ops/pauli_string_phasor_test.py,sha256=HGEPjPc7ySeshOnMJHNjtyckFuEXLvxgy-TtnU6fETM,27582
339
338
  cirq/ops/pauli_string_raw_types.py,sha256=6CgdPWYmOziP4uZbrIsRW0sDSMmV1GioGdAk0owFITU,2240
@@ -345,7 +344,7 @@ cirq/ops/permutation_gate.py,sha256=2h8n76N2M3nu5MA8JkRQgVLByq5cOEluKUN042ClSRs,
345
344
  cirq/ops/permutation_gate_test.py,sha256=SwXRgsZNLn5jnGhfcKPJ0J0CIssNzElbFaqylV2TXD8,3281
346
345
  cirq/ops/phased_iswap_gate.py,sha256=j55nFjdF0r63oaT7cGw0YtosavaV24qUjC9T-8Y4Ghw,8997
347
346
  cirq/ops/phased_iswap_gate_test.py,sha256=oH3RQ8tlSD0sU5Cf3M0uR92y3M1Xd7Yk3ayOoca9Neg,6708
348
- cirq/ops/phased_x_gate.py,sha256=QCDhn4tDm_zhjorYWLpP5xOYNByXiaT35nOspJWt5vY,9980
347
+ cirq/ops/phased_x_gate.py,sha256=JknLsbDDJejvVjs60GjZdw3frOEonFKY7VvswqUcYqQ,9976
349
348
  cirq/ops/phased_x_gate_test.py,sha256=IpY-Z-MsqtYbyIEdxWu1NqgAJF2B7nddxPc2Hxafr4s,10202
350
349
  cirq/ops/phased_x_z_gate.py,sha256=wh12AXeeDvMojtZd-zecV13Yur_QSBYc4kvYBdcfBBA,11555
351
350
  cirq/ops/phased_x_z_gate_test.py,sha256=KK5-FD5zoaqZkw7p6UKxFddzaFWoxnQnE8LpCiKtIk8,10690
@@ -360,7 +359,7 @@ cirq/ops/qubit_order_or_list.py,sha256=WVnhQcOYCgAhiB4t47Kji-pN1tnvs--X5deCQwwGV
360
359
  cirq/ops/qubit_order_test.py,sha256=B9xMIxlaI7YjRUNA6AkHJuUCFejGYw-lT7ZaSl31yTU,4238
361
360
  cirq/ops/random_gate_channel.py,sha256=gKDqZa6AwdCIuuh2UOvO5oxCdGRDOInA7fI3ZLQ-LTY,5121
362
361
  cirq/ops/random_gate_channel_test.py,sha256=U3EAaAlCZkgFIYxqwcSkPsaVGrKA2PSeG_DK2ou--AE,8606
363
- cirq/ops/raw_types.py,sha256=Lx2BvHc7K_PIOwtHkB_oq7ktv37PeBgd1lQ98UjsOwA,40274
362
+ cirq/ops/raw_types.py,sha256=DKSboh6g59N1myE4GxdXlLnVo-efIzo3o7Bg_HVmaLY,40263
364
363
  cirq/ops/raw_types_test.py,sha256=RWUiB2TypXxbDTVaetQ7h-buGScUcQgY6YsFkmodZGY,33484
365
364
  cirq/ops/state_preparation_channel.py,sha256=PjVtoLbjBAy_XqnFAY40Am-NifeuCFVVLW6RJxph5sQ,4778
366
365
  cirq/ops/state_preparation_channel_test.py,sha256=yKUvLw_ft6cvIgRJcFQ779wZS-V6V-pzQq-rZRWdCmU,5922
@@ -377,23 +376,23 @@ cirq/ops/uniform_superposition_gate_test.py,sha256=9N8woRmaFWeuaPMy2K1JlXyTG8bIC
377
376
  cirq/ops/wait_gate.py,sha256=ZJ9cqRysAyUYgfswVWO5C2OkDZ9MFEQjSemLw0w3drA,5654
378
377
  cirq/ops/wait_gate_test.py,sha256=2Uw8ZjFkYGhDosoxbJr_IW2wWdxY8kXR-CLyC69DYRg,3543
379
378
  cirq/protocols/__init__.py,sha256=JvMKV92kF8qxm8mXNM9iY8TMyn87mwSwaafnvuphcgY,6087
380
- cirq/protocols/act_on_protocol.py,sha256=oNc5Vn64iT02gLV0qz6GU1J3rgHkhltLTHlyyTfQpPU,6902
379
+ cirq/protocols/act_on_protocol.py,sha256=pRjl2lHqxuYWlJopkWCSPiwrHPggHOdRMb0nu-kHe2I,6886
381
380
  cirq/protocols/act_on_protocol_test.py,sha256=eYHin_cTQkhxJg0zkkenQCDIj6TFUX0IstTPLgHvEdY,3147
382
- cirq/protocols/apply_channel_protocol.py,sha256=Unqz-0rVtTrB2tYuY8ZagQZNpJH5mpg_aiAwxeAC9ss,15694
381
+ cirq/protocols/apply_channel_protocol.py,sha256=1-EBw-onbgRwZOoVzLFpFrmocRFqSM6SqChDdsrNBZo,15678
383
382
  cirq/protocols/apply_channel_protocol_test.py,sha256=ETAWrBTVkPuUPUgHsLZo1HUsJnZsO0hD2fQeXlXtvjE,10582
384
- cirq/protocols/apply_mixture_protocol.py,sha256=d2SW3v2AW0flY4zseYrh-p4PM29uuonKZ3nUTGQDmes,16323
383
+ cirq/protocols/apply_mixture_protocol.py,sha256=YknZTAF4jXQYDvnB-galWd0QCrqT-2_CJP2QlnNehIU,16306
385
384
  cirq/protocols/apply_mixture_protocol_test.py,sha256=6sNZhauFDec2MvHmUsvmkVF-qjH1WLDnZO35RT0OtRY,10793
386
- cirq/protocols/apply_unitary_protocol.py,sha256=f2O-69F72e91QIEHPe9UBWLroim1mB6Ul6L0pKVDqvE,29788
385
+ cirq/protocols/apply_unitary_protocol.py,sha256=giJwec5XCEt5s0_uyNEuhGBlcDeJymPvuoIVx08hszY,29772
387
386
  cirq/protocols/apply_unitary_protocol_test.py,sha256=ajjHvcBBv5n8Qh_hMPZkdsOvy1xJ774q4kuC25DJnKM,26136
388
387
  cirq/protocols/approximate_equality_protocol.py,sha256=P5mWl9BWGpobw3K7iAoupFPSqO9V2yG82rfQHWTClmM,6313
389
388
  cirq/protocols/approximate_equality_protocol_test.py,sha256=BYGw5iNU3lsdH5BUDPnqd9xfvfIo9-j5j0og_yXCQyY,9174
390
389
  cirq/protocols/circuit_diagram_info_protocol.py,sha256=14hKWu2oMh65UQehXyLLBDh88ZMSijdqFUVjbhqLzDE,15989
391
390
  cirq/protocols/circuit_diagram_info_protocol_test.py,sha256=dSvjaGEbMGuSrs4kpFen5Z-_dC1JzPvl27Dg47di4A0,10415
392
- cirq/protocols/commutes_protocol.py,sha256=KW849TNso6d_pzTlAN8SRN2pjz72LJ8uAhQSYS60K3Q,7470
391
+ cirq/protocols/commutes_protocol.py,sha256=qdJT8x7CtTILbt5zjmftKtHGRgSKHYwYzGC2WUy08Js,7454
393
392
  cirq/protocols/commutes_protocol_test.py,sha256=h0Lky4jrs7Hxrh4MeHxmxNciuofKGGZ2eC-ceWP8wKU,5849
394
- cirq/protocols/control_key_protocol.py,sha256=S3b4XOvTIj6TxNbj0W33fjdvXiWSKOtflvfEGeruzWw,2630
393
+ cirq/protocols/control_key_protocol.py,sha256=sq4CswLr5TDHPmviNMF1shlL14D6XXlPxt3P985Esy0,2614
395
394
  cirq/protocols/control_key_protocol_test.py,sha256=190gp4QBu5QpP2doMmzx9RkAkp6VZOOWGOXp0RIFgqc,970
396
- cirq/protocols/decompose_protocol.py,sha256=0zDsymAFfTSo8mze516oNCvc2OmEUQAOaxoSyTQR0Cc,18919
395
+ cirq/protocols/decompose_protocol.py,sha256=fFy75GOLiJWwNRVDNtl00-19xCJcI_n9J7GiKuMY2wU,18903
397
396
  cirq/protocols/decompose_protocol_test.py,sha256=5L5lQN_FV9qtE3NHPsnxtdgUtY5uDEIfxZkBHbgDrGs,16025
398
397
  cirq/protocols/equal_up_to_global_phase_protocol.py,sha256=0a93790FDjID46cX94PVAlA9i9Fu7uN8cj6qT94NH9w,4101
399
398
  cirq/protocols/equal_up_to_global_phase_protocol_test.py,sha256=9H54KKkS3-_BrTSrEynDq1-sAcYfhLVmVqveLHieg24,5722
@@ -404,13 +403,13 @@ cirq/protocols/has_unitary_protocol_test.py,sha256=IjmJ3dqvteFUUO4FLwCTokgUvYy8H
404
403
  cirq/protocols/hash_from_pickle_test.py,sha256=kjGb1_7Hil8egA3b_fkvA8xOJpuac0vd5dH-GtWgMN8,4061
405
404
  cirq/protocols/inverse_protocol.py,sha256=CEqtGRRj86WQyyALonRXxQrNq-fENOs_Zqrlr_BVau8,4115
406
405
  cirq/protocols/inverse_protocol_test.py,sha256=pqqIU4_G4Npc9Z-SeoM9eCB2T5JRTeI02NCXhP0UtaI,2017
407
- cirq/protocols/json_serialization.py,sha256=Otrrzsi74rfE_2wbK-xBUI3QzQaRnEXqsY1D_ktW4jk,24360
406
+ cirq/protocols/json_serialization.py,sha256=kzTl_2bGp6OXFG4preXtmEviEa_aGGSkkDirSAngywI,24344
408
407
  cirq/protocols/json_serialization_test.py,sha256=kOM7-DWVy0jy7SBx-RgNNiExm-Ot4wbYm0JKtl9uF0w,27737
409
- cirq/protocols/kraus_protocol.py,sha256=GKQ748yxo6B6i0jUzq8OyR6lcEFYbh4FV2UryjUgSuk,9158
408
+ cirq/protocols/kraus_protocol.py,sha256=8jed4J2VhyB4NNeZd04Vk5UhCDifuOK-JVdWJyNYKzw,9140
410
409
  cirq/protocols/kraus_protocol_test.py,sha256=QpPwkk7XBiGKNdrOcjXqtvhESVbUzujnUPz47uUNyqc,5401
411
- cirq/protocols/measurement_key_protocol.py,sha256=hl7xFi1Evebh8MQNLuUffhsUkggr4SdWUm4kIr9s2iI,13425
410
+ cirq/protocols/measurement_key_protocol.py,sha256=vqoxjmthtmQ1nWbi7Xd4fdxFNe5y3WL7DZkQ3M_VPnc,13409
412
411
  cirq/protocols/measurement_key_protocol_test.py,sha256=M00RM-ujC2btd5UxN3BK92AGhZivDP1lRpxewj-G8VI,8514
413
- cirq/protocols/mixture_protocol.py,sha256=mtWi-QffTZwj_5ViLVrPixNQFCFdQ6ACo1Fo0mvIPmw,6316
412
+ cirq/protocols/mixture_protocol.py,sha256=Hva80ZD09ZEfGa_jCGVNYygk_yyI02zzOEDykHejxPo,6301
414
413
  cirq/protocols/mixture_protocol_test.py,sha256=L0R2jSxZbi3pEhD2tOv8XC3tvi3s4csjQMk-VS987RQ,3616
415
414
  cirq/protocols/mul_protocol.py,sha256=ZhkowiHCulggWanjoz6HpMGf0ODqDNIjM32knFKPuJ0,2770
416
415
  cirq/protocols/mul_protocol_test.py,sha256=Qv7y17r-HjLXC7e-6t_Y6ht8lD_iiXE6CRyRFb7noGE,2136
@@ -420,15 +419,15 @@ cirq/protocols/phase_protocol.py,sha256=dXZRJb7aT8ZvtliItZOvoiaev-QvjBT4SknwZ5p-
420
419
  cirq/protocols/phase_protocol_test.py,sha256=eU4g6VDqfWZCpklVlY1t5msc5kAZsP-UlPrROLll_ms,1939
421
420
  cirq/protocols/pow_protocol.py,sha256=0wgb4LLAkOWjmP_u-_6IweXovDViocbdSgtsMOcXdkM,3290
422
421
  cirq/protocols/pow_protocol_test.py,sha256=8eBcGUqRWSSYkEkvSHXL6tcv1o-ilnl6nzgNl9vfctg,1626
423
- cirq/protocols/qasm.py,sha256=QG3wVi4xJBioMUT73i3EE0AWR4GnIZlfkAFL2PrJriI,6561
422
+ cirq/protocols/qasm.py,sha256=D55dieASN2PEPHsa8vSeUkaswzsuBTLHA0vM2_wqN6Y,6545
424
423
  cirq/protocols/qasm_test.py,sha256=FxMs2PKJEi5Y2XIDuXZKN1HJd0zgTqSuv8BQaudKwUw,1484
425
- cirq/protocols/qid_shape_protocol.py,sha256=j4z5CWET3suEepycUEwsUIy9WM1Brewc_gRmFruzucs,7706
424
+ cirq/protocols/qid_shape_protocol.py,sha256=jCAdpBBkEyK6JGmZwVBp__lHW3JhLmYt0Qzf8OgZtNU,7690
426
425
  cirq/protocols/qid_shape_protocol_test.py,sha256=Qjo-wemjkP__1jQnVkkB91mUs8EpfXyKI9GzeZQVb1E,2303
427
426
  cirq/protocols/resolve_parameters.py,sha256=NVFS5PSq18Hcvjv_P6vaZIa2D4OCgZY1u5j6QgPMlTA,7374
428
427
  cirq/protocols/resolve_parameters_test.py,sha256=sZvwdcwCuHj3l-jwxtorUp4BOsicqO4vQg2NvMgU4y0,4883
429
428
  cirq/protocols/trace_distance_bound.py,sha256=r_aXr3QuqbjCrXxwqDSyRyRAbCvWaZIzt95iy5-Wx-U,4172
430
429
  cirq/protocols/trace_distance_bound_test.py,sha256=5DFxGafD8HS9hg1BtHVBorqA91kAEH4LCUIxZW3cmCo,1935
431
- cirq/protocols/unitary_protocol.py,sha256=DE6djQAu_aHUBEznjsW-W-zRx8susfqUmQtYa7CTGlk,8168
430
+ cirq/protocols/unitary_protocol.py,sha256=3maJOpx3IVodWfVXuJA_L6jczak5azO1aUa0oD9Xy8o,8152
432
431
  cirq/protocols/unitary_protocol_test.py,sha256=sby0_pto_WqznJd9xAXG-VtBNz_Sn3IQjEM4pUBtzjM,10189
433
432
  cirq/protocols/json_test_data/AmplitudeDampingChannel.json,sha256=x3szAuG8j_1uAK5ghFapaB410g0twQ83aQNsvItXVdo,60
434
433
  cirq/protocols/json_test_data/AmplitudeDampingChannel.repr,sha256=n_tJNGHkWlxYunXGMFtFO6-RuIv0y8Ki0YqE8w3hOl0,30
@@ -905,7 +904,7 @@ cirq/sim/mux_test.py,sha256=uJUUnE9qg10rF0pGWo_bAWhp8JzsmOGW4hFRZeTKwdM,13680
905
904
  cirq/sim/simulation_product_state.py,sha256=ehrEXLCZkcthtdYMZTZragWsPmsgzxxnmXuPQNEEg-k,7052
906
905
  cirq/sim/simulation_product_state_test.py,sha256=ajfQcf5QpF40FndpoKetNluRfq6ds91buKFxiTafoXg,8905
907
906
  cirq/sim/simulation_state.py,sha256=vmjfaG0ugHcdrzRF-xRLPDgNVwwuo1RWe3mHR2ytK1g,12640
908
- cirq/sim/simulation_state_base.py,sha256=95FDt2omBxU-3KXwii6KCKMC9MtXRc1ZtnLZRE8vI0o,4196
907
+ cirq/sim/simulation_state_base.py,sha256=1t6dWLpxJDiVvld9kl91A9OGTNY6ZkWrceaHf-qZTX8,4180
909
908
  cirq/sim/simulation_state_test.py,sha256=ubfkvFui9zPQwC6aJw9rmehd_4oDQCi6L3Pe1EVznAE,7410
910
909
  cirq/sim/simulation_utils.py,sha256=74Jvi2m4HcRo0i1h7MNvul3Ho0Io8HW0KARA3Ntjh_4,2553
911
910
  cirq/sim/simulation_utils_test.py,sha256=1YCuaKFf0JfOqdEbdYE49wlNWmhmtQKUQMIij6YyiDo,1333
@@ -930,7 +929,7 @@ cirq/sim/clifford/stabilizer_ch_form_simulation_state.py,sha256=2ZY_tQIp9J4NjoYk
930
929
  cirq/sim/clifford/stabilizer_ch_form_simulation_state_test.py,sha256=P6MEakfiHrlVYyoNDOJt9_txIdq9y87WD9lrtJIcM48,3874
931
930
  cirq/sim/clifford/stabilizer_sampler.py,sha256=XfJ2Y0bpCZTdAmiOVMIYPKDQ5SII5EuDJ9WFXRC-8nM,2540
932
931
  cirq/sim/clifford/stabilizer_sampler_test.py,sha256=sNqJyUY--wqHjsPfm4E1YPBll1-GirvxKFz04n5I0f4,1338
933
- cirq/sim/clifford/stabilizer_simulation_state.py,sha256=5ZeHd1mlz6LW_suOOEWHNX9i2FPFTfHSkGiWCxmGUO0,6739
932
+ cirq/sim/clifford/stabilizer_simulation_state.py,sha256=mqADFqLHg2Kit9EsuhNp8ntZQQnTRXc51ZQ9LdqQ4PM,6723
934
933
  cirq/sim/clifford/stabilizer_simulation_state_test.py,sha256=dsphoXTaIwRCjprGJQirSs0qeVKHlni_pt_GZJn5Vpc,4317
935
934
  cirq/sim/clifford/stabilizer_state_ch_form.py,sha256=vyyIKLcI-_Ox1QQbUSbTj_Zo4hotpDwvxQQ2u7zJxns,14049
936
935
  cirq/sim/clifford/stabilizer_state_ch_form_test.py,sha256=FK0IsyrTfT6ZPZeBYmyPG2xpzUT7RG6P6UQw_61c6kU,3149
@@ -961,7 +960,7 @@ cirq/testing/consistent_pauli_expansion_test.py,sha256=Gy95osE-L4uQs1E1oxAKHCgVg
961
960
  cirq/testing/consistent_phase_by.py,sha256=oSZcZnKMOIJnBS0HgYi-8aRaVJmHGgI--WAUGC5JxQ8,2085
962
961
  cirq/testing/consistent_phase_by_test.py,sha256=YbI0n0FpWpBkbgYp0-yGZSeesDZEst0cmYtXgJE2LQY,3273
963
962
  cirq/testing/consistent_protocols.py,sha256=ZRLuaquTuSGhI_KaOdXa0ooDJC3gOO3ykfciKiHqhrU,7773
964
- cirq/testing/consistent_protocols_test.py,sha256=PFp9DF5b2Il2lj1NW70JKPxa5JbG4I_hn-ftis10UD4,10020
963
+ cirq/testing/consistent_protocols_test.py,sha256=ZShgGWBWrzClusc-6idmnIBdCL_OAxXLHay8baqRh1g,10004
965
964
  cirq/testing/consistent_qasm.py,sha256=1-Rq2NfyRHh1bqPYuhBIsH9OkepUSONpNdxDMODSsrQ,5108
966
965
  cirq/testing/consistent_qasm_test.py,sha256=IM1BDeqZflv0Tui669KRLOlKKWyYnJ9JA-Xoy4lI9Bs,2883
967
966
  cirq/testing/consistent_resolve_parameters.py,sha256=hYbp6kbXrOLCc1DMDRC2zTAx1qlvCCJMuzZ7a5cGhmA,1973
@@ -1188,8 +1187,8 @@ cirq/work/sampler.py,sha256=y6qtCpAwO8SqZ_JKU8PwlbMLHpJskNPqGWD_pNbyZew,19779
1188
1187
  cirq/work/sampler_test.py,sha256=hL2UWx3dz2ukZVNxWftiKVvJcQoLplLZdQm-k1QcA40,13282
1189
1188
  cirq/work/zeros_sampler.py,sha256=x1C7cup66a43n-3tm8QjhiqJa07qcJW10FxNp9jJ59Q,2356
1190
1189
  cirq/work/zeros_sampler_test.py,sha256=JIkpBBFPJe5Ba4142vzogyWyboG1Q1ZAm0UVGgOoZn8,3279
1191
- cirq_core-1.5.0.dev20241111211633.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1192
- cirq_core-1.5.0.dev20241111211633.dist-info/METADATA,sha256=gFnfNMYKH4TbWtCbVVWV1kWU0PC-VsUiCGHXIIa0U40,1992
1193
- cirq_core-1.5.0.dev20241111211633.dist-info/WHEEL,sha256=bFJAMchF8aTQGUgMZzHJyDDMPTO3ToJ7x23SLJa1SVo,92
1194
- cirq_core-1.5.0.dev20241111211633.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1195
- cirq_core-1.5.0.dev20241111211633.dist-info/RECORD,,
1190
+ cirq_core-1.5.0.dev20241114152643.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1191
+ cirq_core-1.5.0.dev20241114152643.dist-info/METADATA,sha256=FRdUFuF6e8tzZvbleC6Vd_I3S0VVq1zrgY_ugZryqqM,1992
1192
+ cirq_core-1.5.0.dev20241114152643.dist-info/WHEEL,sha256=bFJAMchF8aTQGUgMZzHJyDDMPTO3ToJ7x23SLJa1SVo,92
1193
+ cirq_core-1.5.0.dev20241114152643.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1194
+ cirq_core-1.5.0.dev20241114152643.dist-info/RECORD,,
cirq/type_workarounds.py DELETED
@@ -1,23 +0,0 @@
1
- # Copyright 2018 The Cirq Developers
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # https://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- """Workarounds for deficiencies in python's typing system."""
16
-
17
- from typing import Any
18
-
19
- # At the moment there's no reliable way to say 'NotImplementedType'.
20
- # - type(NotImplemented) causes mypy to error.
21
- # - Just NotImplemented causes runtime errors (it's not a type).
22
- # - The string "NotImplemented" causes runtime errors (in some python versions).
23
- NotImplementedType = Any