Skip to content

bloqade.qasm2.dialects.expr.stmts.Neg

← Module overview

classNegsource

bloqade.qasm2.dialects.expr.stmts.Neg

Bases: ir.Statement

Negate a number.

class Neg

Attributes

NameTypeDefaultDescription
name—'neg'
traits—frozenset({lowering.FromPythonCall()})
valueir.SSAValueinfo.argument(PyNum)value (Union[int, float]): The number to negate.
resultir.ResultValueinfo.result(PyNum)result (Union[int, float]): The negated number.