Quantum error correction
≈ 17 min read
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
Quantum error correction (QEC) comprises a set of techniques used in quantum memory and quantum computing to protect quantum information from errors arising from decoherence and other sources of quantum noise. QEC schemes that employ codewords stabilized by a set of commuting operators are known as stabilizer codes, and the corresponding codewords are referred to as quantum error-correcting codes (QECCs). Conceptually, to use a quantum error-correcting code, one can append ancilla qubits to qubits that need protection, and apply a unitary encoding circuit to rotate the global state into a subspace of a larger Hilbert space. This highly entangled, encoded state corrects for local noisy errors. A quantum error-correcting code makes quantum computation and quantum communication practical by providing a way for a sender and receiver to simulate a noiseless qubit channel given a noisy qubit channel whose noise conforms to a particular error model.
Quantum error correction (QEC) comprises a set of techniques used in quantum memory and quantum computing to protect quantum information from errors arising from decoherence and other sources of quantum noise. QEC schemes that employ codewords stabilized by a set of commuting operators are known as stabilizer codes, and the corresponding codewords are referred to as quantum error-correcting codes (QECCs). Conceptually, to use a quantum error-correcting code, one can append ancilla qubits to qubits that need protection, and apply a unitary encoding circuit to rotate the global state into a subspace of a larger Hilbert space. This highly entangled, encoded state corrects for local noisy errors. A quantum error-correcting code makes quantum computation and quantum communication practical by providing a way for a sender and receiver to simulate a noiseless qubit channel given a noisy qubit channel whose noise conforms to a particular error model. ==Classical codes as bias quantum code== Classical error-correcting codes that employ redundancy can be mapped to biased quantum codes that correct either Pauli X (bit-flip) or Pauli Z (phase-flip) errors. The simplest, though inefficient, example is the repetition code. In a repetition code, the logical information is stored as multiple copies of a bit. If these copies are later found to disagree due to errors, the most likely original value is inferred via majority vote. For example, consider a logical bit in the "1" state copied three times. If noise corrupts one of the three bits, leaving the other two unchanged, the most likely scenario is that a single-bit error occurred, and the original logical value was "1." While it is possible that two bits flip, producing three zeros, this outcome is less probable. In this example, the logical information is the single bit, and the three copies are the physical representation. Repetition codes work in classical channels because classical bits can be freely measured and duplicated. In quantum channels, however, the no-cloning theorem prevents copying an unknown qubit, seemingly posing an obstacle to quantum error correction. This challenge is overcome by encoding the logical information of a single qubit into a highly entangled state of multiple physical qubits. For example, the three-qubit bit-flip code, first proposed by Asher Peres in 1985, uses entanglement and syndrome measurements to correct errors in a manner analogous to the classical repetition code. A phase-flip code is similarly constructed and is equivalent to the bit-flip code up to transversal Hadamard gates. Consider the situation in which we want to transmit the state of a single qubit \vert\psi\rangle through a noisy channel \mathcal E . Let us moreover assume that this channel either flips the state of the qubit, with probability p , or leaves it unchanged. The action of \mathcal E on a general input \rho can therefore be written as \mathcal E(\rho) = (1-p) \rho + p\cdot X \rho X . Let |\psi\rangle = \alpha_0|0\rangle + \alpha_1|1\rangle be the quantum state to be transmitted. With no error-correcting protocol in place, the transmitted state will be correctly transmitted with probability 1-p . We can however improve on this number by encoding the state into a greater number of qubits, in such a way that errors in the corresponding logical qubits can be detected and corrected. In the case of the simple three-qubit repetition code, the encoding consists in the mappings \vert0\rangle\rightarrow\vert0_{\rm L}\rangle\equiv\vert000\rangle and \vert1\rangle\rightarrow\vert1_{\rm L}\rangle\equiv\vert111\rangle . The input state \vert\psi\rangle is encoded into the state \vert\psi'\rangle = \alpha_0 \vert000\rangle + \alpha_1 \vert111\rangle . This mapping can be realized for example using two CNOT gates, entangling the system with two ancillary qubits initialized in the state \vert0\rangle . The encoded state \vert\psi'\rangle is what is now passed through the noisy channel. The channel acts on \vert\psi'\rangle by flipping some subset (possibly empty) of its qubits. No qubit is flipped with probability (1-p)^3 , a single qubit is flipped with probability 3p(1-p)^2 , two qubits are flipped with probability 3p^2(1-p) , and all three qubits are flipped with probability p^3 . Note that a further assumption about the channel is made here: we assume that \mathcal E acts equally and independently on each of the three qubits in which the state is now encoded. The problem is now how to detect and correct such errors, while not corrupting the transmitted state. Let us assume for simplicity that p is small enough that the probability of more than a single qubit being flipped is negligible. One can then detect whether a qubit was flipped, without also querying for the values being transmitted, by asking whether one of the qubits differs from the others. This amounts to performing a measurement with four different outcomes, corresponding to the following four projective measurements: \begin{align} P_0 &=|000\rangle\langle000|+|111\rangle\langle111|, \\ P_1 &=|100\rangle\langle100|+|011\rangle\langle011|, \\ P_2 &=|010\rangle\langle010|+|101\rangle\langle101|, \\ P_3 &=|001\rangle\langle001|+|110\rangle\langle110|. \end{align} This reveals which qubits are different from the others, without at the same time giving information about the state of the qubits themselves. If the outcome corresponding to P_0 is obtained, no correction is applied, while if the outcome corresponding to P_i is observed, then the Pauli X gate is applied to the i -th qubit. Formally, this correcting procedure corresponds to the application of the following map to the output of the channel: \mathcal E_{\operatorname{corr}}(\rho)=P_0\rho P_0 + \sum_{i=1}^3 X_i P_i \rho\, P_i X_i. Note that, while this procedure perfectly corrects the output when zero or one flips are introduced by the channel, if more than one qubit is flipped then the output is not properly corrected. For example, if the first and second qubits are flipped, then the syndrome measurement gives the outcome P_3 , and the third qubit is flipped, instead of the first two. To assess the performance of this error-correcting scheme for a general input we can study the fidelity F(\psi') between the input \vert\psi'\rangle and the output \rho_{\operatorname{out}}\equiv\mathcal E_{\operatorname{corr}}(\mathcal E(\vert\psi'\rangle\langle\psi'\vert)) . Being the output state \rho_{\operatorname{out}} correct when no more than one qubit is flipped, which happens with probability (1-p)^3 + 3p(1-p)^2 , we can write it as [(1-p)^3+3p(1-p)^2]\,\vert\psi'\rangle\langle\psi'\vert + (...) , where the dots denote components of \rho_{\operatorname{out}} resulting from errors not properly corrected by the protocol. It follows that F(\psi')=\langle\psi'\vert\rho_{\operatorname{out}}\vert\psi'\rangle\ge (1-p)^3 + 3p(1-p)^2=1-3p^2+2p^3. This fidelity is to be compared with the corresponding fidelity obtained when no error-correcting protocol is used, which was shown before to equal {1-p} . A little algebra then shows that the fidelity after error correction is greater than the one without for p . Note that this is consistent with the working assumption that was made while deriving the protocol (of p being small enough). The bit flip is the only kind of error in classical computers. In quantum computers, however, another kind of error is possible: the sign flip. Through transmission in a channel, the relative sign between |0\rangle and |1\rangle can become inverted. For instance, a qubit in the state |-\rangle=(|0\rangle-|1\rangle)/\sqrt{2} may have its sign flip to |+\rangle=(|0\rangle+|1\rangle)/\sqrt{2}. The original state of the qubit |\psi\rangle = \alpha_0|0\rangle+\alpha_1|1\rangle will be changed into the state |\psi'\rangle = \alpha_0|{+}{+}{+}\rangle+\alpha_1|{-}{-}{-}\rangle. In the Hadamard basis, bit flips become sign flips and sign flips become bit flips. Let E_\text{phase} be a quantum channel that can cause at most one phase flip. Then the bit-flip code from above can recover |\psi\rangle by transforming into the Hadamard basis before and after transmission through E_\text{phase} . ==Encoding logical qubits into physical qubits== ===Shor code=== The error channel may induce either a bit flip, a sign flip (i.e., a phase flip), or both. It is possible to correct for both types of errors on a logical qubit using a well-designed QEC code. One example of a code that does this is the Shor code, published in 19951. Since these two types of errors are the only types of errors that can result after a projective measurement, a Shor code corrects arbitrary single-qubit errors. Let E be a quantum channel that can arbitrarily corrupt a single qubit. The 1st, 4th and 7th qubits are for the sign flip code, while the three groups of qubits (1,2,3), (4,5,6), and (7,8,9) are designed for the bit flip code. With the Shor code, a qubit state |\psi\rangle=\alpha_0|0\rangle+\alpha_1|1\rangle will be transformed into the product of 9 qubits |\psi'\rangle=\alpha_0|0_S\rangle+\alpha_1|1_S\rangle , where |0_{\rm S}\rangle=\frac{1}{2\sqrt{2}}(|000\rangle + |111\rangle) \otimes (|000\rangle + |111\rangle ) \otimes (|000\rangle + |111\rangle) |1_{\rm S}\rangle=\frac{1}{2\sqrt{2}}(|000\rangle - |111\rangle) \otimes (|000\rangle - |111\rangle) \otimes (|000\rangle - |111\rangle) If a bit flip error happens to a qubit, the syndrome analysis will be performed on each block of qubits (1,2,3), (4,5,6), and (7,8,9) to detect and correct at most one bit flip error in each block. If the three bit flip group (1,2,3), (4,5,6), and (7,8,9) are considered as three inputs, then the Shor code circuit can be reduced as a sign flip code. This means that the Shor code can also repair a sign flip error for a single qubit. The Shor code also can correct for any arbitrary errors (both bit flip and sign flip) to a single qubit. If an error is modeled by a unitary transform U, which will act on a qubit |\psi\rangle , then U can be described in the form U = c_0 I + c_1 X + c_2 Y + c_3 Z where c_0 , c_1 , c_2 , and c_3 are complex constants, I is the identity, and the Pauli matrices are given by \begin{align} X &= \begin{pmatrix} 0&1\\1&0 \end{pmatrix} ; \\ Y &= \begin{pmatrix} 0&-i\\i&0 \end{pmatrix} ; \\ Z &= \begin{pmatrix} 1&0\\0&-1 \end{pmatrix} . \end{align} If U is equal to I, then no error occurs. If U=X , a bit flip error occurs. If U=Z , a sign flip error occurs. If U=iY then both a bit flip error and a sign flip error occur. In other words, the Shor code can correct any combination of bit or phase errors on a single qubit. More generally, the error operator U does not need to be unitary, but can be a Kraus operator from a quantum operation representing a system interacting with its environment. ==Application== ===In quantum metrology=== Quantum error correction can be applied to quantum metrology. Thus, a logical qubit is stored in several physical qubits. In the case of a linear interferometer, there is not interaction between the logical qubits. However, the dynamics is given with operators that contain multiqubit correlation operators of the physical qubits corresponding to a logical qubits. In this scheme, the errors can be detected, and corrected following the general rules of quantum error correction. In another approach, the goal is not correcting the quantum state, but to keep a state that makes quantum metrology with high precision possible even if noise is present. It has been observed that some quantum states that cannot outperform separable states in quantum metrology, can be better than separable states in the multi-copy case, hence their metrological abilities can be activated. Thus, instead of stroring each logical qubit in several physical qubits, we store several copies of the entire quantum state. For instance, consider an N -qubit quantum state \varrho living in the space \{|0\rangle^{\otimes N},|1\rangle^{\otimes N}\}. This subspace includes the noisy quantum state p|{\rm GHZ}_N\rangle\langle {\rm GHZ}_N|+(1-p)\frac{(|0\rangle\langle 0|)^{\otimes N}+(|1\rangle\langle 1|)^{\otimes N}}{2}, where the Greenberger-Horne-Zeilinger (GHZ) state is given as |{\rm GHZ}_N\rangle=\frac1 {\sqrt 2}(|0\rangle^{\otimes N} + |1\rangle^{\otimes N}). Let us consider M copies of the state \varrho_{M\text{-copy}}=\varrho^{\otimes M}. Then, the following Hamiltonian H=\sum_{n=1}^N \prod_{m=1}^M \sigma_z^{(n,m)} acts on the M -copy quantum state. Here, \sigma_z^{(n,m)} is the Pauli spin matrix \sigma_z for the nth qubit of the mth copy. The metrological usefulness characterized by the quantum Fisher information as F_Q[\varrho,H] increases exponentially with the number of copies, M , and approaches the metrological usefulness of the GHZ state, 4N^2. Separable states reach 4N. If the state is outside of the subspace described above, then it can be brought back to the subspace with the usual steps of error correction with the bitflip code. In another example, one can see that in this scheme a phase error is suppressed even without error correction. Let us call the three copies of the N -qubit GHZ state then a single phase |\Psi\rangle=|{\rm GHZ}_N\rangle\otimes|{\rm GHZ}_N\rangle\otimes|{\rm GHZ}_N\rangle, and consider the Hamiltonian above. Then, the metrological usefulness of the state is characterized by the quantum Fisher information F_Q[|\Psi\rangle\langle\Psi|,H] . Let us denote the state after one of the qubits passes through a phase flip channel by \varrho_{\rm phaseflip}. It can be shown that the metrological usefulness of the state does not change F_Q[\varrho_{\rm phaseflip},H]=F_Q[|\Psi\rangle\langle\Psi|,H] and it remains maximal. Thus, even without an error correction step, the metrological properties remain the same. (See the Supplement E in Ref., and Ref. ) ==Experimental realization== There have been several experimental realizations of CSS-based codes. The first demonstration was with nuclear magnetic resonance qubits. Subsequently, demonstrations have been made with linear optics, trapped ions, and superconducting (transmon) qubits. In 2016 for the first time the lifetime of a quantum bit was prolonged by employing a QEC code. The error-correction demonstration was performed on Schrödinger-cat states encoded in a superconducting resonator, and employed a quantum controller capable of performing real-time feedback operations including read-out of the quantum information, its analysis, and the correction of its detected errors. The work demonstrated how the quantum-error-corrected system reaches the break-even point at which the lifetime of a logical qubit exceeds the lifetime of the underlying constituents of the system (the physical qubits). Other error correcting codes have also been implemented, such as one aimed at correcting for photon loss, the dominant error source in photonic qubit schemes. In 2021, an entangling gate between two logical qubits encoded in topological quantum error-correction codes has first been realized using 10 ions in a trapped-ion quantum computer. 2021 also saw the first experimental demonstration of fault-tolerant Bacon-Shor code in a single logical qubit of a trapped-ion system, i.e. a demonstration for which the addition of error correction is able to suppress more errors than is introduced by the overhead required to implement the error correction as well as fault tolerant Steane code. In a different direction, using an encoding corresponding to the Jordan-Wigner mapped Majorana zero modes of a Kitaev chain, researchers were able to perform quantum teleportation of a logical qubit, where an improvement in fidelity from 71% to 85% was observed. In 2022, researchers at the University of Innsbruck have demonstrated a fault-tolerant universal set of gates on two logical qubits in a trapped-ion quantum computer. They have performed a logical two-qubit controlled-NOT gate between two instances of the seven-qubit color code, and fault-tolerantly prepared a logical magic state. In 2022, research at University of Engineering and Technology Lahore demonstrated error cancellation by inserting single-qubit Z-axis rotation gates into strategically chosen locations of the superconductor quantum circuits. The scheme has been shown to effectively correct errors that would otherwise rapidly add up under constructive interference of coherent noise. This is a circuit-level calibration scheme that traces deviations (e.g. sharp dips or notches) in the decoherence curve to detect and localize the coherent error, but does not require encoding or parity measurements. However, further investigation is needed to establish the effectiveness of this method for the incoherent noise. In February 2023, researchers at Google claimed to have decreased quantum errors by increasing the qubit number in experiments, they used a fault tolerant surface code measuring an error rate of 3.028% and 2.914% for a distance-3 qubit array and a distance-5 qubit array respectively. In April 2024, researchers at Microsoft claimed to have successfully tested a quantum error correction code that allowed them to achieve an error rate with logical qubits that is 800 times better than the underlying physical error rate. This qubit virtualization system was used to create 4 logical qubits with 30 of the 32 qubits on Quantinuum's trapped-ion hardware. The system uses an active syndrome extraction technique to diagnose errors and correct them while calculations are underway without destroying the logical qubits. In January 2025, researchers at UNSW Sydney managed to develop an error correction method using antimony-based materials, including antimonides, leveraging high-dimensional quantum states (qudits) with up to eight states. Using a Kane quantum computer employing advanced pulse control techniques, they demonstrated enhanced error resilience. ==See also== Error detection and correction Fault tolerant quantum computing Soft error ==References== ==Further reading== ==External links==
Text derived from https://en.wikipedia.org/w/index.php?oldid=1348841887 under CC BY-SA 4.0; modifications have been made.