Expand description
Compiler and backend lowering surface.
This contains template instantiation and per-instance machinery a backend
consumes when emitting a Bloq. Kept
separate from the stable program-graph API at the crate root; arms-length
graph consumers should not need these.
Structs§
- Bloq
Template - A reusable circuit template and its local side tables.
- Bloq
Template Pool - A shared, append-only template pool.
- Instance
Boundary Operator - A symbolic logical operator at one template-instance boundary.
- Instance
Measurement - One measurement within a template instance, named by the instance and the template-local measurement id
- Instantiation
Options - Options applied after a node’s instances have been translated and, when needed, merged.
- Node
Emission Plan - A node’s merged circuit and instance-space maps.
- Node
Restart - A
RepeatUntilSuccessrestart syndrome composed across the template seam: - Padding
Instance - A template and offset to splice into a seam.
- Predicate
Analysis - Cached Boolean queries over one immutable graph level.
- Template
Instance - One placement of a template: template
template_idfrom the shared pool, laid down at layoutoffset, under program-global idid. - Template
Instance Id - A program-global id for one placement of a template: ids are unique
across every graph level, not level-local like
BloqNodeId. - Template
Repeat State - A loop-carried detector recurrence for one repeat body: the
initialparity on the first iteration and thenextparity relating consecutive iterations of loopstate. - Template
Restart - A template-local restart syndrome for a
RepeatUntilSuccessregion.
Enums§
- Node
Template Instance Merge Error - Why a template-backed node’s instances could not be merged into one circuit.
- Template
Detector Scope - Where a
TemplateDetectorlives: the template’s top level, or inside one of its repeat bodies.
Functions§
- drain_
composed_ chains - Drain completed chains into detector and restart side tables.
- validate_
template_ circuit - Validate one template circuit through the shared preflight used by both
Bloq::validateand instance emission.
Type Aliases§
- Template
Detector Parity - A detector parity in template-local measurement-id space.