pub struct Correction {
pub pauli_corrections: Vec<(u32, PauliType)>,
pub logical_outcome: bool,
pub confidence: f64,
pub decode_time_ns: u64,
}Expand description
Decoder output: a set of Pauli corrections to apply.
Fields§
§pauli_corrections: Vec<(u32, PauliType)>List of (qubit_index, pauli_type) corrections.
logical_outcome: boolInferred logical measurement outcome after correction.
confidence: f64Decoder confidence in the correction (0.0 to 1.0).
decode_time_ns: u64Wall-clock decoding time in nanoseconds.
Trait Implementations§
Source§impl Clone for Correction
impl Clone for Correction
Source§fn clone(&self) -> Correction
fn clone(&self) -> Correction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Correction
impl RefUnwindSafe for Correction
impl Send for Correction
impl Sync for Correction
impl Unpin for Correction
impl UnsafeUnpin for Correction
impl UnwindSafe for Correction
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