Blueprint
Architecture blueprint + builder entry point.
Provides the declarative schema (ZoneSpec, DeviceLayout,
ArchBlueprint) and the high-level build_arch function that
turns a blueprint into a validated ArchSpec.
Internally uses ZoneBuilder + ArchBuilder (from
.imperative) for correct-by-construction zone assembly. One
blueprint zone = one Rust zone (no splitting).
ArchBlueprint
dataclass
ArchBlueprint(
zones: dict[str, ZoneSpec],
layout: DeviceLayout = DeviceLayout(),
feed_forward: bool = False,
atom_reloading: bool = False,
blockade_radius: float | None = None,
)
High-level architecture definition composed of named zones and layout.
Zones are ordered by insertion order of the zones dict, which
determines word ID assignment (contiguous per zone) and vertical
layout (top to bottom).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
zones
|
dict[str, ZoneSpec]
|
Named zones with their specifications. |
required |
layout
|
DeviceLayout
|
Physical layout parameters for word/site placement. |
DeviceLayout()
|
feed_forward
|
bool
|
Whether the device supports feed-forward operations. |
False
|
atom_reloading
|
bool
|
Whether the device supports atom reloading. |
False
|
blockade_radius
|
float | None
|
Rydberg blockade radius (µm) to record on the
ArchSpec. When set, this value is passed directly to
|
None
|
total_words
property
total_words: int
Total number of words across all zones.
words_per_zone
property
words_per_zone: int
Number of words per zone (all zones have equal grid dimensions).
zone_names
property
zone_names: tuple[str, ...]
Zone names in definition order.
ArchResult
dataclass
ArchResult(
arch: ArchSpec,
zone_grids: dict[str, WordGrid],
zone_indices: dict[str, int],
)
Result of build_arch(), containing the ArchSpec and metadata.
DeviceLayout
dataclass
DeviceLayout(
sites_per_word: int = 5,
site_spacing: float = 10.0,
pair_spacing: float = 10.0,
row_spacing: float = 20.0,
zone_gap: float = 20.0,
x_clearance: float = 3.0,
y_clearance: float = 3.0,
)
Physical layout parameters for word and site placement.
Words are horizontal rows with interleaved CZ pairs. Within a pair, sites alternate: even word at x=0, 2s, 4s, ... and odd word at x=s, 3s, 5s, ... where s = site_spacing (blockade radius).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sites_per_word
|
int
|
Number of sites per word. |
5
|
site_spacing
|
float
|
Distance between adjacent atoms (micrometers). Also determines the CZ blockade distance between paired sites. |
10.0
|
pair_spacing
|
float
|
Horizontal gap between adjacent CZ pairs (micrometers). |
10.0
|
row_spacing
|
float
|
Vertical distance between word grid rows (micrometers). |
20.0
|
zone_gap
|
float
|
Additional vertical gap between zones (micrometers). |
20.0
|
x_clearance
|
float
|
Minimum x-axis clearance (µm) between AOD path waypoints and grid lines. |
3.0
|
y_clearance
|
float
|
Minimum y-axis clearance (µm) between AOD path waypoints and grid lines. Separate x/y values are useful when row and column spacings differ substantially. |
3.0
|
ZoneSpec
dataclass
ZoneSpec(
num_rows: int,
num_cols: int,
entangling: bool = False,
measurement: bool = True,
word_topology: WordTopology | None = None,
site_topology: SiteTopology | None = None,
)
Specification for a single zone in a multi-zone architecture.
Words are arranged in a 2D grid (num_rows x num_cols). Horizontally adjacent word pairs form CZ entangling pairs in entangling zones.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
num_rows
|
int
|
Number of rows in the word grid. Must be >= 1. |
required |
num_cols
|
int
|
Number of columns in the word grid. Must be >= 2 and even. |
required |
entangling
|
bool
|
Whether this zone supports CZ entangling gates. |
False
|
measurement
|
bool
|
Whether this zone supports measurement. |
True
|
num_words
property
num_words: int
Total number of words in this zone.
build_arch
build_arch(
blueprint: ArchBlueprint,
connections: (
dict[tuple[str, str], InterZoneTopology] | None
) = None,
) -> ArchResult
Build an ArchSpec from a blueprint and inter-zone connections.
One blueprint zone maps to one Rust zone. Entangling pairs are metadata on the zone, not a reason to split into sub-zones.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
blueprint
|
ArchBlueprint
|
Architecture blueprint with zones and layout. |
required |
connections
|
dict[tuple[str, str], InterZoneTopology] | None
|
Inter-zone connectivity. Keys are (zone_a, zone_b) name pairs, values are InterZoneTopology instances. |
None
|
Returns:
| Type | Description |
|---|---|
ArchResult
|
ArchResult with the validated ArchSpec and metadata. |
Source code in .venv/lib/python3.12/site-packages/bloqade/lanes/arch/build/blueprint.py
204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 | |