pub trait SurfaceCodeDecoder: Send + Sync {
// Required methods
fn decode(&self, syndrome: &SyndromeData) -> Correction;
fn name(&self) -> &str;
}Expand description
Trait for surface code decoders.
Implementations must be thread-safe (Send + Sync) to support
concurrent decoding of independent patches.
Required Methods§
Sourcefn decode(&self, syndrome: &SyndromeData) -> Correction
fn decode(&self, syndrome: &SyndromeData) -> Correction
Decode a syndrome and return the inferred correction.