bloqade.qasm2.dialects.core.stmts.CRegGet
← Module overview
class
classCRegGet¶source
bloqade.qasm2.dialects.core.stmts.CRegGet
Bases: ir.Statement
Get a bit from a classical register.
class CRegGetAttributes
| Name | Type | Default | Description |
|---|---|---|---|
name | — | 'creg.get' | |
traits | — | frozenset({lowering.FromPythonCall(), ir.Pure()}) | |
reg | ir.SSAValue | info.argument(CRegType) | reg (CReg): The classical register. |
idx | ir.SSAValue | info.argument(types.Int) | idx (Int): The index of the bit in the register. |
result | ir.ResultValue | info.result(BitType) | result (Bit): The bit at position `idx`. |