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