deltakit.decode.analysis.GraphDecoderManager#
- class deltakit.decode.analysis.GraphDecoderManager(noise_model: SequentialNoise[CodeT, ErrorT] | MonteCarloNoise[CodeT, ErrorT], decoder: GraphDecoder[HyperMultiGraph], decoding_graph: HyperMultiGraph | None = None, logicals: Sequence[Set[DecodingHyperEdge | int]] | None = None, reporters: list[BaseReporter] | None = None, metadata: dict[str, str] | None = None, seed: int | None = None, batch_size: int = 10000)#
Bases:
NoiseModelDecoderManager[Set[EdgeT],HyperMultiGraph,tuple[bool, …],list[Set[EdgeT]],list[tuple[bool, …]]]Decoder manager for a graph decoder with an edge-based noise model. In this representation, an edge corresponds to a possible error event and the nodes of the edge correspond to the syndromes triggered by the error.
Methods#
Configure pool workers to state of this decoder manager. |
|
Configure pool workers to state of this decoder manager. |
|
Generate an error for a single shot of decoding. |
|
Get aggregated data from the manager's internal state and all available reporters as a dict from string of data identifier to data. |
|
Reset all reporters and their aggregations. |
|
Run multiple shots of decoding. |
|
Run batch of shots in parallel using processes number of runners from pool. |
|
Run a single shot of decoding. |