deltakit.decode.analysis.B8DecoderManager#
- class deltakit.decode.analysis.B8DecoderManager(syndrome_b8_input: Path | bytes, logical_flip_b8_input: Path | bytes, decoder: GraphDecoder, reporters: list[BaseReporter] | None = None, metadata: dict[str, Any] | None = None)#
Bases:
DecoderManagerDecoder manager to run experiments defined by a b8 input for syndromes and target logical flips.
The b8 data formats were proposed by Google Quantum AI and can be read about here: https://github.com/quantumlib/Stim/blob/main/doc/result_formats.md#b8
- Parameters:
syndrome_b8_file (Path | bytes) – Path to the file containing input syndromes in b8 format or a bytes object that stores b8 data
logical_flip_b8_file (Path | bytes) – Path to the file containing input logical flips in b8 format or a bytes object that stores b8 data
decoder (GraphDecoder) – Decoder to use for decoding.
reporters (Optional[List[BaseReporter]], optional) – Reporters are not supported by this decoder manager, by default None.
metadata (Optional[Dict[str, Any]], optional) – Metadata to associate with this experiment, by default None.
Methods#
Configure pool workers to state of this decoder manager. |
|
Configure pool workers to state of this decoder manager. |
|
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. |