#[non_exhaustive]pub enum ProgramSliceError {
RegionIdOverflow,
DetectorBundle(DetectorBundleError),
MembershipSelectionRequired,
Materialization(BloqValidationError),
UnknownMeasurement {
region: ProgramRegionId,
measurement: InstanceMeasurement,
},
UnknownInstance {
region: ProgramRegionId,
instance: TemplateInstanceId,
},
Flatten(FlattenError),
Cycle(CycleDetected),
NonLinearExpr {
node: NodeRef,
},
Detslice(DetsliceError),
BreakOutsideTimeline {
region: ProgramRegionId,
},
}Expand description
Why program_detector_slices could not build the tape.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RegionIdOverflow
Detector-slice region ids exhausted their u32 index space.
DetectorBundle(DetectorBundleError)
A detector bundle use is malformed.
MembershipSelectionRequired
Conditional membership must be pinned before slicing.
Materialization(BloqValidationError)
A quantum emission plan could not be materialized.
UnknownMeasurement
A requested region refers to a measurement no emitted stage provides.
Fields
§
region: ProgramRegionIdRegion containing the reference.
§
measurement: InstanceMeasurementUnavailable measurement.
UnknownInstance
A requested region refers to an instance absent from the program.
Fields
§
region: ProgramRegionIdRegion containing the reference.
§
instance: TemplateInstanceIdUnavailable instance.
Flatten(FlattenError)
Repeat flattening failed.
Cycle(CycleDetected)
A graph level is cyclic.
NonLinearExpr
An observable expression is nonlinear.
Detslice(DetsliceError)
Stabilizer tracking failed.
BreakOutsideTimeline
A gauge break could not be assigned to a moment.
Fields
§
region: ProgramRegionIdRegion that broke outside the timeline.
Trait Implementations§
Source§impl Debug for ProgramSliceError
impl Debug for ProgramSliceError
Source§impl Display for ProgramSliceError
impl Display for ProgramSliceError
Source§impl Error for ProgramSliceError
impl Error for ProgramSliceError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<BloqValidationError> for ProgramSliceError
impl From<BloqValidationError> for ProgramSliceError
Source§fn from(source: BloqValidationError) -> Self
fn from(source: BloqValidationError) -> Self
Converts to this type from the input type.
Source§impl From<CycleDetected> for ProgramSliceError
impl From<CycleDetected> for ProgramSliceError
Source§fn from(source: CycleDetected) -> Self
fn from(source: CycleDetected) -> Self
Converts to this type from the input type.
Source§impl From<DetectorBundleError> for ProgramSliceError
impl From<DetectorBundleError> for ProgramSliceError
Source§fn from(source: DetectorBundleError) -> Self
fn from(source: DetectorBundleError) -> Self
Converts to this type from the input type.
Source§impl From<DetsliceError> for ProgramSliceError
impl From<DetsliceError> for ProgramSliceError
Source§fn from(source: DetsliceError) -> Self
fn from(source: DetsliceError) -> Self
Converts to this type from the input type.
Source§impl From<FlattenError> for ProgramSliceError
impl From<FlattenError> for ProgramSliceError
Source§fn from(source: FlattenError) -> Self
fn from(source: FlattenError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProgramSliceError
impl RefUnwindSafe for ProgramSliceError
impl Send for ProgramSliceError
impl Sync for ProgramSliceError
impl Unpin for ProgramSliceError
impl UnsafeUnpin for ProgramSliceError
impl UnwindSafe for ProgramSliceError
Blanket Implementations§
§impl<T, BorrowedSelf> BitwiseMutViaBorrow<BorrowedSelf> for T
impl<T, BorrowedSelf> BitwiseMutViaBorrow<BorrowedSelf> for T
fn assign_index(&mut self, index: usize, to: bool)
fn negate_index(&mut self, index: usize)
fn clear_bits(&mut self)
fn assign_random(
&mut self,
bit_count: usize,
random_number_generator: &mut impl RngExt,
)where
BorrowedSelf: BitLength,
§impl<Bits, Other, BorrowedSelf, BorrowedOther> BitwisePairMutViaBorrow<Other, BorrowedSelf, BorrowedOther> for Bits
impl<Bits, Other, BorrowedSelf, BorrowedOther> BitwisePairMutViaBorrow<Other, BorrowedSelf, BorrowedOther> for Bits
fn assign(&mut self, other: &Other)
fn bitxor_assign(&mut self, other: &Other)
fn bitand_assign(&mut self, other: &Other)
fn bitor_assign(&mut self, other: &Other)
§impl<T, Other, BorrowedSelf, BorrowedOther> BitwisePairViaBorrow<Other, BorrowedSelf, BorrowedOther> for T
impl<T, Other, BorrowedSelf, BorrowedOther> BitwisePairViaBorrow<Other, BorrowedSelf, BorrowedOther> for T
§impl<T, BorrowedSelf> BitwiseViaBorrow<BorrowedSelf> for T
impl<T, BorrowedSelf> BitwiseViaBorrow<BorrowedSelf> for T
fn index(&self, index: usize) -> bool
fn weight(&self) -> usize
fn parity(&self) -> bool
fn is_zero(&self) -> bool
fn is_unit(&self, index: usize) -> bool
fn support<'a>(&'a self) -> impl SortedIteratorwhere
BorrowedSelf: 'a,
fn max_support(&self) -> Option<usize>
fn min_support(&self) -> Option<usize>
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more