pub enum StimVerifyError {
Emission(StimEmissionError),
Circuit(CircuitError),
Flow(FlowError),
UnmatchedInterface(String),
ChunkDoesNotHaveFlows {
flows: Vec<String>,
},
LoopChunk {
index: usize,
source: Box<StimVerifyError>,
},
Stim(StimError),
}Expand description
Reason a chunk failed stim-based flow verification.
Variants§
Emission(StimEmissionError)
The static backend cannot represent the circuit’s layout.
Circuit(CircuitError)
Circuit construction or measurement resolution failed.
Flow(FlowError)
Declared flow boundaries could not be matched consistently.
UnmatchedInterface(String)
A chunk’s boundary does not match its expected interface.
ChunkDoesNotHaveFlows
Stim confirmed the emitted circuit does not carry the chunk’s declared
flows; flows holds their string forms for diagnostics.
LoopChunk
A sub-chunk of a loop body failed verification; index is its position
within the body.
Fields
§
source: Box<StimVerifyError>Failure reported for that chunk.
Stim(StimError)
Stim rejected emitted circuit or flow text.
Trait Implementations§
Source§impl Debug for StimVerifyError
impl Debug for StimVerifyError
Source§impl Display for StimVerifyError
impl Display for StimVerifyError
Source§impl Error for StimVerifyError
impl Error for StimVerifyError
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<CircuitError> for StimVerifyError
impl From<CircuitError> for StimVerifyError
Source§fn from(source: CircuitError) -> Self
fn from(source: CircuitError) -> Self
Converts to this type from the input type.
Source§impl From<FlowError> for StimVerifyError
impl From<FlowError> for StimVerifyError
Source§impl From<StimEmissionError> for StimVerifyError
impl From<StimEmissionError> for StimVerifyError
Source§fn from(source: StimEmissionError) -> Self
fn from(source: StimEmissionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StimVerifyError
impl RefUnwindSafe for StimVerifyError
impl Send for StimVerifyError
impl Sync for StimVerifyError
impl Unpin for StimVerifyError
impl UnsafeUnpin for StimVerifyError
impl UnwindSafe for StimVerifyError
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more