Quantum Error Correction Introduction
Quantum Error Correction Introduction
Author: 李冠
Email: [email protected]
Abstract
In quantum commutation, one of the main issues that affects its consistency is the existing
of noise. In the following article we will mainly discuss two different kinds of errors, qubit
flip and phase flip. Both errors can be easily removed by a two steps procedure, detect and
recovered. Both can be indicated by some simple circuit added in the back of the main
circuit. We then introduce a more fundamental circuit, Shor code, which can handle both
cases in the same time. Our results work very well in the simulation basis, but not all of
them did well in the real quantum machine.
1. Introduction
Quantum computation is based on quantum mechanics, which is very sensitive to the overall environment. In classical
computation, we could reduce our noise to a pretty small number, it’s so small that the failure rates are well below one per
1017 operations. In contrast to the classical computer, the best quantum computer we have now has the failure rates around
one in a thousand operations [1]. Its quite easy to see the different between these two numbers, and its easy to see why we
still can’t rely on quantum computer for our daily lives. Our main goal here is to implement some simple circuit to solve the
issue of the noise that happens quite often in the quantum computer’s circuit.
The noises we will introduce mainly in the rest of the articles are qubit flip and phase flip errors. Both errors are really
simple, which are presented in the following equations:
𝑞𝑢𝑏𝑖𝑡 𝑓𝑙𝑖𝑝 𝑒𝑟𝑟𝑜𝑟
|Ψ⟩ = 𝛼|0⟩ + 𝛽|1⟩ → 𝛼|1⟩ + 𝛽|0⟩
𝑝ℎ𝑎𝑠𝑒 𝑓𝑙𝑖𝑝 𝑒𝑟𝑟𝑜𝑟
|Ψ⟩ = 𝛼|0⟩ + 𝛽|1⟩ → 𝛼|0⟩ − 𝛽|1⟩
The first error is just like a single qubit seems to run through a X-gate while the second error run through a Z-gate. But
there’s actually nothing on the circuit except of the original gates, they were affected by noises occur on the quantum circuit.
We will introduce our tactics to both errors in the latter part of the article, first I will introduce the real quantum machine and
the simulator we used provided by the IBM. The quantum machine is tag as “IBM_osaka” in the IBM quantum platform, it
has a total of one hundred twenty-seven qubits. The error per layered gate for a hundred qubits chain is 2.8%. Its median
readout error is 2.050 ∙ 10−2 and its median ECR error is 1.121 ∙ 10−2 . The simulator we are using is the “simulator_mps”, it
has a total of hundred qubits available, and the randomness is determined by the seed we randomly choose to submit before
the operation occur. For overall consistency, the seed we choose and the machine we select are all the same during the whole
experiment. We also used the “IBM Brisbane” as an additional machine to give additional results of our experience with a
different error rate, which is 1.9% error per layered gate for a hundred qubit chain [2].
Since the goal of ours was to develop a working system for errors occur during the processes of quantum circuit. We
artificially use a spun qubit’s measurement for deciding whether should the qubit flip or not. The design of the artificial error
generator is shown as below.
First, we give the qubit remain in the state |0⟩ a rotation. Then we forced the qubit to collapse on to a |0⟩ state or a |1⟩ state.
If the state collapse to |1⟩, then the controlled gate will be activated. The first controlled gate provided a X-gate, which
represent the qubit flip error. The second controlled gate provided a Z-gate, which represent the phase flip error. The error
percentage is controlled by the amount of the rotation. We wish to controlled our artificial error to give out 1,3, and 10% of
error probability. The correspond amount of rotation is 0.0635𝜋, 0.1102𝜋, and 0.204𝜋.
States Probability
𝛼|000⟩ + 𝛽|111⟩ (1 − 𝑝)3
𝛼|100⟩ + 𝛽|011⟩ 𝑝(1 − 𝑝)2
𝛼|010⟩ + 𝛽|101⟩ 𝑝(1 − 𝑝)2
𝛼|001⟩ + 𝛽|110⟩ 𝑝(1 − 𝑝)2
𝛼|110⟩ + 𝛽|001⟩ 𝑝2 (1 − 𝑝)
𝛼|101⟩ + 𝛽|010⟩ 𝑝2 (1 − 𝑝)
𝛼|011⟩ + 𝛽|100⟩ 𝑝2 (1 − 𝑝)
𝛼|111⟩ + 𝛽|000⟩ 𝑝3
If we now assume the error probability is low enough that we only consider one qubit flip, we can use the three qubits as a
vote for the correct original state. As for an original state occur only in |0⟩ or |1⟩, we could just measure the outcome of three
qubits, and chose the majority of the measurement as the original qubit, this is called majority voting. (Note, we could still
get the wrong answer with a very low probability, in contrast with the correct one, we just simply accept that we could ignore
the higher order term of 𝑝.)
Now for the original qubit in 𝛼|0⟩ + 𝛽|1⟩ state, we will have to develop a procedure for detecting the state without really
destroy the superposition state of it. (Since a measurement in quantum mechanics would simply collapse the state in to the
measurement basis’s eigen state.) Just as the voting method we mention earlier, the circuit’s concept is quite similar to that
one. The circuit and the evolution of state is shown as below:
We could first check the probability of getting the wrong answer in qibit flip error. Without correction, it’s simply just 𝑝.
And according to the graph from before, with correction, the probability of getting the wrong answer is 3(1 − 𝑝)𝑝2 + 𝑝3 .
1
We now compare the two probability and differentiate it. We need 𝑝 ≤ for the whole correction be worth doing.
2
Now we use fidelity to determine the appropiate probability worth doing the correction. We measure the degree of
information retaintion between the initial and final state. The fidelity’s equation is shown as follow, 𝜌 is the density matrix
of the final state:
𝐹(|𝜓⟩, 𝜌) = √⟨𝜓|𝜌|𝜓⟩
Take qubit flip as an example, without correction, the final state’s density matrix and its fidelity could be written as:
𝜌 = (1 − 𝑝)|𝜓⟩ ⟨𝜓| + 𝑝𝑋|𝜓⟩ ⟨𝜓|𝑋
𝐹(|𝜓⟩, 𝜌) = √1 − 𝑝
As for the final state with correction:
𝜌 = ((1 − 𝑝)3 + 3𝑝(1 − 𝑝)2 )|𝜓⟩ ⟨𝜓| + (3𝑝2 (1 − 𝑝) + 𝑝3 )𝑋|𝜓⟩ ⟨𝜓|𝑋
So according to the definition of fidelity, the closer the number is to 1, the accuracy of the transport state will be higher. The
1
result is just the same as the previous paragraph said, 𝑝 ≤ in order for the correction’s fidelity gets higher than the one qubit
2
situation without correction.
The situation is similar for qubit flip and phase flip. Now we can use the similar procedure above and get the probability of
error needed for the Shor code, which turns one qubit into nines. In this scheme, we could write:
𝜌 ≈ (1 − 𝑝)9 |𝜓⟩ ⟨𝜓| + 9𝑝(1 − 𝑝)8 𝐸|𝜓⟩ ⟨𝜓|𝐸
𝑝 ≤ 3.23%