Skip to main content

Module lowering

Module lowering 

Source
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§

BloqTemplate
A reusable circuit template and its local side tables.
BloqTemplatePool
A shared, append-only template pool.
InstanceBoundaryOperator
A symbolic logical operator at one template-instance boundary.
InstanceMeasurement
One measurement within a template instance, named by the instance and the template-local measurement id
InstantiationOptions
Options applied after a node’s instances have been translated and, when needed, merged.
NodeEmissionPlan
A node’s merged circuit and instance-space maps.
NodeRestart
A RepeatUntilSuccess restart syndrome composed across the template seam:
PaddingInstance
A template and offset to splice into a seam.
PredicateAnalysis
Cached Boolean queries over one immutable graph level.
TemplateInstance
One placement of a template: template template_id from the shared pool, laid down at layout offset, under program-global id id.
TemplateInstanceId
A program-global id for one placement of a template: ids are unique across every graph level, not level-local like BloqNodeId.
TemplateRepeatState
A loop-carried detector recurrence for one repeat body: the initial parity on the first iteration and the next parity relating consecutive iterations of loop state.
TemplateRestart
A template-local restart syndrome for a RepeatUntilSuccess region.

Enums§

NodeTemplateInstanceMergeError
Why a template-backed node’s instances could not be merged into one circuit.
TemplateDetectorScope
Where a TemplateDetector lives: 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::validate and instance emission.

Type Aliases§

TemplateDetectorParity
A detector parity in template-local measurement-id space.