24
Quantum Computation Lecture Notes Jyh Ying Peng (based on lecture notes by John Preskill 1998) Summer 2003

Quantum Computation Lecture Notes

  • Upload
    others

  • View
    10

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Quantum Computation Lecture Notes

Quantum Computation Lecture Notes

Jyh Ying Peng(based on lecture notes by John Preskill 1998)

Summer 2003

Page 2: Quantum Computation Lecture Notes

2

Page 3: Quantum Computation Lecture Notes

Chapter 1

Quantum States and Ensembles

1.1 Axioms of Quantum Mechanics

Quantum theory (as all physical theories) can be characterized by how itrepresents (physical) states, observables, measurements, and dynamics (evo-lution in time).

1. States. A state is a complete description of a physical system. Inquantum mechanics, a state is a ray in a Hilbert space.

A Hilbert space is a vector space over the field of complex numbersC, with vectors denoted by |ψ〉 (Dirac’s ket notation). A ket |ψ〉 isrepresented as a n × 1 matrix (or a n element vector), where n is thedimension of the Hilbert space, and its corresponding bra 〈ψ| is thetranspose conjugate of the ket. It has an inner product 〈ψ|ϕ〉 (may beseen as matrix multiplication) that maps an ordered pair of vectors toC, with the properties:

(a) Positivity. 〈ψ|ψ〉 > 0 for |ψ〉 6= 0

(b) Linearity. 〈ϕ| (a|ψ1〉+ b|ψ2〉) = a〈ϕ|ψ1〉+ b〈ϕ|ψ2〉(c) Skew symmetry. 〈ϕ|ψ〉 = 〈ψ|ϕ〉∗

The Hilbert space is complete in the norm ‖ψ‖ = 〈ψ|ψ〉 12 .

A ray in a Hilbert space is an equivalent class of vectors that differby multiplication by a nonzero complex scalar. That is, a ray is rep-resented by a given vector and all its (complex) multiples, and twodifferent rays treated as vectors will never be “parallel” (in the Hilbertspace). We represent rays (the equivalent classes) by a vector with unitnorm 〈ψ|ψ〉 = 1, so eiα|ψ〉 (where α ∈ <) represent the same physical

3

Page 4: Quantum Computation Lecture Notes

4 CHAPTER 1. QUANTUM STATES AND ENSEMBLES

state for all α. The real number α can be seen as an overall phase,which is physically insignificant. We can form new states by super-position a|ϕ〉 + b|ψ〉, and here the relative phase between the twocomponents are physically significant. That is, whereas a|ϕ〉 + b|ψ〉and eiα (a|ϕ〉+ b|ψ〉) represent the same physical state, a|ϕ〉 + eiαb|ψ〉is generally a different physical state.

2. Observables. An observable is a property of a physical system thatin principle can be measured. In quantum mechanics, an observableis a self-adjoint operator (matrix). An operator is a linear maptaking vectors to vectors, which can be represented by matrices. For anoperator A, A: |ψ〉 → A|ψ〉 and A (a|ψ〉+ b|ϕ〉) = aA|ψ〉+bA|ϕ〉. Andthe adjoint of an operator A† is defined by 〈ϕ|Aψ〉 = 〈A†ϕ|ψ〉, where|Aψ〉 denotes A|ψ〉, for all vectors |ψ〉, |ϕ〉. In matrix representationthe adjoint is the transpose conjugate. A is self-adjoint if A = A†.The eigenstates of an observable (eigenvectors of the correspondingself-adjoint matrix) form a complete orthonormal basis in the Hilbertspace H. We can express an observable A as A =

∑n anPn, where

each an is an eigenvalue of A, and Pn is the orthogonal projection tothe space spanned by the corresponding eigenvectors. The Pn’s areself-adjoint and satisfy PnPm = δnmPn, P†

n = Pn.

3. Measurements. In quantum mechanics, the numerical outcome ofthe measurement of the observable A is an eigenvalue of A, and rightafter the measurement, the quantum state becomes the eigenstate ofA corresponding to the measurement result. If the quantum state be-fore measurement is |ψ〉, then outcome an is obtained with probabilityProb(an) = ‖Pn|ψ〉‖2 = 〈ψ|Pn|ψ〉, and the (normalized) quantum statebecomes in this case

Pn|ψ〉〈ψ|Pn|ψ〉

12

. (1.1)

Which means if the measurement is immediately repeated, the sameresult would be obtained with probability one.

4. Dynamics. Time evolution of a quantum state is unitary (unitarytransformation can be seen as a rotation in Hilbert space); it is gen-erated by a self-adjoint operator, called the Hamiltonian of the sys-tem. In the Schrodinger picture of dynamics, the vector (state)describing the system evolves in time according to the Schrodingerequation d

dt|ψ(t)〉 = −iH|ψ(t)〉, where H is the Hamiltonian. Us-

ing the definition of function derivatives, the equation can be reex-pressed as |ψ(t + dt)〉 = (1− iHdt) |ψ(t)〉. The operator U(dt) ≡

Page 5: Quantum Computation Lecture Notes

1.2. THE QUBIT 5

1 − iHdt is unitary to linear order in dt, because U(dt)†U(dt) =(1 + iHdt) (1− iHdt) = 1 + (Hdt)2 ≈ 1. Since a product of uni-tary operators is finite, time evolution over a finite interval is alsounitary |ψ(t)〉 = U(t)|ψ(0)〉. If the Hamiltonian is time-independent,the Schrodinger equation can be directly solved to give U(t) = e−itH

(which is likewise unitary).

In the formulations in this section, there is an obvious dualism betweenhow a quantum state evolves when “left to itself”, and when it has been“measured” by “something”. In the former case the state evolves accordingto the Schrodinger equation, which is deterministic; whereas in the lattercase the evolution is probabilistic. Even without the discrepancy betweendifferent evolutions, the existence of undeterministic physical processes isitself troubling. We will attempt an explanation of the matter in the nextchapter, where the quantum measurement process is explained in detail.

1.2 The Qubit

The indivisible unit of classical information is the bit, which can take oneof two values {0, 1}. The corresponding unit of quantum information is the“quantum bit” or qubit, which can be represented as a ray in 2-d Hilbertspace. We may denote an orthonormal basis for this Hilbert space {|0〉, |1〉},any state of a qubit may be expressed as

a|0〉+ b|1〉, (1.2)

with |a|2+ |b|2 = 1 (normalization). As noted in section 1.1, the overall phaseis irrelevant. Since a, b ∈ C, a qubit can be specified by four real parameters,but normalization and the irrelevance of overall phase reduce this to two realparameters. This means that a qubit can also be represented as a vector ina 2-d real vector space with suitable range limitations.

We can perform a measurement that projects the unknown state of a qubitonto the basis {|0〉, |1〉}. Then |0〉 and |1〉 is obtained with probability |a|2and |b|2 respectively. The state would be disturbed unless a or b is initiallyzero, and the prior state of the qubit cannot be known by any measurement.The fact that the state would be known after measurement implies that a“measurement” can also be seen as a “preparation” of a particular quantumstate. In fact, data is erased when the qubit is measured (prepared), muchas we “erase” classical bits by writing zeros in them, ignoring their initialvalues. But with classical bits we can acquire information about their valueseasily without disturbing their states.

Page 6: Quantum Computation Lecture Notes

6 CHAPTER 1. QUANTUM STATES AND ENSEMBLES

Consider a probabilistic classical bit, it has a definite value, unknownto us. All we know is that there is a probability p0 for it to be 0, andprobability p1 to be 1, where the probabilities sum to one. What is thedifference between a probabilistic bit and a qubit? One of the differences isthat besides the absolute values of a and b in eq. (1.2), their relative phaseis also of significance. This is reflected in the fact that a qubit takes two realparameters to specify, whereas a probabilistic classical bit need only one.

1.3 Representations of the Qubit

In this section we seek to find useful (mathematical) representations of thestate and evolution of a qubit, based on real physical systems. We discusstwo such systems, the spin states of a spin-1

2object and the polarization

states of a photon.

1.3.1 Spin-12

In physics, the qubit can be interpreted as the spin state of an object withspin-1

2(such as an electron). Then |0〉 and |1〉 in eq. (1.2) can be represented

by the spin up | ↑〉 and spin down | ↓〉 states along a particular axis inthe physical spin-1

2system (the z-axis will generally be used). Speaking

geometrically in the 3-d real vector space, by setting

a = e−iϕ2 cos

θ

2and b = e

iϕ2 sin

θ

2(1.3)

in eq. (1.2), and using spin along z-axis as basis, the state of a qubit canbe represented as a unit vector in a 3-d real vector space, parameterized by(θ, ϕ), where θ is the angle between the vector and z-axis (the polar angle),and ϕ is the angle between the x-axis and the vector’s projection onto x-yplane (the azimuthal angle). We see that the angle between the z-axis andthe vector determines the probabilities of obtaining spin up or spin downalong the z-axis, and the azimuthal angle represents the relative phase. Thevector points in +z when a = 1, b = 0 and −z when a = 0, b = 1, as expected.So we have established a correspondence between the general representationin 2-d Hilbert space of a qubit and representation in 3-d real vector spaceof the spin state of a spin-1

2object, which means that the spin state of any

spin-12

object can in principle be used to physically implement a quantumbit.

To describe the time evolution and measurement of a quantum bit, wealso need to represent a general unitary transformation (rotation) of the

Page 7: Quantum Computation Lecture Notes

1.3. REPRESENTATIONS OF THE QUBIT 7

state. Using 2-d Hilbert space vector representation, the rotation of the spinstate of a spin-1

2object can be represented with the use of complex 2 × 2

Pauli matrices:

σ1 =

(0 11 0

), σ2 =

(0 −ii 0

), σ3 =

(1 00 −1

). (1.4)

A rotation in 3-d real vector space through angle θ about the axis n =(n1, n2, n3) (where n2

1 + n22 + n2

3 = 1), represented (in 2-d Hilbert space) as a2× 2 unitary matrix, is

U (n, θ) = exp

(−iθ

2n · ~σ

)= exp

(−iθ

2(n1σ1 + n2σ2 + n3σ3)

). (1.5)

In eq. (1.5) we parameterized a unitary transformation in 2-d Hilbert spaceby the corresponding rotation in 3-d real vector space. Since the 3-d realvector space rotation parameters n and θ describes the most general rotationor unitary transformation in 3-d real vector space, we expect U (n, θ) torepresent the most general unitary transformation in the corresponding 2-dHilbert space.

The Pauli matrices have the properties of being mutually anti-commutingand squaring to the identity:

σkσl + σlσk = 2δkl1, (1.6)

so we see that (n · ~σ)2 =∑

k,l nknlσkσl =∑

k n2k1 = 1, and for finite rotations

(unitary transformations)

U (n, θ) = exp

(−iθ

2n · ~σ

)

=∞∑

n=0

1

n!

(−iθ

2n · ~σ

)n

=∑

n=0,2,4,...

1

n!

((−1)

n2

2

)n

1

)+

∑n=1,3,5,...

1

n!

(−i(−1)

n−12

2

)n

n · ~σ)

= 1 cosθ

2− in · ~σ sin

θ

2. (1.7)

This is indeed the form of the most general 2× 2 unitary matrix with deter-minant 1.

A rotation by 2π about any axis is U(n, 2π) = −1, yet in 3-d real vectorspace this would be an identity transformation, so shouldn’t U = 1? Butthere is nothing wrong here if we notice that −1 only changes the overall

Page 8: Quantum Computation Lecture Notes

8 CHAPTER 1. QUANTUM STATES AND ENSEMBLES

phase, and that is physically irrelevant, so the physical state remains un-changed. Yet when such an operation is applied to more than one qubit,there may be a physically detectable effect. Consider an operation that actson two qubits by rotating the second qubit by 2π when the first qubit is spindown, but otherwise does nothing. Then

1√2(| ↑〉1 + | ↓〉1)⊗ | ↑〉2 = 1√

2(| ↑〉1 ⊗ | ↑〉2 + | ↓〉1 ⊗ | ↑〉2)

→ 1√2(| ↑〉1 ⊗ | ↑〉2 − | ↓〉1 ⊗ | ↑〉2) = 1√

2(| ↑〉1 − | ↓〉1)⊗ | ↑〉2.

The first qubit is initially in an equal superposition between spin up andspin down, and the second qubit is spin up, the whole system is thus in anequal superposition between | ↑〉1| ↑〉2 and | ↓〉1| ↑〉2. When the operation isapplied on the whole system, the second component undergoes a sign change(phase flip, the phase is changed by π), so the relative phase between thetwo components is changed.

Using eq. (1.3) and setting |0〉 ≡ | ↑z〉 ≡(

10

)and |1〉 ≡ | ↓z〉 ≡

(01

),

we see that spin up and spin down along x-axis (θ = π2, ϕ = 0 and θ = π

2, ϕ =

π respectively) is

| ↑x〉 =1√2

(|0〉+ |1〉) , | ↓x〉 =1√2

(|0〉 − |1〉) . (1.8)

And the spin up and spin down along y-axis (θ = π2, ϕ = π

2and θ = π

2, ϕ = −π

2

respectively) is

| ↑y〉 =1√2

(|0〉+ i|1〉) , | ↓y〉 =1√2

(|0〉 − i|1〉) . (1.9)

Note that the Pauli matrices σ1, σ2, and σ3 in eq. (1.4) are self-adjoint andhave the spin up and spin down states along x-axis, y-axis, and z-axis aseigenstates respectively, with eigenvalue 1 for the spin up states and −1 forthe spin down states. So the eigenstates of matrix n ·~σ = n1σ1 +n2σ2 +n3σ3

are | ↑n〉 with eigenvalue 1, and | ↓n〉 with eigenvalue −1. By the definition ofobservables in section 1.1 the Pauli matrices can be seen as the observablesof the spin states along the three axes. The Pauli matrices are also unitary,but because their determinant is −1, they cannot be seen as rotations in theform of equation (1.7), in fact, treated as evolution operators they representerrors that can occur with a qubit. σ1 represents a bit flip error:

σ1 (a|0〉+ b|1〉) = a

(0 11 0

)(10

)+ b

(0 11 0

)(01

)

= a

(01

)+ b

(10

)= b|0〉+ a|1〉, (1.10)

Page 9: Quantum Computation Lecture Notes

1.3. REPRESENTATIONS OF THE QUBIT 9

similarly σ3 represents a phase flip:

σ3 (a|0〉+ b|1〉) = a

(1 00 −1

)(10

)+ b

(1 00 −1

)(01

)

= a

(10

)− b

(01

)= a|0〉 − b|1〉, (1.11)

and σ2 represents a phase and bit flip (ignoring overall phase):

σ2 (a|0〉+ b|1〉) = a

(0 −ii 0

)(10

)+ b

(0 −ii 0

)(01

)

= a

(0i

)− b

(i0

)= b|0〉 − a|1〉. (1.12)

In conclusion to this subsection on the spin-12

representation, we willlook at the consequence of relative phase on physical observation (measure-ment). The spin up and spin down states along x-axis (see eq. (1.8)) whenmeasured along the z-axis will both yield spin up or spin down with equalprobability, consider the superposition of spin up and spin down along x-axis 1√

2(| ↑x〉+ | ↓x〉), what will be the result when we measure along z-axis?

Classical probability tells us that we get spin up or spin down with equalprobability, since spin up or down along x-axis is determined with equalprobability. Yet in reality we would always get spin up along z-axis, becausethe relative phase cancel out in the |1〉 term when expanded in the basis{|0〉, |1〉}. So we see that qubits are very different from classical probabilisticbits in that they have relative phases, which cause quantum interference,making probabilities add up in unexpected ways. This property is used ex-tensively in quantum algorithms, to cancel out all incorrect answers (states)and retain the correct ones in the superposition forming the result of a par-ticular quantum computation.

1.3.2 Photon Polarizations

Another two state system that can represent a qubit is photon polariza-tions. Photons are massless spin-1 particles; they can have two independentpolarizations, transverse to the direction of propagation. Under a rotationabout the axis of propagation, the two linear polarization states |x〉 and |y〉(representing horizontal and vertical polarizations respectively) transform as

|x〉 → cos θ|x〉+ sin θ|y〉|y〉 → − sin θ|x〉+ cos θ|y〉. (1.13)

Page 10: Quantum Computation Lecture Notes

10 CHAPTER 1. QUANTUM STATES AND ENSEMBLES

The 2-d matrix representation of this transform is

(cos θ sin θ− sin θ cos θ

), and

has the eigenstates |R〉 = 1√2

(1i

)and |L〉 = 1√

2

(i1

)with eigenvalues eiθ

and e−iθ, the states of right and left circular polarizations.Suppose we have polarization analyzers that allow only one of the two

linear photon polarizations to pass through. Then an x or y polarized photonhas 0.5 probability of getting through a 45◦ rotated analyzer, and vice versa.Quantum interference in photon polarizations occurs when a 45◦ rotatedanalyzer is placed between an x and y analyzer. Before the third 45◦ rotatedanalyzer is placed, half of the photons that passed through the x or y analyzeris completely blocked at the other one, but after the third analyzer is insertedhalf of the photons pass through each of the three analyzers, and 1

8comes

out at the end.Considering 2-d Hilbert space unitary transformations, the rotation in eq.

(1.13) is not the most general possible. But if we have a device for changingthe relative phase between the horizontal and vertical polarizations, such as

|x〉 → e−iω2 |x〉

|y〉 → eiω2 |y〉, (1.14)

then the two transformations (1.13) and (1.14) can be applied together toachieve any unitary transformation with determinant 1 on the photon polar-ization state in 2-d Hilbert space.

1.4 The Density Operator

The previous formulations about one qubit all assume isolation from theenvironment, that is, the qubit is the whole system. Yet in practice allobservations we make are inevitably limited to a small part of a much largerquantum system. We will consider the simplest example of such a situation:a 2-qubit system in which we only have access to one of the qubits.

Our goal is to characterize the observations that we can make on qubit Awhen qubit B is unavailable to us. Denote the orthonormal basis in qubit A’sand qubit B’s 2-d Hilbert space by {|0〉A, |1〉A} and {|0〉B, |1〉B} respectively.Then the state of the two qubits system is a vector in 2 × 2 = 4-d Hilbertspace, and can be expressed as the combination of 2-d Hilbert space vectors:

(aA|0〉A + bA|1〉A)⊗ (aB|0〉B + bB|1〉B) ≡(aA

bA

)⊗(aB

bB

)≡

Page 11: Quantum Computation Lecture Notes

1.4. THE DENSITY OPERATOR 11

aAaB

aAbBbAaB

bAbB

≡ aAaB|0〉A|0〉B + aAbB|0〉A|1〉B

+bAaB|1〉A|0〉B + bAbB|1〉A|1〉B, (1.15)

where⊗ denotes the matrix direct product where appropriate, and the matrixdirect product is implied in the far right of eq. (1.15).

Consider the state |ψ〉AB = a|0〉A|0〉B + b|1〉A|1〉B, the qubits A and Bare correlated. When we measure qubit A and obtain spin up (down), thenqubit B (which we have no access) will also be in the state spin up (down),similarly for measurements on qubit B. Another way to look at it is that inthis particular correlation between the two qubits, that is, in this particularstate of the whole system, any preparation of only one of the qubits willcause the other qubit to have the same value. In this case the qubits A andB are entangled. But first let’s characterize the measurements on qubit Amore clearly.

An observable acting on A only can be expressed as MA⊗1B, where MA

is a self-adjoint operator acting on A, and 1B is the identity operator on B.Then the expectation value of the observable in |ψ〉AB is

AB〈ψ|MA ⊗ 1B|ψ〉AB

= (a∗A〈0|B〈0|+ b∗A〈1|B〈1|) (MA ⊗ 1B) (a|0〉A|0〉B + b|1〉A|1〉B)

= |a|2A〈0|MA|0〉AB〈0|1B|0〉B + a∗bA〈0|MA|1〉AB〈0|1B|1〉B+ab∗A〈1|MA|0〉AB〈1|1B|0〉B + |b|2A〈1|MA|1〉AB〈1|1B|1〉B

= |a|2A〈0|MA|0〉A + |b|2A〈1|MA|1〉A= tr (MAρA) , (1.16)

where ρA = |a|2|0〉AA〈0|+ |b|2|1〉AA〈1|. The operator ρA is called the densityoperator (matrix) for qubit A. It is self-adjoint, positive (its eigenvaluesare nonnegative) and has unit trace. From the form of ρA and the factthat eq. (1.16) holds for any observable MA, the density operator can beinterpreted as an ensemble of possible quantum states, each component inρA is a projection onto a particular quantum state with the probability ofthat state as coefficient. That is, if we assume that qubit A is in the state|0〉A with probability |a|2, and |1〉A with probability |b|2, then the expectedvalue of measurement MA would be

〈MA〉 = |a|2A〈0|MA|0〉A + |b|2A〈1|MA|1〉A, (1.17)

exactly the same result as (1.16).

Page 12: Quantum Computation Lecture Notes

12 CHAPTER 1. QUANTUM STATES AND ENSEMBLES

In the density operator representation of a qubit state, there is no infor-mation on relative phases, only the individual probabilities of the quantumstates in the ensemble are known, This is a consequence of observing onlypart of a quantum system (local observations). When the relative phases ofthe state of a quantum system are known, the system can be represented asa coherent superposition (as in (1.2)), called a pure state; when the sys-tem establishes some correlation with another system (or the environment) inwhich we do not have access, then we are forced to make local observations,and the resulting state becomes (from our point of view) an ensemble of quan-tum states, the relative phase information is lost, and the system (from ourperspective) has undergone decoherence (becoming a mixed state). Notethat the discussions in sections 1.2 and 1.3 only involve the pure state of aqubit, mixed state only occurs when other unobserved systems are involved.

Consider an incoherent ensemble of spin up and spin down states alongz-axis with equal probability ρA = 1

2(|0〉AA〈0|+ |1〉AA〈1|) = 1

21A (the last

equality due to the fact that the projections form an orthonormal basis), if wewere to measure the spin along axis n, then 〈| ↑n〉AA〈↑n |〉 = tr (| ↑n〉AA〈↑n |ρA) =12tr (| ↑n〉AA〈↑n |) = 1

2, since this holds for any axis, the result of any mea-

surement of the qubit is completely random, such a phenomenon would beimpossible if qubit A is coherent (can be represented in the form of (1.2)).

Now let’s generalize the discussion to an arbitrary state of any bipartitequantum system, where system A resides in Hilbert space HA, and system Bin HB. The Hilbert space of the whole system is HAB = HA⊗HB, the vectorspace tensor product of the constituting Hilbert spaces. Denote {|i〉A} and{|µ〉B} as orthonormal basis for HA and HB respectively, then {|i〉A|µ〉B}is an orthonormal basis for HAB (matrix direct product implied). Thus anarbitrary pure state of the bipartite system can be expressed as

|ψ〉AB =∑i,µ

aiµ|i〉A|µ〉B, (1.18)

where∑

i,µ |aiµ|2 = 1. The expectation value of MA is

〈MA〉 = AB〈ψ|MA ⊗ 1B|ψ〉AB

=

∑j,ν

a∗jνA〈j|B〈ν|

(MA ⊗ 1B)

∑i,µ

aiµ|i〉A|µ〉B

=

∑i,j,µ

a∗jµaiµA〈j|MA|i〉A

= tr (MAρA) , (1.19)

Page 13: Quantum Computation Lecture Notes

1.4. THE DENSITY OPERATOR 13

where the density operator for system A is

ρA = trB (|ψ〉ABAB〈ψ|) =∑i,j,µ

a∗jµaiµ|i〉AA〈j|. (1.20)

The density operator for subsystem A is obtained by performing a partialtrace over subsystem B of the density matrix of the combined system (notethough that the whole system is in a pure state). And from eq. (1.20) wecan infer that ρA has the following properties:

1. Self-adjoint.

2. Positive semidefinite. For any |ψ〉A, A〈ψ|ρA|ψ〉A =∑

µ |∑

i aiµA〈ψ|i〉A|2 ≥0.

3. tr (ρA) = 1. Because∑

i,µ |aiµ|2 = 1.

So ρA can be diagonalized, and all its eigenvalues are real and nonnegative,and they sum to one.

We see that the state of a subsystem of a larger quantum system may notbe a ray in Hilbert space, and is generally represented as a density operator.So a quantum system with state as a ray is in a pure state, otherwise thestate is mixed. In the case of a pure state, the density operator would bethe projection onto the 1-d space spanned by the ray. So for a pure densityoperator ρ2 = ρ.

A general density operator can be diagonalized by a suitable orthonormalbasis, and results in the form

ρ =∑a

pa|ψa〉〈ψa| (1.21)

where 0 < pa ≤ 1 and∑

a pa = 1. The state is pure if and only if there isonly one term in the sum. The state is an incoherent superposition of thestates |ψa〉, in that the relative phases are inaccessible.

For an observable M, 〈M〉 = tr (Mρ) =∑

a pa〈ψa|M|ψa〉. So the classicalprobabilistic interpretation mentioned earlier holds for general density oper-ators and measurements. When system A becomes mixed due to interactionwith system B, we say that the two systems are entangled, the entangle-ment destroys the coherence of system A, it is as if system A collapses fromthe initial superposition of states to one of the states each with a certainprobability (like classical probabilistic bits).

Finally let’s look at the independent evolution of density operators. For aquantum system consisting of subsystems A and B, without loss of generality,

Page 14: Quantum Computation Lecture Notes

14 CHAPTER 1. QUANTUM STATES AND ENSEMBLES

we can assume the state of the whole system is pure; since we will onlybe interested in the “partial” evolution of A, all other quantum systems incontact with the whole system can be unioned with B. So the evolution ofthe whole system can be described by a Hamiltonian on HAB = HA ⊗ HB.Assume that its form is

HAB = HA ⊗ 1B + 1A ⊗HB, (1.22)

that is, assume the Hamiltonians of A and B are uncoupled, meaning A andB would evolve independently, then the evolution operator for the wholesystem can be separated into unitary evolution operators for each system

UAB(t) = UA(t)⊗UB(t). (1.23)

And the general bipartite state (1.18) evolves to

|ψ(t)〉AB =∑i,µ

aiµU(t)A|i(0)〉AU(t)B|µ(0)〉B =∑i,µ

aiµ|i(t)〉A|µ(t)〉B, (1.24)

where {|i(t)〉A} and {|µ(t)〉B} define new orthonormal basis for HA and HB

respectively. So the density operator of subsystem A (found by taking thepartial trace) is

ρA(t) =∑i,j,µ

aiµa∗jµ|i(t)〉AA〈j(t)| = UA(t)ρA(0)UA(t)†. (1.25)

In the basis in which ρA(0) is diagonal, the last equation becomes

ρA(t) =∑a

paUA(t)|ψa(0)〉AA〈ψa(0)|UA(t)†. (1.26)

This can again be interpreted according to classical probabilities: since eachof the |ψa(0)〉A’s occurs with probability pa at time 0, then at time t each|ψa(t)〉A’s occurs with probability pa. This again reflects the fact that in thedensity operator representation there is no information on relative phase (orthat relative phase is unobservable), so no quantum interference can occur,leading to results that look like classical probabilities.

1.5 Bloch Sphere

From the discussions on density operators in section 1.4, it appears that thedensity operator representation of the state of a quantum system is moregeneral than the ray in a Hilbert space representation in section 1.1. That is,whereas rays such as |ψ〉 =

∑i ai|i〉 can only represent pure states, density

Page 15: Quantum Computation Lecture Notes

1.5. BLOCH SPHERE 15

operators can represent both pure states and mixed states. In this sectionwe will elaborate on these concepts in the case of a single qubit (entangledor isolated).

Recall that the most general density matrix is self-adjoint, positive semidef-inite, and has unit trace. The most general form of a 2×2 self-adjoint matrixwith unit trace is(

12

+ a b− icb+ ic 1

2− a

)=

1

21 + bσ1 + cσ2 + aσ3, (1.27)

where a, b, c ∈ <. A necessary and sufficient condition for a matrix to bepositive semidefinite is that all its eigenvalues be nonnegative. That meansthe determinant of the matrix (equal to the product of its eigenvalues) mustbe nonnegative, and given a nonnegative trace (which is the sum of its eigen-values), this condition is also sufficient. So we have

det (ρ) =1

4− a2 − b2 − c2 =

1

4

(1− ~P 2

)≥ 0, (1.28)

where ~P = (P1, P2, P3) = (2b, 2c, 2a), and ~P 2 ≤ 1. So the most generaldensity matrix of a qubit can be expressed as

ρ(~P ) =1

2(1 + P1σ1 + P2σ2 + P3σ3) =

1

2

(1 + ~P · ~σ

), (1.29)

where 0 ≤∣∣∣~P ∣∣∣ ≤ 1. Thus there is an one to one correspondence between the

points within a unit ball in 3-d real vector space and the density matrix of aqubit. And we call this ball the Bloch sphere (though it’s really a ball).

At the boundary of the Bloch sphere (where∣∣∣~P ∣∣∣ = 1), the determinant of

the density matrix is zero, and since it has unit trace its two eigenvalues are0 and 1. This means that the density matrices corresponding to points at thesurface of the unit ball are one-dimensional projectors, and hence pure states.So the unit ball (Bloch sphere) representation is a natural extension of the 3-d unit vector representation discussed in section 1.3.1; pure states correspondto unit length vectors, and mixed states correspond to vectors with lengthless than 1. In fact, we will show that a pure state |ψ(θ, ϕ)〉 pointing inthe (θ, ϕ) direction has pure state density matrix ρ(n) = 1

2(1 + n · ~σ), where

n = (sin θ cosϕ, sin θ sinϕ, cos θ).The density matrix satisfies the property

(n · ~σ) ρ(n) = ρ(n) (n · ~σ) =1

2

((n · ~σ) + (n · ~σ)2

)=

1

2((n · ~σ) + 1) = ρ(n). (1.30)

Page 16: Quantum Computation Lecture Notes

16 CHAPTER 1. QUANTUM STATES AND ENSEMBLES

Since the state |ψ(θ, ϕ)〉 = |ψ(n)〉 = | ↑n〉 is an eigenstate of n · ~σ witheigenvalue 1 (see section 1.3.1), the density matrix is the projector

ρ(n) = | ↑n〉〈↑n | = |ψ (θ, ϕ)〉〈ψ (θ, ϕ) |, (1.31)

hence the density matrix of state |ψ(θ, ϕ)〉. Alternatively we can also acquirethe same result using direct matrix calculation, the state is from (1.3))

|ψ (θ, ϕ)〉 =

(e−iϕ2 cos θ

2

eiϕ2 sin θ

2

)(1.32)

so the density matrix is

ρ(θ, ϕ) = |ψ(θ, ϕ)〉〈ψ(θ, ϕ)|

=

cos2 θ2

cos θ2sin θ

e

−iϕ

cos θ2sin θ

e

iϕsin2 θ

2

= 121 + 1

2

(cos θ sin θe−iϕ

sin θeiϕ − cos θ

)= 1

2(1 + n · ~σ) = ρ(n). (1.33)

Also note that in the density matrix/Bloch sphere representation the overallphase of a pure state would be cancelled out, for |ψ〉 = eiθ|ϕ〉, ρ = |ψ〉〈ψ| =e−iθ|ϕ〉〈ϕ|eiθ = |ϕ〉〈ϕ|; thus all parameters in the density matrix have physi-cal meaning.

For a qubit in the general Bloch state ρ(~P ) defined in eq. (1.29), theexpected value of a measurement of the observable n · ~σ is

〈n · ~σ〉~P = tr(n · ~σρ(~P )

)= n · ~P ; (1.34)

this can be seen as the “amount” of spin component the state has on theaxis n, or the amount of polarization of the spin in that direction. Withmany identical preparations of ρ(~P ) we can determine ~P by measuring n · ~σalong each of three linearly independent axes. In the special case when ~P hasunit length the polarization of the spin in n = ~P is maximum, and the stateis just the pure state |ψ(~P )〉 = | ↑~P 〉. This implies that entanglement withother quantum systems decreases polarization, we will look at some explicitexamples of such a phenomenon when we discuss general evolution in detail.

1.6 Schmidt Decomposition

A bipartite pure state can be expressed in a standard form called the Schmidtdecomposition that is very useful.

Page 17: Quantum Computation Lecture Notes

1.6. SCHMIDT DECOMPOSITION 17

An arbitrary vector in HA ⊗HB (eq. (1.18)) can be expanded as

|ψ〉AB =∑i,µ

aiµ|i〉A|µ〉B ≡∑

i

|i〉A|i〉B, (1.35)

where we have defined|i〉B ≡

∑µ

aiµ|µ〉B. (1.36)

Note that the |i〉B’s need not be orthogonal or normalized.Now suppose the {|i〉A} basis is chosen to be the basis in which ρA is

diagonal, thenρA =

∑i

pi|i〉AA〈i|. (1.37)

We can also compute ρA by performing a partial trace,

ρA = trB (|ψ〉ABAB〈ψ|)= trB

(∑ij |i〉AA〈j| ⊗ |i〉BB〈j|

)=∑

ij B〈j |i〉B (|i〉AA〈j|) . (1.38)

The last equality is because

trB

(|i〉BB〈j|

)=∑k

B〈k|i〉BB〈j|k〉B =∑k

B〈j|k〉BB〈k|i〉B = B〈j |i〉B, (1.39)

where {|k〉B} is an orthonormal basis for HB. By comparing eq. (1.37) andeq. (1.38), we see that B〈j |i〉B = piδij. So in (1.35) the {|i〉B} are orthogonalwhen the {|i〉A} basis diagonalizes ρA. Orthonormal vectors are obtained by

rescaling, |i′〉B = p− 1

2i |i〉B, so eq. (1.35) becomes

|ψ〉AB =∑

i

√pi|i〉A|i′〉B, (1.40)

in terms of a particular orthonormal basis of HAB.Eq. (1.40) is the Schmidt decomposition of the bipartite pure state |ψ〉AB.

Any bipartite pure state can be expressed in this form (since any densitymatrix ρA = trB (|ψ〉ABAB〈ψ|) can diagonalized), but in general we cannotsimutaneously expand both |ψ〉AB and |ϕ〉AB in the Schmidt decompositionform with the same orthonormal bases for HA and HB (since in general ρA

and ρ′A = trB (|ϕ〉ABAB〈ϕ|) cannot be simutaneously diagonalized with thesame basis).

We can also evaluate the partial trace over HA (subsystem A) of eq. (1.40)to obtain

ρB = trA (|ψ〉ABAB〈ψ|) =∑

i

pi|i′〉BB〈i′|. (1.41)

Page 18: Quantum Computation Lecture Notes

18 CHAPTER 1. QUANTUM STATES AND ENSEMBLES

So ρA and ρB have the same nonzero eigenvalues, but since the dimensions ofHA and HB need not be equal, they generally do not have the same numberof zero eigenvalues.

Now let’s look at the uniqueness of the Schmidt decomposition. If ρA

(and hence ρB) have no degenerate eigenvalues other than zero, then theschmidt decomposition is unique. By pairing the eigenstates of ρA and ρB

with the same eigenvalue, we can obtain the unique Schmidt decomposition.The basis states have been chosen to have zero phase (that is, with realcoefficients); we can of course flip the phase of |i〉A, but then for the eigen-values to stay the same, the phase of |i′〉B also has to be flipped, so we geteiπ|i〉Aeiπ|i′〉B = |i〉A|i′〉B, the Schmidt decomposition remains unchanged.If ρA has degenerate nonzero eigenvalues, then more information than thatprovided by the density matrices is needed to determine the Schmidt decom-position; that is, we need to know which degenerate eigenstates get pairedtogether. The interested reader can explore the case when HA and HB havethe same dimension and all eigenvalues are equal.

For any bipartite pure state its Schmidt number is the number ofnonzero eigenvalues in ρA (or ρB) and hence the number of terms in theSchmidt decomposition of the pure state. Two systems forming a bipartitepure state are entangled when the Schmidt number is greater than one; oth-erwise they are separable (or unentangled). When systems A and B areentangled, using (1.40) we see that if we measure system A (local measure-ment) in the basis {|i〉A} and get |j〉A, then measurement on system B willyield |j′〉B with probability one, we would get the same result if we measuredsystem B first and got |j′〉B. When systems A and B are separable, theSchmidt number is one, and the Schmidt decomposition is a direct productof pure states in A and B. Local manipulation of A or B cannot increase theSchmidt number of the bipartite system. That is, in order for two systems tobe entangled, they must be brought together for direct interaction. Whereasunentangled states can be prepared by preparing pure states for A and Bseparately.

1.7 Ambiguity of the Ensemble Interpreta-

tion

1.7.1 Convexity of Density Operators

Recall that the most general density operator ρ acting on a Hilbert space Hsatisfies

Page 19: Quantum Computation Lecture Notes

1.7. AMBIGUITY OF THE ENSEMBLE INTERPRETATION 19

1. ρ is self-adjoint.

2. ρ is nonnegative (positive semidefinite).

3. tr (ρ) = 1.

So for two density operators ρ1 and ρ2, we can construct another densityoperator as the convex linear combination of the two:

ρ(λ) = λρ1 + (1− λ)ρ2, (1.42)

where 0 ≤ λ ≤ 1. The three requirements for density operators are easilyproved. So in a Hilbert space H of dimension N , the density matrices forma convex subset in the real vector space of N ×N self-adjoint matrices. (Asubset of a vector space is convex if linear combinations of members of thesubset is in the subset.)

Most density operators can be expressed as a sum of other density op-erators in many different ways, but pure density operators cannot be ex-pressed as a convex sum of two other density operators. Consider a purestate ρ = |ψ〉〈ψ|, and let |ψ⊥〉 denote a vector orthogonal to |ψ〉. Supposethe state can be expanded as in eq. (1.42), then

〈ψ⊥|ρ|ψ⊥〉 = 0 = λ〈ψ⊥|ρ1|ψ⊥〉+ (1− λ)〈ψ⊥|ρ2|ψ⊥〉. (1.43)

Since both terms in the right hand side is nonnegative, they are both zero.When λ is not 0 or 1, we conclude that ρ1 and ρ2 are orthogonal to |ψ⊥〉. Andsince |ψ⊥〉 can be any vector orthogonal to |ψ〉, we conclude that ρ1 = ρ2 = ρ.So the pure state density matrices are extremal points of the convex subsetin that they cannot be expressed as a linear combination of other matrices.Furthermore, only the pure states are extremal, since any mixed state is aconvex sum of pure states.

In the Bloch sphere representation (the special case of 2× 2 density ma-trices), the convexity property is easily seen, since any point in the unit ball(mixed states) can be expressed as the linear combination of two points onthe surface of the ball (pure states), and any point on the surface cannot beso expressed. But the 2× 2 case (qubit) is atypical in that if we extend theBloch sphere representation to N > 2, then states at the boundary of thesphere (det ρ = 1

N2

(1− ~P 2

)= 0 where ~P is a N vector) are not necessarily

pure, and hence not extremal. That is because det ρ = 0 requires at leastone zero eigenvalue, and when N > 2 there can be more than one nonzeroeigenvalues, resulting in a mixed state; but when N = 2 there can only beone nonzero eigenvalue, since there’s just two eigenvalues in total.

Page 20: Quantum Computation Lecture Notes

20 CHAPTER 1. QUANTUM STATES AND ENSEMBLES

In conclusion, N ×N density operators form a convex subset of the realvector space of N × N self-adjoint matrices, and a state is pure if and onlyif its density matrix is an extremal point of the subset. And when N = 2, astate is pure if and only if the determinant of its density matrix vanishes.

1.7.2 Ensemble Preparations

The convexity of density matrices has a simple and enlightening physical in-terpretation. Suppose a preparer agrees to prepare one of two possible statesρ1 and ρ2 with probabilities λ and 1 − λ respectively, then the expectationvalue of measurement M performed on the state (by the receiver of the state)is

〈M〉 = λ 〈M〉1 + (1− λ) 〈M〉2= λtr (Mρ1) + (1− λ)tr (Mρ2)

= tr (Mρ(λ)) , (1.44)

averaging over both possible preparations and possible measurement out-comes. So there is no observable difference if the preparer had prepared thestate ρ(λ).

In fact, for any mixed state ρ, there are an infinite variety of ways toexpress ρ as a linear combination of other density matrices, and hence aninfinite variety of ways to prepare the state. Thus the preparation of amixed state is always ambiguous, whereas the preparation of a pure stateis unambiguous, since it can be determined uniquely if we are given enoughcopies to experiment with.

How ambiguous is the preparation of a mixed state? Since any densitymatrix can be expressed as a sum of pure states, we can instead ask howmany combinations of pure states are possible for a given mixed state? Let’sfirst consider the “maximally mixed” qubit ρ = 1

21 (in that |~P | = 0), we can

see that preparing spin up and spin down states along any axis n with equalprobabilities will yield the density matrix:

ρ =1

2| ↑n〉〈↑n |+

1

2| ↓n〉〈↓n | =

1

21, (1.45)

since any such pair forms an orthonormal basis. It is clear that only whenthe density matrix has degenerate nonzero eigenvalues can there be distinct(in fact, infinite) ways of preparing the matrix from an ensemble of mutuallyorthogonal pure states. But orthogonality is not required, consider a pointin the interior of the Bloch sphere

ρ(~P ) =1

2(1 + ~P · ~σ), (1.46)

Page 21: Quantum Computation Lecture Notes

1.7. AMBIGUITY OF THE ENSEMBLE INTERPRETATION 21

where 0 < |~P | < 1. If ~P = λn1 + (1− λ)n2, it can be expressed as

ρ(~P ) = λρ(n1) + (1− λ)ρ(n2), (1.47)

where n1 and n2 are unit vectors. This illustrates that the preparation of amixed state is indeed very ambiguous.

1.7.3 The GHJW Theorem and Quantum Erasure

Any density matrix can be realized as an ensemble of pure states, for a densitymatrix ρA, consider one such realization:

ρA =∑

i

pi|ϕi〉AA〈ϕi|, (1.48)

where∑

i pi = 1. The states {|ϕi〉A} are all normalized, but not necessarilyorthogonal. We can construct a “purification” of ρA, that is a bipartite state|Φ〉AB that yields ρA when we perform a partial trace over HB. Assume it’sof the form

|Φ〉AB =∑

i

√pi|ϕi〉A|αi〉B, (1.49)

where {|αi〉B} is an orthonormal basis of HB, clearly then

trB (|Φ〉ABAB〈Φ|) = ρA. (1.50)

So given the purification we can realize the {|ϕi〉A} ensemble interpretationof ρA by a measurement in system B that projects onto the basis {|αi〉B}. Ifthe measurement result is |αj〉B, then we know that system A is now in thestate |ϕj〉AA〈ϕj|.

Now consider another ensemble interpretation of the same ρA

ρA =∑µ

qµ|ψµ〉AA〈ψµ|, (1.51)

there is a corresponding purification

|Ψ〉AB =∑µ

√qµ|ψµ〉A|βµ〉B, (1.52)

where again {|βµ〉B} is an orthonormal basis for HB. So as before the{|ψµ〉A} ensemble interpretation can be realized by a measurement in HB

that projects onto the {|βµ〉B} basis.How are |Φ〉AB and |Ψ〉AB related? They both yield ρA when we perform

partial trace over HB, so their Schmidt decompositions (see 1.6) are

|Φ〉AB =∑

k

√λk|k〉A|k′1〉B, and

|Ψ〉AB =∑

k

√λk|k〉A|k′2〉B, (1.53)

Page 22: Quantum Computation Lecture Notes

22 CHAPTER 1. QUANTUM STATES AND ENSEMBLES

where the λk’s are the eigenvalues of ρA and the |k〉A’s are the correspondingeigenvectors. Since {|k′1〉B} and {|k′2〉B} are both orthonormal bases for HB,there is a unitary transformation UB such that |k′1〉B = UB|k′2〉B, and so

|Φ〉AB = (1A ⊗UB)|Ψ〉AB. (1.54)

Alternatively,

|Φ〉AB =∑

i

√pi|ϕi〉A|αi〉B =

∑µ

√qµ|ψµ〉A|γµ〉B (1.55)

where |γµ〉B = UB|βµ〉B is yet another basis for HB. So there is a singlepurification of ρA such that both the {|ϕi〉A} ensemble and the {|ψµ〉A} en-semble can be realized by choosing the appropriate measurement to performin HB.

If there are many ensembles that realize ρA, where the maximum numberof pure states in any ensemble is n, then we can choose a Hilbert space HB

of dimension n, and construct a purification |Ψ〉AB ∈ HA⊗HB such that anyone of the ensembles can be realized by measuring a suitable observable of B.This is the GHJW theorem. It leads to a phenomenon called quantumerasure, which is illustrated below.

We will first consider the nature of coherence. The density matrix ρ = 121

describes an incoherent superposition of pure states | ↑z〉 and | ↓z〉, whereasstates such as

| ↑x, ↓x〉 =1

2(| ↑z〉 ± | ↓z〉) (1.56)

describes coherent superpositions. The difference between these two lies inwhether or not relative phases are observable. Relative phases can be “ob-served” by quantum interference, that is, if we can detect quantum inter-ference, then relative phase is observable; conversely, if the relative phase isunobservable, there can be no quantum interference. This is not much ofan explanation, but we can look at coherence in this way: if the state is acoherent superposition of | ↑z〉 and | ↓z〉, we can not obtain the state withany conceivable measurement, that is, no measurement can tell us how thetwo states are superposed; but when the state is an incoherent superposition,we are still not sure of its state, yet we know that it is either | ↑z〉 or | ↓z〉,each with a given prior probability, so that it is essentially a probabilisticclassical bit, and cannot possibly create interference. Yet another way tolook at it is that if there is in principle no way to know what the state is,then it is coherent, and interferes; but if we can in principle find out whatstate it is in, then it cannot be coherent. For example, consider entanglingspin A with spin B, spin A will decohere because we can, in principle, mea-sure spin B on the z-axis to find out whether the state of A is | ↑z〉 or | ↓z〉,

Page 23: Quantum Computation Lecture Notes

1.8. SUMMARY 23

as illustrated more generally at the begining of this section, so the state ofA is an incoherent superposition of | ↑z〉 and | ↓z〉 after entanglement withspin B.

Yet decoherence is not irreversable, that is, we can always create a coher-ent superposition of some ensemble of states by projecting the state to anypure state. For example, measuring the spin on x-axis yields

| ↑x, ↓x〉 =1

2(| ↑z〉 ± | ↓z〉), (1.57)

which are coherent superpositions of spin up and spin down along z-axis.That is, we have erased the information about whether the state is spin upor spin down along z-axis (or “erased” the possibility of knowing it) and thuscreated a coherent superposition of these two states. This is the quantumerasure phenomenon. We can generalize using the situation described at thebegining, if we realized the ensemble {|ϕi〉A} in ρA by a suitable measurementin HB, then the state of A is an incoherent superposition of the |ϕi〉A’s, sincewe know that the state is |ϕj〉A for some unknown j. Yet if we now performa measurement on HB that projects onto the {|γµ〉B} basis, we would obtainstate |ψν〉A for some ν, which is a coherent superposition of the ensemble{|ϕi〉A}. We have restored coherence by quantum erasure. The informationerased is called the “welcher weg” information, which is whether the state is|ϕi〉A or |ϕj〉A.

1.8 Summary

Axioms. Quantum mechanics operate in a Hilbert space H, the funda-mental assumptions are:

1. A state is a ray in H.

2. An observable is a self-adjoint operator on H.

3. A measurement is an orthogonal projection.

4. Evolution in time is unitary.

Density operator. If we observe only part of a larger quantum system,the axioms need not hold. A quantum state is described by a densityoperator ρ, which is a nonnegative (positive semidefinite) operatorwith unit trace. It is pure (the state can be described by a ray) if andonly if ρ2 = ρ; otherwise the state is mixed. The expectation value ofan observable M is tr (Mρ).

Page 24: Quantum Computation Lecture Notes

24 CHAPTER 1. QUANTUM STATES AND ENSEMBLES

Qubit. A quantum system with 2-d Hilbert space is called a qubit. Thegeneral density matrix of a qubit is

ρ(~P ) =1

2(1 + ~P · ~σ),

where |~P | ≤ 1. Pure states have |~P | = 1, and the state ~P = 0 isconsidered maximally entangled.

Schmidt decomposition. The Hilbert space of a system divided in twoparts (bipartite systems) HA and HB is their vector space tensorproduct HA ⊗ HB. For any pure state |ψ〉AB of a bipartite system,there are orthonormal bases {|i〉A} and {|i′〉B} such that

|ψ〉AB =∑

i

√pi|i〉A|i′〉B,

which is the Schmidt decomposition of |ψ〉AB. The number of non-vanishing eigenvalues of ρA (which is equal to ρB’s) is the Schmidtnumber. The bipartite state is entangled if the Schmidt number isgreater than one.

Ensembles. A mixed state of a system A can be prepared as an ensembleof pure states in infinite ways, all of which are indistinguishable exper-imentally. Given a mixed state of system A, there is a pure state ofthe bipartite system composed of system A and system B (the systemwith which A is entangled) such that any preparation as an ensembleof pure states can be realized by a suitable measurement in system B(the GHJW theorem).