Skip to main content

SurfaceCodeDecoder

Trait SurfaceCodeDecoder 

Source
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§

Source

fn decode(&self, syndrome: &SyndromeData) -> Correction

Decode a syndrome and return the inferred correction.

Source

fn name(&self) -> &str

Human-readable name for this decoder.

Implementors§