PLAIN QUANTUM
Search

ADVANCED · QUANTUM · 50 MIN

Multi-qubit states and entanglement, formally

Terms in this lesson

  • coefficient matrix
  • Bell state
  • singlet
  • Schmidt decomposition
  • Schmidt coefficient
  • Schmidt rank
  • singular value decomposition
  • density operator
  • observable
  • mixed state
  • purity
  • coherence
  • partial trace
  • reduced density matrix
  • no-signalling
  • correlation E(a, b)
  • plan
  • CHSH inequality
  • Tsirelson bound

What you’ll learn

  • Decide whether a two-qubit pure state is entangled from its 2 × 2 coefficient matrix, using its rank or its Schmidt coefficients.
  • Compute the reduced density matrix of one qubit of a two-qubit state, and show that for a Bell pair it is I/2.
  • Compute the CHSH value S for a Bell state at given measurement angles, and prove that no local plan can exceed 2 and no quantum state can exceed 2√2.
  • Show that nothing done to one qubit of a pair changes the statistics of the other, so entanglement alone cannot send a signal.

The site's entanglement lesson shows what entanglement does. This lesson gives the tools to prove things about it: a test that decides whether a two-qubit state is entangled, the description of one qubit of an entangled pair on its own, the CHSH inequality with both its classical bound and its quantum bound proved, and the argument that none of this can carry a message.

Needs: Q0 Maths foundations, units M1 to M3: kets and bras, tensor products, the product-state test ad = bc, the Born rule and the density operator ρ = |ψ⟩⟨ψ|. The Bell game and Build an entangled pair are the hands-on versions of sections 6 and 1.

1. Two-qubit states as 2 × 2 matrices

A two-qubit state is a column of four amplitudes in ℂ4 = ℂ2 ⊗ ℂ2 (Q0, M2):

|ψ⟩ = c00|00⟩ + c01|01⟩ + c10|10⟩ + c11|11⟩,

Σij |cij|2 = 1.

Write the same four numbers as a square, the coefficient matrix C (gloss: row = first qubit's value, column = second qubit's value):

Csecond qubit 0second qubit 1
first qubit 0c00c01
first qubit 1c10c11

Product states have rank 1. If |ψ⟩ = |a⟩ ⊗ |b⟩ with |a⟩ = (a0, a1) and |b⟩ = (b0, b1), then cij = ai bj, so C is the column (a0, a1) times the row (b0, b1):

C = a bT.

The second factor is a plain transpose, not a conjugate transpose. A column times a row has rank 1 (gloss: every row is a multiple of one row). Conversely, a 2 × 2 matrix of rank 1 can always be written as a column times a row, and normalising the two factors gives |a⟩ ⊗ |b⟩. So:

Result. A two-qubit pure state is a product state if and only if rank C = 1, that is, det C = c00c11 − c01c10 = 0. Otherwise it is entangled (rank 2).

This is Q0's test ad = bc, now with a reason behind it.

Worked example. (|00⟩ + |01⟩)/√2 has C = (1/√2)1100: rank 1, det 0. It is |0⟩ ⊗ |+⟩, a product. The Bell state |Φ+⟩ = (|00⟩ + |11⟩)/√2 has C = I/√2: det = ½ ≠ 0, entangled. It is the state CNOT(H ⊗ I)|00⟩ from Q0, M2.

The four Bell states are |Φ+⟩, |Φ−⟩ = (|00⟩ ± |11⟩)/√2 and |Ψ+⟩, |Ψ−⟩ = (|01⟩ ± |10⟩)/√2; |Ψ−⟩ is also called the singlet. Each has a coefficient matrix with det = ±½, so all four are entangled.

Pause and recall optional

Which number decides whether a two-qubit pure state is a product?

Show answer

det C = c00c11 − c01c10; the state is a product exactly when it is 0.

Why is C = a bT for a product state, and not a b†?

Show answer

Because cij = ai bj: no amplitude is conjugated.

2. The Schmidt decomposition

Rank says whether a state is entangled. The Schmidt decomposition says how.

The singular value decomposition (SVD; gloss: every matrix is a rotation, then a stretch along the axes, then another rotation) of the 2 × 2 complex matrix C is

C = U Σ V†, U and V unitary,

Σ = diag(s0, s1),

s0 ≥ s1 ≥ 0.

The sk are the singular values (the square roots of the eigenvalues of C†C). Every complex matrix has an SVD; this is a standard linear-algebra theorem, stated here without proof.

Derivation. Write the matrix product out entry by entry: cij = Σk Uik sk (V†)kj. Then

|ψ⟩ = Σij cij |i⟩|j⟩

= Σk sk (Σi Uik|i⟩) (Σj (V†)kj|j⟩)

= Σk sk |uk⟩|vk⟩,

where |uk⟩ is column k of U, and |vk⟩ has entries (V†)kj = Vjk* (the complex conjugate of column k of V). Because U and V are unitary, {|u0⟩, |u1⟩} and {|v0⟩, |v1⟩} are orthonormal bases. Normalisation gives

⟨ψ|ψ⟩ = s02 + s12 = 1.

Schmidt decomposition. Every two-qubit pure state can be written |ψ⟩ = s0|u0⟩|v0⟩ + s1|u1⟩|v1⟩ with orthonormal {|uk⟩}, orthonormal {|vk⟩}, sk ≥ 0 and s02 + s12 = 1. The sk are the Schmidt coefficients; the number of non-zero ones is the Schmidt rank (= rank C).

The same proof works for any two systems of dimensions dA and dB, with min(dA, dB) terms (Nielsen and Chuang, chapter 2).

Product states have Schmidt coefficients (1, 0). The more evenly the weight is shared, the more entangled the state: (1/√2, 1/√2) is the most even possible for two qubits. The Bell states all have it.

Worked example. Take (|00⟩ + |01⟩ + |10⟩)/√3. Its coefficient matrix is C = (1/√3)M with M = 1110.

M is real and symmetric, so its singular values are the absolute values of its eigenvalues. From λ2 − λ − 1 = 0 these are λ = (1 ± √5)/2, that is φ = 1.618… and 1 − φ = −0.618…. So

s0 = φ/√3 = 0.9342,

s1 = (φ − 1)/√3 = 0.3568,

s02 = (3 + √5)/6 = 0.8727,

s12 = (3 − √5)/6 = 0.1273.

det C = −1/3 ≠ 0, so the state is entangled, but less than a Bell state: its weight is shared unevenly.

How evenly the weight is shared second qubit first qubit 0 1 0 0.707 0.707 1 0 0 1 0 Schmidt weights product 0 1 0 0.577 0.577 1 0.577 0 0.873 0.127 entangled 0 1 0 0.707 0 1 0 0.707 0.5 0.5 Bell state How evenly the weight is shared second qubit first qubit 0 1 0 0.707 0.707 1 0 0 1 0 Schmidt weights product 0 1 0 0.577 0.577 1 0.577 0 0.873 0.127 entangled 0 1 0 0.707 0 1 0 0.707 0.5 0.5 Bell state
Figure 1. Each grid is the coefficient matrix C (rows: first qubit; columns: second qubit); the bar under it, of length 1, is split into the Schmidt weights s02 and s12. |0⟩|+⟩ has rank 1 and weights 1 and 0: a product. (|00⟩ + |01⟩ + |10⟩)/√3 has rank 2, with s0 = 0.934 and s1 = 0.357: entangled, but less than the Bell state |Φ⁺⟩, which splits 0.5 and 0.5. The same two weights are the eigenvalues of ρA (section 4).
Pause and recall optional

What do the Schmidt coefficients of a product state look like?

Show answer

(1, 0): one term only.

Which Schmidt coefficients give the most entangled two-qubit state?

Show answer

(1/√2, 1/√2), as for every Bell state.

3. Density operators: states you only know statistically

Q0 (M3) wrote a pure state as ρ = |ψ⟩⟨ψ|. The same object describes situations where you only know that the system is in |ψk⟩ with probability pk:

ρ = Σk pk |ψk⟩⟨ψk|,

pk ≥ 0,

Σk pk = 1.

A density operator (gloss: a matrix that holds every probability you could measure) is any matrix with three properties: Hermitian (ρ = ρ†), positive (⟨φ|ρ|φ⟩ ≥ 0 for every |φ⟩), and trace 1. The Born rule becomes

p(m) = tr(Pm ρ), ⟨M⟩ = tr(M ρ)

for a projector Pm or an observable M (gloss: a Hermitian matrix; its eigenvalues are the possible results, and ⟨M⟩ is their average). For ρ = |ψ⟩⟨ψ| this is Q0's ⟨ψ|Pm|ψ⟩, because tr(P|ψ⟩⟨ψ|) = ⟨ψ|P|ψ⟩.

The purity tr(ρ2) separates the two cases: it is 1 exactly for a pure state (ρ2 = ρ) and less than 1 for a mixed state. For one qubit it lies between ½ and 1 (eigenvalues p and 1 − p give p2 + (1 − p)2, smallest at p = ½).

Worked example: same statistics in one basis, different states. Compare the Bell state |Φ+⟩ with a coin-toss mixture ρmix = ½|00⟩⟨00| + ½|11⟩⟨11|. In the basis |00⟩, |01⟩, |10⟩, |11⟩ (rows and columns in that order):

ρ for |Φ+⟩⟨00|⟨01|⟨10|⟨11|
|00⟩½00½
|01⟩0000
|10⟩0000
|11⟩½00½
ρmix⟨00|⟨01|⟨10|⟨11|
|00⟩½000
|01⟩0000
|10⟩0000
|11⟩000½

Measured in the computational basis, both give 00 or 11, half the time each. The difference is the off-diagonal ½ (the coherence between |00⟩ and |11⟩). It shows up in another basis: ⟨X ⊗ X⟩ = tr((X ⊗ X)ρ) is 1 for the Bell state and 0 for the mixture. Purity: 1 and ½.

Pause and recall optional

What three properties make a matrix a density operator?

Show answer

Hermitian, positive, trace 1.

Which entry of the matrix tells the Bell state apart from the coin-toss mixture?

Show answer

The off-diagonal ½ between |00⟩ and |11⟩, the coherence.

4. The partial trace: one qubit on its own

Suppose Alice holds qubit A of a two-qubit state ρAB and Bob holds B. Everything Alice can measure is an observable of the form M ⊗ I. We want a 2 × 2 matrix ρA with ⟨M ⊗ I⟩ = tr(M ρA) for every M.

Definition. The partial trace over B (gloss: add up over Bob's index, keep Alice's) is

ρA = trB ρAB,

(ρA)ii′ = Σj (ρAB)(ij),(i′j).

Equivalently, ρA = Σj (I ⊗ ⟨j|) ρAB (I ⊗ |j⟩). The result ρA is the reduced density matrix of A. trA is defined the same way with the roles swapped.

Why it is the right object. For any M on A, with |i⟩|j⟩ as the basis,

tr((M ⊗ I) ρAB) = Σi,i′,j Mi′i (ρAB)(ij),(i′j)

= Σi,i′ Mi′i (ρA)ii′

= tr(M ρA).

So ρA predicts every measurement Alice can make on her own, and it is the only matrix that does: two matrices that give the same tr(Mρ) for every M are equal.

Pure states: a formula through C. For ρAB = |ψ⟩⟨ψ|, (ρAB)(ij),(i′j′) = cij ci′j′*. Summing over j = j′:

(ρA)ii′ = Σj cij ci′j*

= (C C†)ii′,

ρA = C C†, ρB = (C† C)T.

Put in the SVD: ρA = UΣV†VΣU† = UΣ2U†. So:

Result. The eigenvalues of ρA (and of ρB) are the squared Schmidt coefficients s02, s12. A pure two-qubit state is entangled exactly when ρA is mixed: purity tr(ρA2) = s04 + s14 < 1.

Worked example: the Bell pair. C = I/√2, so ρA = CC† = I/2 = diag(0.5, 0.5). Alice's qubit, alone, is as random as a qubit can be: every measurement axis gives 50/50. The pair as a whole is pure, yet each half on its own is maximally mixed. The information is in the correlations, none of it in either qubit alone. The same holds for the other three Bell states; the singlet |Ψ−⟩, for example, also has ρA = I/2.

Worked example: tunable entanglement. |ψα⟩ = cos α|00⟩ + sin α|11⟩ has C = diag(cos α, sin α), so ρA = diag(cos2α, sin2α), and its purity is cos4α + sin4α = 1 − ½ sin22α. At α = π/8: ρA = diag(0.8536, 0.1464), purity 0.75. At α = 0, a product (purity 1); at α = π/4, the Bell state (purity ½).

A conditional state is not the reduced state. If Bob measures |Φ+⟩ in the computational basis and gets 0 (probability ½), Alice's qubit is then |0⟩. That is a statement about Alice's qubit given Bob's result. Without that result, Alice must average over Bob's two outcomes, and she gets ½|0⟩⟨0| + ½|1⟩⟨1| = I/2 back. Section 5 turns this into a proof.

Pause and recall optional

What is Alice's reduced state for any Bell state?

Show answer

I/2, maximally mixed.

How are the eigenvalues of ρA related to the Schmidt coefficients?

Show answer

They are s02 and s12.

5. No-signalling

Can Bob, by acting on his qubit, change anything Alice can measure? This lesson uses two kinds of local operation, and both are covered below. General local operations (the quantum channels of Q6) also leave ρA unchanged, by the same trace argument with Σk Kk†Kk = I in place of Σm Pm = I (Kk: the channel's Kraus operators, defined in Q6).

Bob applies a unitary U to his qubit. The state becomes (I ⊗ U)|ψ⟩. Its coefficient matrix is C′ = C UT, because c′ij = Σl cil Ujl. Then

ρA′ = C′C′† = C UT (UT)† C†

= C UT (U†)T C†

= C (U†U)T C†

= C C† = ρA.

Bob measures, and does not tell Alice the result. With projectors Pm on B (Σm Pm = I), outcome m has probability pm = tr[(I ⊗ Pm)ρAB] and leaves the state (I ⊗ Pm)ρAB(I ⊗ Pm)/pm. Averaged over outcomes with weights pm (the pm cancel), Alice's reduced state is

Σm trB[(I ⊗ Pm) ρAB (I ⊗ Pm)]

= Σm trB[(I ⊗ Pm) ρAB]

= trB[(I ⊗ Σm Pm) ρAB]

= ρA.

The first step uses the fact that, inside a trace over B, an operator acting only on B can be moved around the cycle (trB[(I ⊗ Q)X(I ⊗ R)] = trB[(I ⊗ RQ)X]), and Pm2 = Pm.

No-signalling. Nothing Bob does to his own qubit, a unitary or a measurement whose result he keeps to himself, changes ρA. So it changes no probability Alice can observe, and entanglement alone carries no message. The correlations appear only when the two lists of results are compared, and that comparison needs an ordinary channel.

This is the formal version of the site's figure "Why entanglement can't send messages" on the entanglement lesson. Exercise H1 extends the unitary case to mixed states.

Pause and recall optional

Bob measures his half of |Φ+⟩ and keeps the result. What is Alice's state now, from her point of view?

Show answer

Still I/2: the average over his outcomes is her reduced state.

Where does the proof for a unitary use that U is unitary?

Show answer

In C UT (C UT)† = C (U†U)T C† = C C†.

6. The CHSH inequality and its quantum bound

The Bell game asks whether a plan agreed in advance can reproduce the correlations of an entangled pair. CHSH (Clauser, Horne, Shimony and Holt, 1969) turns that question into one number.

Observables with outcomes ±1. For an angle θ, let A(θ) = cos θ Z + sin θ X. As a matrix:

A(θ)column 0column 1
row 0cos θsin θ
row 1sin θ−cos θ

Its eigenvalues are +1 and −1 and A(θ)2 = I (gloss: measuring it answers "+1 or −1"; physically, a spin measurement along an axis at angle θ in the X–Z plane, or a polarisation measurement with the polariser at angle θ/2). The correlation of Alice measuring A(a) and Bob measuring A(b) is the average of the product of their ±1 results:

E(a, b) = ⟨ψ| A(a) ⊗ A(b) |ψ⟩.

Derivation for |Φ+⟩. Expand the product:

A(a) ⊗ A(b) = cos a cos b Z⊗Z

+ sin a sin b X⊗X

+ cos a sin b Z⊗X

+ sin a cos b X⊗Z.

On |Φ+⟩: Z ⊗ Z leaves it unchanged (in both |00⟩ and |11⟩ the two bits agree), so ⟨Z⊗Z⟩ = 1. X ⊗ X swaps |00⟩ and |11⟩, so ⟨X⊗X⟩ = 1. Z ⊗ X maps |Φ+⟩ to (|01⟩ − |10⟩)/√2, which is orthogonal to |Φ+⟩, so ⟨Z⊗X⟩ = 0, and likewise ⟨X⊗Z⟩ = 0. Hence

E(a, b) = cos a cos b + sin a sin b

= cos(a − b).

For the singlet |Ψ−⟩ the same steps give E(a, b) = −cos(a − b).

The CHSH quantity. Alice chooses between angles a and a′, Bob between b and b′. Define

S = E(a, b) + E(a, b′) + E(a′, b) − E(a′, b′).

Classical bound: |S| ≤ 2. Suppose each run has pre-agreed answers A, A′, B, B′ ∈ {+1, −1}, a plan. This is what a local hidden-variable model means: the answers exist before the choices are made, and neither side's answer depends on the other's choice. We also assume that the choice of settings is independent of the plan: in the game, the referee's cards are random and the players cannot know them when they agree the plan. Then

AB + AB′ + A′B − A′B′ = A(B + B′) + A′(B − B′).

Either B = B′, so the second bracket is 0 and the first is ±2; or B = −B′, so the first is 0 and the second is ±2. Every run gives exactly ±2. Because the plan does not depend on which settings are chosen, each of the four averages in S is taken over the same mixture of plans, so S is the average of AB + AB′ + A′B − A′B′ over that mixture. An average of numbers in [−2, 2] stays in [−2, 2]. So |S| ≤ 2 for every local plan. This is the CHSH inequality.

Quantum value. With |Φ+⟩ and a = 0, a′ = π/2, b = π/4, b′ = −π/4:

S = cos(−π/4) + cos(π/4) + cos(π/4) − cos(3π/4)

= 4 · √2/2

= 2√2 = 2.8284.

Four measurement axes Z X 0.71 0.71 0.71 −0.71 a a′ b b′ Four measurement axes Z X 0.71 0.71 0.71 −0.71 a a′ b b′
Figure 2. Measurement axes in the X–Z plane of the Bloch sphere. Alice uses a = 0° or a′ = 90°; Bob uses b = 45° or b′ = −45°. For |Φ⁺⟩, E(a, b) = cos(a − b): three pairs are 45° apart (0.71 each), and a′, b′ are 135° apart (−0.71, dashed), the term S subtracts. So S = 0.71 + 0.71 + 0.71 − (−0.71) = 4/√2 = 2√2 ≈ 2.83 > 2.

Quantum bound: |S| ≤ 2√2 (Tsirelson, 1980). Let A, A′, B, B′ be any observables with A2 = A′2 = B2 = B′2 = I (outcomes ±1). The CHSH operator is

W = A ⊗ (B + B′) + A′ ⊗ (B − B′).

Square it. (B + B′)2 = 2I + BB′ + B′B and (B − B′)2 = 2I − BB′ − B′B, so the two square terms add up to 4I ⊗ I. The cross terms are AA′ ⊗ (B + B′)(B − B′) + A′A ⊗ (B − B′)(B + B′) = −AA′ ⊗ [B, B′] + A′A ⊗ [B, B′], where [P, Q] = PQ − QP. Hence

W2 = 4 I ⊗ I − [A, A′] ⊗ [B, B′].

The operator norm ‖·‖ (gloss: the largest factor by which the matrix can stretch a vector) satisfies ‖[A, A′]‖ ≤ ‖AA′‖ + ‖A′A‖ ≤ 2, by the triangle inequality and because each of A, A′ has norm 1. The same holds for B. With ‖P ⊗ Q‖ = ‖P‖‖Q‖, ‖W2‖ ≤ 4 + 2 · 2 = 8. For any state, |⟨W⟩| ≤ ‖W‖ = √‖W2‖ ≤ 2√2.

The angles above reach the bound: A = Z, A′ = X give ‖[Z, X]‖ = 2, and the same for Bob's pair. If Alice's two observables commute (for example a′ = a or a′ = a + π), the commutator term vanishes and |S| ≤ 2: incompatible measurements on both sides are needed to break the classical bound. And if the state is a product, E(a, b) factorises into Alice's average times Bob's average, which is a local plan, so |S| ≤ 2 again (checked numerically by this lesson's code).

Back to the Bell game. In the game's usual form, inputs x, y ∈ {0, 1} are chosen at random and the players win when their output bits oA and oB satisfy (oA + oB) mod 2 = x·y. Writing outcomes as ±1, the win probability is

P(win) = ½ + S/8.

S = 2 gives 75%, the best any plan can average. S = 2√2 gives ½ + √2/4 = 85.36%, the game's "about 85%". A simulation of the game with these angles gives 0.8536.

Two bounds on S any local plan (with random settings) any quantum state S P(win), % 0 50 2 75 2.83 85.36 4 100 Two bounds on S any local plan (with random settings) any quantum state S P(win), % 0 50 2 75 2.83 85.36 4 100
Figure 3. How large S can be. Every local plan, with the settings chosen at random, stays at or below 2; every quantum state stays at or below 2√2 ≈ 2.83 (Tsirelson). The lower scale is the Bell game's win probability, P(win) = ½ + S/8, drawn exactly: 75% for the best plan, 85.36% at the quantum bound.

What a violation does and does not show. S > 2 rules out every model in which each side's results are fixed in advance, neither side's results depend on the other side's choice, and the settings are chosen independently of the plan. It does not let either side send a message: by section 5, the statistics of each side's own results do not depend on what the other side chooses (for a Bell pair they are 50/50 whichever setting either side uses). Real experiments must also close detection and timing loopholes; the site's entanglement lesson covers that, and this lesson does not.

Pause and recall optional

Why does every local plan give exactly ±2 in one run?

Show answer

A(B + B′) + A′(B − B′): one bracket is 0 and the other is ±2.

What must be true of Alice's two observables to go above 2?

Show answer

They must not commute.

What this lesson leaves out, and where it gets hard

  • For pure states, entanglement is settled by the Schmidt coefficients. For mixed states it is not: deciding whether a general mixed state is separable is hard, and the measures of mixed-state entanglement (negativity, entanglement of formation and others) are not covered here.
  • Only two qubits are treated in full. For three or more qubits there is no Schmidt decomposition across all parties at once; the GHZ state appears below only as an exercise.
  • Measurements here are projective, as in Q0. General noise (quantum channels) comes in Q6. General measurements (POVMs) are not covered in this track.
  • Bell experiments and their loopholes: on the site's entanglement lesson, not here.

Exercises

Every numeric answer is checked by this lesson's code.

Easy

E1. Is (|00⟩ − |01⟩ + |10⟩ − |11⟩)/2 entangled? Give its coefficient matrix, its rank and its Schmidt coefficients.

Show solution, E1

C = ½1−11−1. The two rows are equal, so rank 1 and det C = ¼(1 · (−1) − (−1) · 1) = 0: a product. It is the column (1, 1)/√2 times the row (1, −1)/√2, that is |+⟩ ⊗ |−⟩. Schmidt coefficients (1, 0): CC† = ½1111, whose eigenvalues are 1 and 0, so s02 = 1 and s12 = 0.

Medium

M1. Find the Schmidt coefficients of (|00⟩ + 2|01⟩ + 2|10⟩)/3 without a computer, and check that their squares add up to 1. Is the state entangled?

Show solution, M1

C = (1/3)M with M = 1220. M is real symmetric, so its singular values are the absolute values of its eigenvalues. det(M − λI) = λ2 − λ − 4 = 0 gives λ = (1 ± √17)/2 = 2.5616 and −1.5616.

So s0 = (1 + √17)/6 = 0.8539 and s1 = (√17 − 1)/6 = 0.5205.

Squares: s02 = (18 + 2√17)/36 = (9 + √17)/18 = 0.7291 and s12 = (9 − √17)/18 = 0.2709, which add up to 1.

Two non-zero coefficients: entangled (also det C = −4/9 ≠ 0).

Medium

M2. For |ψα⟩ = cos α|01⟩ + sin α|10⟩, compute ρB from ρB = (C†C)T, and its purity. For which α is the state a product?

Show solution, M2

C = 0cos αsin α0 (row = first qubit). C†C = diag(sin2α, cos2α), which is diagonal, so ρB = (C†C)T = diag(sin2α, cos2α): Bob's qubit is 0 with probability sin2α, from the term sin α|10⟩.

Purity: tr(ρB2) = sin4α + cos4α = 1 − ½ sin22α.

Product exactly when the purity is 1, that is sin 2α = 0: α a multiple of π/2 (the state is then ±|01⟩ or ±|10⟩). The same follows from det C = −cos α sin α = −½ sin 2α.

Medium

M3. Using the convention S = E(a, b) + E(a, b′) + E(a′, b) − E(a′, b′), compute S for |Φ+⟩ with a = 0, a′ = π/2 and b = b′ = π/4. Explain in one sentence why this choice of Bob's angles cannot exceed 2.

Show solution, M3

E = cos(a − b): E(0, π/4) = E(0, π/4) = E(π/2, π/4) = E(π/2, π/4) = cos(π/4) = √2/2.

S = √2/2 + √2/2 + √2/2 − √2/2 = √2 = 1.4142.

With b = b′, Bob's two observables are the same, so [B, B′] = 0 and W2 = 4I, which gives |S| ≤ 2. (Directly: S = E(a, b) + E(a, b) + E(a′, b) − E(a′, b) = 2E(a, b) ≤ 2.)

Medium

M4. The GHZ state is (|000⟩ + |111⟩)/√2. Compute the reduced state of qubit 1. Then compute the reduced state of qubits 1 and 2 together, and say whether it is pure.

Show solution, M4

Write GHZ = (|0⟩|00⟩ + |1⟩|11⟩)/√2, with qubit 1 first. Trace out qubits 2 and 3: the two terms have orthogonal partner states |00⟩ and |11⟩, so the cross terms vanish and ρ1 = ½|0⟩⟨0| + ½|1⟩⟨1| = I/2.

Now trace out qubit 3 only: GHZ = (|00⟩|0⟩ + |11⟩|1⟩)/√2, and again the partners |0⟩, |1⟩ are orthogonal, so ρ12 = ½|00⟩⟨00| + ½|11⟩⟨11|.

Its purity is ½: mixed, not pure. It is exactly the coin-toss mixture of section 3 (⟨X ⊗ X⟩ = 0 on it), so qubits 1 and 2 alone show no coherence; the coherence of GHZ needs all three.

Hard

H1. Prove that for any two-qubit density operator ρAB (pure or mixed) and any unitary U on B, trB[(I ⊗ U)ρAB(I ⊗ U†)] = trB ρAB.

Show solution, H1

Write ρAB = Σk pk|ψk⟩⟨ψk| (any density operator can be written this way, for example from its eigen-decomposition). The partial trace is linear, so trB[(I ⊗ U)ρAB(I ⊗ U†)] = Σk pk trB[(I ⊗ U)|ψk⟩⟨ψk|(I ⊗ U†)].

For each pure term, section 5 shows the reduced state is Ck UT (UT)† Ck† = Ck Ck†. Summing gives Σk pk Ck Ck† = trB ρAB.

Direct proof without the decomposition: (ρA)ii′ = Σj ⟨ij|(I ⊗ U)ρ(I ⊗ U†)|i′j⟩ = Σl,l′ ρ(il),(i′l′) Σj Ujl Ujl′*, and Σj Ujl Ujl′* = (U†U)l′l = δll′.

Hard

H2. Compute S for the singlet |Ψ−⟩ = (|01⟩ − |10⟩)/√2 with the same angles as section 6 (a = 0, a′ = π/2, b = π/4, b′ = −π/4). Then give one change to the angles that makes S = +2√2 for the singlet.

Show solution, H2

For the singlet E(a, b) = −cos(a − b), so every term changes sign and S = −2√2 = −2.8284.

Since A(θ + π) = −A(θ), replacing Bob's angles b, b′ by b + π = 5π/4 and b′ + π = 3π/4 changes the sign of every E again (equivalently, Bob relabels his outcomes +1 ↔ −1), so S = +2√2.

Check: E(0, 5π/4) = −cos(5π/4) = √2/2; E(0, 3π/4) = −cos(3π/4) = √2/2; E(π/2, 5π/4) = −cos(3π/4) = √2/2; E(π/2, 3π/4) = −cos(π/4) = −√2/2.

S = √2/2 + √2/2 + √2/2 − (−√2/2) = 2√2.

Code

This lesson's code (Python 3.13, numpy 2.5; no Qiskit) checks every result above, including deliberate wrong cases that it must reject: a wrong ρA formula, a unitary on A, product states in CHSH, the coin-toss mixture against the Bell state, the conditional state against the reduced state. Ordering convention: the first qubit is the left tensor factor and the row index of C, as in Q0.

import numpy as np
X = np.array([[0, 1], [1, 0]]); Z = np.diag([1, -1])
phi = np.array([1, 0, 0, 1]) / np.sqrt(2)          # |Phi+>, order |00>,|01>,|10>,|11>
C = phi.reshape(2, 2)                               # coefficient matrix
print(np.linalg.svd(C, compute_uv=False))           # Schmidt coefficients [0.70710678 0.70710678]
print(C @ C.conj().T)                               # rho_A = [[0.5 0. ] [0.  0.5]]
A = lambda t: np.cos(t) * Z + np.sin(t) * X
E = lambda a, b: phi @ np.kron(A(a), A(b)) @ phi
a, ap, b, bp = 0, np.pi / 2, np.pi / 4, -np.pi / 4
print(E(a, b) + E(a, bp) + E(ap, b) - E(ap, bp))    # 2.82842712474619

Sources

  • CHSH 1969: J. F. Clauser, M. A. Horne, A. Shimony, R. A. Holt, "Proposed Experiment to Test Local Hidden-Variable Theories", Phys. Rev. Lett. 23 (15), 880–884, 13 Oct 1969, DOI 10.1103/PhysRevLett.23.880. Bibliographic record read 26 Nov 2026; paper body not opened. The inequality as stated here is derived in section 6, not quoted.
  • Tsirelson 1980: B. S. Cirel'son, "Quantum generalizations of Bell's inequality", Lett. Math. Phys. 4, 93–100 (1980), DOI 10.1007/BF00417500. Bibliographic record and abstract read (Springer, 26 Nov 2026); body not opened, so the attribution of the 2√2 bound to this paper is taken from secondary accounts, not from its text. The bound is proved in section 6.
  • Nielsen and Chuang, Quantum Computation and Quantum Information, 10th anniversary ed., CUP 2010, chapter 2: §2.2.8 (composite systems), §2.4 (density operator, including the reduced density operator), §2.5 (Schmidt decomposition; section number from secondary accounts, not checked), §2.6 (EPR and the Bell inequality). Titles of §2.2.8, §2.4 and §2.6 from the table of contents, read 22 Nov 2026; text not opened. No result in this lesson rests on the book's text: each is derived here and checked in code.
Next in the advanced track

Q2 · Circuits and universality (coming soon)