Skip to content

bloqade.pyqrack.reg.CBitRef

← Module overview

classCBitRefsource

bloqade.pyqrack.reg.CBitRef

Object representing a reference to a classical bit.

class CBitRef(ref: CRegister, pos: int)

Parameters

NameTypeDescription
refCRegister
posint

Attributes

NameTypeDescription
refCRegisterThe classical register that is holding this bit.
posintThe position of this bit in the classical register.

methodset_valuesource

bloqade.pyqrack.reg.CBitRef.set_value

def set_value(value: MeasurementResultValue)

Parameters

NameTypeDescription
valueMeasurementResultValue
source

methodget_valuesource

bloqade.pyqrack.reg.CBitRef.get_value

def get_value()
source