Abstract
The ternary Golay code—one of the first and most beautiful classical error-correcting codes discovered—naturally gives rise to an 11-qutrit quantum error correcting code. We apply this code to magic state distillation, a leading approach to fault-tolerant quantum computing. We find that the 11-qutrit Golay code can distil the ‘most magic’ qutrit state—an eigenstate of the qutrit Fourier transform known as the strange state—with cubic error suppression and a remarkably high threshold. It also distils the ‘second-most magic’ qutrit state, the Norell state, with quadratic error suppression and an equally high threshold to depolarizing noise.
Keywords: quantum error correction, magic state distillation, fault-tolerant quantum computing, error correcting codes
1. Introduction
The classical Golay codes [1,2] are amongst the first and most beautiful ways discovered to protect classical information. Two Golay codes exist—the 23-bit binary Golay code and the 11-trit ternary Golay code. These codes are unique, in that they are the only linear perfect classical error correcting codes other than the Hamming codes. While they were discovered through a computer search (and independently by a Finnish football enthusiast, apparently via trial and error), their discovery led to profound advancements in the theory of coding as well as the mathematical theory of finite groups [3].
Can the Golay codes provide us better ways to protect quantum information from noise? Through the CSS construction, the Golay codes can be used to construct [23, 1, 7]2 and [11, 1, 5]3 quantum error correcting codes. Applications of the 23-qubit Golay code to fault-tolerant quantum computing exist [4,5], but the 11-qutrit Golay code has apparently never been studied. Here, we observe that the 11-qutrit Golay code is remarkably well suited for a promising approach to fault-tolerant quantum computing known as magic state distillation [6,7].
Magic state distillation [6–9] is a leading approach to fault-tolerant quantum computing. In the past few years, magic state distillation for qudits of (typically odd prime) dimensions other than two has attracted some interest [10–14] and notably has been used to identify contextuality as an essential resource for universal quantum computation [15]. However, for the most part, qudit fault-tolerant quantum computing [16] appears relatively unexplored although attractive experimental realizations of qutrits do exist, e.g. refs. [17–19].
In the magic state model, a fault-tolerant quantum computer has the ability to measure and initialize states without error in the computational basis and act without error on these states with a discrete subgroup of the full set of unitary operators known as the Clifford group [16,20]. A quantum computer with only these capabilities is classically simulable [21–24] and therefore not sufficient for universal quantum computation. In addition, the computer is able to prepare ancilla qudits in certain non-stabilizer states, called magic states; but these states are produced with limited fidelity. To approximate a universal quantum computer within this model, we require arbitrarily pure magic states, which can be used to implement non-Clifford gates via state injection. Using many low-fidelity magic states, it is sometimes possible to distil a small number of high-fidelity magic states via protocols involving only Clifford unitaries and stabilizer measurements. This process is only successful if the noise level of the low-fidelity input qudits is below a particular threshold associated with the particular distillation protocol employed. An open problem is to design a distillation protocol with as high a threshold as possible.
What constitutes a magic state for a qutrit? In the entanglement theory, any state that is not a separable state is defined to be entangled. By analogy, any (pure) state that is not a stabilizer state is defined to be magic [25]. One can then ask, which qutrit state is most magic? To answer this question, a natural measure to use is the regularized entropy of magic, which is defined as the relative entropy between a large supply of qutrits in the candidate magic state and the nearest multi-qutrit stabilizer state. Unfortunately, the regularized entropy of magic is not feasible to compute. To place rigorous bounds on magic, two useful surrogate measures exist: the mana [25], which is essentially a measure of the sum of negative entries in the discrete Wigner function [26–30] of the candidate magic state, and the (regularized) thauma [31], which is the minimum relative entropy between the many copies of the candidate magic state and a subnormalized state with positive Wigner function.
Two qutrit magic states were identified in [25] that maximize the mana, the strange state, which is an eigenstate of the qutrit Fourier transform (which was first discovered in [32]), and the so-called Norell state, which is the eigenstate of another single qutrit Clifford operator N defined below. It was recently shown that the strange state has larger thauma [31] than the Norell state, hence earning it the accolade of the ‘most magic’ qutrit state. This accolade is conceptually satisfying because the strange state also maximally violates the contextuality inequality of [15] and is also the qutrit state for which distillation could be most robust to depolarizing noise. As we shown in [33], the qutrit strange state is also the most symmetric of all qudit magic states and has no natural analogue in higher odd-prime dimensions.
Distillation of the strange state is an exciting problem for both practical and theoretical reasons. The strange state is furthest from the Wigner polytope [23] and therefore has potential to be distilled with the greatest threshold to noise of any qutrit state, as first observed in [32]. Moreover, constructing a magic state distillation routine that distils the strange state, with a threshold meeting the theoretical upper bound set by negativity of the Wigner function, would be tantamount to a proof that contextuality is sufficient for universal quantum computation, by the results of [15]. There are indications that this may be an impossible problem to solve—it has be shown in [14] that no distillation protocol based on a stabilizer code of finite length can meet this upper bound. But [14] does not rule out the existence of an infinite sequence of protocols based on stabilizer codes of increasing length, whose threshold approaches this upper bound, in the asymptotic limit.
Previous works on qutrit and qudit magic state distillation [11,12,34] have mostly focused on distilling a class of equatorial magic states, which possess several useful properties [35], although they have non-maximal mana. In addition, eigenstates of the qutrit Fourier transform other than the strange state were distilled via the 5-qutrit code in [10,13] presented a distillation routine for the qutrit Norell state; however, one should note that the protocols of [10,13] have only a linear reduction in the noise rate. Prior to this work, no magic state distillation routine with the strange state as a stable endpoint was known.
Here, we show that an [11, 1, 5]3 code obtained from the ternary Golay code distils both the Norell state and the strange state, with a threshold to depolarizing noise that exceeds the best known threshold of any qutrit magic state distillation routine. Our calculations rely on the geometric reformulation of magic state distillation in the language of discrete phase space, given in [14].
2. Background
While fault-tolerant quantum computing with qubits is now a widely known subject, many aspects of fault-tolerant quantum computing with qudits of dimension other than two remain obscure to some readers. Therefore, in this section, we briefly summarize some necessary background, following [15]. This is a rich subject, and readers are encouraged to refer to some of the references cited below for a more thorough discussion.
(a). Qudit Pauli and Clifford operators
In this article, we are interested in qutrits, which are quantum systems of dimension d = 3. In this section, however, we present definitions that apply more generally to qudits of arbitrary odd prime dimension d. Let be the Hilbert space for a single qudit. The computational basis for consists of states , where k is an element of the finite field .
Generalized Pauli X and Z operators for qudits are defined as [16]
| 2.1 |
where ω = e2πi/d is a dth root of unity. These operators satisfy Zd = Xd = 1 and Z X = ωX Z. There are d2 linearly independent Pauli operators, including the identity, which are also known as Heisenberg–Weyl displacement operators, and are conventionally defined as1 [30],
| 2.2 |
With this choice of overall phase, . Multiqudit Heisenberg–Weyl operators are defined as tensor products of single-qudit Heisenberg–Weyl operators,
| 2.3 |
and can be specified via a symplectic vector (u|v) = (u1, …, un | v1, …, vn).
The Clifford group is defined as the set of unitaries that preserve Heisenberg–Weyl operators under conjugation. Single-qudit Clifford unitaries act on Heisenberg–Weyl operators as transformations. Explicitly, as shown in [36], any single-qudit Clifford unitary can be written in the form , where is an element of , i.e. a matrix , for some a, b, c and such that ad − bc = 1. The operators are known as symplectic rotations and are given by the following expression:
| 2.4 |
Symplectic rotations act on Heisenberg–Weyl displacement operators as follows:
| 2.5 |
where
| 2.6 |
Upto an overall phase, they also satisfy .
In particular, it can be shown [28,33] that the Hadamard gate acts on Pauli operators via and and therefore corresponds to the transformation,
| 2.7 |
Let us define another Clifford operator to correspond to the transformation,
| 2.8 |
Explicitly, N acts on qutrit Pauli operators via and . Together and generate all transformations, and the operators ZN and H can be shown to generate the entire single-qudit Clifford group.
(b). Discrete Wigner functions
The Heisenberg–Weyl displacement operators are unitary but not Hermitian. A manifestly Hermitian basis for single-qudit density matrices is formed by the phase point operators A(u,v), which are defined in terms of the Heisenberg–Weyl displacement operators as follows:
| 2.9 |
and
| 2.10 |
Any qudit density matrix ρ can be expressed as a linear combination of phase-point operators with real, but possibly negative, coefficients,
| 2.11 |
This representation, which completely characterizes the quantum state ρ, is known as its discrete Wigner function and is the natural generalization of the well-known continuous quasi-probability distribution introduced by Wigner [37] for finite dimensional systems. It was first introduced in [26] and further developed in [27,29,30,36]. The Wigner function for an n-qudit state can be defined analogously using tensor products of the phase-point operators [23]. If the n-qudit state is separable, its Wigner function can be written as a product of single-qudit Wigner functions.
The convex subset of state space with non-negative discrete Wigner functions is known as the Wigner polytope. An n-qudit quantum state within the Wigner polytope can be thought of as a probability distribution over ontological states , defined by the phase point operators, known as discrete phase space. From the definition (2.10), it is clear that qudit Pauli operators and Clifford unitaries act as discrete translations and symplectic rotations on the phase space. The action of these operators on multi-qudit states with (efficiently sampleable) non-negative Wigner functions can therefore be efficiently simulated via a Monte-Carlo type approach, as explained in more detail in [23].
Because Clifford operations and stabilizer measurements on states within the Wigner polytope can be efficiently simulated, these states are not useful for achieving universal quantum computation via state injection. Therefore, the Wigner polytope provides a bound for the threshold of any magic state distillation routine, much like the stabilizer polytope for qubits.2 Negativity of the Wigner function can therefore be thought of as a resource for quantum computation, in a sense that is made precise in [23]. Wigner negativity also turns out to be equivalent to contextuality, as shown in [15].
(c). Discrete phase space formulation of qudit magic state distillation
Qudit magic state distillation was recast in the language of discrete phase space in [14]. This formulation of magic state distillation is particularly convenient to implement computationally, and we will use it to determine the performance of the 11-qutrit ternary Golay code for magic state distillation later. Let us briefly review it here.
A magic state distillation routine takes as input n noisy qudits, which are in the state ρin ⊗ ρin ⊗ … ⊗ ρin, and produces a single higher-fidelity qudit in the state ρout. The routine consists of first projecting the input qudits onto the codespace of an n-qudit stabilizer code, which is described by symplectic matrix M and then decoding the resulting state to obtain a single output qudit. The decoding step depends on the choice of logical operators for the code, and , which can be specified by the symplectic vectors (ax | bx) and (az | bz).
The general idea behind [14] is as follows. The inverse of a magic state distillation routine is an encoding circuit for the stabilizer code, which can be thought of as a linear map (an isometry) from the logical Hilbert space to the physical Hilbert space . In the language of discrete phase space, this translates to a multi-valued function , from logical phase space to physical phase space. The image of a point under consists of dn−1 points in , determined explicitly in [14]. The Wigner function of the decoded logical qudit at (zL, xL) is simply the sum of the Wigner function of the physical qudits, evaluated at each of these dn−1 points (up to an overall normalization constant.)
The explicit expression for the Wigner function, Wout(z, x), corresponding to the single-qudit density matrix ρout, in terms of the Wigner function, Win(z, x), corresponding to single-qudit density matrix ρin is
| 2.12 |
Here, is the probability for successful projection onto the stabilizer code and is determined by the condition that
The quantities zi and xi are the ith components of the vectors x and z given by
| 2.13 |
We checked that this algorithm is able to reproduce the results of previous studies of qutrit magic state distillation, such as [10].
3. The strange state and the Norell state
The strange state,
| 3.1 |
and the Norell state,
| 3.2 |
are both eigenstates of the single-qutrit Clifford operator N, defined as follows:
| 3.3 |
The third eigenvector of N is .
The strange state is also an eigenvector of the qutrit Hadamard gate,
| 3.4 |
with eigenvalue i. The other two eigenstates of H are and , with eigenvalues +1 and −1. These are given by
| 3.5 |
where .
The discrete Wigner functions for and are plotted in figure 1. The symmetries of these and other qutrit Clifford eigenstates are discussed in detail in [33]. Any of these states can be used to implement a non-Clifford gate via state injection, as we review in appendix A, which closely follows [10].
Figure 1.
The discrete Wigner function for the strange state (a) and the Norell state (b), obtained from equations (5.6) and (6.1). In this figure, is plotted on a 3 × 3 grid, with u on the horizontal axis and v on the vertical axis; (0, 0) is the bottom left corner.
In the magic state model, we will begin with a supply of noisy and states, which lie somewhere near or in the eight-dimensional space of single-qutrit density matrices. Via random application of Clifford unitaries, a process known as twirling, one can restrict the density matrices of noisy input qutrits to a more manageable form. The twirling schemes for qubits in [6] result in a one-parameter family of density matrices; for qutrits, we generically expect a twirling scheme to result in a two-parameter family of density matrices.
For noisy Norell states, apply the unitary Nn, where n is a random integer between 0 and 5 to define the following map:
| 3.6 |
This restricts our noisy states to lie in the two-dimensional plane spanned by convex combinations of the three eigenvectors of N: , and ,
| 3.7 |
where and . The space of density matrices parameterized by equation (3.7) forms an equilateral triangle and is shown in figure 2.
Figure 2.

By randomly applying the Clifford operator N, any state can be made to lie in the triangle spanned by convex combinations of , and . The purple region (near the lower right vertex) distils to the Norell state. The orange region (near the lower left vertex) distils to and the blue region (near the top vertex) distils to . The teal and green regions (in the interior of the triangle) distil to mixed states. (Online version in colour.)
The strange state is the unique simultaneous eigenstate of two Clifford unitaries H and N. These two elements generate a subgroup of the Clifford group isomorphic to , described in §2. As observed in [33], by randomly choosing to apply any element of this finite group, any noisy input state can be brought into the form,
| 3.8 |
To see this explicitly, first apply the operator H to the noisy input state n times, where n is a random integer between 0 and 3, to define the map:
| 3.9 |
The resulting density matrix must then be expressible as a mixture of the eigenstates of H,
| 3.10 |
where and . It can be shown [33] that the unitary operator
is an element of the Clifford group.3 H′ interchanges and , but preserves . By randomly choosing whether to apply H′ to noisy input qutrits in the state ρ(ϵ1, ϵ2),
| 3.11 |
we obtain a state with ϵ1 = ϵ2 ≡ ϵ/2.
It is easy to see that this density matrix is equivalent to (3.8). We choose to express it in terms of the parameter δ = 3ϵ/2, which can be interpreted as the depolarizing noise rate. After twirling, our n noisy input qutrits are in the state . Assuming the stabilizer code employed for distillation has suitable symmetries, the distilled output qutrit will be in a state of the same form ρout = ρS(δout), thus giving rise to a single function of one variable δout(δin) that characterizes its performance, much like in the qubit case.
The existence of a twirling protocol that converts all noise to depolarizing noise is a unique feature of the state, which arises because of its exceptional symmetry properties under Clifford transformations [33]. This property is neither shared by any other qutrit magic state nor is it expected to hold for any other qudit magic state, for any odd prime d > 3.
4. The 11-qutrit Golay code
Consider any maximal self-orthogonal4 classical ternary code [38] of odd length, with generator matrix Mc. We construct a quantum error correcting code from two copies of Mc, following the CSS construction [40,41], with the following symplectic matrix:
| 4.1 |
It can be shown (e.g. [2,38]) that any maximal self-orthogonal ternary code of odd length n has dimension k = (n − 1)/2. The quantum code generated by this construction therefore encodes one qutrit.
From equation (2.7), we see that acting on such a code with H⊗n results in a stabilizer code described by the symplectic matrix,
| 4.2 |
which is clearly equivalent to Mq. Similarly, from equation (2.8), we see that acting on the code with N⊗n results in a stabilizer code described by the symplectic matrix,
| 4.3 |
which is also equivalent to Mq. Therefore, the projector onto the stabilizer code described by Mq commutes both H⊗n and N⊗n.
Let us choose for Mc the generator matrix for the dual of the ternary Golay code, which is self-orthogonal,
| 4.4 |
The Golay code is of length . X⊗n and Z⊗n cannot be stabilizers of this code since the classical ternary vector (1, …, 1) is not self-orthogonal. However, both X⊗n and Z⊗n can serve as logical Pauli operators for the code. Let us denote logical operators and states with an overbar. We make the choice
| 4.5 |
With the above choice, the logical H and N operators are given by,
| 4.6 |
Together with and , these form a complete set of transversal Clifford gates.
Recall that Bravyi and Kitaev defined two qubit magic states in [6]: and . Stabilizer codes used to distil states, such as the 15-qubit code of [6] and the codes in [8,42], crucially support a non-Clifford transversal gate. The successful distillation of states by these codes can be understood as a direct consequence of the existence of this transversal gate. No such understanding is available for distillation of states via the 5-qubit code [6], which does not support any transversal gate outside the Clifford group. For the 5-qubit code, distillation must be demonstrated by what is essentially a brute-force calculation of projection of noisy input states onto the stabilizer code.
The 11-qutrit Golay code supports a complete set of transversal Clifford gates—therefore, by the Eastin-Knill theorem [43], it cannot support a non-Clifford transversal gate. For this reason, distillation via the 11-qutrit Golay code is analogous to distillation via the 5-qubit code, where the mechanism for distillation is somewhat opaque.
We conclude this section by pointing out that the 11-qutrit Golay code can be represented as a graph state [44], in the spirit of [45], following the procedure given in [46]. This is shown in figure 3.
Figure 3.

A graph state representation of the 11-qutrit Golay code. By applying a sequence of local Clifford unitaries and elementary row operations described in [46], the symplectic matrix for the stabilizers of the logical state can be brought into the form (1 |Γ), where Γ is the adjacency matrix of an undirected graph whose edges have weights in , pictured earlier. Dotted red edges have weight 1 and blue edges have weight −1. Vertices correspond to qutrits, and a subset of the vertices are highlighted in red. The tensor product of Pauli-Z operators acting on each of the highlighted vertices defines the logical operator, as in [45]. (Online version in colour.)
5. Distilling the strange state
Following [6], a natural requirement for a code to be suitable for distillation of states is that decode to after projection onto the codespace. Let us see that this is indeed the case for the ternary Golay code. Let Π be the projector onto the codespace. We require . Since Π commutes with , we have
| 5.1 |
We see that, for n = 11, is an eigenvector of with eigenvalue i and therefore must be proportional to . The coefficient of proportionality determines the probability of successfully projecting onto the code, and it remains to demonstrate that this probability is non-zero—i.e. that . This requires a more non-trivial computation, which we carry out next.
Before proceeding, note that our analysis so far has been very general and applies to a CSS code constructed from two copies of any maximal self-orthogonal ternary code of length n = 12m − 1, with the property that the ternary vector (1 1 … 1) is orthogonal to all its generators. There are three such codes of length 11, given in [38]. Using such a code for distillation of states, we generically expect the noise rate of the distilled qutrit to depend linearly on the noise rate of the input qutrits for the following reason.
The eigenstates of the qutrit Hadamard operator are , and , with eigenvalues i, 1 and −1, respectively. Let us denote , so that we can define
| 5.2 |
which depends on the ternary string x = (x1, …, xn), each of whose entries are 0, 1 or −1. The density matrix for n noisy strange states, each described by ρ(ϵ/2, ϵ/2) given in equation (3.10), can be written as follows:
| 5.3 |
Here, |x| is the weight (number of non-zero entries) of the ternary vector x. The (unnormalized) density matrix for the output qutrit is given as follows:
| 5.4 |
For any x, is an eigenvector of and is proportional to one of , or (unless it vanishes). After normalization, the output density matrix can therefore be written as follows:5
| 5.5 |
where ϵout is some function of ϵ.
We saw earlier that when |x| = 0, is proportional to . Let us look next at the term proportional to ϵ/2(1 − ϵ)n−1, i.e.states for which |x| = 1. Any such state is an eigenvector of with eigenvalue ±1. Unless each such state happens to be perfectly orthogonal to the codespace, it will decode to one of the logical states , resulting in a contribution to ϵout linear in ϵ.
Remarkably, it turns out that the |x| = 1 term is indeed perfectly orthogonal to the codespace for the 11-qutrit Golay code, and therefore, the linear contribution to ϵout vanishes. Note that, if the linear contribution to ϵout vanishes, the next possible contribution is cubic in ϵ. The reason for this is that, when |x| = 2, any term of the form must be an eigenvector of with eigenvalue ±i. Since has no eigenvector with eigenvalue −i, terms of this form must either vanish or be proportional to . Terms with |x| = 2, therefore, do not contribute to ϵout.
We use the algorithm of [14], reviewed in §2, to simulate both projection onto the stabilizer code and subsequent decoding. The discrete Wigner function corresponding to ρ(δ) in equation (3.8) is as follows:
| 5.6 |
This is shown in figure 1 for δ = 0. We used a computer algebra system (Mathematica 12) to evaluate Wout(u, v) using equation (2.12), with Win = W(u, v;δ). (The Mathematica notebook is included as electronic supplementary information.)
As expected, Wout(u, v) is of the form W(u, v;δout), with δout(δ) given by
| 5.7 |
where
| 5.8 |
and
| 5.9 |
This is plotted in figure 4.
Figure 4.

The relation δout(δin) induced by distillation with the 11-qutrit Golay code is shown by the solid red line. The dashed line is the line δout = δin, which is shown for convenience. If δ is below the threshold value of 0.387, where both lines intersect, the noise rate of the output qutrit is less than that of the input qutrits, i.e. δout < δin. (Online version in colour.)
For small δ,
| 5.10 |
As mentioned earlier, for qutrit magic state distillation routines, we generically expect a linear relation between δout and δ; so this cubic noise suppression is fairly surprising. Our derivation of this result is, essentially, computational. We hope to better understand the origin of this cubic rate of error-suppression theoretically, perhaps as a consequence of the symmetries of the ternary Golay code; but this is beyond the scope of the present work.
The threshold for distillation is at
| 5.11 |
This is slightly more than half of the theoretical upper bound for the threshold determined by the Wigner polytope [14,15,23], which is at . This threshold is better than the best previously known threshold for any qutrit magic state distillation protocol. (The best previously known threshold to depolarizing noise was achieved by a distillation routine in [13] that had only linear error suppression.)
The probability for successful distillation is the trace of the unnormalized density matrix in equation (5.4) and is given by
| 5.12 |
The low success rate means that, in practice, approximately 19 008 qutrits would be needed for a single successful round of distillation. This is offset slightly by the cubic error suppression, which implies that, starting with n noisy copies of the strange state with depolarizing noise rate δ, the noise rate of the distilled strange state scales with n as
| 5.13 |
where ξ = 1/log 3 19008 ≈ 0.112 is the yield parameter. For comparison, with the 5-qubit code [6], we obtain a similar relation,
| 5.14 |
with yield parameter ξ5−qubit = 1/log 2 30 ≈ 0.204.
6. Distilling the Norell state
The ternary Golay code can also be used to distil Norell states. While the Norell state is less magic than the strange state, if we restrict our operations to two-qutrit stabilizer measurements and Clifford unitaries, the Norell state is slightly more useful for state injection, as discussed in appendix A.
After twirling, noisy Norell states are described by the density matrix ρN(ϵ0, ϵS), given in (3.7). This corresponds to the discrete Wigner function:
| 6.1 |
Our distillation routine takes 11 qutrits in the state ρ(ϵ0, ϵS)⊗11 and outputs a single qutrit in the state ρ(ϵ0′, ϵS′) and is thus characterized by the two functions ϵ0′(ϵ0, ϵS), and ϵS′(ϵ0, ϵS)). We obtained these expressions, which are presented in appendix B, using the simulation algorithm of [14], as in the previous section. For small ϵ0 and ϵS, these can be expressed as follows:
| 6.2 |
and
| 6.3 |
By iterating this procedure many times, we numerically determined the region of state space that distils to the Norell state. This is shown in figure 2. To translate this two-dimensional region into a single number, let us assume only depolarizing noise (ϵS = ϵ0 = δN/3) on the input qutrits. We find the maximum depolarizing noise rate δN for input states to eventually distil to is 0.38612. This approximately, but not exactly, equal to the threshold for state distillation. This threshold is substantially better than the threshold 0.32989 for Norell states using the distillation protocol of [13], which has only a linear error suppression .
The region of state space that distils to the strange state is also shown in figure 2. We could have used this twirling scheme for distilling the strange state. However, this does not offer any advantages over the simpler twirling scheme for strange states discussed earlier.
The probability of successful decoding of Norell states for small ϵ0 and ϵS is
| 6.4 |
This results in a similar yield parameter, 1/log 3 19 008 ≈ 0.112, as for distillation of states.
7. Discussion
The 11-qutrit Golay code distils strange states with a threshold to depolarizing noise of . This is the highest threshold of any known qutrit magic state distillation routine. Moreover, we emphasize that this threshold is a worst-case threshold that applies to all forms of noise, not just depolarizing noise, thanks to the twirling scheme presented earlier. The best threshold to depolarizing noise for a qubit magic state distillation routine is , which arises for distillation of states via the 5-qubit code [6]. So the 11-qutrit Golay code defines the first qutrit distillation protocol that also has a better threshold than any qubit distillation protocol although it may not be meaningful to compare noise thresholds between qudits of different dimensionalities. Qudit codes for sufficiently large odd-prime dimension [12] do have higher thresholds to depolarizing noise, but, in these cases, the depolarizing noise threshold does not, on its own, completely characterize the distillable region of the state space.
This noise threshold is only a little over half of the theoretical upper limit for the noise threshold , set by the necessity of contextuality (or positivity of the discrete Wigner function). Do other codes exist with better thresholds? We tried a similar construction with other self-orthogonal maximal ternary codes of length 11 and 13 [38,39], but the ternary Golay code is the only code we could find that is suitable for magic state distillation. Currently, the 11-qutrit Golay code is the only code known to be able to distil the strange state.
Magic state distillation with the 23-qubit Golay code was discussed briefly in [8], where it was shown that it is not suitable for distilling qubit states. It is interesting to note that the 23-qubit Golay code is able to distil qubit states, but with a threshold that is just slightly less than that of the 5-qubit code. As we review in appendix C, the error suppression for state distillation using the 23-qubit code is quadratic, as one would expect for a generic code. On the other hand, the ternary Golay code is the best known code for distillation of strange and Norell magic states and is able to distil the strange state with a somewhat miraculous cubic error suppression, whose origin needs to be better understood.
One motivation for distilling strange states is to address whether contextuality can be shown to be a sufficient resource for universal quantum computation [15]. This requires us to construct a distillation scheme that is tight to the boundary of the Wigner polytope, i.e. has a threshold to depolarizing noise of 3/4. While it can be shown that no magic state distillation routine based on a finite stabilizer code can achieve this threshold [14,47], the possibility remains that a sequence of stabilizer codes exist that distil the strange state, whose threshold approaches 3/4. Of course, the ternary Golay code is an extremely special error-correcting code, and there is no reason to expect that one can generalize it to obtain such a sequence of codes. Nevertheless, demonstrating the existence of a single magic state distillation routine that distils the strange state is an important first step for this program.
Supplementary Material
Acknowledgements
The author thanks Prof. Prem Saran Satsangi for inspiration and guidance. The author also thanks Mark Howard for comments on an earlier draft of the manuscript, and anonymous referees for valuable suggestions.
Appendix A. State injection with the strange state
Let us show how the strange state can be used to implement a non-Clifford gate via state injection. We closely follow [10], where it was shown how the and can be used for state injection.
Let U be a unitary operator whose eigenbasis is a complete set of stabilizer states. By a Clifford transformation, such an operator can be brought into a form where it is diagonal in the computational basis,
| A 1 |
We denote such an operator as UZ. Such operators were referred to as “equatorial operators” in [11]. Define ,
| A 2 |
We refer to any state that can be brought into the above form via a Clifford unitary as an equatorial state following [10,11]. UZ can be implemented by state injection circuit using as follows:
-
(i)
Let qudit 1 be in the state and qudit 2 be in the state .
-
(ii)
Apply a controlled-X2 gate to the , with as the target.
-
(iii)
Measure Z on qudit 2; if the outcome is ωm, apply to qudit 1. Qudit 1 is now in the state .
The aforementioned procedure works if is a Clifford operator, i.e. if UZ is in the third level of the Clifford hierarchy [48,49]. If UZ is not in the third-level of the Clifford hierarchy, then it is not possible to apply the outcome-dependent correction at the end. We then end up with the state with a random, but known value of m. In this case, it is convenient to modify the circuit by applying another controlled-X, with qudit 1 as a target, to obtain . If m = 0, we have obtained the desired state . If m ≠ 0, we can repeat this state injection procedure in hopes of eventually reaching the state , or a state Clifford-equivalent to it. If the group G generated by operators of the form XmUZX−m is a finite group of relatively small (i.e. ) order, this process is a random walk, which reaches in steps.
The magic states and are not equatorial states but can be converted into equatorial states via a series of 2-to-1 stabilizer reductions. Anwar et al. [10] showed how to convert the state to an equatorial state via a 2-to-1 stabilizer reduction: Start with two (very pure) qubits in the state . Project onto the codespace of the [2, 1] code defined by the stabilizer ωX1 X2. This has a 1/4 success probability. Decode treating X2 as the logical X operator and as the logical Z operator.
The resulting state is , which is Clifford equivalent to . UZ(0, π) is a non-Clifford gate; while it is not an element of the third level of the Clifford hierarchy, the group generated by XmUZ(0, π)X−m is finite and can be used to implement a non-Clifford gate as discussed earlier.
There is no 2-to-1 stabilizer reduction, which converts to an equatorial state. However, we can convert two copies of an state to a state via the 2-to-1 stabilizer reduction with stabilizer Z1 Z2 and decoding via logical operators and . This stabilizer reduction succeeds with probability 1/2. This stabilizer reduction can also convert two copies of any state of the form , which is also a Clifford eigenstate [33], into the state , with success probability 2 |αβ|2.
This scheme appears to be the optimal scheme using only 2-qutrit stabilizer projections and Clifford unitaries. It would be interesting to search for schemes involving n-qutrit stabilizer projections, for n > 2, that make better use of magic.
Appendix B. Distilled Norell states
The output qutrit is in the state ρ(ϵ0′, ϵS′), where
| B 1 |
where
| B 2 |
| B 3 |
| B 4 |
Numerical basins computed in figure 2 appear to be symmetric with respect to interchange of the and state. This is not quite the case, as the thresholds to depolarizing noise for and states are slightly different. Interchange of and corresponds to interchange of 1 − ϵ0 − ϵS and ϵS. The earlier expressions are not symmetric under this exchange.
Appendix C. Distillation with the 23-qubit Golay code
Distillation with the 23-qubit Golay code was first reported in [8]. There, it was found that 23-qubit Golay code is not suitable for distilling qubit magic states, but it can distil states. Here, we present the results for state distillation in more detail.
The 23-qubit Golay code [4] is defined as the code given by the symplectic matrix:
| C 1 |
where is the binary generator matrix for the classical Golay code, as given in [5].
The magic state is defined as and is an eigenstate of the Clifford operator T defined in [6]. Noisy states can be twirled to take the form:
| C 2 |
Distilling with respect to the 23-qubit Golay code gives a relation δout(δ) that takes the following form:
| C 3 |
where
| C 4 |
and
| C 5 |
This is plotted in figure 5.
Figure 5.

The relation δout(δin) induced by distillation with the 23-qubit Golay code is shown by the solid red line. The dashed blue line is the line δout = δin, which is also shown for convenience, and the black line is the relation δout(δin) for the 5-qubit code. Both codes have quadratic reduction in noise, but the 5-qubit code has a better threshold. (Online version in colour.)
Note that error suppression is quadratic, as expected for a generic code of length n = 6m − 1, which has T⊗n as a transversal operator. The threshold is at . This is slightly worse than the threshold of the 5-qubit code which is at 0.34535.
Footnotes
Here, 2−1 is an element of the finite field .
We should point out that, as observed in [23], for qudits of odd-prime dimension, the stabilizer polytope is a proper subset of the Wigner polytope.
One can check that H′ can be written as , corresponding to the transformation .
A code C is said to be self-orthogonal if C⊆ C⊥. A self-orthogonal code C is said to be maximal if C is not contained in any other self-orthogonal code. Ternary maximal self-orthogonal codes have been studied extensively in the literature, see, e.g. [2,38,39]. The ternary Golay code itself is not self-orthogonal, but its dual is.
Here, we are also using the fact that (H′)⊗n defined earlier commutes with the codespace, maintaining the symmetry between and .
Data accessibility
This article has no additional data.
Competing interests
I declare I have no competing interest.
Funding
This work is supported in part by a DST INSPIRE Faculty Award, DST-SERB Early Career Research Award (grant no. ECR/2017/001023) and MATRICS grant (grant no. MTR/2018/001077).
Reference
- 1.Golay M. 1949. Notes on digital coding. Proc. IRE 37, 657. [Google Scholar]
- 2.Pless V. 1968. On the uniqueness of the Golay codes. J. Combinatorial Theory 5, 215–228. ( 10.1016/S0021-9800(68)80067-5) [DOI] [Google Scholar]
- 3.Barg A. 1993. At the dawn of the theory of codes. Math. Intelligencer 15, 20–26. ( 10.1007/BF03025254) [DOI] [Google Scholar]
- 4.Steane AM. 2003. Overhead and noise threshold of fault-tolerant quantum error correction. Phys. Rev. A 68, 042322 ( 10.1103/PhysRevA.68.042322) [DOI] [Google Scholar]
- 5.Paetznick A, Reichardt BW. 2012. Fault-tolerant ancilla preparation and noise threshold lower bounds for the 23-qubit Golay code. Quantum Inf. Comput. 12, 1034–1080. [Google Scholar]
- 6.Bravyi S, Kitaev A. 2005. Universal quantum computation with ideal Clifford gates and noisy ancillas. Phys. Rev. A 71, 022316 ( 10.1103/PhysRevA.71.022316) [DOI] [Google Scholar]
- 7.Knill E. 2005. Quantum computing with realistically noisy devices. Nature 434, 39–44. ( 10.1038/nature03350) [DOI] [PubMed] [Google Scholar]
- 8.Reichardt BW. 2005. Quantum universality from magic states distillation applied to CSS Codes. Quantum Inf. Process. 4, 251–264. ( 10.1007/s11128-005-7654-8) [DOI] [Google Scholar]
- 9.Reichardt BW. 2009. Quantum universality by state distillation. Quantum Inf. Comput. 9, 1030–1052. [Google Scholar]
- 10.Anwar H, Campbell ET, Browne DE. 2012. Qutrit magic state distillation. New J. Phys. 14, 063006 ( 10.1088/1367-2630/14/6/063006) [DOI] [Google Scholar]
- 11.Campbell ET, Anwar H, Browne DE. 2012. Magic-state distillation in all prime dimensions using quantum Reed-Muller codes. Phys. Rev. X 2, 041021. [Google Scholar]
- 12.Campbell ET. 2014. Enhanced fault-tolerant quantum computing in d-level systems. Phys. Rev. Lett. 113, 230501 ( 10.1103/PhysRevLett.113.230501) [DOI] [PubMed] [Google Scholar]
- 13.Dawkins H, Howard M. 2015. Qutrit magic state distillation tight in some directions. Phys. Rev. Lett. 115, 030501 ( 10.1103/PhysRevLett.115.030501) [DOI] [PubMed] [Google Scholar]
- 14.Prakash S, Gupta A. 2020. Contextual bound states for qudit magic state distillation. Phys. Rev. A 101, 010303 ( 10.1103/PhysRevA.101.010303) [DOI] [Google Scholar]
- 15.Howard M, Wallman J, Veitch V, Emerson J. 2014. Contextuality supplies the ‘magic’ for quantum computation. Nature 510, 351–355. ( 10.1038/nature13460) [DOI] [PubMed] [Google Scholar]
- 16.Gottesman D. 1999. Fault-tolerant quantum computation with higher-dimensional systems. Chaos Solitons Fractals 10, 1749–1758. ( 10.1016/S0960-0779(98)00218-5) [DOI] [Google Scholar]
- 17.Klimov AB, Guzmán R, Retamal JC, Saavedra C. 2003. Qutrit quantum computer with trapped ions. Phys. Rev. A 67, 062313 ( 10.1103/PhysRevA.67.062313) [DOI] [Google Scholar]
- 18.Bianchetti R, Filipp S, Baur M, Fink JM, Lang C, Steffen L, Boissonneault M, Blais A, Wallraff A. 2010. Control and tomography of a three level superconducting artificial atom. Phys. Rev. Lett. 105, 223601 ( 10.1103/PhysRevLett.105.223601) [DOI] [PubMed] [Google Scholar]
- 19.Mair A, Vaziri A, Weihs G, Zeilinger A. 2001. Entanglement of the orbital angular momentum states of photons. Nature 412, 313–316. ( 10.1038/35085529) [DOI] [PubMed] [Google Scholar]
- 20.Gottesman D. 1998a. Theory of fault-tolerant quantum computation. Phys. Rev. A 57, 127–137. ( 10.1103/PhysRevA.57.127) [DOI] [Google Scholar]
- 21.Gottesman D. 1998b. The Heisenberg representation of quantum computers. (http://arxiv.org/abs/quant-ph/9807006).
- 22.Aaronson S, Gottesman D. 2004. Improved simulation of stabilizer circuits. Phys. Rev. A 70, 052328 ( 10.1103/PhysRevA.70.052328) [DOI] [Google Scholar]
- 23.Veitch V, Ferrie C, Gross D, Emerson J. 2012. Negative quasi-probability as a resource for quantum computation. New J. Phys. 14, 113011 ( 10.1088/1367-2630/14/11/113011) [DOI] [Google Scholar]
- 24.Mari A, Eisert J. 2012. Positive wigner functions render classical simulation of quantum computation efficient. Phys. Rev. Lett. 109, 230503 ( 10.1103/PhysRevLett.109.230503) [DOI] [PubMed] [Google Scholar]
- 25.Veitch V, Mousavian SAH, Gottesman D, Emerson J. 2014. The resource theory of stabilizer quantum computation. New J. Phys. 16, 013009 ( 10.1088/1367-2630/16/1/013009) [DOI] [Google Scholar]
- 26.Wootters WK. 1987. A Wigner-function formulation of finite-state quantum mechanics. Ann. Phys. 176, 1–21. ( 10.1016/0003-4916(87)90176-X) [DOI] [Google Scholar]
- 27.Gibbons KS, Hoffman MJ, Wootters WK. 2004. Discrete phase space based on finite fields. Phys. Rev. A 70, 062101 ( 10.1103/PhysRevA.70.062101) [DOI] [Google Scholar]
- 28.Appleby DM. 2005. Symmetric informationally complete-positive operator valued measures and the extended Clifford group. J. Math. Phys. 46, 052107 ( 10.1063/1.1896384) [DOI] [Google Scholar]
- 29.Cormick C, Galvao EF, Gottesman D, Paz JP, Pittenger AO. 2006. Classicality in discrete Wigner functions. Phys. Rev. A 73, 012301 ( 10.1103/PhysRevA.73.012301) [DOI] [Google Scholar]
- 30.Gross D. 2006. Hudson’s theorem for finite-dimensional quantum systems. J. Math. Phys. 47, 122 107–122 107. ( 10.1063/1.2393152) [DOI] [Google Scholar]
- 31.Wang X, Wilde MM, Su Y. 2020. Efficiently computable bounds for magic state distillation. Phys. Rev. Lett. 124, 090505 ( 10.1103/PhysRevLett.124.090505) [DOI] [PubMed] [Google Scholar]
- 32.van Dam W, Howard M. 2011. Noise thresholds for higher-dimensional systems using the discrete Wigner function. Phys. Rev. A 83, 032310 ( 10.1103/PhysRevA.83.032310) [DOI] [Google Scholar]
- 33.Jain A, Prakash S. 2020. Qutrit and ququint magic states. (http://arxiv.org/abs/2003.07164).
- 34.Howard M, Vala J. 2012. Qudit versions of the qubit π/8 gate. Phys. Rev. A 86, 022316 ( 10.1103/PhysRevA.86.022316) [DOI] [Google Scholar]
- 35.Howard M. 2015. Maximum nonlocality and minimum uncertainty using magic states. Phys. Rev. A 91, 042103 ( 10.1103/PhysRevA.91.042103) [DOI] [Google Scholar]
- 36.Appleby DM, Bengtsson I, Chaturvedi S. 2008. Spectra of phase point operators in odd prime dimensions and the extended Clifford group. J. Math. Phys. 49, 012102 ( 10.1063/1.2824479) [DOI] [Google Scholar]
- 37.Wigner E. 1932. On the quantum correction for thermodynamic equilibrium. Phys. Rev. 40, 749–759. ( 10.1103/PhysRev.40.749) [DOI] [Google Scholar]
- 38.Mallows CL, Pless V, Sloane NJA. 1976. Self-dual codes over GF(3). SIAM J. Appl. Math. 31, 649–666. ( 10.1137/0131058) [DOI] [Google Scholar]
- 39.Conway J, Pless V, Sloane N. 1979. Self-dual codes over GF(3) and GF(4) of length not exceeding 16. IEEE Trans. Inf. Theory, 25, 312–322. ( 10.1109/TIT.1979.1056047) [DOI] [Google Scholar]
- 40.Calderbank AR, Shor PW. 1996. Good quantum error-correcting codes exist. Phys. Rev. A 54, 1098–1105. ( 10.1103/PhysRevA.54.1098) [DOI] [PubMed] [Google Scholar]
- 41.Steane A. 1996. Multiple-particle interference and quantum error correction. Proc. R. Soc. London, Ser. A 452, 2551–2577. ( 10.1098/rspa.1996.0136) [DOI] [Google Scholar]
- 42.Bravyi S, Haah J. 2012. Magic-state distillation with low overhead. Phys. Rev. A 86, 052329 ( 10.1103/PhysRevA.86.052329) [DOI] [Google Scholar]
- 43.Eastin B, Knill E. 2009. Restrictions on transversal encoded quantum gate sets. Phys. Rev. Lett. 102, 110502 ( 10.1103/PhysRevLett.102.110502) [DOI] [PubMed] [Google Scholar]
- 44.Schlingemann D. 2002. Stabilizer codes can be realized as graph codes. Quantum Inf. Comput. 2, 307–323. [Google Scholar]
- 45.Cross A, Smith G, Smolin JA, Zeng B. 2009. Codeword stabilized quantum codes. IEEE Trans. Inf. Theory 55, 433–438. ( 10.1109/TIT.2008.2008136) [DOI] [Google Scholar]
- 46.Danielsen LE. 2012. On the classification of hermitian self-dual additive codes over GF(9). IEEE Trans. Inf. Theory 58, 5500–5511. ( 10.1109/TIT.2012.2196255) [DOI] [Google Scholar]
- 47.Campbell ET, Browne DE. 2010. Bound states for magic state distillation in fault-tolerant quantum computation. Phys. Rev. Lett. 104, 030503 ( 10.1103/PhysRevLett.104.030503) [DOI] [PubMed] [Google Scholar]
- 48.Gottesman D, Chuang IL. 1999. Demonstrating the viability of universal quantum computation using teleportation and single-qubit operations. Nature 402, 390–393. ( 10.1038/46503) [DOI] [Google Scholar]
- 49.Cui SX, Gottesman D, Krishna A. 2017. Diagonal gates in the Clifford hierarchy. Phys. Rev. A 95, 012329 ( 10.1103/PhysRevA.95.012329) [DOI] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
This article has no additional data.

