Skip to content

bloqade.pyqrack.base.StackMemory

← Module overview

classStackMemorysource

bloqade.pyqrack.base.StackMemory

Bases: MemoryABC

Signature
class StackMemory(pyqrack_options: PyQrackOptions = _default_pyqrack_args(), *, total: int)

Parameters

NameTypeDefaultDescription
pyqrack_optionsPyQrackOptions_default_pyqrack_args()
totalintrequired

Attributes

NameTypeDefaultDescription
totalintfield(kw_only=True)
allocatedintfield(init=False, default=0)

methodallocatesource

bloqade.pyqrack.base.StackMemory.allocate

def allocate(n_qubits: int)

Parameters

NameTypeDescription
n_qubitsint
source

methodresetsource

bloqade.pyqrack.base.StackMemory.reset

def reset()
source