Quantum Error-Correcting Codes LAWCI Latin American Week on Coding and Information UniCamp – Campinas, Brazil 2018, July 20–27
Quantum Error-Correcting Codes: Discrete Math meets Physics
Markus Grassl [email protected] www.codetables.de
Markus Grassl – 1– 23.07.2018 Quantum Error-Correcting Codes LAWCI Classical & Quantum Information
Classical information often represented by a finite alphabet, e.g., bits 0 and 1
Quantum-bit (qubit) basis states: 1 0 “0” ˆ= 0 = C2, “1” ˆ= 1 = C2 | 0 ∈ | 1 ∈
general pure state: ψ = α 0 + β 1 where α, β C, α 2 + β 2 = 1 | | | ∈ | | | | measurement (read-out): result “0” with probability α 2 | | result “1” with probability β 2 | |
Markus Grassl – 2– 23.07.2018 Quantum Error-Correcting Codes LAWCI Classical & Quantum Information
Bit strings larger set of messages represented by bit strings of length n, i.e., x 0, 1 n ∈ { } Quantum register basis states:
b ... bn =: b ...bn = b where bi 0, 1 | 1 ⊗ ⊗| | 1 | ∈ { } general pure state:
2 ψ = cx x where cx = 1 | | n | | x 0,1 n x 0,1 ∈{ } ∈{ } 2 n 2n normalised vector in (C )⊗ = C −→ ∼
Markus Grassl – 3– 23.07.2018 Quantum Error-Correcting Codes LAWCI Classical & Quantum Information
Larger alphabet messages represented as vectors over a finite field, i.e., x Fn ∈ q Qudit register basis states:
b ... bn =: b ...bn = b where bi Fq | 1 ⊗ ⊗| | 1 | ∈ general pure state:
2 ψ = cx x where cx = 1 | | Fn | | x Fn x q ∈ q ∈ q n qn n normalised vector in (C )⊗ = C = C[F ] −→ ∼ ∼ q (isomorphic as vector spaces)
Markus Grassl – 4– 23.07.2018 Quantum Error-Correcting Codes LAWCI Bra-Ket Notation
column vectors denoted by x “ket x” • | elements of the dual vector space (row vectors) denoted by y “bra y” • | q
x = αi i | | i=1 q
x = αi i | | i=1 inner product x y “bra-c-ket” • | linear operators M = mi,j i j • i,j | | in particular: rank-one orthogonal projections P ψ = ψ ψ | | |
Markus Grassl – 5– 23.07.2018 Quantum Error-Correcting Codes LAWCI Quantum Operations
Continuous time: Schr¨odinger equation ∂ i~ ψ(t) = H(t) ψ(t) ∂t| |
iH(t t0) time-independent Hamiltonian H: ψ(t) = e − ψ(t ) | | 0 Discrete time: Unitary operations
ψ(t ) = U(t , t ) ψ(t ) | 1 1 0 | 0 composite systems, independent operation: U = U U • 1 ⊗ 2 single-qudit operations • U (1) = U I I ... ⊗ ⊗ ⊗ U (2) = I U I ... ⊗ ⊗ ⊗
Markus Grassl – 6– 23.07.2018 Quantum Error-Correcting Codes LAWCI Quantum Operations
CNOT on basis states: x y x x + y | | → | | Toffoli gate on basis states: x y z x y z + xy | | | → | | | Every reversible classical Boolean function can be decomposed into Toffoli • gates (plus constants). Every unitary operation U U(2n) can be decomposed into single qubit • ∈ gates and CNOT. U • • V T i i • W • i
Markus Grassl – 7– 23.07.2018 Quantum Error-Correcting Codes LAWCI Quantum Measurement
Physics textbook:
observable given by self-adjoint operator A = A∗ = A† • A real eigenvalues λi correspond to physical quantity • expectation value A = ψ A ψ from many repetitions with identically • | | prepared quantum states ψ | Quantum Information Processing:
spectral decomposition A = λiPi, with Pi orthogonal projection onto • i eigenspace i single-shot experiment, one random outcome i (“click”) • probability pi = ψ Pi ψ • | | 1 post-measurement state ψ′ = Pi ψ • | √pi |
Markus Grassl – 8– 23.07.2018 Quantum Error-Correcting Codes LAWCI Quantum Measurement: Examples
Single Qubit:
observable σz = diag(1, 1) = (+1) 0 0 +( 1) 1 1 • − | | − | | qubit state ψ = α 0 + β 1 where α, β C • | | | ∈ = outcome “0” or “1” with probability α 2 or β 2, resp. ⇒ | | | | Two Qubits: (1) observable σz = diag(1, 1) I = 0 0 I 1 1 I • − ⊗ | |⊗ −| |⊗ two-qubit state ψ = α 00 + β 01 + γ 10 + δ 11 • | | | | | = outcome “0” with probability α 2 + β 2 ⇒ | | | | 1 post-measurement state α 00 + β 01 α 2 + β 2 | | | | | |
Markus Grassl – 9– 23.07.2018 Quantum Error-Correcting Codes LAWCI Quantum Entanglement
two-qubit state Ψ = 1 00 + 1 11 • | √2 | √2 | (1) measuring σz , i.e., the first qubit • = outcome “0” or “1” with probability 1/2 ⇒ post-measurement state • first outcome “0”: 00 | first outcome “1”: 11 | (2) measuring σz , i.e., the second qubit • = second outcome is identical to the first outome ⇒ Spooky action at a distance.
Markus Grassl – 10– 23.07.2018 Quantum Error-Correcting Codes LAWCI Quantum Error Correction
General scheme environment no access s
system φ inter- action | entanglements decoherence ⇒
Markus Grassl – 11– 23.07.2018 Quantum Error-Correcting Codes LAWCI Quantum Error Correction
General scheme environment no access s system φ | s s encoding ancilla 0 interaction | encoding s three-partys entanglement
Markus Grassl – 12– 23.07.2018 Quantum Error-Correcting Codes LAWCI Quantum Error Correction
General scheme environment no access s s system φ | s s s code entanglement encoding ancilla 0 interaction | encoding s s s
syndrome ancilla 0 error correction | environment/ancillas
Markus Grassl – 13– 23.07.2018 Quantum Error-Correcting Codes LAWCI Quantum Error Correction
General scheme environment no access s s s system φ φ | s s s | encoding ancilla 0 0 interaction | encoding s s s decoding |
syndrome ancilla 0 error correction | s s
Markus Grassl – 14– 23.07.2018 Quantum Error-Correcting Codes LAWCI Quantum Error Correction
General scheme environment no access s s s system φ φ | s s s | encoding ancilla 0 0 interaction | encoding s s s decoding |
syndrome ancilla 0 error correction | s s Basic requirement some knowledge about the interaction between system and environment Common assumptions no initial entanglement between system and environment • local/uncorrelated errors, i.e., only a few qubits are disturbed • or interaction with symmetry (= decoherence free subspaces) ⇒
Markus Grassl – 15– 23.07.2018 Quantum Error-Correcting Codes LAWCI
Interaction System/Environment
“Closed” System environment ε | = U ε φ env/sys | |
system φ inter- action | “Channel”
Q: ρ := φ φ ρ := Q( φ φ ) := Eiρ E† in | | −→ out | | in i i with Kraus operators (error operators) Ei Local/low correlated errors
n product channel Q⊗ where Q is “close” to identity • Q can be expressed (approximated) with error operators E˜i such that each • E˜i acts on few subsystems, e.g. quantum gates
Markus Grassl – 16– 23.07.2018 Quantum Error-Correcting Codes LAWCI Quantum Channel: Product Channel
Assumption: only local interactions, i.e., each subsystem interacts with a separate environment.
- - ψ1 subsystem 1 ψ˜ | | 1 3 QQs 3 QQs ǫ - environment 1 - ǫ˜ | 1 | 1 - - ψ2 subsystem 2 ψ˜ | 2 3 QQs 3 QQs | - - ψ ǫ ǫ2 environment 2 ǫ˜2 ψ˜ ǫ˜ | ⊗| | | | ⊗| . . - - ψn subsystem n ψ˜ | n 3 QQs 3 QQs | - - ǫn environment n ǫ˜n | | Markus Grassl – 17– 23.07.2018 Quantum Error-Correcting Codes LAWCI Computer Science Approach: Discretize
QECC Characterization [Knill & Laflamme, PRA 55, 900–911 (1997)]
A subspace of with orthonormal basis c ,..., cK is an C H {| 1 | } error-correcting code for the error operators = E , E ,... , if there E { 1 2 } exists constants αk,l C such that for all ci , cj and for all ∈ | | Ek, El : ∈E ci E†El cj = δi,jαk,l. (1) | k | It is sufficient that (1) holds for a vector space basis of . E
Markus Grassl – 18– 23.07.2018 Quantum Error-Correcting Codes LAWCI Linearity of Conditions
Assume that can correct the errors = E , E ,... . C E { 1 2 } New error-operators:
A := λkEk and B := lEl k l
ci A†B cj = λk l ci E†El cj | | | k | k,l = λk lδi,jαk,l k,l = δi,j α′(A, B) It is sufficient to correct error operators that form a basis of the linear vector space spanned by the operators . E = only a finite set of errors. ⇒ Markus Grassl – 19– 23.07.2018 Quantum Error-Correcting Codes LAWCI Error Basis
Pauli Matrices
0 1 0 i 1 0 1 0 σx := , σy := − , σz := ,I := 1 0 i 0 0 1 0 1 − vector space basis of all 2 2 matrices • × unitary matrices which generate a finite group • Error Basis for many Qubits/Qudits error basis for subsystem of dimension d with I E n ∈E = ⊗ error basis with elements ⇒ E
E := E ... En, Ei 1 ⊗ ⊗ ∈E
weight of E: number of factors Ei = I
Markus Grassl – 20– 23.07.2018 Quantum Error-Correcting Codes LAWCI Local Error Model
Code Parameters
= [[n,k,d]]q C q: dimension of each subsystem n: number of subsystems used in total k: number of (logical) subsystems encoded d: “minimum distance” – correct all errors acting on at most (d 1)/2 subsystems − – detect all errors acting on less than d subsystems – correct all errors acting on less than d subsystems at known positions
Markus Grassl – 21– 23.07.2018 Quantum Error-Correcting Codes LAWCI Repetition Code
classical: sender: repeats the information, e.g. 0 000, 1 111 → → receiver: compares received bits and makes majority decision
quantum mechanical “solution”: sender: copies the information, e.g. ψ = α 0 + β 1 ψ ψ ψ | | | → | | | receiver: compares and makes majority decision
but: unknown quantum states can neither be copied nor can they be disturbance-free compared
Markus Grassl – 22– 23.07.2018 Quantum Error-Correcting Codes LAWCI The No-Cloning Theorem
Theorem: Unknown quantum states cannot be copied.
Proof: The copier would map 0 ψin 0 0 , 1 ψin 1 1 , and | | → | | | | → | |
(α 0 + β 1 ) ψin α 0 0 + β 1 1 | | | → | | | | = (α 0 + β 1 ) (α 0 + β 1 ) | | ⊗ | | = α2 0 0 + β2 1 1 + αβ( 0 1 + 1 0 ) | | | | | | | |
Contradiction to the linearity of quantum mechanics!
Markus Grassl – 23– 23.07.2018 Quantum Error-Correcting Codes LAWCI Quantum Errors
Bit-flip error: Interchanges 0 and 1 . Corresponds to “classical” bit error. • | | 0 1 Given by NOT gate X = • 1 0
Phase-flip error: Inverts the relative phase of 0 and 1 . Has no classical analogue! • | | 1 0 Given by the matrix Z = • 0 1 −
Combination:
0 1 Combining bit-flip and phase-flip gives Y = − = XZ. • 1 0
Markus Grassl – 24– 23.07.2018 Quantum Error-Correcting Codes LAWCI Pauli and Hadamard matrices
Real “Pauli” matrices:
0 1 1 0 0 1 I,X = , Z = , Y = XZ = − 1 0 0 1 1 0 −
1 1 1 Hadamard matrix: H = √2 1 1 −
Important properties:
H†XH = Z, “H changes bit-flips to phase-flips” • 0 1 ZX = = Y = XZ, “X and Z anticommute” • 1 0 − − − All errors either commute or anticommute! • Markus Grassl – 25– 23.07.2018 Quantum Error-Correcting Codes LAWCI The Basic Idea
Classicalcodes Quantumcodes Partition of the set of all words of length Orthogonal decomposition of the n 2 n over an alphabet of size 2. vector space ⊗ , where =C . H H∼
• ••• • E n-k • • ••• 2 1 ••• • • • − • • • • • • • • ••• n Ei • • ••• • • C2 • •• •• •••• • E1 • • ••• • C
codewords n • ⊗ = 1 ... 2n−k 1 errors of bounded weight H C ⊕ E ⊕ ⊕ E − • Encoding: x Uenc( x 0 ) other errors | → | | •
Markus Grassl – 26– 23.07.2018 Quantum Error-Correcting Codes LAWCI Simple Quantum Error-Correcting Code
Repetition code: 0 000 , 1 111 | → | | → | Encoding of one qubit:
α 0 + β 1 α 000 + β 111 . | | → | |
This defines a two-dimensional subspace 2 2 2 HC ≤H ⊗H ⊗H
bit-flip quantum state subspace no error α 000 + β 111 (1 1 1) | | ⊗ ⊗ HC 1st position α 100 + β 011 (X 1 1) | | ⊗ ⊗ HC 2nd position α 010 + β 101 (1 X 1) | | ⊗ ⊗ HC 3rd position α 001 + β 110 (1 1 X) | | ⊗ ⊗ HC
Hence we have an orthogonal decomposition of 2 2 2 H ⊗H ⊗H
Markus Grassl – 27– 23.07.2018 Quantum Error-Correcting Codes LAWCI Simple Quantum Error-Correcting Code
Problem: What about phase-errors?
Phase-flip Z: 0 0 and 1 1 . | → | | → −| In the Hadamard basis + , given by | |− + = 1 ( 0 + 1 ), | √2 | | = 1 ( 0 1 ) |− √2 | − | the phase-flip operates like the bit-flip Z + = , Z = + . | |− |− | To correct phase errors we use repetition code and Hadamard basis:
0 (H H H) 1 ( 000 + 111 )= 1 ( 000 + 011 + 101 + 110 ) | → ⊗ ⊗ √2 | | 2 | | | | 1 (H H H) 1 ( 000 111 )= 1 ( 001 + 010 + 100 + 111 ) | → ⊗ ⊗ √2 | − | 2 | | | |
Markus Grassl – 28– 23.07.2018 Quantum Error-Correcting Codes LAWCI Simple Quantum Error-Correcting Code
phase-flip quantum state subspace no error α ( 000 + 011 + 101 + 110 ) (1 1 1) 2 | | | | ⊗ ⊗ HC + β ( 001 + 010 + 100 + 111 ) 2 | | | | 1st position α ( 000 + 011 − 101 − 110 ) (Z 1 1) 2 | | | | ⊗ ⊗ HC + β ( 001 + 010 − 100 − 111 ) 2 | | | | 2nd position α ( 000 − 011 + 101 − 110 ) (1 Z 1) 2 | | | | ⊗ ⊗ HC + β ( 001 − 010 + 100 − 111 ) 2 | | | | 3rd position α ( 000 − 011 − 101 + 110 ) (1 1 Z) 2 | | | | ⊗ ⊗ HC − β ( 001 + 010 + 100 − 111 ) 2 | | | |
We again obtain an orthogonal decomposition of 2 2 2 H ⊗H ⊗H
Markus Grassl – 29– 23.07.2018 Quantum Error-Correcting Codes LAWCI Simple Quantum Error-Correcting Code
ψ c | s s s | 1 0 c | g s | 2 0 c | g s s | 3 0 ¢¢ ¨ s1 | g g q 0 AK ¨ s2 | g g q encoding syndrome computation measurement
Error X I I gives syndrome s s = 10 ⊗ ⊗ 1 2 Error I X I gives syndrome s s = 01 ⊗ ⊗ 1 2 Error I I X gives syndrome s s = 11 ⊗ ⊗ 1 2
Markus Grassl – 30– 23.07.2018 Quantum Error-Correcting Codes LAWCI Simple Quantum Error-Correcting Code
ψ c | s s s g | 1 0 c | g s g | 2 0 c | g s s g | 3 0 s | g g s c s | 1 0 s | g g c s s | 2 encoding syndrome computation error correction
Coherent error correction by conditional unitary transformation. • Information about the error is contained in s and s . • | 1 | 2 To do it again, we need either “fresh” qubits which are again in the state • 0 or need to “cool” syndrome qubits to 0 . | |
Markus Grassl – 31– 23.07.2018 Quantum Error-Correcting Codes LAWCI Effect of a Single Qubit Error
0 1 Suppose an error corresponding to the bit-flip ( 1 0 ) happens.
ψ = α 0 + β 1 c | | | s s s f | 1 0 c | f s f | 2 0 c | f s s f | 3 0 s | f f s c s | 1 0 s | f f c s s | 2 encoding syndrome computation error correction
Encoder maps ψ to α 000 + β 111 = ψenc | | | | Error maps this to α 001 + β 110 | | Syndrome computation maps this to α 00111 + β 11011 | | Correction maps this to α 00011 + β 11111 = ψenc 11 | | | |
Markus Grassl – 32– 23.07.2018 Quantum Error-Correcting Codes LAWCI Linearity of Syndrome Computation
Different Errors: Error X I I syndrome 10 ⊗ ⊗ Error I X I syndrome 01 ⊗ ⊗
Suppose the (non-unitary) error is of the form
E = α X I I + β I X I. ⊗ ⊗ ⊗ ⊗ Then syndrome computation yields
α(X I I ψ 10 )+ β(I X I ψ 01 ). ⊗ ⊗ | enc ⊗ | ⊗ ⊗ | enc ⊗| (error correction) ψ (α 10 + β 01 ) → | enc | |
Markus Grassl – 33– 23.07.2018 Quantum Error-Correcting Codes LAWCI
Encoding/Decoding: Overview
error correction
k n n syndrome n error n k = encode = channel = = = encode-1 = ⇒ ⇒ ⇒ comput. ⇒ corr. ⇒ ⇒