deltakit.decode.BeliefMatchingDecoder.decode_to_logical_flip#

BeliefMatchingDecoder.decode_to_logical_flip(syndrome: OrderedSyndrome) tuple[bool, ...]#

Decode a given syndrome and return a flip boolean for each logical.

Parameters:

syndrome (OrderedSyndrome) – Syndrome to decode, as a collection of syndrome bits.

Returns:

List of logical flips as booleans. True if the homology class is 1 (flipped), False if the homology class is 0 (not flipped).

Return type:

Tuple[bool, …]