pub trait SyndromeDecoder {
// Required method
fn decode(&self, syndrome: &[bool]) -> QuantRS2Result<PauliString>;
}Expand description
Trait for syndrome decoders
Required Methods§
Sourcefn decode(&self, syndrome: &[bool]) -> QuantRS2Result<PauliString>
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".