Skip to content

bloqade.gemini.logical.loc

← Module overview

functionlocsource

bloqade.gemini.logical.loc

def loc(zone: int, row: int, col: int) -> LocationAddress

Construct a LocationAddress from a (zone, row, col) grid coordinate.

col is the grid x-index and row the grid y-index within zone; the coordinate is resolved to a physical LocationAddress (word_id + site_id) against the architecture’s addressing scheme (ArchSpec.location_at) at compile time. All three must be compile-time-constant integers.

Parameters

NameTypeDescription
zoneint
rowint
colint

Returns

LocationAddress

source