Skip to content

Commit c6c2774

Browse files
committed
fixing tests
1 parent 5894a25 commit c6c2774

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bloqade/qbraid/lowering.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def run_pass(
2929
fold_pass(method)
3030

3131
typeinfer_pass(method)
32-
method.code.typecheck()
32+
method.code.verify_type()
3333

3434
return run_pass
3535

test/qasm2/passes/test_heuristic_noise.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def test_method():
292292
q0 := core.QRegGet(reg0.result, zero.result),
293293
reg1 := core.QRegNew(n_qubits.result),
294294
q1 := core.QRegGet(reg1.result, zero.result),
295-
reg_list := ilist.New(values=[reg0.result, reg1.result]),
295+
reg_list := ilist.New(values=[reg0.result, reg1.result], elem_type=reg0.result.type),
296296
theta := constant.Constant(0.1),
297297
phi := constant.Constant(0.2),
298298
lam := constant.Constant(0.3),

0 commit comments

Comments
 (0)