bloqade.qasm2.dialects.expr.stmts.Sub
← Module overview
class
classSub¶source
bloqade.qasm2.dialects.expr.stmts.Sub
Bases: ir.Statement
Subtract two numbers.
class SubAttributes
| Name | Type | Default | Description |
|---|---|---|---|
name | — | 'sub' | |
traits | — | frozenset({lowering.FromPythonCall()}) | |
lhs | ir.SSAValue | info.argument(PyNum) | lhs (Union[int, float]): The left-hand side of the subtraction. |
rhs | ir.SSAValue | info.argument(PyNum) | rhs (Union[int, float]): The right-hand side of the subtraction. |
result | ir.ResultValue | info.result(PyNum) | result (Union[int, float]): The result of the subtraction. |