bloqade.qasm3.dialects.core.stmts.BitRegGet
← Module overview
class
classBitRegGet¶source
bloqade.qasm3.dialects.core.stmts.BitRegGet
Bases: ir.Statement
Get a bit from a classical bit register.
class BitRegGetAttributes
| Name | Type | Default | Description |
|---|---|---|---|
name | — | 'bitreg.get' | |
traits | — | frozenset({lowering.FromPythonCall(), ir.Pure()}) | |
reg | ir.SSAValue | info.argument(BitRegType) | reg (BitReg): The classical bit 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`. |