deltakit.core.decoding_graphs.parse_explained_dem#
- deltakit.core.decoding_graphs.parse_explained_dem(explained_dem: list[ExplainedError]) DecodingHyperMultiGraph#
Parse an explained DEM into a hyper-multi-graph. Information about which logicals an edge affects is stored in the edge record of that edge
- Parameters:
explained_dem (List[stim.ExplainedError]) – The explained DEM which comes from the stim.Circuit.explain_detector_error_model_errors method.
- Returns:
A HyperMultiGraph object which represents all possible errors in the explained DEM.
- Return type:
- Raises:
TypeError – If there is a target separator (^) in the explained DEM since we don’t expect this character to appear there.