deltakit.decode.analysis.EmpiricalDecodingErrorDistribution.record_error#

EmpiricalDecodingErrorDistribution.record_error(correction: tuple[bool, ...], target: tuple[bool, ...])#

Computes and adds error event based on predicted and target value of the logicals.

Parameters:
  • correction (Tuple[bool, ..]) – List of logical flips as booleans. True if the homology class is 1 (flipped), False if the homology class is 0 (not flipped).

  • target (Tuple[bool, ..]) – The target logical flips. True if the homology class is 1 (flipped), False if the homology class is 0 (not flipped).