1 of 19

Quantum Error Correction

Fall 2023

2 of 19

Some background knowledge

  • No - Cloning Theorem
    • You cannot copy an arbitrary quantum state.
    • So, if you have a state |ψ⟩ = α|0⟩ + β|1⟩, you cannot ever copy this exactly into let’s say |φ⟩
    • Classical example - cloning biased coin
  • Unitaries - any linear transformation that preserves length
    • This is basically a reversible linear operation on a qubit
    • For every unitary U, UU = I. This means all the unitary operations are reversible.
    • Examples - H, X, Y, Z

3 of 19

What are Quantum errors?

In any information system, the transfer of the correct information is always affected by errors in the system.

Any information system, classical of quantum, does the following-

  • Transmission through space
  • Transmission through time
  • Redistribution into readable forms

4 of 19

Why are there errors in information transmission

  • Noise in the channel (unwanted signals due to environment disturbances)
  • Issues with hardware / hardware parts
  • Lost bits due to the kind of transmission

5 of 19

Classical Errors

Basic Example - transmission of a single bit

It either passes through the channel or gets flipped

Any idea how such encoding and decoding can work in the classical medium?

Error mitigation -

6 of 19

Classical Single Bit Error correction Example

Suppose you are sending some classical information, and the bits get flipped with some probability 1 - p < ½.

How can you detect and mitigate errors?

7 of 19

Repetition Codes

0 —(encode) → 000……0 (n times)

1 —(encode) → 111……1 (n times)

Decode function:

Output the majority bits

8 of 19

Problems with Quantum Error Correction

  1. There can be errors other than bit flip - rotation, phase/angle change
  2. Cannot encode |ψ⟩⊗|ψ⟩⊗|ψ⟩⊗…….⊗|ψ⟩ - violates no cloning theorem
  3. Cannot measure the coded message as it would destroy the information / render it useless

9 of 19

How do we solve this?

Consider the simple bit flip example.

How can we detect this error in the quantum case?

|0⟩ → |000⟩

|1⟩ → |111⟩

α|0⟩ + β|1⟩ → α|000⟩ + β|111⟩

Is this allowed? Does this violate no-cloning?

How do you implement this unitary?

10 of 19

Implementation of encoding and decoding

11 of 19

How would we correct and decode this?

Will measuring help?

Compare consecutive bit pairs as -

|ψ’⟩

a

b

Example - |ψ’⟩ = α|010⟩ + β|100⟩

For α,

a = ?

b = ?

For β,

a = ?

b = ?

12 of 19

The whole process

13 of 19

Using this, how can we solve phase flip errors?

Note : Phase flip errors: Z

Z|0⟩ → |0⟩

Z|1⟩ → - |1⟩

Z|ψ⟩ = α|0⟩ - β|1⟩

14 of 19

Detecting phase flip errors

What happens when you apply Z to |+⟩ and |-⟩?

Z|+⟩ = ?

Z|-⟩ = ?

15 of 19

Detecting phase flip errors

What happens when you apply Z to |+⟩ and |-⟩?

Z|+⟩ = |-⟩

Z|-⟩ = |+⟩

So, phase flip error in the hadamard basis is just like the bit flip error.

How can we use the bit flip protocol?

16 of 19

Encoding process

|0⟩ → |000⟩ → H|000⟩ → |+++⟩

|1⟩ → |111⟩ → H|111⟩ → |---⟩

α|0⟩ + β|1⟩ → α|+++⟩ + β|---⟩

17 of 19

Phase Flip Correction - same as bit flip with encoding and decoding Hadamards

18 of 19

Shor’s 9 Qubit correction Code (Bit flip + phase flip)

19 of 19

QUIUC