Skip to content

Commit 612ee8b

Browse files
committed
correct flynt version
1 parent 7bcc075 commit 612ee8b

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

qualtran/bloqs/for_testing/costing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def _convert_callees(callees: Sequence[BloqCountT]) -> tuple[BloqCountT, ...]:
2626

2727

2828
def _convert_static_costs(
29-
static_costs: Sequence[tuple[CostKey, Any]],
29+
static_costs: Sequence[tuple[CostKey, Any]]
3030
) -> tuple[tuple[CostKey, Any], ...]:
3131
# Convert to tuples in a type-checked way.
3232
return tuple(static_costs)

qualtran/bloqs/mcmt/and_bloq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def _and_bloq() -> And:
256256

257257

258258
def _to_tuple_or_has_length(
259-
x: Union[HasLength, Iterable[SymbolicInt]],
259+
x: Union[HasLength, Iterable[SymbolicInt]]
260260
) -> Union[HasLength, tuple[SymbolicInt, ...]]:
261261
if isinstance(x, HasLength):
262262
if is_symbolic(x.n):

qualtran/bloqs/state_preparation/state_preparation_via_rotation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104

105105

106106
def _to_tuple_or_has_length(
107-
x: Union[HasLength, Iterable[complex]],
107+
x: Union[HasLength, Iterable[complex]]
108108
) -> Union[HasLength, tuple[complex, ...]]:
109109
if isinstance(x, HasLength):
110110
return x

qualtran/bloqs/swap_network/cswap_approx_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def test_approx_cswap_t_count(n):
5959

6060

6161
def get_t_count_and_clifford(
62-
bc: dict[Bloq, Union[int, sympy.Expr]],
62+
bc: dict[Bloq, Union[int, sympy.Expr]]
6363
) -> tuple[Union[int, sympy.Expr], Union[int, sympy.Expr]]:
6464
"""Get the t count and clifford cost from bloq count."""
6565
cliff_cost = sum([v for k, v in bc.items() if isinstance(k, ArbitraryClifford)])

qualtran/cirq_interop/t_complexity_protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def _t_complexity_from_strategies(
166166

167167
@cachetools.cached(cachetools.LRUCache(128), key=_get_hash, info=True)
168168
def _t_complexity_for_gate_or_op(
169-
gate_or_op: Union[cirq.Gate, cirq.Operation, Bloq],
169+
gate_or_op: Union[cirq.Gate, cirq.Operation, Bloq]
170170
) -> Optional[TComplexity]:
171171
if isinstance(gate_or_op, cirq.Operation) and gate_or_op.gate is not None:
172172
gate_or_op = gate_or_op.gate

qualtran/serialization/sympy_to_proto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def sympy_expr_to_proto(expr: sympy.Basic) -> sympy_pb2.Term:
175175

176176

177177
def _get_parameter(
178-
serialized_input: Union[sympy_pb2.Operand, sympy_pb2.Parameter],
178+
serialized_input: Union[sympy_pb2.Operand, sympy_pb2.Parameter]
179179
) -> Union[sympy.core.AtomicExpr, int, float]:
180180
"""
181181
Deserializes a parameter.

0 commit comments

Comments
 (0)