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§
Sourcefn observable_error_matrix(&self) -> Arc<SparseBitMatrix>
fn observable_error_matrix(&self) -> Arc<SparseBitMatrix>
The logical action matrix of the underlying trait.
Provided Methods§
Sourcefn compute_observables(&self, errors: ArrayView1<'_, Bit>) -> Array1<Bit>
fn compute_observables(&self, errors: ArrayView1<'_, Bit>) -> Array1<Bit>
Compute the logical errors from the logical action matrix.