bloqade.qasm2.parse.ast.UnaryOp
← Module overview
class
classUnaryOp¶source
bloqade.qasm2.parse.ast.UnaryOp
Bases: Expr
class UnaryOp(op: Literal['-', '+'], operand: Expr)Parameters
| Name | Type | Description |
|---|---|---|
op | Literal['-', '+'] | |
operand | Expr |
Attributes
| Name | Type | Description |
|---|---|---|
op | Literal['-', '+'] | |
operand | Expr |