Five-qubit error correcting code explained

The five-qubit error correcting code is the smallest quantum error correcting code that can protect a logical qubit from any arbitrary single qubit error.[1] In this code, 5 physical qubits are used to encode the logical qubit.[2] With

X

and

Z

being Pauli matrices and

I

the Identity matrix, this code's generators are

\langleXZZXI,IXZZX,XIXZZ,ZXIXZ\rangle

. Its logical operators are

\bar{X}=XXXXX

and

\bar{Z}=ZZZZZ

.[3] Once the logical qubit is encoded, errors on the physical qubits can be detected via stabilizer measurements. A lookup table that maps the results of the stabilizer measurements to the types and locations of the errors gives the control system of the quantum computer enough information to correct errors.[4]

Measurements

Stabilizer measurements are parity measurements that measure the stabilizers of physical qubits.[5] For example, to measure the first stabilizer (

XZZXI

), a parity measurement of

X

of the first qubit,

Z

on the second,

Z

on the third,

X

on the fourth, and

I

on the fifth is performed.Since there are four stabilizers, 4 ancillas will be used to measure them. The first 4 qubits in the image above are the ancillas. The resulting bits from the ancillas is the syndrome; which encodes the type of error that occurred and its location.

A logical qubit can be measured in the computational basis by performing a parity measurement on

\bar{Z}

. If the measured ancilla is

0

, the logical qubit is

|0\rm\rangle

. If the measured ancilla is

1

, the logical qubit is

|1\rm\rangle

.[6]

Error correction

It is possible to compute all the single qubit errors that can occur and how to correct them. This is done by calculating what errors commute with the stabilizers.[4] For example, if there is an

X

error on the first qubit and no errors on the others (

X1=XIIII

), it commutes with the first stabilizer

[XIIII,XZZXI]=0

. This means that if an X error occurs on the first qubit, the first ancilla qubit will be 0. The second ancilla qubit:

[XIIII,IXZZX]=0

, the third:

[XIIII,XIXZZ]=0

and the fourth

[XIIII,ZXIXZ]0

. So if an X error occurs on the first qubit, the syndrome will be

0001

; which is shown in the table below, to the right of

X1

. Similar calculations are realized for all other possible errors to fill out the table.

X1

0001

Z1

1010

Y1

1011

X2

1000

Z2

0101

Y2

1101

X3

1100

Z3

0010

Y3

1110

X4

0110

Z4

1001

Y4

1111

X5

0011

Z5

0100

Y5

0111
To correct an error, the same operation is performed on the physical qubit based on its syndrome. If the syndrome is

0001

, an

X

gate is applied to the first qubit to reverse the error.

Encoding

The first step in executing error corrected quantum computation is to encode the computer's initial state by transforming the physical qubits into logical codewords. The logical codewords for the five qubit code are

\begin{align} |0\rm\rangle=

1
4

[&|00000\rangle+|10010\rangle+|01001\rangle+|10100\rangle+|01010\rangle-|11011\rangle-|00110\rangle-|11000\rangle\ -&|11101\rangle-|00011\rangle-|11110\rangle-|01111\rangle-|10001\rangle-|01100\rangle-|10111\rangle+|00101\rangle], \end{align}

\begin{align} |1\rm\rangle=

1
4

[&|11111\rangle+|01101\rangle+|10110\rangle+|01011\rangle+|10101\rangle-|00100\rangle-|11001\rangle-|00111\rangle\\-&|00010\rangle-|11100\rangle-|00001\rangle-|10000\rangle-|01110\rangle-|10011\rangle-|01000\rangle+|11010\rangle]. \end{align}

Stabilizer measurements followed by a

\bar{Z}

measurement can be used to encode a logical qubit into 5 physical qubits.[7] To prepare

|0\rm\rangle

, perform stabilizer measurements and apply error correction. After error correction, the logical state is guaranteed to be a logical codeword. If the result of measuring

\bar{Z}

is

0

, the logical state is

|0\rm\rangle

. If the result is

1

, the logical state is

|1\rangle

and applying

\bar{X}

will transform it into

|0\rm\rangle

.

Notes and References

  1. 0904.2557. Gottesman . Daniel. An Introduction to Quantum Error Correction and Fault-Tolerant Quantum Computation. 2009. quant-ph .
  2. Benchmarking Quantum Computers: The Five-Qubit Error Correcting Code . Knill . E. . Laflamme . R. . Martinez . R. . Negrevergne . C. . Phys. Rev. Lett. . quant-ph/0101034 . 86 . 25 . 5811–5814 . 2001 . American Physical Society . 10.1103/PhysRevLett.86.5811 . 11415364 . 2001PhRvL..86.5811K . 119440555.
  3. Stabilizer Codes and Quantum Error Correction. D. Gottesman. quant-ph/9705052. 1997.
  4. Roffe . Joschka. Quantum error correction: an introductory guide. 1907.11157. Contemporary Physics. 60. 3. 226–245. 2019. Taylor & Francis. 10.1080/00107514.2019.1667078. 2019ConPh..60..226R. 198893630.
  5. 10.1088/0034-4885/76/7/076001. Quantum error correction for beginners. 2013. 76. 7. 076001. Simon J . Devitt . William J . Munro . Kae . Nemoto. Reports on Progress in Physics. 23787909. 0905.2794. 2013RPPh...76g6001D. 206021660.
  6. Realization of real-time fault-tolerant quantum error correction. C. . Ryan-Anderson . J. G. . Bohnet . K. . Lee . D. . Gresh . A. . Hankin . J. P. . Gaebler . D. . Francois . A. . Chernoguzov . D. . Lucchetti . N. C. . Brown . T. M. . Gatterman . S. K. . Halit . K. . Gilmore . J. . Gerber . B. . Neyenhuis . D. . Hayes . R. P. . Stutz. Physical Review X. 2021. 11. 4. 041058. 10.1103/PhysRevX.11.041058. 2107.07505. 2021PhRvX..11d1058R. 235899062.
  7. Experimental exploration of five-qubit quantum error correcting code with superconducting qubits. Ming . Gong . Xiao . Yuan . Shiyu . Wang . Yulin . Wu . Youwei . Zhao . Chen . Zha . Shaowei . Li . Zhen . Zhang . Qi . Zhao . Yunchao . Liu . Futian . Liang . Jin . Lin . Yu . Xu . H. . Deng . Hao . Rong . He . Lu . S. . Benjamin . Cheng-Zhi . Peng . Xiongfeng . Ma . Yu-Ao . Chen . Xiaobo . Zhu . Jian-Wei . Pan. National Science Review. 1907.04507. 2021. 9. 1. nwab011. 10.1093/nsr/nwab011. 35070323. 8776549.