Skip to main content

ObservableDecoder

Trait ObservableDecoder 

Source
pub trait ObservableDecoder: Decoder {
    // Required method
    fn observable_error_matrix(&self) -> Arc<SparseBitMatrix>;

    // Provided methods
    fn compute_observables(&self, errors: ArrayView1<'_, Bit>) -> Array1<Bit> { ... }
    fn decode_observables(
        &mut self,
        detectors: ArrayView1<'_, Bit>,
    ) -> Array1<Bit> { ... }
}

Required Methods§

Source

fn observable_error_matrix(&self) -> Arc<SparseBitMatrix>

The logical action matrix of the underlying trait.

Provided Methods§

Source

fn compute_observables(&self, errors: ArrayView1<'_, Bit>) -> Array1<Bit>

Compute the logical errors from the logical action matrix.

Source

fn decode_observables(&mut self, detectors: ArrayView1<'_, Bit>) -> Array1<Bit>

Implementors§