Skip to content

Commit f0b2813

Browse files
committed
Change OperatorType from TypeVar to union
1 parent 6c0c6e6 commit f0b2813

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/bloqade/qbraid/schema.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,11 @@ class Measurement(Operation, frozen=True):
9595
participants: Tuple[int, ...]
9696

9797

98-
OperationType = TypeVar(
99-
"OperationType", bound=Union[CZ, GlobalRz, GlobalW, LocalRz, LocalW, Measurement]
100-
)
98+
# OperationType = TypeVar(
99+
# "OperationType", bound=Union[CZ, GlobalRz, GlobalW, LocalRz, LocalW, Measurement]
100+
# )
101+
102+
OperationType = CZ | GlobalRz | GlobalW | LocalRz | LocalW | Measurement
101103

102104

103105
class ErrorModel(BaseModel, frozen=True, extra="forbid"):

0 commit comments

Comments
 (0)