Skip to content

bloqade.qubit.qalloc

← Module overview

functionqallocsource

bloqade.qubit.qalloc

def qalloc(n_qubits: int) -> ilist.IList[qubit.Qubit, Any]

Allocate a new list of qubits.

Parameters

NameTypeDescription
n_qubitsintThe number of qubits to create.

Returns

ilist.IList[qubit.Qubit, Any](ilist.IList[Qubit, n_qubits]) A list of qubits.

source