Skip to main content

bloqade_lanes_bytecode_core/arch/
mod.rs

1//! Architecture specification types, address encoding, and validation.
2//!
3//! This module defines the physical topology of a Bloqade quantum device:
4//! words, grids, transport buses, zones, and the `ArchSpec` that ties them
5//! together. It also provides bit-packed address types used by bytecode
6//! instructions and comprehensive structural validation.
7//!
8//! # Key types
9//!
10//! - [`ArchSpec`] — top-level device specification (loadable from JSON)
11//! - [`Word`], [`Grid`], [`Bus`], [`Zone`] — building blocks
12//! - [`LocationAddr`], [`LaneAddr`], [`ZoneAddr`] — bit-packed addresses
13//! - [`Direction`], [`MoveType`] — transport enums
14
15pub mod addr;
16pub mod query;
17pub mod types;
18pub mod validate;
19
20pub use addr::{
21    Direction, LaneAddr, LocationAddr, MoveType, SiteRef, WordRef, ZoneAddr, ZonedWordRef,
22};
23pub use query::ArchSpecLoadError;
24pub use types::{ArchSpec, Bus, Grid, Mode, TransportPath, Word, Zone};
25pub use validate::ArchSpecError;