bloqade.qasm2.dialects.core.stmts.Measure
← Module overview
class
method
source
classMeasure¶source
bloqade.qasm2.dialects.core.stmts.Measure
Bases: ir.Statement
Measure a qubit and store the result in a bit.
class MeasureAttributes
| Name | Type | Default | Description |
|---|---|---|---|
name | — | 'measure' | |
traits | — | frozenset({lowering.FromPythonCall()}) | |
qarg | ir.SSAValue | info.argument(QubitType | QRegType) | qarg (Qubit | QReg): The qubit or quantum register to measure. |
carg | ir.SSAValue | info.argument(BitType | CRegType) | carg (Bit | CReg): The bit or register to store the result in. |
methodcheck_type¶source
bloqade.qasm2.dialects.core.stmts.Measure.check_type
def check_type() -> None