Skip to main content

SyndromeDecoder

Trait SyndromeDecoder 

Source
pub trait SyndromeDecoder {
    // Required method
    fn decode(&self, syndrome: &[bool]) -> QuantRS2Result<PauliString>;
}
Expand description

Trait for syndrome decoders

Required Methods§

Source

fn decode(&self, syndrome: &[bool]) -> QuantRS2Result<PauliString>

Decode a syndrome to find the most likely error

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§