Conference PaperPDF Available

Quasilinear Time Decoding Algorithm for Topological Codes with High Error Threshold

Authors:

Abstract

We propose here a modification of the UF decoder that improves the heuristic for minimum-weight matching. The modified decoder, which we dub the Union-Find Balanced Bloom decoder (UFBB), achieves near MWPM thresholds while retaining a quasilinear time complexity.
Quasilinear Time Decoding Algorithm for
Topological Codes with High Error Threshold
Mark Shui Hu1, David Elkouss
One of the most promising approaches for fault-tolerant quantum computation is based
on surface quantum error correcting codes [1, 2]. With surface codes, error correction
only requires the measurement of local operators on a 2-dimensional lattice of qubits. The
measurement outcome, called the syndrome, is passed to the decoding algorithm to deduct
the error that has occurred and to supply a correction operator. The resilience against
errors can be improved by increasing the system size whilst the physical error rate is below
a threshold value pth. For this, it is essential that the decoder has low time complexity; if
the clock-rate of the quantum computer becomes limited by the decoder, the advantages
of increasing the system size could be compromised.
Arguably, the most popular decoder for surface codes is the Minimum-Weight Perfect
Matching (MWPM) decoder [1]. The basic principle behind this approach is to identify
the lowest weight error configuration that can produce the syndrome. In general this is
a good approximation to the optimal maximum likelihood decoder [3]. For a toric code
that only suffers random Pauli noise, the optimal code threshold is pth = 10.9%, whereas
the MWPM decoder has pth = 10.3%. The MWPM matching are found by constructing
a fully connected graph between nodes of the syndrome, which leads to a cubic worst-case
time complexity of O(n3) [4].
Many other decoding algorithms have been developed [5–12]. Here, we build on top
of a recently proposed decoder called the Union-Find (UF) decoder. It combines a very
low time complexity with a high threshold [13, 14] making it a practical solution for real
devices. The UF decoder maps each syndrome to a vertex in a non-connected graph on the
code lattice, and grows clusters of vertices locally by adding iteratively a layer of edges and
vertices to existing clusters until all clusters have an even number of non-trivial syndrome
vertices. It then trims the clusters until all non-trivial syndrome vertices are paired and
linked by a path, which is the correcting operator. By growing the clusters of vertices in
order of their sizes, the UF-decoder can be regarded as a heuristic for minimum-weight
matching, and has a threshold of pth = 9.9% for the toric code. The complexity of the UF
decoder is driven by the merging between clusters. For this the algorithm uses the Union-
Find or disjoint-set data structure [15], which has worst-cast time complexity O(Nα(N)),
where αis the inverse of Ackermann’s function. For any physical feasible amount of qubits,
this value is α(N)3, leading to an “almost-linear” time complexity.
We propose here a modification of the UF decoder that improves the heuris-
tic for minimum-weight matching. The modified decoder, which we dub the
Union-Find Balanced Bloom decoder (UFBB), achieves near MWPM thresh-
olds while retaining a quasilinear time complexity.
In the following we give some intuition into how the UFBB decoder works. Consider
the cluster of vertices V={v0, v1, v2}in Figure 1. Now let us investigate the weights of a
matching if an additional vertex v0is connected to the cluster. If v0is connected to v0or
to v2, then the resulting matching has a total weight of 2: (v0, v0) and (v1, v2), or (v0, v1)
and (v2, v0). However, if v0is connected to vertex v2, then the total weight is 3: (v0, v1)
and (v0, v2). Inspired by this idea, we introduce the concept of potential matching weight
(PMW) of a vertex.
1S.Hu-1@student.tudelft.nl
1
The calculation of the PMW requires to introduce a new data structure that we call
the node-set of a cluster. The node-set of a cluster is a partition of the cluster such that
each element of the partition consists of a set of adjacent vertices that are either interior
elements in the associated graph or have equal PMW (Figure 2). The calculation of the
PMW is performed by two depth-first searches of the node-set (Figure 3), where the PMW
is translated into a node delay that determines the priority for cluster growth, such that
the growth of a cluster moves towards equal PMW in the cluster (Balanced Bloom).
The UFBB decoder has a higher complexity than the UF decoder. Due to the merges
of clusters, the PMW values in a cluster change and need to be recalculated, which in turn
requires to join the associated node-sets. These join operations are more complex than
those of the UF (union of vertex sets). However, we can show that the worst-case time
complexity of UFBB is O(nlog n), which is still quasilinear.
Our numerical results show that the error threshold of the UFBB decoder (Figure 4)
is pth = 10.25% compared to 10.02% for our implementation of the UF decoder and near
the threshold of MWPM 10.35% (thresholds differ from reported value due to changes
in cluster sorting, fitting parameters, etc.). Including measurement errors, the UFBB
decoder achieves a threshold of 2.86%, compared to 2.70% (UF) and 2.98% (MWPM).
We also find that the numeric average-case time complexity (for a range of error rates in
Figure 5) matches the complexity of the UF decoder up to a constant factor.
[1] Eric Dennis et al. “Topological quantum memory”. In: Journal of Mathematical Physics 43.9 (2002),
pp. 4452–4505.
[2] A Yu Kitaev. “Fault-tolerant quantum computation by anyons”. In: Annals of Physics 303.1 (2003),
pp. 2–30.
[3] Sergey Bravyi, Martin Suchara, and Alexander Vargo. “Efficient algorithms for maximum likelihood
decoding in the surface code”. In: Physical Review A 90.3 (2014), p. 032326.
[4] Vladimir Kolmogorov. “Blossom V: a new implementation of a minimum cost perfect matching
algorithm”. In: Mathematical Programming Computation 1.1 (2009), pp. 43–67.
[5] Austin G Fowler. “Minimum weight perfect matching of fault-tolerant topological quantum error
correction in average O(1) parallel time”. In: arXiv preprint arXiv:1307.1740 (2013).
[6] Guillaume Duclos-Cianci and David Poulin. “Fault-tolerant renormalization group decoder for Abelian
topological codes”. In: arXiv preprint arXiv:1304.6100 (2013).
[7] Adrian Hutter, Daniel Loss, and James R Wootton. “Improved HDRG decoders for qudit and non-
abelian quantum error correction”. In: New Journal of Physics 17.3 (2015), p. 035017.
[8] Fern HE Watson, Hussain Anwar, and Dan E Browne. “Fast fault-tolerant decoder for qubit and
qudit surface codes”. In: Physical Review A 92.3 (2015), p. 032309.
[9] David K Tuckett, Stephen D Bartlett, and Steven T Flammia. “Ultrahigh error threshold for surface
codes with biased noise”. In: Physical review letters 120.5 (2018), p. 050505.
[10] Aleksander Kubica and John Preskill. “Cellular-automaton decoders with provable thresholds for
topological codes”. In: Physical review letters 123.2 (2019), p. 020501.
[11] Giacomo Torlai and Roger G Melko. “Neural decoder for topological codes”. In: Physical review
letters 119.3 (2017), p. 030501.
[12] Savvas Varsamopoulos, Ben Criger, and Koen Bertels. “Decoding small surface codes with feedfor-
ward neural networks”. In: Quantum Science and Technology 3.1 (2017), p. 015004.
[13] Nicolas Delfosse and Gilles Z´emor. “Linear-time maximum likelihood decoding of surface codes over
the quantum erasure channel”. In: arXiv preprint arXiv:1703.01517 (2017).
[14] Nicolas Delfosse and Naomi H Nickerson. “Almost-linear time decoding algorithm for topological
codes”. In: arXiv preprint arXiv:1709.06218 (2017).
[15] Robert Endre Tarjan. “Efficiency of a good but not linear set union algorithm”. In: Journal of the
ACM (JACM) 22.2 (1975), pp. 215–225.
2
V
v0
v0
0
v1
v0
0
v2
v0
0
Figure 1: Unbalanced matching
weight in cluster vertex set V.
The matching edges (dashed)
correspond to the position of v0.
σ0σ1σ2
v3
v4
v5
V
N:
Figure 2: A node-set Nvs. a
vertex set V, both representing
the same cluster. Each shaded
area covers the vertices of a dif-
ferent node.
Parity
Delay
N
Figure 3: Two depth-first
searches on Nto compute node
parities (head recursively) and
delays (tail recursively).
Figure 4: Decoder success rate and threshold. Figure 5: Decoder performance in computation time.
3
... If an error occurs in a data qubit, such as a phase flip occurring on 9, the X stabilizers around it will pick it up by changing outcome (syndromes, highlighted in purple). There are advanced methods to decode sets of errors (e.g [14,22,53]). Errors can either be corrected on the spot or tracked classically by inverting later readouts. ...
... This figure shows measurements of the observables Z ⊗ Z (top) and Z ⊗ X (bottom) tional to code distance and the performance of the decoding algorithm (e.g. [14,22]). For our intents, it suffices to know that the size of the patches will depend on the physical error rate of the device, length of the computation and desired success rate of the logical computation. ...
Preprint
Full-text available
We present the first high performance compiler for very large scale quantum error correction: it translates an arbitrary quantum circuit to surface code operations based on lattice surgery. Our compiler offers an end to end error correction workflow implemented by a pluggable architecture centered around an intermediate representation of lattice surgery instructions. Moreover, the compiler supports customizable circuit layouts, can be used for quantum benchmarking and includes a quantum resource estimator. The compiler can process millions of gates using a streaming pipeline at a speed geared towards real-time operation of a physical device. We compiled within seconds 80 million logical surface code instructions, corresponding to a high precision Clifford+T implementation of the 128-qubit Quantum Fourier Transform (QFT). Our code is open-sourced at \url{https://github.com/latticesurgery-com}.
Article
Full-text available
In the search for scalable, fault-tolerant quantum computing, distributed quantum computers are promising candidates. These systems can be realized in large-scale quantum networks or condensed onto a single chip with closely situated nodes. We present a framework for numerical simulations of a memory channel using the distributed toric surface code, where each data qubit of the code is part of a separate node, and the error-detection performance depends on the quality of four-qubit Greenberger–Horne–Zeilinger (GHZ) states generated between the nodes. We quantitatively investigate the effect of memory decoherence and evaluate the advantage of GHZ creation protocols tailored to the level of decoherence. We do this by applying our framework for the particular case of color centers in diamond, employing models developed from experimental characterization of nitrogen-vacancy centers. For diamond color centers, coherence times during entanglement generation are orders of magnitude lower than coherence times of idling qubits. These coherence times represent a limiting factor for applications, but previous surface code simulations did not treat them as such. Introducing limiting coherence times as a prominent noise factor makes it imperative to integrate realistic operation times into simulations and incorporate strategies for operation scheduling. Our model predicts error probability thresholds for gate and measurement reduced by at least a factor of three compared to prior work with more idealized noise models. We also find a threshold of 4 × 10 2 in the ratio between the entanglement generation and the decoherence rates, setting a benchmark for experimental progress.
Article
This paper introduces PyMatching, a fast open-source Python package for decoding quantum error-correcting codes with the minimum-weight perfect matching (MWPM) algorithm. PyMatching includes the standard MWPM decoder as well as a variant, which we call local matching , that restricts each syndrome defect to be matched to another defect within a local neighbourhood. The decoding performance of local matching is almost identical to that of the standard MWPM decoder in practice, while reducing the computational complexity. We benchmark the performance of PyMatching, showing that local matching is several orders of magnitude faster than implementations of the full MWPM algorithm using NetworkX or Blossom V for problem sizes typically considered in error correction simulations. PyMatching and its dependencies are open-source, and it can be used to decode any quantum code for which syndrome defects come in pairs using a simple Python interface. PyMatching supports the use of weighted edges, hook errors, boundaries and measurement errors, enabling fast decoding and simulation of fault-tolerant quantum computing.
Article
Quantum LDPC codes are a promising direction for low overhead quantum computing. In this paper, we propose a generalization of the Union-Find decoder as a decoder for quantum LDPC codes. We prove that this decoder corrects all errors with weight up to AnαAn^\alpha for some A,α>0A, \alpha > 0 , where n is the code length, for different classes of quantum LDPC codes such as toric codes and hyperbolic codes in any dimension D3D \geq 3 and quantum expander codes. To prove this result, we introduce a notion of covering radius which measures the spread of an error from its syndrome. We believe this notion could find application beyond the decoding problem. We also perform numerical simulations, which show that our Union-Find decoder outperforms the belief propagation decoder in the low error rate regime in the case of a quantum LDPC code with length 3600.
Article
Full-text available
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))O(n \alpha(n)), where n is the number of physical qubits and α\alpha is the inverse of Ackermann's function, which is very slowly growing. For all practical purposes, α(n)3\alpha(n) \leq 3. We prove that our algorithm performs optimally for errors of weight up to (d1)/2(d-1)/2 and for loss of up to d1d-1 qubits, where d is the minimum distance of the code. Numerically, we obtain a threshold of 9.9%9.9\% for the 2d-toric code with perfect syndrome measurements and 2.6%2.6\% with faulty measurements.
Article
Full-text available
Surface codes reach high error thresholds when decoded with known algorithms, but the decoding time will likely exceed the available time budget, especially for near-term implementations. To decrease the decoding time, we reduce the decoding problem to a classification problem that a feedforward neural network can solve. We investigate quantum error correction and fault tolerance at small code distances using neural network-based decoders, demonstrating that the neural network can generalize to inputs that were not provided during training and that they can reach similar or better decoding performance compared to previous algorithms. We conclude by discussing the time required by a feedforward neural network decoder in hardware.
Article
Full-text available
Surface codes are among the best candidates to ensure the fault-tolerance of a quantum computer. In order to avoid the accumulation of errors during a computation, it is crucial to have at our disposal a fast decoding algorithm to quickly identify and correct errors as soon as they occur. We propose a linear-time maximum likelihood decoder for surface codes over the quantum erasure channel. This decoding algorithm for dealing with qubit loss is optimal both in terms of performance and speed.
Article
Full-text available
Hard-decision renormalization group (HDRG) decoders are an important class of decoding algorithms for topological quantum error correction. Due to their versatility, they have been used to decode systems with fractal logical operators, color codes, qudit topological codes, and non-Abelian systems. In this work, we develop a method of performing HDRG decoding which combines strenghts of existing decoders and further improves upon them. In particular, we increase the minimal number of errors necessary for a logical error in a system of linear size L from Θ(L2/3)\Theta(L^{2/3}) to Ω(L1ϵ)\Omega(L^{1-\epsilon}) for any ϵ>0\epsilon>0. We apply our algorithm to decoding D(Zd)D(\mathbb{Z}_d) quantum double models and a non-Abelian anyon model with Fibonacci-like fusion rules, and show that it indeed significantly outperforms previous HDRG decoders. Furthermore, we provide the first study of continuous error correction with imperfect syndrome measurements for the D(Zd)D(\mathbb{Z}_d) quantum double models. The parallelized runtime of our algorithm is poly(logL)\text{poly}(\log L) for the perfect measurement case. In the continuous case with imperfect syndrome measurements, the averaged runtime is O(1) for Abelian systems, while continuous error correction for non-Abelian anyons stays an open problem.
Article
We propose a new cellular automaton (CA), the Sweep Rule, which generalizes Toom's rule to any locally Euclidean lattice. We use the Sweep Rule to design a local decoder for the toric code in d>=3 dimensions, the Sweep Decoder,and rigorously establish a lower bound on its performance. We also numerically estimate the Sweep Decoder threshold for the three-dimensional toric code on the cubic and body-centered cubic lattices for phenomenological phase-flip noise. Our results lead to new CA decoders with provable error-correction thresholds for other topological quantum codes including the color code.
Article
We show that a simple modification of the surface code can exhibit an enormous gain in the error correction threshold for a noise model in which Pauli Z errors occur more frequently than X or Y errors. Such biased noise, where dephasing dominates, is ubiquitous in many quantum architectures. In the limit of pure dephasing noise we find a threshold of 43.7(1)% using a tensor network decoder proposed by Bravyi, Suchara and Vargo. The threshold remains surprisingly large in the regime of realistic noise bias ratios, for example 28.1(1)% at a bias of 10. The performance is in fact at or near the hashing bound for all values of the bias. The modified surface code still uses only weight-4 stabilizers on a square lattice, but merely requires measuring products of Y instead of Z around the faces, as this doubles the number of useful syndrome bits associated with the dominant Z errors. Our results demonstrate that large efficiency gains can be found by appropriately tailoring codes and decoders to realistic noise models, even under the locality constraints of topological codes.
Article
We present an algorithm for error correction in topological codes that exploits modern machine learning techniques. Our decoder is constructed from a stochastic neural network called a Boltzmann machine, of the type extensively used in deep learning. We provide a general prescription for the training of the network and a decoding strategy that is applicable to a wide variety of stabilizer codes with very little specialization. We demonstrate the neural decoder numerically on the well-known two dimensional toric code with phase-flip errors.
Article
A two-dimensional quantum system with anyonic excitations can be considered as a quantum computer. Unitary transformations can be performed by moving the excitations around each other. Measurements can be performed by joining excitations in pairs and observing the result of fusion. Such computation is fault-tolerant by its physical nature.
Article
Consider a 2-D square array of qubits of extent L × L. We provide a proof that the minimum weight perfect matching problem associated with running a particular class of topological quantum error correction codes on this array can be exactly solved with a 2-D square array of classical computing devices, each of which is nominally associated with a fixed number N of qubits, in constant average time per round of error detection independent of L provided physical error rates are below fixed nonzero values, and other physically reasonable assumptions. This proof is applicable to the fully fault-tolerant case only, not the case of perfect stabilizer measurements.
Article
The surface code is one of the most promising candidates for combating errors in large scale fault-tolerant quantum computation. A fault-tolerant decoder is a vital part of the error correction process---it is the algorithm which computes the operations needed to correct or compensate for the errors according to the measured syndrome, even when the measurement itself is error prone. Previously decoders based on minimum-weight perfect matching have been studied. However, these are computationally expensive and not immediately generalizable from qubit to qudit codes. In this work, we develop a fast fault-tolerant decoder for the surface code, capable of efficient operation for qubits and qudits of any dimension, generalizing the decoder first introduced by Bravyi and Haah [Phys. Rev. Lett. 111, 200501 (2013)]. We study its performance when both the physical qudits and the syndromes measurements are subject to generalized uncorrelated bit-flip noise (and the higher dimensional equivalent). We show that, with appropriate enhancements to the decoder and a high enough qudit dimension, a threshold at an error rate of more than 8% can be achieved.