pub enum MeasurementFrameError {
MeasurementCountOutOfRange {
measurements: usize,
},
RepeatedMeasurementCountOverflow {
measurements_per_iteration: u32,
repetitions: u32,
},
EmittedMeasurementCountOverflow {
emitted_count: u32,
additional: u32,
},
RepeatMeasurementOffsetOutOfRange {
offset: u32,
measurements_per_iteration: u32,
},
RepeatMeasurementOffsetOverflow,
RecordLookbackOutOfRange {
lookback: u32,
max: u32,
},
}Expand description
An overflow or out-of-range condition while accounting for the
measurements a repeated (REPEAT) circuit body contributes.
Variants§
MeasurementCountOutOfRange
One operation contains more measurement records than the backend count can address.
RepeatedMeasurementCountOverflow
One repeated block contributes too many measurements.
Fields
EmittedMeasurementCountOverflow
Adding measurements to the emitted count overflowed.
RepeatMeasurementOffsetOutOfRange
A loop-body measurement offset lies outside one iteration.
Fields
RepeatMeasurementOffsetOverflow
Computing a loop-body measurement offset overflowed.
RecordLookbackOutOfRange
A Stim record lookback exceeds its encoded range.
Trait Implementations§
Source§impl Clone for MeasurementFrameError
impl Clone for MeasurementFrameError
Source§fn clone(&self) -> MeasurementFrameError
fn clone(&self) -> MeasurementFrameError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MeasurementFrameError
impl Debug for MeasurementFrameError
Source§impl Display for MeasurementFrameError
impl Display for MeasurementFrameError
impl Eq for MeasurementFrameError
Source§impl Error for MeasurementFrameError
impl Error for MeasurementFrameError
1.30.0 · 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<MeasurementFrameError> for CircuitError
impl From<MeasurementFrameError> for CircuitError
Source§fn from(source: MeasurementFrameError) -> Self
fn from(source: MeasurementFrameError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MeasurementFrameError
impl PartialEq for MeasurementFrameError
impl StructuralPartialEq for MeasurementFrameError
Auto Trait Implementations§
impl Freeze for MeasurementFrameError
impl RefUnwindSafe for MeasurementFrameError
impl Send for MeasurementFrameError
impl Sync for MeasurementFrameError
impl Unpin for MeasurementFrameError
impl UnsafeUnpin for MeasurementFrameError
impl UnwindSafe for MeasurementFrameError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.