We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d080478 commit 96cbaa1Copy full SHA for 96cbaa1
src/bloqade/qasm2/dialects/expr/lowering.py
@@ -81,6 +81,6 @@ def lower_UnaryOp(self, state: lowering.State, node: ast.UnaryOp):
81
stmt = stmts.Neg(value)
82
return state.current_frame.push(stmt)
83
elif isinstance(node.op, ast.UAdd):
84
- return state.lower(node.operand)
+ return state.lower(node.operand).expect_one()
85
else:
86
raise lowering.BuildError(f"unsupported QASM 2.0 unaryop {node.op}")
0 commit comments