deltakit.core.decoding_graphs.dem_to_hypergraph_and_logicals#
- deltakit.core.decoding_graphs.dem_to_hypergraph_and_logicals(dem: DetectorErrorModel) tuple[DecodingHyperGraph, list[set[DecodingHyperEdge]]]#
Convert a Stim detector error model into a DecodingHyperGraph and a list of edges which affect the logical observable at the index in the list.
- Parameters:
dem (stim.DetectorErrorModel) – Stim detector error model to convert.
- Returns:
DecodingHyperGraph created from detector error model and a list of edges which affect the logical.
- Return type:
Tuple[DecodingHyperGraph, List[Set[DecodingHyperEdge]]]