bloqade.qasm2.dialects.expr.stmts.Neg
← Module overview
class
classNeg¶source
bloqade.qasm2.dialects.expr.stmts.Neg
Bases: ir.Statement
Negate a number.
class NegAttributes
| Name | Type | Default | Description |
|---|---|---|---|
name | — | 'neg' | |
traits | — | frozenset({lowering.FromPythonCall()}) | |
value | ir.SSAValue | info.argument(PyNum) | value (Union[int, float]): The number to negate. |
result | ir.ResultValue | info.result(PyNum) | result (Union[int, float]): The negated number. |