Skip to content

bloqade.qasm2.dialects.core.stmts.CRegGet

← Module overview

classCRegGetsource

bloqade.qasm2.dialects.core.stmts.CRegGet

Bases: ir.Statement

Get a bit from a classical register.

class CRegGet

Attributes

NameTypeDefaultDescription
name—'creg.get'
traits—frozenset({lowering.FromPythonCall(), ir.Pure()})
regir.SSAValueinfo.argument(CRegType)reg (CReg): The classical register.
idxir.SSAValueinfo.argument(types.Int)idx (Int): The index of the bit in the register.
resultir.ResultValueinfo.result(BitType)result (Bit): The bit at position `idx`.