File tree Expand file tree Collapse file tree 3 files changed +15
-9
lines changed
src/bloqade/gemini/dialects/logical Expand file tree Collapse file tree 3 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 77
88from .stmts import TerminalLogicalMeasurement
99
10- Len = TypeVar ("Len" , bound = int )
11- CodeN = TypeVar ("CodeN" , bound = int )
10+ Len = TypeVar ("Len" )
11+ CodeN = TypeVar ("CodeN" )
1212
1313
1414@lowering .wraps (TerminalLogicalMeasurement )
Original file line number Diff line number Diff line change 66
77from ._dialect import dialect
88
9- Len = types .TypeVar ("Len" , bound = types . Int )
10- CodeN = types .TypeVar ("CodeN" , bound = types . Int )
9+ Len = types .TypeVar ("Len" )
10+ CodeN = types .TypeVar ("CodeN" )
1111
1212
1313@statement (dialect = dialect )
Original file line number Diff line number Diff line change @@ -109,14 +109,20 @@ def invalid():
109109 invalid .print (analysis = frame .entries )
110110
111111
112- def test_terminal_measurement ():
113- @gemini .logical .kernel (verify = False )
112+ def test_qalloc_and_terminal_measure_type_valid ():
113+
114+ @gemini .logical .kernel (aggressive_unroll = True )
114115 def main ():
115116 q = squin .qalloc (3 )
116- m = gemini .logical .terminal_measure (q )
117- return m
117+ gemini .logical .terminal_measure (q )
118118
119- main .print ()
119+ validator = ValidationSuite ([GeminiTerminalMeasurementValidation ])
120+ validation_result = validator .validate (main )
121+
122+ validation_result .raise_if_invalid ()
123+
124+
125+ def test_terminal_measurement ():
120126
121127 with pytest .raises (ir .ValidationError ):
122128
You can’t perform that action at this time.
0 commit comments