Skip to content

Commit 653bc6f

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

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/bloqade/qbraid/schema.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,7 @@ 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 = CZ | GlobalRz | GlobalW | LocalRz | LocalW | Measurement
10199

102100

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

0 commit comments

Comments
 (0)