Skip to content

bloqade.qasm3.dialects.core.stmts.BitRegNew

← Module overview

classBitRegNewsource

bloqade.qasm3.dialects.core.stmts.BitRegNew

Bases: ir.Statement

Create a new classical bit register.

class BitRegNew

Attributes

NameTypeDefaultDescription
name—'bitreg.new'
traits—frozenset({lowering.FromPythonCall()})
n_bitsir.SSAValueinfo.argument(types.Int)n_bits (Int): The number of bits in the register.
resultir.ResultValueinfo.result(BitRegType)result (BitReg): The new bit register with all bits set to 0.