deltakit.core.data_formats.b8_to_logical_flip#
- deltakit.core.data_formats.b8_to_logical_flip(b8_input: Path | bytes, num_logicals: int = 1) Iterator[tuple[bool, ...]]#
Given a b8 input (either a file path containing b8 data or bytes), and the number of detectors that should be in each syndrome, return a generator of logical flips.
Informed by https://github.com/quantumlib/Stim/blob/main/doc/result_formats.md#b8