#[non_exhaustive]pub enum LowerError {
Show 26 variants
InvalidProgram(BloqValidationError),
Flatten(FlattenError),
Edit(EditError),
Structure(StructureError),
Analysis(ExecError),
Alignment(MomentAlignmentError),
Instantiation(NodeTemplateInstanceMergeError),
DetectorBundle(DetectorBundleError),
Cycle(CycleDetected),
CoordinateOverflow(CoordinateOverflowError),
InvalidDuration,
InvalidSourceTiming,
IdOverflow(&'static str),
QuantumVariantLimit {
node: u32,
guards: usize,
variants: usize,
limit: usize,
},
QuantumVariantAllocation {
variants: usize,
source: TryReserveError,
},
MissingRecord {
instance: u32,
measurement: u32,
},
MissingBit {
node: u32,
slot: u32,
},
MissingOutputFrame([i32; 3]),
MissingInputInstance(u32),
MissingOutputInstance(u32),
ReusedOutputBoundary,
NonSourceRus(u32),
MissingMemoryTemplate {
from: u32,
to: u32,
},
MissingDecoderHold(u32),
Unflattened(&'static str),
InvalidFrontier(usize),
}Expand description
Failure to produce a finite, standalone VM program.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidProgram(BloqValidationError)
An IR emission plan could not be materialized.
Flatten(FlattenError)
Repeat flattening failed or exceeded its configured IR resource bound.
Edit(EditError)
Materializing an exact dynamic memory frontier failed.
Structure(StructureError)
A region boundary did not have the unique escape required for padding.
Analysis(ExecError)
Output-cut or decode-closure analysis failed.
Alignment(MomentAlignmentError)
Existing IR moment lanes could not be aligned exactly.
Instantiation(NodeTemplateInstanceMergeError)
A node could not be instantiated or noised exactly.
DetectorBundle(DetectorBundleError)
A shared detector use has an invalid bundle or owner binding.
Cycle(CycleDetected)
A graph level has no topological execution order.
CoordinateOverflow(CoordinateOverflowError)
A placed coordinate overflowed the IR coordinate lattice.
InvalidDuration
Lowering configuration contains an invalid duration or a derived sum overflowed.
InvalidSourceTiming
A configured or derived source release is negative or non-finite.
IdOverflow(&'static str)
Dense VM identifiers exhausted u32.
QuantumVariantLimit
A conditional stage would require too many materialized choices.
Fields
QuantumVariantAllocation
A permitted choice count could not fit or allocate its choice table.
Fields
source: TryReserveErrorCapacity or allocation failure from the choice table.
MissingRecord
A record was referenced outside its producing emission plan.
MissingBit
A value edge expected a bit from a binding-only or sink task.
MissingOutputFrame([i32; 3])
A declared logical output has no lowered frame register.
MissingInputInstance(u32)
A declared logical input has no lowered owning task.
MissingOutputInstance(u32)
A declared logical output has no physical owning node.
ReusedOutputBoundary
Dynamic execution cannot defer this reused output boundary to program end.
NonSourceRus(u32)
Dynamic retries are supported only for source-isolated RUS regions.
MissingMemoryTemplate
A dynamic readiness edge lacks complete persisted one-round padding.
MissingDecoderHold(u32)
A source RUS output seam lost its physical decoder-hold cycle.
Unflattened(&'static str)
A flattened emission plan unexpectedly retained a loop or loop-state term.
InvalidFrontier(usize)
A materialized memory frontier could not be initialized exactly.
Trait Implementations§
Source§impl Debug for LowerError
impl Debug for LowerError
Source§impl Display for LowerError
impl Display for LowerError
Source§impl Error for LowerError
impl Error for LowerError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()