Source-linked AI summary

Almost-linear time decoding algorithm for topological codes

Nicolas Delfosse, Naomi H. Nickerson

arXiv:1709.06218v3quant-ph

TL;DR

Fast decoding is needed to correct errors before they destroy quantum information and to keep pace with quantum-device operation. The paper designs a Union-Find decoder for Pauli errors, erasures, and their combination, achieving almost-linear worst-case complexity. It proves optimal correction bounds and reports thresholds of 9.9% with perfect measurements and 2.6% with faulty measurements.

  • Problem

    Quantum computing requires classical decoders that process error information fast enough to keep pace with quantum devices.

  • Method

    The paper uses a Union-Find data structure to dynamically grow and merge error clusters before applying erasure decoding.

  • Results

    The decoder achieves worst-case complexity O(nα(n)) and corrects any combination of t erasures and s Z-errors when t + 2s < d.

  • Takeaways & Limitations

    The decoder provides a practical fast-decoding approach with a high threshold and complexity close to the O(n) lower bound for nonparallelized decoding.

  • Takeaways & Limitations

    The study considers only simple noise models; performance under circuit-level error remains to be studied for meaningful threshold comparisons.

Abstract

from arXiv · show

In order to build a large scale quantum computer, one must be able to correct errors extremely fast. We design a fast decoding algorithm for topological codes to correct for Pauli errors and erasure and combination of both errors and erasure. Our algorithm has a worst case complexity of $O(n α(n))$, where $n$ is the number of physical qubits and $α$ is the inverse of Ackermann's function, which is very slowly growing. For all practical purposes, $α(n) \leq 3$. We prove that our algorithm performs optimally for errors of weight up to $(d-1)/2$ and for loss of up to $d-1$ qubits, where $d$ is the minimum distance of the code. Numerically, we obtain a threshold of $9.9\%$ for the 2d-toric code with perfect syndrome measurements and $2.6\%$ with faulty measurements.

Introduction

Topological-code decoders must process errors quickly enough to keep pace with quantum processors. The paper introduces a decoder with worst-case complexity O(nα(n)) and reports high thresholds.

  • Fast decoding is essential because unchecked errors rapidly destroy quantum information, while existing decoders may not match quantum-processor speeds.
  • The standard MWPM decoder has worst-case complexity between O(n^3) and O(n^7), depending on implementation.
  • The proposed topological-code decoder uses Union-Find and achieves worst-case complexity O(nα(n)) in the number of physical qubits.
  • The paper focuses on worst-case rather than average-case complexity because maximum decoder time determines the quantum computer’s clock-time requirement.

1 Background - the surface code

The surface code places qubits on the edges of a lattice and defines code states through stabilizer operators. The error model includes phase flips and known-location erasures, with decoding based on syndrome information.

  • The surface code is defined on a square-lattice torus with one qubit placed on each edge.
  • Vertex operators X_v and face operators Z_f form stabilizers whose simultaneous +1 eigenstates define the code space.
  • The model considers i.i.d. phase-flip errors and known-location erasures, with erasures represented as random Pauli errors after stabilizer measurement.
  • The decoder uses stabilizer outcomes to form a syndrome and seeks a correction C(σ, ε) such that the corrected error belongs to the stabilizer group.

2 Union-Find decoder for surface codes

The Union-Find decoder converts mixed Pauli-and-erasure decoding into erasure decoding by validating syndromes through growing and merging clusters. It then applies a peeling decoder to the modified erasure.

  • Erasure errors are simpler to decode because their locations are known, allowing corrections to be restricted to the erasure.
  • The decoder first performs syndrome validation, then applies an erasure decoder to a modified erasure ε′.
  • After cluster growth and merging, the peeling decoder finds a correction supported entirely within the validated erasure.
  • Invalid clusters contain an odd number of syndrome vertices and are grown until they merge with another odd cluster.
  • The naive procedure initializes odd clusters, grows them, fuses meeting clusters, updates the modified erasure, and finally applies peeling.

3 Decoder Performance

The decoder matches MLE performance below the code distance and corrects mixed erasure–Pauli noise whenever t + 2s < d. This bound is tight and the algorithm handles Pauli errors, erasures, and their combinations.

  • The decoder performs as well as the most likely error decoder in the low-error regime below the minimum distance.MWPM is identified as an implementation of an MLE decoder.
  • Any error configuration of weight up to (d − 1)/2 and any erasure pattern of up to d − 1 qubits can be corrected by MLE decoding.Both limits are tight.
  • For mixed noise, MLE decoding corrects t erased qubits and s Z-errors outside the erased set whenever t + 2s < d.This mixed-noise bound generalizes the separate Pauli-error and erasure cases and is tight.
  • If t + 2s < d, Algorithm 1 corrects any combination of t erased qubits and s Z-errors.The theorem covers mixed erasure and Pauli-error configurations.
  • The algorithm performs well for Pauli errors, erasures, and combinations of the two.

4 Achieving almost-linear complexity

The decoder achieves almost-linear complexity by using Union-Find structures to dynamically grow and merge clusters. Weighted unions, cluster trees, path compression, and linear-time boundary handling reduce the dominant work to O(nα(n)).

  • Union-Find algorithm for cluster growth: Union-Find operations dynamically identify and fuse clusters as they grow, providing the decoder’s leading complexity contribution.Find distinguishes clusters, while Union performs cluster fusion.
  • Union-Find algorithm for cluster growth: The naive implementation can require O(n2) time because each of up to n − 1 unions may update linearly many cluster indices.
  • 4.2 Implementation: Weighted union updates the smaller cluster, whose size at least doubles after each union, reducing index-update complexity to O(n log n).
  • 4.2 Implementation: Cluster trees represent clusters with arbitrary roots, storing cluster size and parity at the root while Find traverses tree depth.The trees start at depth one and are merged by attaching the smaller tree beneath the other root.
  • 4.2 Implementation: Path compression combined with weighted union gives the Union-Find implementation worst-case complexity O(nα(n)), which is optimal.Path compression shortens future root searches by pointing encountered vertices directly to the root.
  • 4.3 Summary of data structure and algorithm: The full decoder is dominated by O(nα(n)) Union-Find work, while initialization, cluster growth, boundary updates, and erasure decoding are linear in n.The Union-Find structure tracks cluster trees during syndrome validation.

5 Weighted growth version of the Union-Find decoder

Weighted growth improves decoding thresholds by prioritizing clusters with smaller boundaries while retaining almost-linear implementation complexity.

  • Growing smaller clusters first adds fewer erasures overall, increasing the chance of success in final erasure decoding.
  • 9.9% versus 9.2% is the 2d toric-code threshold for phase-flip errors after switching to weighted growth.With faulty-syndrome measurements, the threshold increases from 2.4% to 2.6%.
  • Weighted Growth remains almost-linear because clusters can be sorted by integer boundary size in linear time.Boundary sizes range from 1 to O(n).

6 Application to Quantum Computing

The decoder extends to faulty measurements, mixed erasure and Pauli noise, other geometries and dimensions, and color codes. Simulations quantify thresholds and below-threshold behavior in these settings.

  • Faulty measurements: The 2+1-dimensional decoding problem models repeated syndrome measurements on a three-dimensional lattice, with time represented by the third dimension.Space-like edges correspond to the physical code, while time-like edges represent measurement rounds.
  • Faulty measurements: Erasing a space-like syndrome edge represents physical-qubit erasure, while erasing a time-like edge represents erasure of a measurement outcome.A missing stabilizer outcome is treated as a classical measurement erasure.
  • Numerical evaluation: The simulations use independent erasure and Pauli-error rates in 2d, and independent erasure and phenomenological-error rates across repeated measurements in 3d.In 3d, both measurement outcomes and qubits between rounds can be erased or affected by Z errors.
  • Noise models: The decoder naturally handles a mixed noise model combining erasure and Pauli error.This extends its functionality beyond decoding Pauli errors alone.
  • Generalization: The Union-Find decoder requires only an underlying graph, enabling use across geometries and dimensions, including nonperiodic boundaries and complex geometries.The authors expect threshold performance to decrease relative to perfect matching as spatial dimension increases.
  • Generalization: For the [6] color code, projection onto surface codes preserves algorithmic complexity and yields an 8.4% threshold under i.i.d. Pauli Z error.The result comes from numerical decoding on a hexagonal lattice.

7 Conclusion

The decoder combines high threshold performance with a worst-case complexity close to the linear lower bound, while retaining practical speed through low constant overhead. The authors identify hardware optimization and broader noise-model evaluation as open directions.

  • Conclusion: The decoder has a high threshold and considerably lower worst-case complexity than other existing practical decoders.The authors state that its complexity is close to the best possible for a nonparallelized decoder.
  • Complexity: O(n) is the lowest possible decoding time for a nonparallelized decoder because the syndrome must be traversed at least once.The presented complexity is described as close to this lower bound.
  • Practical performance: A small constant overhead is important because practical decoder speed matters alongside asymptotic complexity.The conclusion emphasizes speed in practice as well as in theory.
  • Future directions: Parallel MWPM can achieve linear average-case complexity, while parallelization of the Union-Find decoder remains an open direction.The comparison concerns average-case performance and does not replace the paper’s worst-case focus.
  • Limitations and future work: The implementation achieved linear complexity but was not heavily optimized, and hardware implementation could improve its speed.The paper also studies only simple noise models, leaving circuit-level error evaluation for future work.
  • Implications: Fast decoding is presented as an important step toward overcoming the decoding hurdle in real quantum devices.The conclusion places the algorithm within the broader challenge of realizing error-corrected quantum computers.

A Ackermann’s function

This appendix defines the Ackermann function and its inverse, α(n), used to characterize Union-Find complexity. Because the function grows extremely rapidly, α(n) is at most 3 in practical situations.

  • Definition: Ackermann’s function is a two-parameter function defined recursively for pairs of non-negative integers.The paper uses the version described by Tarjan for Union-Find complexity bounds.
  • Growth: For j ≥ 1, the recursion gives A(1,j) = 2^j, while A(2,j) grows as 2^(2^(j−2)).These examples illustrate the rapidly increasing scale of Ackermann’s function.
  • Inverse function: α(n) is defined as the smallest i such that A(i,4) ≥ log2 n.This inverse function appears in the complexity analysis of Union-Find algorithms.
  • Practical scale: A(3,4) is so large that practical inputs never reach it, making α(n) ≤ 3 in practical situations.The bound follows from the rapid growth of Ackermann’s function.
  • Threshold illustrations: Figure 6 compares Z-type-error thresholds without erasure for the 2d and 3d toric codes.The supplied figure caption identifies the two panels but does not state their numerical outcomes.
  • Threshold illustrations: Figure 7 shows below-threshold performance for the 2d toric code at pe = 0.1, where logical error rates are exponentially suppressed as lattice size increases.Up to 10^9 Monte Carlo trials were performed per data point.

B Numerical results

Numerical simulations characterize threshold behavior for toric codes under the stated erasure setting. Below threshold, increasing lattice size exponentially suppresses the logical error rate.

  • 9.9% threshold for the 2d toric code with pe = 0.The estimate comes from repeated Monte Carlo simulations of random erasure and noise followed by decoding.
  • Exponential suppression of the logical error rate occurs as lattice size increases below threshold at pe = 0.1.This scaling provides strong evidence of threshold behavior.
Loading 1709.06218v3…