File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
src/bloqade/gemini/dialects/logical Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 1- from typing import TypeVar
1+ from typing import Any , TypeVar
22
33from kirin import lowering
44from kirin .dialects import ilist
88from .stmts import TerminalLogicalMeasurement
99
1010Len = TypeVar ("Len" )
11- CodeN = TypeVar ("CodeN" )
1211
1312
1413@lowering .wraps (TerminalLogicalMeasurement )
1514def terminal_measure (
1615 qubits : ilist .IList [Qubit , Len ],
17- ) -> ilist .IList [ilist .IList [MeasurementResult , CodeN ], Len ]:
16+ ) -> ilist .IList [ilist .IList [MeasurementResult , Any ], Len ]:
1817 """Perform measurements on a list of logical qubits.
1918
2019 Measurements are returned as a nested list where each member list
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ class Initialize(ir.Statement):
2727
2828
2929Len = types .TypeVar ("Len" )
30- CodeN = types .TypeVar ("CodeN" )
3130
3231
3332@statement (dialect = dialect )
@@ -48,5 +47,5 @@ class TerminalLogicalMeasurement(ir.Statement):
4847 traits = frozenset ({lowering .FromPythonCall ()})
4948 qubits : ir .SSAValue = info .argument (ilist .IListType [QubitType , Len ])
5049 result : ir .ResultValue = info .result (
51- ilist .IListType [ilist .IListType [MeasurementResultType , CodeN ], Len ]
50+ ilist .IListType [ilist .IListType [MeasurementResultType , types . Any ], Len ]
5251 )
You can’t perform that action at this time.
0 commit comments