Skip to content

Commit 821dd7d

Browse files
committed
fixy
1 parent 9617c81 commit 821dd7d

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

qualtran/bloqs/qsp/generalized_qsp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ class GeneralizedQSP(GateWithRegisters):
282282
Motlagh and Wiebe. (2023). Theorem 3; Figure 2; Theorem 6.
283283
"""
284284

285-
U: GateWithRegisters
285+
U: 'Bloq'
286286
P: Union[Tuple[complex, ...], Shaped] = field(converter=_to_tuple)
287287
Q: Union[Tuple[complex, ...], Shaped] = field(converter=_to_tuple)
288288
negative_power: SymbolicInt = field(default=0, kw_only=True)
@@ -302,7 +302,7 @@ def signature(self) -> Signature:
302302
@classmethod
303303
def from_qsp_polynomial(
304304
cls,
305-
U: GateWithRegisters,
305+
U: 'Bloq',
306306
P: Union[NDArray[np.number], Sequence[complex], Shaped],
307307
*,
308308
negative_power: SymbolicInt = 0,

qualtran/cirq_interop/_cirq_to_bloq.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
CtrlSpec,
3333
DecomposeNotImplementedError,
3434
DecomposeTypeError,
35-
GateWithRegisters,
3635
QAny,
3736
QBit,
3837
QDType,

qualtran/cirq_interop/_cirq_to_bloq_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
SoquetT,
3737
)
3838
from qualtran._infra.gate_with_registers import get_named_qubits
39-
from qualtran.bloqs.basic_gates import CNOT, GlobalPhase, OneState, YPowGate, ZeroState, ZPowGate
39+
from qualtran.bloqs.basic_gates import CNOT, OneState, YPowGate, ZeroState, ZPowGate
4040
from qualtran.bloqs.bookkeeping import Allocate, Free, Join, Split
4141
from qualtran.bloqs.mcmt.and_bloq import And
4242
from qualtran.cirq_interop import cirq_optree_to_cbloq, CirqGateAsBloq, CirqQuregT

0 commit comments

Comments
 (0)