deltakit.core.decoding_graphs.get_round_words#
- deltakit.core.decoding_graphs.get_round_words(detector_indices: Sequence[int], num_detectors_per_round: int, num_rounds: int) Iterator[FixedWidthBitstring]#
For given sparse-form sequence, return the corresponding bit-strings that correspond to individual decoding rounds.
The sparse sequence is expected to contain defects, boundary adjacency, logical adjacency or other bits that are specified per-detector.
- Parameters:
detector_indices (Sequence[int]) – Sparse form of detector aligned data.
num_detectors_per_round (int) – Number of detectors in each decoding round.
num_rounds (int) – Number of decoding rounds.
- Yields:
Iterator[FixedWidthBitstring] – Bitstrings for each decoding round, containing dense-form data.