experiments/decoders.py

Source from the repository checkout used to build these docs. Line numbers link to individual source lines.

 1"""A decoder variant for Python experiments on the same saved detector samples."""
 2
 3from chipsldpc.prototype import minsum_decode
 4
 5
 6def decode(row_ones, priors, syndrome, max_iterations):
 7    """Change normalized min-sum's check-message scale from 0.75 to 0.5.
 8
 9    Priors are floating-point LLRs. The result is a proposed error vector over
10    DEM columns. This function never receives the measured logical observables.
11    A new update rule needs a separate Scala implementation to run as RTL.
12    """
13    return minsum_decode(row_ones, priors, syndrome, max_iterations, scale=0.5)