# Quantum error correction and fault-tolerance

== Quantum Error Correction == Building a quantum computer or a quantum communications device in the real world means having to deal with errors. Any qubit stored unprotected or one transmitted through a communications channel will inevitably come out at least slightly changed. The theory of quantum error-correcting codes has been developed to counteract noise introduced in this way. By adding extra qubits and carefully encoding the quantum state we wish to protect, a quantum system can be insulated to great extent against errors. To build a quantum computer, we face an even more daunting task: If our quantum gates are imperfect, everything we do will add to the error. The theory of fault-tolerant quantum computation tells us how to perform operations on states encoded in a quantum error-correcting code without compromising the code's ability to protect against errors. In general, a quantum error-correcting code is a subspace of a Hilbert space designed so that any of a set of possible errors can be corrected by an appropriate quantum operation. Specifically: Definition 1 Let $\mathcal\left\{H\right\}_n$ be a $2^n$-dimensional Hilbert space (n qubits), and let C be a K-dimensional subspace of $\mathcal\left\{H\right\}_n$. Then C is an ((n,K)) (binary) quantum error-correcting code (QECC) correcting the set of errors $\mathcal\left\{E\right\}= \\left\{E_a\\right\}$ iff $\exists\mathcal\left\{R\right\}$ s.t. $\mathcal\left\{R\right\}$ is a quantum operation and $\left(\mathcal\left\{R\right\}\circ E_a\right)\left(\left | \psi \right \rangle\right) = \left | \psi \right \rangle$ for all $E_a \in \mathcal\left\{E\right\}$, $\left | \psi \right \rangle \in C$. $\mathcal\left\{R\right\}$ is called the recovery or decoding operation and serves to actually perform the correction of the state. The decoder is sometimes also taken to map $\mathcal\left\{H\right\}_n$ into an unencoded Hilbert space $\mathcal\left\{H\right\}_\left\{\log K\right\}$ isomorphic to C. Thus should be distinguished from the encoding operation which maps $\mathcal\left\{H\right\}_\left\{\log K\right\}$ into $\mathcal\left\{H\right\}_n$, determining the imbedding of C. The computational complexity of the encoder is frequently a great deal lower than that of the decoder. In particular, the task of determining what error has occured can be computationally difficult (NP-hard, in fact), and designing codes with efficient decoding algorithms is an important task in quantum correction as in classical error correction. This article will cover only binary quantum codes, built with qubits as registers, but all of the techniques discussed here can be generalized to higher-dimensional registers, or qudits. To determine whether a given subspace is able to correct a given set of errors, we can apply the quantum error-correction conditions: Theorem 1 A QECC C corrects the set of errors $\mathcal\left\{E\right\}$ iff $\left\langle \psi_i \right |E_a^\dagger E_b \left | \psi_j \right \rangle = C_\left\{ab\right\}\delta_\left\{ij\right\}$ where $E_a, A_b \in \mathcal\left\{E\right\}$ and $\\left\{\left | \psi_i \right \rangle \\right\}$ form an orthonormal basis for C. The salient point in these error-correction conditions is that the matrix element $C_\left\{ab\right\}$ does not depend on the encoded basis states $i$ and $j$, which roughly speaking indicates that neither the environment nor the decoding operation learns any information about the encoded state. We can imagine the various possible errors taking the subspace $C$ into other subspaces of $\mathcal\left\{H\right\}_n$, and we want those subspaces to be isomorphic to $C$, and to be distinguishable from each other by an appropriate measurement. For instance, if $C_\left\{ab\right\} = \delta_\left\{ab\right\}$, then the various erroneous subspaces are orthogonal to each other. Because of the linearity of quantum mechanics, we can always take the set of errors $\mathcal\left\{E\right\}$ to be a linear space: If a QECC corrects $E_a$ and $E_b$, it will also correct $\alpha E_a + \beta E_b$ using the same recovery operation. In addition, if we write any superoperator $\mathcal\left\{S\right\}$ in terms of its operator-sum representation $\mathcal\left\{S\right\}\left(\rho\right) \mapsto \sum A_k \rho A_k^\dagger$, a QECC that corrects the set of errors $\\left\{A_k\\right\}$ automatically corrects $\mathcal\left\{S\right\}$ as well. Thus, it is sufficient in general to check that the error-correction conditions hold for a basis of errors. Frequently, we are interested in codes that correct any error affecting $t$ or fewer physical qubits. In that case, let us consider tensor products of the Pauli matrices $I=\begin\left\{pmatrix\right\}1&0\\0&1\end\left\{pmatrix\right\}, X=\begin\left\{pmatrix\right\}0&1\\1&0\end\left\{pmatrix\right\}, Y=\begin\left\{pmatrix\right\}0&-i\\i&0\end\left\{pmatrix\right\}, Z=\begin\left\{pmatrix\right\}1&0\\0&-1\end\left\{pmatrix\right\}$ Define the Pauli group $\mathcal\left\{P\right\}_n$ as the group consisting of tensor products of $I$, $X$, $Y$, and $Z$ on $n$ qubits, with an overall phase of $\pm 1$ or $\pm i$. The weight $wt\left(P\right)$ of a Pauli operator $P \in \mathcal\left\{P\right\}_n$ is the number of qubits on which it acts as $X$, $Y$, or $Z$ (i.e., not as the identity). Then the Pauli operators of weight $t$ or less form a basis for the set of all errors acting on $t$ or fewer qubits, so a QECC which corrects these Pauli operators corrects all errors acting on up to $t$ qubits. If we have a channel which causes errors independently with probability $O\left(\epsilon\right)$ on each qubit in the QECC, then the code will allow us to decode a correct state except with probability $O\left(\epsilon^\left\{t+1\right\}\right)$, which is the probability of having more than $t$ errors. We get a similar result in the case where the noise is a general quantum operation on each qubit which differs from the identity by something of size $O\left(\epsilon\right)$. Definition 2 The distance $d$ of an $\left(\left(n,K\right)\right)$ is the smallest weight of a nontrivial Pauli operator $\mathcal\left\{E\right\} \in \mathcal\left\{P\right\}_n$ s.t. the equation $\left\langle \psi_i \right |E \left | \psi_j \right \rangle = C\left(E\right)\delta_\left\{ij\right\}$ fails. We use the notation $\left(\left(n,K,d\right)\right)$ to refer to an $\left(\left(n,K\right)\right)$ QECC with distance $d$. Note that for $P, Q \in \mathcal\left\{P\right\}_n$, $wt\left(PQ\right) \leq wt\left(P\right) + wt\left(Q\right)$. Then by comparing the definition of distance with the quantum error-correction conditions, we immediately see that a QECC corrects $t$ general errors iff its distance $d > 2t$. If we are instead interested in erasure errors, when the location of the error is known but not its precise nature, a distance $d$ code corrects $d-1$ erasure errors. If we only wish to detect errors, a distance $d$ code can detect errors on up to $d-1$ qubits. One of the central problems in the theory of quantum error correction is to find codes which maximize the ratios $\left(\log K\right)/n$ and $d/n$, so they can encode as many qubits as possible and correct as many errors as possible. Conversely, we are also interested in the problem of setting upper bounds on achievable values of $\left(\log K\right)/n$ and $d/n$. The quantum Singleton bound (or Knill-Laflamme bound) states that any $\left(\left(n,K,d\right)\right)$ QECC must satisfy $n-\log K \ge 2d - 2$ We can set a lower bound on the existence of QECCs using the quantum Gilbert-Varshamov bound, which states that, for large $n$, an $\left(\left(n,2^k,d\right)\right)$ QECC exists provided that $k/n \le 1-\left(d/n\right)\log 3 - h\left(d/n\right),$ where $h\left(x\right) = -x \log x - \left(1-x\right) \log \left(1-x\right)$ is the binary Hamming entropy. Note that the Gilbert-Varshamov bound simply states that codes at least this good exist; it does not suggest that better codes cannot exist. == Stabilizer Codes == In order to better manipulate and discover quantum error-correcting codes, it is helpful to have a more detailed mathematical structure to work with. The most widely-used structure gives a class of codes known as stabilizer codes. They are less general than arbitrary quantum codes, but have a number of useful properties that make them easier to work with than the general QECC. Definition 3 Let $S \subset \mathcal\left\{P\right\}_n$ be an Abelian subgroup of the Pauli group that does not contain $-1$ or $\pm i$, and let $C\left(S\right) = \\left\{\left| \psi \right \rangle$ s.t. $P\left| \psi \right \rangle = \left| \psi \right \rangle \forall P \in S$. Then $C\left(S\right)$ is a stabilizer code and $S$ is its stabilizer. Because of the simple structure of the Pauli group, any Abelian subgroup has order $2^\left\{n-k\right\}$ for some $k$ and can easily be specified by giving a set of $n-k$ commuting generators. The codewords of the QECC are by definition in the $+1$-eigenspace of all elements of the stabilizer, but an error $E$ acting on a codeword will move the state into the $-1$-eigenspace of any stabilizer element $M$ which anticommutes with $E$: $M \left\left( E \left | \psi \right \rangle \right\right) = - EM \left |\psi \right \rangle = - E \left |\psi\right \rangle.$ Thus, measuring the eigenvalues of the generators of $S$ tells us information about the error that has occurred. The set of such eigenvalues can be represented as an $\left(n-k\right)$-dimensional binary vector known as the error syndrome. Note that the error syndrome does not tell us anything about the encoded state, only about the error that has occurred. Theorem 2 Let $S$ be a stabilizer with $n-k$ generators, and let $S^\perp = \\left\{E \in \mathcal\left\{P\right\}_n$ s.t. $\left[E,M\right] = 0\ \forall M \in S \\right\}$. Then $S$ encodes $k$ qubits and has distance $d$, where $d$ is the smallest weight of an operator in $S^\perp \setminus S$. We use the notation $n,k,d$ to a refer to such a stabilizer code. Note that the square brackets specify that the code is a stabilizer code, and that the middle term $k$ refers to the number of encoded qubits, and not the dimension $2^k$ of the encoded subspace, as for the general QECC (whose dimension might not be a power of $2$). $S^\perp$ is the set of Pauli operators that commute with all elements of the stabilizer. They would therefore appear to be those errors which cannot be detected by the code. However, the theorem specifies the distance of the code by considering $S^\perp \setminus S$. A Pauli operator $P \in S$ cannot be detected by the code, but there is in fact no need to detect it, since all codewords remain fixed under $P$, making it equivalent to the identity operation. A distance $d$ stabilizer code which has nontrivial $P \in S$ with $wt\left(P\right) < d$ is called degenerate, whereas one which does not is non-degenerate. The phenomenon of degeneracy has no analogue for classical error correcting codes, and makes the study of quantum codes substantially more difficult than the study of classical error correction. For instance, a standard bound on classical error correction is the Hamming bound (or sphere-packing bound), but the analogous quantum Hamming bound $k/n \leq 1 - \left(t/n\right) \log 3 - h\left(t/n\right)$ for $n,k,2t+1$ codes (when $n$ is large) is only known to apply to non-degenerate quantum codes (though in fact we do not know of any degenerate QECCs that violate the quantum Hamming bound). An example of a stabilizer code is the $5$-qubit code, a $5,1,3$ code whose stabilizer can be generated by $\begin\left\{matrix\right\} X \otimes Z \otimes Z \otimes X \otimes I, \\ I \otimes X \otimes Z \otimes Z \otimes X, \\ X \otimes I \otimes X \otimes Z \otimes Z, \\ Z \otimes X \otimes I \otimes X \otimes Z. \end\left\{matrix\right\}$ The $5$-qubit code is a non-degenerate code, and is the smallest possible QECC which corrects 1 error (as one can see from the quantum Singleton bound). It is frequently useful to consider other representations of stabilizer codes. For instance, $P \in \mathcal\left\{P\right\}_n$ can be represented by a pair of $n$-bit binary vectors $\left(p_X|p_Z\right)$ where $p_X$ is $1$ for any location where $P$ has an $X$ or $Y$ tensor factor and is $0$ elsewhere, and $p_Z$ is $1$ for any location where $P$ has a $Y$ or $Z$ tensor factor. Two Pauli operators $P = \left(p_X|p_Z\right)$ and $Q = \left(q_X|q_Z\right)$ commute iff $p_X \cdot q_Z + p_Z \cdot q_X = 0$. Then the stabilizer for a code becomes a pair of $\left(n-k\right) \times n$ binary matrices, and most interesting properties can be determined by an appropriate linear algebra exercise. Another useful representation is to map the single-qubit Pauli operators $I$, $X$, $Y$, $Z$ to the finite field GF(4), which sets up a connection between stabilizer codes and a subset of classical codes on 4-dimensional registers. Using the stabilizer formalism limits the available states but there is still a lot of interesting freedom. For N qubits, there are $2^N\pi_\left\{i=1\right\}^N\left(2^i+1\right)$ stabilizer states[Gottesmann and Aaronson PRA 2004], as opposed to the infinite number of general states. So, for example, there are only 6 stabilizer states on one qubit. However for larger N an exponentially growing number of states are possible. These include EPR and GHZ states. Despite being efficiently simulable, most stabilizer states on a large number of qubits exhibit maximal bipartite entanglement[Dahlsten and Plenio, QIC 2006]. == CSS Codes == CSS codes are a very useful class of stabilizer codes invented by Calderbank and Shor, and by Steane. The construction takes two binary classical linear codes and produces a quantum code, and can therefore take advantage of much existing knowledge from classical coding theory. In addition, CSS codes have some very useful properties which make them excellent choices for fault-tolerant quantum computation. A classical $\left[n,k,d\right]$ linear code ($n$ physical bits, $k$ logical bits, classical distance $d$) can be defined in terms of an $\left(n-k\right) \times n$ binary parity check matrix $H$ --- every classical codeword $v$ must satisfy $Hv = 0$. Each row of the parity check matrix can be converted into a Pauli operator by replacing each $0$ with an $I$ operator and each $1$ with a $Z$ operator. Then the stabilizer code generated by these operators is precisely a quantum version of the classical error-correcting code given by $H$. If the classical distance $d = 2t+1$, the quantum code can correct $t$ bit flip ($X$) errors, just as could the classical code. If we want to make a QECC that can also correct phase ($Z$) errors, we should choose two classical codes $C_1$ and $C_2$, with parity check matrices $H_1$ and $H_2$. Let $C_1$ be an $\left[n,k_1,d_1\right]$ code and let $C_2$ be an $\left[n,k_2,d_2\right]$ code. We convert $H_1$ into stabilizer generators as above, replacing each $0$ with $I$ and each $1$ with $Z$. For $H_2$, we perform the same procedure, but each $1$ is instead replaced by $X$. The code will be able to correct bit flip ($X$) errors as if it had a distance $d_1$ and to correct phase ($Z$) errors as if it had a distance $d_2$. Since these two operations are completely separate, it can also correct $Y$ errors as both a bit flip and a phase error. Thus, the distance of the quantum code is at least $\min\left(d_1,d_2\right)$, but might be higher because of the possibility of degeneracy. However, in order to have a stabilizer code at all, the generators produced by the above procedure must commute. Define the dual $C^\perp$ of a classical code $C$ as the set of vectors $w$ s.t. $w \cdot v = 0$ for all $v \in C$. Then the $Z$ generators from $H_1$ will all commute with the $X$ generators from $H_2$ iff $C_2^\perp \subseteq C_1$ (or equivalently, $C_1^\perp \subseteq C_2$). When this is true, $C_1$ and $C_2$ define an $n,k_1+k_2-n,d$ stabilizer code, where $d \geq \min\left(d_1,d_2\right)$. The smallest distance-$3$ CSS code is the $7$-qubit code, a $7,1,3$ QECC created from the classical Hamming code (consisting of all sums of classical strings $1111000$, $1100110$, $1010101$, and $1111111$). The encoded $\left|\overline\left\{0\right\}\right\rangle$ for this code consists of the superposition of all even-weight classical codewords and the encoded $\left|\overline\left\{1\right\}\right\rangle$ is the superposition of all odd-weight classical codewords. The $7$-qubit code is much studied because its properties make it particularly well-suited to fault-tolerant quantum computation. == Fault-Tolerance == Given a QECC, we can attempt to supplement it with protocols for performing fault-tolerant operations. The basic design principle of a fault-tolerant protocol is that an error in a single location --- either a faulty gate or noise on a quiescent qubit --- should not be able to alter more than a single qubit in each block of the quantum error-correcting code. If this condition is satisfied, $t$ separate single-qubit or single-gate failures are required for a distance $2t+1$ code to fail. Particular caution is necessary, as computational gates can cause errors to propagate from their original location onto qubits that were previously correct. In general, a gate coupling pairs of qubits allows errors to spread in both directions across the coupling. The solution is to use transversal gates whenever possible. A transversal operation is one in which the $i$th qubit in each block of a QECC interacts only with the $i$th qubit of other blocks of the code or of special ancilla states. An operation consisting only of single-qubit gates is automatically transversal. A transversal operation has the virtue that an error occurring on the $3$rd qubit in a block, say, can only ever propagate to the $3$rd qubit of other blocks of the code, no matter what other sequence of gates we perform before a complete error-correction procedure. In the case of certain codes, such as the $7$-qubit code, a number of different gates can be performed transversally. Unfortunately, it does not appear to be possible to perform universal quantum computations using just transversal gates. We therefore have to resort to more complicated techniques. First we create special encoded ancilla states in a non-fault-tolerant way, but perform some sort of check on them (in addition to error correction) to make sure they are not too far off from the goal. Then we interact the ancilla with the encoded data qubits using gates from our stock of transversal gates and perform a fault-tolerant measurement. Then we complete the operation with a further transversal gate which depends on the outcome of the measurement. == Fault-Tolerant Gates == We will focus on stabilizer codes. Universal fault-tolerance is known to be possible for any stabilizer code, but in most cases the more complicated type of construction is needed for all but a few gates. The Pauli group $\mathcal\left\{P\right\}_k$, however, can be performed transversally on any stabilizer code. Indeed, the set $S^\perp \setminus S$ of undetectable errors is a boon in this case, as it allows us to perform these gates. In particular, each coset $S^\perp/S$ corresponds to a different logical Pauli operator (with $S$ itself corresponding to the identity). On a stabilizer code, therefore, logical Pauli operations can be performed via a transversal Pauli operation on the physical qubits. Stabilizer codes have a special relationship to a finite subgroup $\mathcal\left\{C\right\}_n$ of the unitary group $U\left(2^n\right)$ frequently called the Clifford group. The Clifford group on $n$ qubits is defined as the set of unitary operations which conjugate the Pauli group $\mathcal\left\{P\right\}_n$ into itself; $\mathcal\left\{C\right\}_n$ can be generated by the Hadamard transform, the CNOT, and the single-qubit $\pi/4$ phase rotation $diag\left(1,i\right)$. The set of stabilizer codes is exactly the set of codes which can be created by a Clifford group encoder circuit using $\left| 0 \right \rangle$ ancilla states. Some stabilizer codes have interesting symmetries under the action of certain Clifford group elements, and these symmetries result in transversal gate operations. A particularly useful fact is that a transversal CNOT gate (i.e., CNOT acting between the $i$th qubit of one block of the QECC and the $i$th qubit of a second block for all $i$) acts as a logical CNOT gate on the encoded qubits for any CSS code. Furthermore, for the $7$-qubit code, transversal Hadamard performs a logical Hadamard, and the transversal $\pi/4$ rotation performs a logical $-\pi/4$ rotation. Thus, for the $7$-qubit code, the full logical Clifford group is accessible via transversal operations. Unfortunately, the Clifford group by itself does not have much computational power: it can be efficiently simulated on a classical computer. We need to add some additional gate outside the Clifford group to allow universal quantum computation; a single gate will suffice, such as the single-qubit $\pi/8$ phase rotation $diag\left(1,\exp\left(i\pi/4\right)\right)$. Note that this gives us a finite generating set of gates. However, by taking appropriate products, we get an infinite set of gates, one that is dense in the unitary group $U\left(2^n\right)$, allowing universal quantum computation. The following circuit performs a $\pi/8$ rotation, given an ancilla state $\left|\psi_\left\{\pi/8\right\} \right\rangle = \left| 0 \right\rangle + exp\left(i\pi/4\right) \left|1\right\rangle$: Here $P$ is the $\pi/4$ phase rotation $diag\left(1,i\right)$, and $X$ is the bit flip. The product is in the Clifford group, and is only performed if the measurement outcome is $1$. Therefore, given the ability to perform fault-tolerant Clifford group operations, fault-tolerant measurements, and to prepare the encoded $\left|\psi_\left\{\pi/8\right\}\right\rangle$ state, we have universal fault-tolerant quantum computation. A slight generalization of the fault-tolerant measurement procedure below can be used to fault-tolerantly verify the $\left|\psi_\left\{\pi/8\right\}\right\rangle$ state, which is a $+1$ eigenstate of $PX$. Using this or another verification procedure, we can check a non-fault-tolerant construction. == Fault-Tolerant Measurement and Error Correction == Since all our gates are unreliable, including those used to correct errors, we will need some sort of fault-tolerant quantum error correction procedure. A number of different techniques have been developed. All of them share some basic features: they involve creation and verification of specialized ancilla states, and use transversal gates which interact the data block with the ancilla state. The simplest method, due to Shor, is very general but also requires the most overhead and is frequently the most susceptible to noise. Note that the following procedure can be used to measure (non-fault-tolerantly) the eigenvalue of any (possibly multi-qubit) Pauli operator $M$: Produce an ancilla qubit in the state $\left|+\right\rangle = \left|0\right\rangle + \left|1\right\rangle$. Perform a controlled-$M$ operation from the ancilla to the state being measured. In the case where $M$ is a multi-qubit Pauli operator, this can be broken down into a sequence of controlled-$X$, controlled-$Y$, and controlled-$Z$ operations. Then measure the ancilla in the basis of $\left|+\right\rangle$ and $\left|-\right\rangle = \left|0\right\rangle - \left|1\right\rangle$. If the state is a $+1$ eigenvector of $M$, the ancilla will be $\left|+\right\rangle$, and if the state is a $-1$ eigenvector, the ancilla will be $\left|-\right\rangle$. The advantage of this procedure is that it measures just $M$ and nothing more. The disadvantage is that it is not transversal, and thus not fault-tolerant. Instead of the unencoded $\left|+\right\rangle$ state, we must use a more complex ancilla state $\left|00\ldots0 \right\rangle + \left|11\ldots1\right\rangle$ known as a 'cat' state. The cat state contains as many qubits as the operator $M$ to be measured, and we perform the controlled-$X$, -$Y$, or -$Z$ operations transversally from the appropriate qubits of the cat state to the appropriate qubits in the data block. Since, assuming the cat state is correct, all of its qubits are either $\left|0\right\rangle$ or $\left|1\right\rangle$, the procedure either leaves the data state alone or performs $M$ on it uniformly. A $+1$ eigenstate in the data therefore leaves us with $\left|00\ldots0 \right\rangle + \left|11\ldots1 \right\rangle$ in the ancilla and a $-1$ eigenstate leaves us with $\left|00\ldots0 \right\rangle + \left|11\ldots1 \right\rangle$. In either case, the final state still tells us nothing about the data beyond the eigenvalue of $M$. If we perform a Hadamard transform and then measure each qubit in the ancilla, we get either a random even weight string (for eigenvalue $+1$) or an odd weight string (for eigenvalue $-1$). The procedure is transversal, so an error on a single qubit in the initial cat state or in a single gate during the interaction will only produce one error in the data. However, the initial construction of the cat state is not fault-tolerant, so a single gate error then could eventually produce two errors in the data block. Therefore, we must be careful and use some sort of technique to verify the cat state, for instance by checking if random pairs of qubits are the same. Also, note that a single phase error in the cat state will cause the final measurement outcome to be wrong (even and odd switch places), so we should repeat the measurement procedure multiple times for greater reliability. We can then make a full fault-tolerant error correction procedure by performing the above measurement technique for each generator of the stabilizer. Each measurement gives us one bit of the error syndrome, which we then decipher classically to determine the actual error. More sophisticated techniques for fault-tolerant error correction involve less interaction with the data but at the cost of more complicated ancilla states. A procedure due to Steane uses (forCSS codes) one ancilla in a logical $\left|\overline\left\{0\right\}\right\rangle$ state of the same code and one ancilla in a logical $\left|\overline\left\{0\right\}\right\rangle + \left|\overline\left\{1\right\}\right\rangle$ state. A procedure due to Knill (for any stabilizer code) teleports the data qubit through an ancilla consisting of two blocks of the QECC containing an encoded Bell state $\left|\overline\left\{00\right\}\right\rangle + \left|\overline\left\{11\right\}\right\rangle$. Because the ancillas in Steane and Knill error correction are more complicated than the cat state, it is especially important to verify the ancillas before using them. == Threshold for Fault-Tolerance == In an unencoded protocol, even one error can destroy the computation, but a fully fault-tolerant protocol will give the right answer unless multiple errors occur before they can be corrected. On the other hand, the fault-tolerant protocol is larger, requiring more qubits and more time to do each operation, and therefore providing more opportunities for errors. If errors occur on the physical qubits independently at random with probability $p$ per gate or timestep, the fault-tolerant protocol has probability of logical error for a single logical gate or timestep at most $C p^2$, where $C$ is a constant that depends on the design of the fault-tolerant circuitry (assume the quantum error-correcting code has distance $3$, as for the $7$-qubit code). When $p < p_t = 1/C$, the fault-tolerance helps, decreasing the logical error rate. $p_t$ is the threshold for fault-tolerant quantum computation. If the error rate is higher than the threshold, the extra overhead means that errors will occur faster than they can be reliably corrected, and we are better off with an unencoded system. To further lower the logical error rate, we turn to a family of codes known as concatenated codes. Given a codeword of a particular $n,1$ QECC, we can take each physical qubit and again encode it using the same code, producing an $n^2,1$ QECC. We could repeat this procedure to get an $n^3$-qubit code, and so forth. The fault-tolerant procedures concatenate as well, and after $L$ levels of concatenation, the effective logical error rate is $p_t \left(p/p_t\right)^\left\{2^L\right\}$ (for a base code correcting $1$ error). Therefore, if $p$ is below the threshold $p_t$, we can achieve an arbitrarily good error rate $\epsilon$ per logical gate or timestep using only $poly\left(\log \epsilon\right)$ resources, which is excellent theoretical scaling. Unfortunately, the practical requirements for this result are not nearly so good. The best rigorous proofs of the threshold to date show that the threshold is at least $2 \times 10^\left\{-5\right\}$ (meaning one error per $50,000$ operations). Optimized simulations of fault-tolerant protocols suggest the true threshold may be as high as $5\%$, but to tolerate this much error, existing protocols require enormous overhead, perhaps increasing the number of gates and qubits by a factor of a million or more for typical computations. For lower physical error rates, overhead requirements are more modest, particularly if we only attempt to optimize for calculations of a given size, but are still larger than one would like. Furthermore, these calculations make a number of assumptions about the physical properties of the computer. The errors are assumed to be independent and uncorrelated between qubits except when a gate connects them. It is assumed that measurements and classical computations can be performed quickly and reliably, and that quantum gates can be performed between arbitrary pairs of qubits in the computer, irrespective of their physical proximity. Of these, only the assumption of independent errors is at all necessary, and that can be considerably relaxed to allow short-range correlations and certain kinds of non-Markovian environments. However, the effects of relaxing these assumptions on the threshold value and overhead requirements have not been well-studied. Category:Introductory Tutorials Category:Quantum Error Correction Category:Handbook of Quantum Information