pub struct FaultRecord<R> {
pub fault: Fault,
pub tolerated: bool,
pub path: SemanticsPath,
pub residual: R,
pub remainder_terms: usize,
pub propagated_weight: Option<usize>,
pub witness: Option<String>,
}Expand description
One fault’s verdict.
Fields§
§fault: FaultThe fault.
tolerated: boolWhether the fault is tolerated.
path: SemanticsPathThe path that decided it.
residual: RZero or one on the exact path; the Frobenius residual on the numeric path.
remainder_terms: usizeThe Pauli terms of the remainder on the exact path, one for the identity; zero on the numeric path.
propagated_weight: Option<usize>The weight of the propagated Pauli on the exact path.
witness: Option<String>Why the fault is not tolerated, when it is not.
Trait Implementations§
Source§impl<R: Clone> Clone for FaultRecord<R>
impl<R: Clone> Clone for FaultRecord<R>
Source§fn clone(&self) -> FaultRecord<R>
fn clone(&self) -> FaultRecord<R>
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<R: Debug> Debug for FaultRecord<R>
impl<R: Debug> Debug for FaultRecord<R>
Source§impl<R: PartialEq> PartialEq for FaultRecord<R>
impl<R: PartialEq> PartialEq for FaultRecord<R>
impl<R: PartialEq> StructuralPartialEq for FaultRecord<R>
Auto Trait Implementations§
impl<R> Freeze for FaultRecord<R>where
R: Freeze,
impl<R> RefUnwindSafe for FaultRecord<R>where
R: RefUnwindSafe,
impl<R> Send for FaultRecord<R>where
R: Send,
impl<R> Sync for FaultRecord<R>where
R: Sync,
impl<R> Unpin for FaultRecord<R>where
R: Unpin,
impl<R> UnsafeUnpin for FaultRecord<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for FaultRecord<R>where
R: UnwindSafe,
Blanket Implementations§
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