deltakit.core.decoding_graphs.errors_to_syndrome#

deltakit.core.decoding_graphs.errors_to_syndrome(decoding_edges: Iterable[EdgeT], boundaries: Set[int] = frozenset({})) OrderedSyndrome#

Take decoding edges and convert to an ordered syndrome that would be observed if all decoding edges were to be active.

Parameters:
  • decoding_edges (Iterable[EdgeT]) – Decoding edges to convert.

  • boundaries (AbstractSet[int], optional) – Set of detectors that are virtual boundary detectors and should hence not show in a syndrome. By default None.

Returns:

Resultant ordered syndrome.

Return type:

OrderedSyndrome