Skip to content

bloqade.qasm2.parse.ast.UnaryOp

← Module overview

classUnaryOpsource

bloqade.qasm2.parse.ast.UnaryOp

Bases: Expr

class UnaryOp(op: Literal['-', '+'], operand: Expr)

Parameters

NameTypeDescription
opLiteral['-', '+']
operandExpr

Attributes

NameTypeDescription
opLiteral['-', '+']
operandExpr