pub trait SyndromeDetector {
// Required methods
fn detect_syndromes(
&self,
measurements: &HashMap<String, Vec<i32>>,
stabilizers: &[StabilizerGroup],
) -> QECResult<Vec<SyndromePattern>>;
fn validate_syndrome(
&self,
syndrome: &SyndromePattern,
history: &[SyndromePattern],
) -> QECResult<bool>;
}Expand description
Trait for syndrome detection in quantum error correction
Required Methods§
Sourcefn detect_syndromes(
&self,
measurements: &HashMap<String, Vec<i32>>,
stabilizers: &[StabilizerGroup],
) -> QECResult<Vec<SyndromePattern>>
fn detect_syndromes( &self, measurements: &HashMap<String, Vec<i32>>, stabilizers: &[StabilizerGroup], ) -> QECResult<Vec<SyndromePattern>>
Detect error syndromes from measurement results
Sourcefn validate_syndrome(
&self,
syndrome: &SyndromePattern,
history: &[SyndromePattern],
) -> QECResult<bool>
fn validate_syndrome( &self, syndrome: &SyndromePattern, history: &[SyndromePattern], ) -> QECResult<bool>
Validate a detected syndrome against historical patterns