deltakit.decode.utils.create_dem_from_pij#
- deltakit.decode.utils.create_dem_from_pij(pij_data: dict[frozenset[int], float], graph: NXDecodingGraph | DecodingHyperGraph, logicals: list[set[DecodingHyperEdge]]) DetectorErrorModel#
Create a detector error model from a Pij probabilities data set and accompanying stim Circuit.
- Parameters:
pij_data (PijData) – Pij probabilities for edges between detectors.
graph (Union[NXDecodingGraph, DecodingHyperGraph]) – Accompanying (hyper)graph for the circuit from which boundaries and detector coordinates are derived.
logicals (List[Set[DecodingHyperEdge]]) – List of set of (hyper)edges that affect any logicals that exist.
- Returns:
stim.DetectorErrorModel for given pij_data and circuit.
- Return type:
stim.DetectorErrorModel