Skip to content

Commit 8f20684

Browse files
committed
Reorder UGate arguments to match wrapper function arg order
The wrapper was already in use in a bunch of places with this order, but using named arguments so it never errored. Still this should be consistent and I stuck with the order of the wrapper as it is already used.
1 parent 0253a76 commit 8f20684

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bloqade/qasm2/dialects/glob.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
class UGate(ir.Statement):
1515
name = "ugate"
1616
traits = frozenset({lowering.FromPythonCall()})
17-
registers: ir.SSAValue = info.argument(ilist.IListType[QRegType])
1817
theta: ir.SSAValue = info.argument(types.Float)
1918
phi: ir.SSAValue = info.argument(types.Float)
2019
lam: ir.SSAValue = info.argument(types.Float)
20+
registers: ir.SSAValue = info.argument(ilist.IListType[QRegType])
2121

2222

2323
@dialect.register(key="qasm2.schedule.dag")

0 commit comments

Comments
 (0)