Skip to content

bloqade.gemini.logical.stdlib.qubit_allocation.qalloc_at

← Module overview

functionqalloc_atsource

bloqade.gemini.logical.stdlib.qubit_allocation.qalloc_at

Signature
def qalloc_at(positions: ilist.IList[PositionIndex, N]) -> ilist.IList[Qubit, N]

Allocate logical qubits at optional linear logical positions.

An integer position pins the qubit to zone 0 at word 2 * position; None allocates an unpinned qubit for the layout heuristic to place. The input must be statically known, and the calling kernel must set aggressive_unroll=True, so the map can lower into individual allocations.

Parameters

NameTypeDescription
positionsilist.IList[PositionIndex, N]

Returns

ilist.IList[Qubit, N]

source