Skip to content

Commit 96cbaa1

Browse files
committed
fix lowering error
1 parent d080478 commit 96cbaa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bloqade/qasm2/dialects/expr/lowering.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,6 @@ def lower_UnaryOp(self, state: lowering.State, node: ast.UnaryOp):
8181
stmt = stmts.Neg(value)
8282
return state.current_frame.push(stmt)
8383
elif isinstance(node.op, ast.UAdd):
84-
return state.lower(node.operand)
84+
return state.lower(node.operand).expect_one()
8585
else:
8686
raise lowering.BuildError(f"unsupported QASM 2.0 unaryop {node.op}")

0 commit comments

Comments
 (0)