bloqade.qasm2.dialects.core.stmts.QRegGet
← Module overview
class
classQRegGet¶source
bloqade.qasm2.dialects.core.stmts.QRegGet
Bases: ir.Statement
Get a qubit from a quantum register.
class QRegGetAttributes
| Name | Type | Default | Description |
|---|---|---|---|
name | — | 'qreg.get' | |
traits | — | frozenset({lowering.FromPythonCall(), ir.Pure()}) | |
reg | ir.SSAValue | info.argument(QRegType) | reg (QReg): The quantum register. |
idx | ir.SSAValue | info.argument(types.Int) | idx (Int): The index of the qubit in the register. |
result | ir.ResultValue | info.result(QubitType) | result (Qubit): The qubit at position `idx`. |