Skip to content

bloqade.qasm2.creg

← Module overview

functioncregsource

bloqade.qasm2.creg

def creg(n_bits: int) -> CReg

Create a new classical register with n_bits bits.

Parameters

NameTypeDescription
n_bitsintThe number of bits in the register.

Returns

CRegThe newly created classical register.

source