pub struct DetectorErrorModel {
pub detectors: Vec<Detector>,
pub observables: Vec<LogicalObservable>,
pub edges: Vec<DetectorErrorEdge>,
}Expand description
Typed detector error model.
This model can be produced by crate::DetectorErrorModelGenerator or
supplied directly to crate::DemHotspotEstimator.
Fields§
§detectors: Vec<Detector>§observables: Vec<LogicalObservable>§edges: Vec<DetectorErrorEdge>Implementations§
Source§impl DetectorErrorModel
impl DetectorErrorModel
pub fn compile_indexed(&self) -> NpResult<IndexedDem>
pub fn is_graphlike(&self) -> bool
pub fn compile_graphlike_problem(&self) -> NpResult<GraphlikeDecodingProblem>
Sourcepub fn compile_graphlike_problem_with_decomposition(
&self,
decomposition: &HashMap<usize, Vec<GraphlikeDecompositionComponent>>,
) -> NpResult<GraphlikeDecodingProblem>
pub fn compile_graphlike_problem_with_decomposition( &self, decomposition: &HashMap<usize, Vec<GraphlikeDecompositionComponent>>, ) -> NpResult<GraphlikeDecodingProblem>
Compile a graphlike decoder view using per-edge decomposition hints.
The canonical DEM remains unchanged: every component inherits its parent edge’s probability and original edge index. The decomposition is accepted only when the GF(2) XOR of its components exactly reproduces the canonical detector and observable support of the parent edge.
pub fn compile_binary_linear_problem( &self, ) -> NpResult<BinaryLinearDecodingProblem>
Trait Implementations§
Source§impl Clone for DetectorErrorModel
impl Clone for DetectorErrorModel
Source§impl Debug for DetectorErrorModel
impl Debug for DetectorErrorModel
Source§impl PartialEq for DetectorErrorModel
impl PartialEq for DetectorErrorModel
impl StructuralPartialEq for DetectorErrorModel
Auto Trait Implementations§
impl Freeze for DetectorErrorModel
impl RefUnwindSafe for DetectorErrorModel
impl Send for DetectorErrorModel
impl Sync for DetectorErrorModel
impl Unpin for DetectorErrorModel
impl UnsafeUnpin for DetectorErrorModel
impl UnwindSafe for DetectorErrorModel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more