pub struct DecoderBenchmark {
pub total_syndromes: u64,
pub total_decode_time_ns: u64,
pub correct_corrections: u64,
pub logical_error_rate: f64,
}Expand description
Results from benchmarking a decoder.
Fields§
§total_syndromes: u64Total number of syndrome rounds decoded.
total_decode_time_ns: u64Total wall-clock decode time in nanoseconds.
correct_corrections: u64Number of corrections that preserved the logical state.
logical_error_rate: f64Estimated logical error rate (errors / total).
Implementations§
Source§impl DecoderBenchmark
impl DecoderBenchmark
Sourcepub fn avg_decode_time_ns(&self) -> f64
pub fn avg_decode_time_ns(&self) -> f64
Average decode time per syndrome in nanoseconds.
Sourcepub fn throughput(&self) -> f64
pub fn throughput(&self) -> f64
Decoding throughput in syndromes per second.
Trait Implementations§
Source§impl Clone for DecoderBenchmark
impl Clone for DecoderBenchmark
Source§fn clone(&self) -> DecoderBenchmark
fn clone(&self) -> DecoderBenchmark
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 DecoderBenchmark
impl RefUnwindSafe for DecoderBenchmark
impl Send for DecoderBenchmark
impl Sync for DecoderBenchmark
impl Unpin for DecoderBenchmark
impl UnsafeUnpin for DecoderBenchmark
impl UnwindSafe for DecoderBenchmark
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