This is the 2nd of 2 parts

The Toric Code & Current Research

The Toric Code

The toric code is an example of both a surface code [5] (a type of QEC method) and a topological quantum field theory [6], which is a sort of “mini-universe” governed by quasiparticles and physical laws such that the space of quantum states for any spatial configuration does not change under small perturbations. Systems that possess this robustness to perturbations are said to have topological order. Many current research projects seek to design systems with topological order, such as the toric code [7]. We now outline the toric code construction using the standard lattice approach.

First, we create an m×nm \times n lattice of edge segments, each containing a physical qubit. Then, we engineer so-called plaquette and vertex operations, which respectively act on the polygons (or plaquettes) enclosed between edges and on the nodes (or vertices) where the edges meet on the lattice.

Figure 4: Application of a plaquette operator (top) to lattice square ss. The operator applies a σx\sigma^x bit flip to all surrounding qubits, which lie on the edges of the square, resulting in the bottom image.

The precise form of these operations are [6],[8]: Ps=∏i∈{T,B,L,R}σxs,iandVv=∏i∈{T,B,L,R}σzv,i,P_s = \prod_{i \in \{T,B,L,R\}} \sigma_x^{s,i} \quad \text{and} \quad V_v = \prod_{i \in \{T,B,L,R\}} \sigma_z^{v,i}, where ss labels the plaquette square and vv labels the vertex. Note that σx\sigma_x and σz\sigma_z here are the Pauli XX and ZZ operators. If we represent each of our qubits as superpositions of the ∣0>\ket{0} and ∣1>\ket{1} states, then PsP_s flips all bits adjacent to plaquette ss (conditioned on their probability distributions), while VvV_v multiplies the phase (i.e. the complex coefficients) of all states adjacent to vertex vv by 1 conditioned on the qubit reading ∣0>\ket{0} and −1-1 conditioned on it reading as ∣1>\ket{1}. (See Figures 4 and 5 for visualizations.)

Figure 5: Application of a vertex operator (top) to a node on the lattice. The operator applies a σz\sigma^z sign flip to all surrounding qubits, which lie on the edges adjacent to the node, resulting in the bottom image.

Now, in quantum mechanics we can measure the “value” of an operator on certain states if its effect is simply to multiply the state’s coefficients by a single constant value. For instance, we can measure the VvV_v operator if the qubits adjacent to vv are all in well-defined ∣0>\ket{0} and ∣1>\ket{1} bit states. We will then measure VvV_v as +1+1 if the numbers of ∣0>\ket{0} and ∣1>\ket{1} states are both even, whereas we will measure −1-1 if the number of each type is odd.

It is more difficult to see which states admit measurement of the plaquette operator PsP_s, but it turns out for a given plaquette we can measure PsP_s if each of the surrounding qubits is either ∣+>=∣0>+∣1>2\ket{+} = \frac{\ket{0} + \ket{1}}{\sqrt{2}} or ∣−>=∣0>−∣1>2\ket{-} = \frac{\ket{0} - \ket{1}}{\sqrt{2}}. For a qubit in the ∣+>\ket{+} state, the corresponding σx\sigma_x factor of PsP_s will simply switch the order of the ∣0>\ket{0} and ∣1>\ket{1} terms, thus scaling the state by a factor of +1+1. Conversely, for a qubit in the ∣−>\ket{-} state, the corresponding σx\sigma_x factor of PsP_s will switch both the order and the sign of the ∣0>\ket{0} and ∣1>\ket{1} terms, thus scaling the state by a factor of −1-1. Putting these together, we conclude that if there are an even number of both ∣+>\ket{+} and ∣−>\ket{-} qubits surrounding plaquette ss, then we measure PsP_s to be +1+1, and if there are an odd number of each type we measure −1-1.

However, in general our quantum states need to be defined across the entire lattice, meaning we must take into account even the qubits which are not adjacent to plaquette ss. We can measure PsP_s on a complete lattice state provided that it is either symmetrized (i.e. invariant under flipping the plaquette bits in each term, so we measure +1+1) or antisymmetrized (i.e. negates under flipping the plaquette bits in each term, so we measure −1-1). See Figure 6 for details.

Figure 6: Illustration of a plaquette-symmetrized 3×33 \times 3 lattice superposition (top) and a 2×22 \times 2 plaquette-antisymmetrized lattice superposition (bottom).

Concretely, if we have two adjacent plaquettes with qubits on each of the seven edges, we can produce symmetrized and antisymmetrized states relative to the top plaquette s=1s = 1, which contains qubits {1,2,3,4}\{ 1,2,3,4 \}. Our symmetrized and antisymmetrized states might then be ∣1000 111>+∣0111 111>+∣0100 111>+∣1011 111>2and∣1000 111>−∣0111 111>+∣0100 111>−∣1011 111>2,\frac{\ket{1000 \ 111} + \ket{0111 \ 111} + \ket{0100 \ 111} + \ket{1011 \ 111}}{2} \quad \text{and} \quad \frac{\ket{1000 \ 111} - \ket{0111 \ 111} + \ket{0100 \ 111} - \ket{1011 \ 111}}{2}, where we emphasize that since we are concerned with P1P_1 we only symmetrize over the first four qubits. We will soon see the use of more complex symmetrization.

Once we have our vertex and plaquette operators, we encode them into the physics of our system by using them to construct the Hamiltonian. In general quantum mechanics, the Hamiltonian is an operator whose measurement tells us the total energy of our system. Here, our Hamiltonian is [6]: H=nvΔv+nsΔs−∑vΔvVv−∑sΔsPs.H = n_v \Delta_v + n_s \Delta_s - \sum_v \Delta_v V_v - \sum_s \Delta_s P_s. Note that each vertex starts with energy Δv\Delta_v and each plaquette with Δs\Delta_s. Then, that vertex (plaquette) energy is raised if the corresponding vertex (plaquette) operator measures −1-1 and lowered if it measures +1+1. Note that the lowest possible energy is 00, when all plaquettes and vertices measure +1+1. Any lattice configuration state which satisfies this is called a ground state, because in general quantum systems tend to relax to their lowest energy state unless there is some external input of heat, energy, or other physical disturbance (which there often is but not for the sake of this discussion).

But what do the ground states look like? According to the analysis above, if our lattice is an m×nm \times n array of qubits, then for the PsP_s operators we require our ground state to be fully symmetrized for every individual plaquette, and for the VvV_v operators we need each term of the ground state superposition to have an even number of both ∣0>\ket{0}s and ∣1>\ket{1}s associated with each vertex. It turns out that there are four independent ways to do this: if we draw one vertical line through the middle of a column of plaquettes and one horizontal line through the middle of a row of plaquettes, the four states are defined based on whether all terms in the superpositions have an even versus an odd number of ∣1>\ket{1} state qubit edges intersecting with each of the lines (see Figure 7).

Figure 7: Illustration of the different ground states based on parity.

Explicitly, the four options are Even+Even\text{Even} + \text{Even}, Even+Odd\text{Even} + \text{Odd}, Odd+Even\text{Odd} + \text{Even}, and Odd+Odd\text{Odd} + \text{Odd}. Note that all terms in the superposition will have the same parity for a given line because due to symmetrization they differ by plaquette operations, each of which changes the number of ∣1>\ket{1} bit intersections by a multiple of 22 (i.e. preserves parity). Moreover, the symmetrization implies that any choice of horizontal and vertical reference lines yields the exact same four states. So why are these four states so important?

This is where the “toric” part of the toric code comes in. We now impose periodic boundary conditions, in which we identify the states in the leftmost column with those in the rightmost column and similarly the top row with the bottom row. Here, the word identify means that we ensure that the corresponding qubits on opposite sides represent the exact same qubit state at all times. The effect of this procedure is that we fold our lattice into a shape called a torus (see top). The horizontal and vertical lines we drew in our planar lattice now represent the two independent “non-trivial cycles” of the torus (i.e. the cycles that cannot be continuously shrunken into a point without leaving the torus surface).

Now, the four ground states we constructed correspond to taking each non-trivial cycle and assigning it an abstract parity number 0‾\overline{0} or 1‾\overline{1} from Z/2Z\Z/2\Z, which encodes whether our ground state has an even or odd number of ∣1>\ket{1} qubits which intersect the corresponding cycle. In other words, each ground state corresponds to an element of H1(T2,Z/2Z)≃(Z/2Z)2H_1(\mathbb{T}^2,\Z/2\Z) \simeq (\Z/2\Z)^2, which is a topological object called the first Z/2Z\Z/2\Z homology class of the torus [5]. We won’t spell out the full definition of this object for arbitrary topological manifolds here—the important fact is that H1(T2,Z/2Z)H_1(\mathbb{T}^2,\Z/2\Z) is a topological invariant. Consequently, even if the torus T2\mathbb{T}^2 is smoothly deformed into another manifold MM, the structural relation H1(M,Z/2Z)≃(Z/2Z)2H_1(M,\Z/2\Z) \simeq (\Z/2\Z)^2 will continue to hold as long as the deformation preserves the genus (i.e. “hole structure”) of our lattice.

As illustrated by the robust structure we found above, our toric code has many useful properties. First, recall in our initial discussion that the ground states remain unchanged by vertex and plaquette operations, implying that the ground state space is stable against these types of errors. Second, the ground state space is built from multiple (four) independent states and is therefore degenerate. As such we cannot energetically distinguish between these states, since any Hamiltonian measurement outcome is the same for every ground state (all have eigenvalue 00). Thus, any error which transforms or mixes one ground state into the others will not affect the results of our computations. Finally, we can “excite” our ground states into higher energies by applying σx,σz,\sigma_x,\sigma_z, or σxσz\sigma_x \sigma_z gates to single qubits, thereby creating quasiparticles associated with each operation.

By performing carefully sequenced operations of quasiparticle creation and destruction, we can effectively move our quasiparticles around the lattice, loop them about each other, and fuse them together to form other quasiparticles [6] (see Figure 8). Based on how we construct the quasiparticles in our lattice, they inherit particle statistics, meaning that for each time we loop particles around each other, our global state changes by a phase determined by the particle type. Quasiparticles which non-trivially transform the global state when looped around each other are called anyons. They are important for fault tolerant quantum computing, because renowned physicist Kitaev showed in [8] that if we can make anyons with rich enough behavior, we can interpret the state transformations they generate as quantum gates and use them to implement computations. These upgraded anyons are called non-Abelian anyons due to their intricate dynamics, and they are much sought after in materials physics and quantum computing [9].

Figure 8: Twisted and untwisted anyon loops from toric code plaquette operations ([6], Fig 28.2).

Where Does Current Research Stand?

In the previous discussion, we introduced the toric code as an important illustration of topology in quantum computing. Current research efforts are now aimed at implementing similar topological structures in two primary applications: surface code error correction and anyonic computing.

In surface code EC, computations take place within the ground state space of a qubit lattice placed on a particular surface topology (e.g. the torus for the toric code). The symmetrization of the ground state space under plaquette and vertex operations then distinguishes two possible types of errors. In the first case, an error may destroy the vertex and plaquette symmetrization (e.g. a bit flip on a single edge), in which case the lattice will no longer occupy a ground state and the error can easily be identified by measuring the Hamiltonian. In the second case, an error may preserve the vertex-plaquette symmetrization but cause a transition between ground states, which we cannot detect with a non-intrusive Hamiltonian measurement. However, due to the “topological protection of the ground state space," namely that its states are encoded in homology classes of the torus, any ground state space error must induce a parity change along one of the non-contractible cycles. Therefore, any such error must consist of excitations that span an entire cycle [6], meaning it has an extremely low probability of occurrence.

For anyonic computing, the topological protection plays a different role. Here, the logical information used to make quantum computations is now stored in the excitations of the lattice. Computational operations, or gates, then consist of braidings and fusions performed by moving the excitations about the lattice and around each other. Due to the abelian homology group structure of the torus, the toric code cannot produce all of the operations necessary for universal quantum computation. However, many non-Abelian frameworks, such as the S3S_3 quantum double [10], enable universal quantum computations. Once again, the topological benefit of these constructions comes from the symmetry. In our toric code lattice formulation, for example, this means that plaquette and vertex errors produce identity operations due to the fusion rules of the associated topological field theory. Hence, the anyonic computation approach is still topologically protected−-its main difference is that computations do not occur within the ground state space but rather as excitations on that space. The complex anyonic structure also necessitates new methods of error correction, which constitute another thrust of ongoing research [11].

As of today, no one has yet managed to produce controlled non-Abelian anyons and experimentally demonstrate fault tolerant quantum computing. However, progress towards this goal continues, and recent work by Quantinuum and their collaborators has realized controllable non-Abelian anyons [9], culminating in the construction of an S3S_3 non-Abelian anyon qutrit system that passes preliminary benchmarks for universal computation [12] (e.g. XX measurement, ZZ-measurement, and qutrit Bell state preparation via braiding entanglement). The applicability of these results is currently limited, as the group has not yet implemented scalable error correction nor algorithms that harness universality, leaving room for future improvements.

Additionally, Verresen et. al. produced semi-realistic models of an experimentally testable topological code based on a ruby lattice of Rydberg atoms [13]. As with many theoretical models, their analysis relied in some places on unphysical assumptions (e.g. infinite lattice size) to quantify important topological markers such as entanglement entropy. However, one of their enticing contributions was to lay out and simulate a framework for engineering the topological system on a finite architecture. In their ending remarks, the authors noted several possible extensions to their work, many of which could be achieved and refined with greater compute power and novel computational methods. These goals, and their technological applications to quantum memory and beyond, underlie a major thrust of Qernel’s research strategy moving forward.

References

  1. [5]D. Lidar &\& T. Brun (2013). Quantum Error Correction, Cambridge University Press.
  2. [6]S. Simon (2023). Topological Quantum, Oxford University Press.
  3. [7]L. Homeier, C. Schweizer, M. Aidelsburger, A. Fedorov, &\& F. Grusdt (2021). “Z2\Z_2 lattice gauge theories and Kitaev's toric code: A scheme for analog quantum simulation." Phys. Rev. B 104, 085138 doi.org/10.1103/PhysRevB.104.085138.
  4. [8]A. Kitaev (2003), “Fault tolerant quantum computation by anyons." Annals Phys. 303, 2-30 (2003) doi:10.1016/S0003-4916(02)00018-0 arXiv:quant-ph/9707021.
  5. [9]M. Iqbal, N. Tantivasadakarn, R. Verresen, et al. (2024). “Non-Abelian topological order and anyons on a trapped-ion processor." Nature 626, 505–511. doi-org/10.1038/s41586-023-06934-4.
  6. [10]C. Lo, A.Lyons, R.Verresen, A.Vishwanath and N. Tantivasadakarn (2026). “Universal Quantum Computation with the S3S_3 Quantum Double: A Pedagogical Exposition," arXiv:2502.14974.
  7. [11]D. Jing, P. Sala, L. Jiang, R. Verresen (2026). “Intrinsic Heralding and Optimal Decoders for Non-Abelian Topological Order," Phys. Rev. Lett. 136, 120405, doi.org/10.1103/ccj7-ctd8.
  8. [12]C. Lo, A. Lyons, et. al. (2026). “Universal Gates from Braiding and Fusing Anyons on Quantum Hardware," arXiv:2601.20956.
  9. [13]R. Verresen, M. Lukin, A. Vishwanath (2021). “Prediction of Toric Code Topological Order from Rydberg Blockade." Phys. Rev. X 11, 031005, doi.org/10.1103/PhysRevX.11.031005.