Skip to content

bloqade.qasm2.dialects.core.stmts.Measure

← Module overview

classMeasuresource

bloqade.qasm2.dialects.core.stmts.Measure

Bases: ir.Statement

Measure a qubit and store the result in a bit.

class Measure

Attributes

NameTypeDefaultDescription
name—'measure'
traits—frozenset({lowering.FromPythonCall()})
qargir.SSAValueinfo.argument(QubitType | QRegType)qarg (Qubit | QReg): The qubit or quantum register to measure.
cargir.SSAValueinfo.argument(BitType | CRegType)carg (Bit | CReg): The bit or register to store the result in.

methodcheck_typesource

bloqade.qasm2.dialects.core.stmts.Measure.check_type

def check_type() -> None
source