Skip to content

bloqade.qasm3.dialects.core.stmts.BitRegGet

← Module overview

classBitRegGetsource

bloqade.qasm3.dialects.core.stmts.BitRegGet

Bases: ir.Statement

Get a bit from a classical bit register.

class BitRegGet

Attributes

NameTypeDefaultDescription
name—'bitreg.get'
traits—frozenset({lowering.FromPythonCall(), ir.Pure()})
regir.SSAValueinfo.argument(BitRegType)reg (BitReg): The classical bit 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`.