Two Qubits and Entanglement

Qubit Notes (3/3)

  1. Advanced Qubit Notes
  2. No-Cloning and Quantum State Tomography
  3. Two Qubits and Entanglement
Contents

The previous notes proved one thing in the chapter on tensor products: product states are not closed under addition, and the superposition principle forces entanglement into existence. But that was existence only — entanglement got a name, not an opening. These notes build it (two gates), detect it (one line), take it apart (density matrices and the partial trace), measure it (how mixed the parts are), and finally ask whether it is a conjuring trick at all (the CHSH value 222\sqrt2).

Everything from the first two installments is assumed: the tensor product rule, the projective-measurement recipe P=ψΠψP=\langle\psi|\Pi|\psi\rangle, the expectation-value sandwich, the Bloch sphere, and the no-cloning theorem. Exactly one new piece of mathematics appears — the trace — introduced in chapter 6, where it is first needed.

1. The read-write system for two qubits

The shape of a quantum circuit is locked down by two constraints: the no-cloning theorem forbids wires from branching (fan-out is identically 1, the conclusion of chapter 3 last time), and a unitary matrix is square, so kk wires in means kk wires out and they cannot merge either. Only one picture survives — nn parallel horizontal lines, gates as boxes sitting on them, the wire count conserved. The world of two lines starts here.

1.1 Components and coefficients: the addresses of four slots

The tensor product rule came last time, (pq)(rs)=(pr,ps,qr,qs)T\binom pq\otimes\binom rs=(pr,ps,qr,qs)^T, along with the four basis vectors it produces, 00=(1,0,0,0)T|00\rangle=(1,0,0,0)^T through 11=(0,0,0,1)T|11\rangle=(0,0,0,1)^T. What needs filling in is the correspondence between components and coefficients. One addition does it:

a00+b01+c10+d11=a(1000)+b(0100)+c(0010)+d(0001)=(abcd)a|00\rangle+b|01\rangle+c|10\rangle+d|11\rangle=a\begin{pmatrix}1\\0\\0\\0\end{pmatrix}+b\begin{pmatrix}0\\1\\0\\0\end{pmatrix}+c\begin{pmatrix}0\\0\\1\\0\end{pmatrix}+d\begin{pmatrix}0\\0\\0\\1\end{pmatrix}=\begin{pmatrix}a\\b\\c\\d\end{pmatrix}

The 1st component is the coefficient of 00|00\rangle, the 2nd that of 01|01\rangle, and so on; a2|a|^2 is the probability of measuring 00. The basis vectors obey the same rule: 00|00\rangle is the vector with ”a=1a=1, everything else 0”, hence (1,0,0,0)T(1,0,0,0)^T. (The single-qubit case was already like this: the first component of (αβ)\binom\alpha\beta is the coefficient of 0|0\rangle, while 0|0\rangle itself is (10)\binom10.)

The labels 00, 01, 10, 11 on the four components are binary counting, with the first qubit as the high bit:

  • the first qubit decides whether you are in the first two components or the last two;
  • the second qubit decides which of those two you are in.

This correspondence is the key to reading every 4×44\times4 matrix in these notes.

1.2 Side-by-side gates ABA\otimes B and the golden rule

States are now 4-dimensional vectors, so gates must be 4×44\times4 matrices. The simplest batch: two single-qubit gates each acting on one qubit, whose matrix is their tensor product (same rule as for vectors — every element on the left multiplies the entire matrix on the right):

U1U2=(abcd)U2=(aU2bU2cU2dU2)U_1\otimes U_2=\begin{pmatrix}a&b\\c&d\end{pmatrix}\otimes U_2=\begin{pmatrix}a\,U_2&b\,U_2\\c\,U_2&d\,U_2\end{pmatrix}

The golden rule (the mixed-product property):

(AB)(uv)=AuBv\boxed{(A\otimes B)\big(|u\rangle\otimes|v\rangle\big)=A|u\rangle\otimes B|v\rangle}

Physically: the qubit in u|u\rangle passes through gate A while the qubit in v|v\rangle passes through gate B, two machines each doing their own job with no communication between them — on a circuit diagram, two parallel lines each carrying a box, which is why they are called “side-by-side”.

Its practical value: when checking a calculation you never have to build the 4×44\times4. For instance,

(XX)10=X1X0=01=01(X\otimes X)|10\rangle=X|1\rangle\otimes X|0\rangle=|0\rangle\otimes|1\rangle=|01\rangle

The first equality hands out the assignments, the second has each X consult its table (X0=1, X1=0X|0\rangle=|1\rangle,\ X|1\rangle=|0\rangle) — X is consumed at that step and leaves an output behind, just as ff “vanishes” in f(3)=9f(3)=9.

Scope: this decomposition requires the input itself to be a product state. If it cannot be written as uv|u\rangle\otimes|v\rangle (such states show up shortly), expand it in the basis, apply the golden rule term by term, and add the results back; linearity makes that legal.

1.3 XIX\otimes I versus IXI\otimes X: ⊗ does not commute

“Doing nothing” has to be written out as II — the state is a 4-dimensional vector, and a 2×22\times2 X simply cannot multiply it.

XI=(0I1I1I0I)=(0010000110000100)X\otimes I=\begin{pmatrix}0\cdot I&1\cdot I\\1\cdot I&0\cdot I\end{pmatrix}=\begin{pmatrix}0&0&1&0\\0&0&0&1\\1&0&0&0\\0&1&0&0\end{pmatrix}

Multiplying 00|00\rangle, with all four rows written out:

(0010000110000100)(1000)=(01+00+10+0001+00+00+1011+00+00+0001+10+00+00)=(0010)=10\begin{pmatrix}0&0&1&0\\0&0&0&1\\1&0&0&0\\0&1&0&0\end{pmatrix}\begin{pmatrix}1\\0\\0\\0\end{pmatrix}=\begin{pmatrix}0{\cdot}1+0{\cdot}0+1{\cdot}0+0{\cdot}0\\0{\cdot}1+0{\cdot}0+0{\cdot}0+1{\cdot}0\\1{\cdot}1+0{\cdot}0+0{\cdot}0+0{\cdot}0\\0{\cdot}1+1{\cdot}0+0{\cdot}0+0{\cdot}0\end{pmatrix}=\begin{pmatrix}0\\0\\1\\0\end{pmatrix}=|10\rangle

All four basis vectors:

0010,0111,1000,110100\to10,\qquad 01\to11,\qquad 10\to00,\qquad 11\to01

In each line the first bit flips and the second does not — that is what ”XIX\otimes I = flip only the first qubit” means. On a general vector:

(XI)(abcd)=(cdab)(X\otimes I)\begin{pmatrix}a\\b\\c\\d\end{pmatrix}=\begin{pmatrix}c\\d\\a\\b\end{pmatrix}

The first two components swap wholesale with the last two, order preserved inside each half. Compare IXI\otimes X:

IX=(1X0X0X1X)=(0100100000010010),(IX)(abcd)=(badc)I\otimes X=\begin{pmatrix}1\cdot X&0\cdot X\\0\cdot X&1\cdot X\end{pmatrix}=\begin{pmatrix}0&1&0&0\\1&0&0&0\\0&0&0&1\\0&0&1&0\end{pmatrix},\qquad (I\otimes X)\begin{pmatrix}a\\b\\c\\d\end{pmatrix}=\begin{pmatrix}b\\a\\d\\c\end{pmatrix}

The halves do not swap; the two entries inside each half do — that is, only the second qubit flips. The two matrices look nothing alike, and the block form makes it obvious at a glance:

XI=(0II0) (flip the high bit: halves trade places),IX=(X00X) (flip the low bit: swap within each half)X\otimes I=\begin{pmatrix}0&I\\I&0\end{pmatrix}\ \text{(flip the high bit: halves trade places)},\qquad I\otimes X=\begin{pmatrix}X&0\\0&X\end{pmatrix}\ \text{(flip the low bit: swap within each half)}

The left and right slots of ⊗ are the qubit indices; they cannot be exchanged. When a circuit draws a gate on one line and leaves the others empty, the mathematical content is “that gate ⊗ a string of II‘s” (an H on qubit 2 of three qubits is IHII\otimes H\otimes I).

1.4 A trick worth keeping for life

column j of a matrix=where basis vector j goes\boxed{\text{column }j\text{ of a matrix}=\text{where basis vector }j\text{ goes}}

The reason: M00M|00\rangle is MM times (1,0,0,0)T(1,0,0,0)^T, and the row-by-row dot products pick out exactly the first column. Check: the first column of XIX\otimes I is (0,0,1,0)T=10(0,0,1,0)^T=|10\rangle ✓, matching the calculation above.

The converse holds too: knowing the truth table lets you write the matrix out one column at a time — which is exactly how the CNOT matrix gets built in the next chapter.

1.5 Unitarity: verify once, exempt forever

U1U2U_1\otimes U_2 is a freshly built matrix and needs its credentials checked; the worry is concrete, since modules that each pass on their own need not pass once assembled. Distribute the dagger slot by slot and use the matrix version of the golden rule, (AB)(CD)=ACBD(A\otimes B)(C\otimes D)=AC\otimes BD:

(U1U2)(U1U2)=(U1U1)(U2U2)=II=I (U_1\otimes U_2)^\dagger(U_1\otimes U_2)=(U_1^\dagger U_1)\otimes(U_2^\dagger U_2)=I\otimes I=I\ \checkmark

The two certificates are re-examined in their own slots without interfering — ⊗ preserves unitarity, so from now on gates may be placed side by side freely without rechecking.

1.6 The boundary: side-by-side gates can never create entanglement

The golden rule is itself the proof:

(AB)(uv)=Ausingle-qubit stateBvsingle-qubit state(A\otimes B)\big(|u\rangle\otimes|v\rangle\big)=\underbrace{A|u\rangle}_{\text{single-qubit state}}\otimes\underbrace{B|v\rangle}_{\text{single-qubit state}}

Product state in, product state out. Making two qubits genuinely “talk” requires a gate that cannot be decomposed as ABA\otimes B.

2. Controlled gates: installing the action on one half

2.1 CNOT: truth table → matrix → block reading

Two sentences of rule (basis states only, for now): control is 0 → do nothing; control is 1 → apply UU to the target. Take U=XU=X (that is CNOT, control = qubit 1, target = qubit 2) and apply the rule case by case:

0000,0101,1011,111000\to00,\qquad 01\to01,\qquad 10\to11,\qquad 11\to10

Using the trick of §1.4, copy the four destinations down as four columns:

CNOT=(1000010000010010),CNOT(abcd)=(abdc)\mathrm{CNOT}=\begin{pmatrix}1&0&0&0\\0&1&0&0\\0&0&0&1\\0&0&1&0\end{pmatrix},\qquad \mathrm{CNOT}\begin{pmatrix}a\\b\\c\\d\end{pmatrix}=\begin{pmatrix}a\\b\\d\\c\end{pmatrix}

That last formula — first two fixed, last two swapped — gets used over and over below.

Block reading: the first two components (control = 0) are preserved as they are, so the top-left block is II; the last two (control = 1) swap internally, so the bottom-right block is XX:

CNOT=(I00X),in generalC-U=(I00U)\mathrm{CNOT}=\begin{pmatrix}I&0\\0&X\end{pmatrix},\qquad\text{in general}\quad \text{C-}U=\begin{pmatrix}I&0\\0&U\end{pmatrix}

What “controlled” means is plain in the blocks: the action is installed only on the half where the control is 1. Contrast §1.3’s XI=(0II0)X\otimes I=\begin{pmatrix}0&I\\I&0\end{pmatrix}, which is unconditional. Unitarity comes free: diag(I,U)diag(I,U)=diag(I,UU)=I\mathrm{diag}(I,U)^\dagger\mathrm{diag}(I,U)=\mathrm{diag}(I,U^\dagger U)=I

Circuit notation: a filled dot on the control line, a vertical stroke down to a box on the target line; the target end of a CNOT is abbreviated ⊕.

2.2 XOR compiled into physics

One line summarizes the truth table: target ^= control. This picks up the thread of reversible computation — classical AND takes two in and gives one out, destroys information, is irreversible, and must be rewritten before it can enter a quantum circuit; XOR, on the other hand, is reversible for free as long as the control bit is kept. CNOT is that reversible XOR, and it is its own inverse: (a,b,d,c)(a,b,d,c) run through again returns (a,b,c,d)(a,b,c,d), so CNOT2=I\mathrm{CNOT}^2=I.

Last time it wore another hat: the orthogonal-state copier0000|00\rangle\to|00\rangle, 1011|10\rangle\to|11\rangle. On the two orthogonal states 0 and 1 it really is copying, and that is the entire essence of classical copying. What follows shows what it becomes when fed non-orthogonal inputs.

2.3 An “if” that is unitary, not a measurement

A classical if reads the control bit first and then decides. In quantum mechanics “reading” = measuring = collapse. Compare two machines, both fed +0|+\rangle\otimes|0\rangle:

Machine A (measure, then act): measure the control → 50% gives 0 (output 00|00\rangle), 50% gives 1 (output 11|11\rangle). The output is one of two at random, the superposition destroyed, the process irreversible.

Machine B (CNOT): one matrix multiplication. First compute the input:

+0=12(11)(10)=12(1010)|+\rangle\otimes|0\rangle=\frac{1}{\sqrt2}\binom11\otimes\binom10=\frac{1}{\sqrt2}\begin{pmatrix}1\\0\\1\\0\end{pmatrix}

Apply (a,b,c,d)(a,b,d,c)(a,b,c,d)\to(a,b,d,c):

CNOT12(1010)=12(1001)=12(00+11)\mathrm{CNOT}\cdot\frac{1}{\sqrt2}\begin{pmatrix}1\\0\\1\\0\end{pmatrix}=\frac{1}{\sqrt2}\begin{pmatrix}1\\0\\0\\1\end{pmatrix}=\frac{1}{\sqrt2}\big(|00\rangle+|11\rangle\big)

Definite input, definite output, no probability, no reading, no randomness, and fully reversible. That is the whole content of “this is not a measurement”: nothing looks at the control bit, and the two branches coexist inside the superposition (each carrying its control-bit amplitude) rather than one being chosen. The if-intuition is a nickname that works only on basis states; off them, it has to go.

2.4 Phase kickback: even “only the target changes” is false

Feed in +|+\rangle\otimes|-\rangle. As a 4-dimensional vector:

+=12(11)12(11)=12(1111)|+\rangle\otimes|-\rangle=\frac{1}{\sqrt2}\binom11\otimes\frac{1}{\sqrt2}\binom1{-1}=\frac12\begin{pmatrix}1\\-1\\1\\-1\end{pmatrix}

Apply the formula:

CNOT12(1111)=12(1111)\mathrm{CNOT}\cdot\frac12\begin{pmatrix}1\\-1\\1\\-1\end{pmatrix}=\frac12\begin{pmatrix}1\\-1\\-1\\1\end{pmatrix}

Try to split it as (pq)(rs)\binom pq\otimes\binom rs with p=r=12, q=s=12p=r=\tfrac{1}{\sqrt2},\ q=s=-\tfrac{1}{\sqrt2}: pr=12pr=\tfrac12 ✓, ps=12ps=-\tfrac12 ✓, qr=12qr=-\tfrac12 ✓, qs=12qs=\tfrac12 ✓. So the output is |-\rangle\otimes|-\rangle:

+  |+\rangle\otimes|-\rangle\ \longrightarrow\ |-\rangle\otimes|-\rangle

The target did not change; the control did. The mechanism is shorter through eigenvectors: |-\rangle is an eigenvector of XX with X=X|-\rangle=-|-\rangle. On the 1|1\rangle branch of the control, applying X leaves the target alone and produces an overall 1-1; on its own that 1-1 is a global phase, but because the control is in superposition it becomes a relative phase inside the control, turning +|+\rangle into |-\rangle. This is phase kickback, and the oracle tricks of Deutsch and Grover are all built on it.

(It is also another appearance of the principle from last time: a global phase is unobservable when it acts on the whole system, and demotes itself into a measurable relative phase the moment it acts on only one branch of a superposition.)

2.5 The shortest recipe for entanglement

CNOT only does its work with a control in superposition, and the hardware naturally hands you 00|00\rangle, so push the control into superposition with H first:

HI=12(1010010110100101),(HI)00=H00=+0H\otimes I=\frac{1}{\sqrt2}\begin{pmatrix}1&0&1&0\\0&1&0&1\\1&0&-1&0\\0&1&0&-1\end{pmatrix},\qquad (H\otimes I)|00\rangle=H|0\rangle\otimes|0\rangle=|+\rangle\otimes|0\rangle

That is exactly the input from §2.3, so run it through CNOT:

00  HI  +0  CNOT  12(00+11)\boxed{|00\rangle\ \xrightarrow{\ H\otimes I\ }\ |+\rangle\otimes|0\rangle\ \xrightarrow{\ \mathrm{CNOT}\ }\ \frac{1}{\sqrt2}\big(|00\rangle+|11\rangle\big)}

Two gates, one entangled state. This is the first line of code in a whole family of protocols, teleportation and superdense coding among them.

2.6 When entanglement is created

ConfigurationOutputEntangled?
Side-by-side ABA\otimes B, any inputproduct in, product out (§1.6)no
CNOT with a basis-state controlplain classical XOR, still a product stateno
CNOT with a superposed controltwo branches coexisting and inseparableyes

The second row is precisely the “orthogonal-state copier” face from last time; the third is its other face — feed it a non-orthogonal superposition, copying fails, and entanglement comes out instead. Creating entanglement is not an accident of CNOT; it is its day job.

One structural fact follows: CNOT cannot be written as any ABA\otimes B — if it could, it would only ever output product states, contradicting the Bell output above. The U1U2U_1\otimes U_2 family is a very small subset of the 4×44\times4 unitaries, just as product states are a very small part of the 4-dimensional state space.

3. Separable versus entangled: one line of criterion

3.1 The quantifiers are asymmetric

Separable = product state = not entangled: there exist single-qubit states with ψ=ψ1ψ2|\psi\rangle=|\psi_1\rangle\otimes|\psi_2\rangle. Entangled = not separable.

The asymmetry of the quantifiers settles how hard each is to prove: separability is existential, so exhibiting one factorization wins; entanglement is universal, so every possible factorization must be excluded (by contradiction or by a criterion). “I tried a few and none worked” is not a proof.

Factoring is just pulling out a common factor:

12(10+11)=112(0+1)=1+\frac{1}{\sqrt2}\big(|10\rangle+|11\rangle\big)=|1\rangle\otimes\frac{1}{\sqrt2}\big(|0\rangle+|1\rangle\big)=|1\rangle\otimes|+\rangle

It looks like a joint state, but it is two independent stories: qubit 1 is 1|1\rangle, qubit 2 is +|+\rangle.

3.2 The criterion ad=bcad=bc

Last time 12(00+11)\tfrac{1}{\sqrt2}(|00\rangle+|11\rangle) was shown inseparable by contradiction. Doing that every time is clumsy; for a general state (a,b,c,d)T(a,b,c,d)^T there is a mechanical test:

separable    ad=bc\boxed{\text{separable}\iff ad=bc}

Forward: if it factors, (a,b,c,d)=(pr,ps,qr,qs)(a,b,c,d)=(pr,ps,qr,qs), so ad=(pr)(qs)=pqrsad=(pr)(qs)=pqrs and bc=(ps)(qr)=pqrsbc=(ps)(qr)=pqrs — the same four factors, hence equal. Backward: suppose ad=bcad=bc with a0a\ne0 and take (ac)(ab)=(a2,ab,ca,cb)T\binom ac\otimes\binom ab=(a^2,ab,ca,cb)^T; the first three entries differ from (a,b,c,d)(a,b,c,d) by the common factor aa, and the fourth, cb=bc=adcb=bc=ad (by the criterion), differs by the same factor, so the two are proportional and normalization finishes the job (the case a=0a=0 goes the same way by cases) ∎

Checking the two protagonists:

  • 1+=12(0,0,1,1)T|1\rangle\otimes|+\rangle=\tfrac{1}{\sqrt2}(0,0,1,1)^T: ad=0=bcad=0=bcseparable
  • 12(1,0,0,1)T\tfrac{1}{\sqrt2}(1,0,0,1)^T: ad=120=bcad=\tfrac12\ne0=bcentangled

A measuring stick comes free: 2adbc2|ad-bc| has a name, the concurrence, and it measures how strong the entanglement is — 0 for a product state, 1 for the strongest entangled states. The criterion does not merely detect; it quantifies.

3.3 Entanglement comes in degrees

Bell states are the extreme case, and the middle ground genuinely exists:

3500+2511=(0.6,0,0,0.4)T\sqrt{\tfrac35}|00\rangle+\sqrt{\tfrac25}|11\rangle=\big(\sqrt{0.6},\,0,\,0,\,\sqrt{0.4}\big)^T

Same shape as 12(00+11)\tfrac{1}{\sqrt2}(|00\rangle+|11\rangle), but with unbalanced amplitudes. Here ad=0.240.490=bcad=\sqrt{0.24}\approx0.49\ne0=bc, so it is genuinely entangled, yet the concurrence is 20.240.98<12\sqrt{0.24}\approx0.98<1 — close, but not maxed out.

Where is the difference? Measure the first qubit: P(0)=(0.6)2=3512P(0)=(\sqrt{0.6})^2=\tfrac35\ne\tfrac12. The correlation is still perfect (read 0 and the other side must be 0), but there is less shared randomness — you can already guess that 0 is the likely answer. Maximal entanglement tops out precisely because it is both perfectly correlated and perfectly random.

As for what should quantify entanglement in general, 2adbc2|ad-bc| only works for pure two-qubit states. The real answer waits until chapter 7, where the tool generalizes to any system.

4. Bell states and the Bell basis

4.1 The quartet

The state built in §2.5 is not a one-off; it belongs to a family of four:

Φ+=12(00+11),Φ=12(0011)|\Phi^+\rangle=\frac{1}{\sqrt2}\big(|00\rangle+|11\rangle\big),\qquad |\Phi^-\rangle=\frac{1}{\sqrt2}\big(|00\rangle-|11\rangle\big) Ψ+=12(01+10),Ψ=12(0110)|\Psi^+\rangle=\frac{1}{\sqrt2}\big(|01\rangle+|10\rangle\big),\qquad |\Psi^-\rangle=\frac{1}{\sqrt2}\big(|01\rangle-|10\rangle\big)

The naming runs along two dimensions: the Greek letter records whether the two bits agree (Φ\Phi uses 00 and 11, the same; Ψ\Psi uses 01 and 10, opposite), and the superscript ±\pm records the relative phase. As column vectors:

Φ±=12(100±1),Ψ±=12(01±10)|\Phi^\pm\rangle=\frac{1}{\sqrt2}\begin{pmatrix}1\\0\\0\\\pm1\end{pmatrix},\qquad |\Psi^\pm\rangle=\frac{1}{\sqrt2}\begin{pmatrix}0\\1\\\pm1\\0\end{pmatrix}

The criterion verifies in one second that all four are entangled: for the Φ\Phi family ad=±12, bc=0ad=\pm\tfrac12,\ bc=0; for the Ψ\Psi family ad=0, bc=±12ad=0,\ bc=\pm\tfrac12. And every concurrence is maxed out at 1, which is why they are called maximally entangled states.

The correlation signature: take Φ+|\Phi^+\rangle and measure only the first qubit. Probability 12\tfrac12 gives 0 and collapses to 00|00\rangle (the other side is 0 too); probability 12\tfrac12 gives 1 and collapses to 11|11\rangle (the other side is 1 too). The Φ\Phi family agrees on both sides, the Ψ\Psi family disagrees. But either side alone is always a fair 50/50 coin; the correlation appears only when the two records are compared. Chapter 7 builds “entanglement cannot signal” on exactly this fact.

4.2 The Bell basis: a coordinate system made of entangled states

The four Bell states are mutually orthogonal. Verifying two pairs (inner product = conjugate-multiply matching components and sum):

Φ+Φ=12(11+0+0+1(1))=0 ,Φ+Ψ+=12(0+0+0+0)=0 \langle\Phi^+|\Phi^-\rangle=\frac12\big(1{\cdot}1+0+0+1{\cdot}(-1)\big)=0\ \checkmark,\qquad \langle\Phi^+|\Psi^+\rangle=\frac12\big(0+0+0+0\big)=0\ \checkmark

(Between the Φ\Phi and Ψ\Psi families the nonzero positions are completely disjoint, so the inner product has to vanish.) Four normalized, mutually orthogonal vectors form a complete orthogonal basis of the 4-dimensional space: the Bell basis.

It is worth weighing what that means. This 4-dimensional space was built out of product states, and yet a basis consisting entirely of entangled states turns out to be equally legitimate. Any two-qubit state can be expanded in {00,01,10,11}\{|00\rangle,|01\rangle,|10\rangle,|11\rangle\} or in {Φ±,Ψ±}\{|\Phi^\pm\rangle,|\Psi^\pm\rangle\}neither basis is more “real” than the other.

4.3 The H-then-CNOT circuit is a dictionary

The recipe of §2.5 works on 00|00\rangle. Feed the other three basis states to the same circuit CNOT(HI)\mathrm{CNOT}\cdot(H\otimes I):

Input 01|01\rangle: (HI)01=+1=12(0,1,0,1)T(H\otimes I)|01\rangle=|+\rangle\otimes|1\rangle=\tfrac{1}{\sqrt2}(0,1,0,1)^T; the formula sends (0,1,0,1)(0,1,1,0)(0,1,0,1)\to(0,1,1,0), giving Ψ+|\Psi^+\rangle.

Input 10|10\rangle: (HI)10=0=12(1,0,1,0)T(H\otimes I)|10\rangle=|-\rangle\otimes|0\rangle=\tfrac{1}{\sqrt2}(1,0,-1,0)^T; the formula gives 12(1,0,0,1)T=Φ\tfrac{1}{\sqrt2}(1,0,0,-1)^T=|\Phi^-\rangle.

Input 11|11\rangle: (HI)11=1=12(0,1,0,1)T(H\otimes I)|11\rangle=|-\rangle\otimes|1\rangle=\tfrac{1}{\sqrt2}(0,1,0,-1)^T; the formula gives 12(0,1,1,0)T=Ψ\tfrac{1}{\sqrt2}(0,1,-1,0)^T=|\Psi^-\rangle.

InputOutputInputOutput
00\vert00\rangleΦ+\vert\Phi^+\rangle10\vert10\rangleΦ\vert\Phi^-\rangle
01\vert01\rangleΨ+\vert\Psi^+\rangle11\vert11\rangleΨ\vert\Psi^-\rangle

The pattern can be read straight out of the calculations: the first input bit sets the phase ±\pm (since H0=+H|0\rangle=|+\rangle has matching signs and H1=H|1\rangle=|-\rangle opposite ones, and CNOT carries that minus sign into the result untouched); the second input bit picks Φ\Phi or Ψ\Psi (it is the target’s initial value, which decides whether the final two bits agree or differ). Two input bits control two output properties without interfering — a one-to-one dictionary.

4.4 Decoding: run the circuit backwards

The reverse problem: someone hands you two qubits, guaranteed to be one of the four Bell states. Which one?

The naive approach fails. Φ+|\Phi^+\rangle and Φ|\Phi^-\rangle differ only by a minus sign, and measuring directly returns the squared moduli of the components:

P(00)=±122=12,P(11)=12P(00)=\Big|\pm\tfrac{1}{\sqrt2}\Big|^2=\tfrac12,\qquad P(11)=\tfrac12

The minus sign is eaten by the modulus squared — the two states give identical statistics. This is the two-qubit reprise of “measuring Z is blind to longitude” from last time.

The fix: since the generating circuit U=CNOT(HI)U=\mathrm{CNOT}\cdot(H\otimes I) maps the computational basis one-to-one onto the Bell basis, its inverse sends the Bell basis back to the computational basis. Quantum gates are always invertible, and the inverse circuit is the reverse order with each gate daggered:

U=(HI)CNOT=(HI)CNOTU^\dagger=(H\otimes I)^\dagger\cdot\mathrm{CNOT}^\dagger=(H\otimes I)\cdot\mathrm{CNOT}

(Both gates are their own inverses: H2=IH^2=I and CNOT2=I\mathrm{CNOT}^2=I.) The circuit is CNOT first, then H on the first qubit, then measure both — exactly the reverse of the generating circuit. Verifying by hand with Φ|\Phi^-\rangle:

12(1,0,0,1)T  CNOT  12(1,0,1,0)T=0  HI  10=10\tfrac{1}{\sqrt2}(1,0,0,-1)^T\ \xrightarrow{\ \mathrm{CNOT}\ }\ \tfrac{1}{\sqrt2}(1,0,-1,0)^T=|-\rangle\otimes|0\rangle\ \xrightarrow{\ H\otimes I\ }\ |1\rangle\otimes|0\rangle=|10\rangle

Reading out 10 ✓, matching the dictionary. The full result: Φ+00|\Phi^+\rangle\to00, Ψ+01|\Psi^+\rangle\to01, Φ10|\Phi^-\rangle\to10, Ψ11|\Psi^-\rangle\to11.

The point is the word “definite”: given one of the four Bell states, the output is not random — after decoding, the state lands exactly on a computational basis state, so the measurement necessarily gives a definite result. The identity of an entangled pair is translated losslessly into two classical bits. The operation is called a Bell measurement, and it is the core step of teleportation and superdense coding.

The general principle it embodies is the same one behind “measuring X ≡ padding an H and then measuring Z” from last time: if the information you want is not in the computational basis, rotate it there with a unitary gate first, then measure ordinarily.

4.5 The tap in the laboratory

So far every Bell state has been “built with gates in a circuit”. Optics labs have a physical process that produces entanglement directly: spontaneous parametric down-conversion (SPDC) — an intense laser (the pump, frequency ωp\omega_p) strikes a special crystal, and occasionally one pump photon splits into two lower-energy photons, with energy conservation giving ωp=ω1+ω2\omega_p=\omega_1+\omega_2.

Here is where the entanglement comes from. The two “daughter photons” emerge along two cones, photons on one cone vertically polarized (V) and on the other horizontally (H). The two cones intersect along two lines, and a photon coming out along an intersection line belongs to both cones at once, so its polarization has no definite value — it is a superposition of H and V; meanwhile conservation requires the two photons’ polarizations to be opposite. Put the two constraints together and the pair’s joint state is

12(HV+VH)\frac{1}{\sqrt2}\big(|HV\rangle+|VH\rangle\big)

With the encoding 0=H|0\rangle=|H\rangle and 1=V|1\rangle=|V\rangle, this is precisely Ψ+|\Psi^+\rangle.

Worth a pause: there is no CNOT and no gate here. Entanglement is not “two independent particles correlated by a gate afterwards” — it comes out naturally when one particle splits, with the conservation law itself as the generating mechanism. This source is the hardware behind most quantum key distribution demonstrations and Bell experiments, and an undergraduate teaching lab can build one.

5. Measuring two qubits

5.1 Measuring both: four projectors

The projective-measurement recipe from last time upgrades without a single change. The four projectors are four outer products:

Π00=0000=(1000)(1  0  0  0)=(1000000000000000)\Pi_{00}=|00\rangle\langle00|=\begin{pmatrix}1\\0\\0\\0\end{pmatrix}(1\;0\;0\;0)=\begin{pmatrix}1&0&0&0\\0&0&0&0\\0&0&0&0\\0&0&0&0\end{pmatrix}

The other three put a 1 in the 2nd, 3rd, or 4th diagonal slot. Hermitian and idempotent (the diagonal entries satisfy 12=11^2=1, 02=00^2=0) ✓. For ψ=(a00,a01,a10,a11)T|\psi\rangle=(a_{00},a_{01},a_{10},a_{11})^T:

Π01ψ=(0,a01,0,0)T,P(01)=ψΠ01ψ=a01a01=a012\Pi_{01}|\psi\rangle=(0,a_{01},0,0)^T,\qquad P(01)=\langle\psi|\Pi_{01}|\psi\rangle=a_{01}^*a_{01}=|a_{01}|^2

and the post-measurement state is 01|01\rangle. Four components, four probabilities, two classical bits out — the Born rule with a wider bus, no new mechanism.

5.2 Measuring one: projector ⊗ identity

To measure qubit 1 without touching qubit 2, the instrument is Π0I\Pi_0\otimes I:

M0=Π0I=(1000010000000000),M0(a00a01a10a11)=(a00a0100)M_0=\Pi_0\otimes I=\begin{pmatrix}1&0&0&0\\0&1&0&0\\0&0&0&0\\0&0&0&0\end{pmatrix},\qquad M_0\begin{pmatrix}a_{00}\\a_{01}\\a_{10}\\a_{11}\end{pmatrix}=\begin{pmatrix}a_{00}\\a_{01}\\0\\0\end{pmatrix}

Branches whose first bit is 1 are zeroed; branches whose first bit is 0 survive untouched, along with their relative magnitudes and phases. Compare §5.1: measuring both qubits leaves one branch, measuring one leaves a whole group of branches.

P(first bit reads 0)=ψM0ψ=a002+a012,ψafter=M0ψP=a0000+a0101a002+a012P(\text{first bit reads }0)=\langle\psi|M_0|\psi\rangle=|a_{00}|^2+|a_{01}|^2,\qquad |\psi_{\text{after}}\rangle=\frac{M_0|\psi\rangle}{\sqrt P}=\frac{a_{00}|00\rangle+a_{01}|01\rangle}{\sqrt{|a_{00}|^2+|a_{01}|^2}}

Dividing by P\sqrt P is needed because projection cut away the incompatible branches and the length is no longer 1; renormalizing is the old habit. The recipe is unchanged; only Π\Pi became ΠI\Pi\otimes I.

5.3 On a product state, measurement is local

Take ψ=12(1,1,1,1)T|\psi\rangle=\tfrac12(1,1,1,1)^T and measure qubit 1:

M1ψ=12(0,0,1,1)T,P(1)=14+14=12M_1|\psi\rangle=\tfrac12(0,0,1,1)^T,\qquad P(1)=\tfrac14+\tfrac14=\tfrac12

Suppose the result is 1; normalizing (with P=12\sqrt P=\tfrac{1}{\sqrt2}):

ψafter=12(0,0,1,1)T1/2=12(0011)=1+|\psi_{\text{after}}\rangle=\frac{\tfrac12(0,0,1,1)^T}{1/\sqrt2}=\frac{1}{\sqrt2}\begin{pmatrix}0\\0\\1\\1\end{pmatrix}=|1\rangle\otimes|+\rangle

Reading the result: the measured qubit 1 collapsed to 1|1\rangle, while qubit 2 is still in the superposition +|+\rangle — coherent, unmeasured, free to pass through more gates (measuring X on it gives + with certainty, not a random 0 or 1). And in the input 12(1,1,1,1)T=++\tfrac12(1,1,1,1)^T=|+\rangle\otimes|+\rangle qubit 2 was already +|+\ranglenot a finger was laid on it, before or after. That is what “the violence of measurement lands only on what is measured” means, for product states.

5.4 On an entangled state, the far half settles

Run Φ+=12(1,0,0,1)T|\Phi^+\rangle=\tfrac{1}{\sqrt2}(1,0,0,1)^T through the same procedure, measuring qubit 1:

P(0)=12,ψafter=12(1,0,0,0)T1/2=(1,0,0,0)T=00P(0)=\tfrac12,\qquad |\psi_{\text{after}}\rangle=\frac{\tfrac{1}{\sqrt2}(1,0,0,0)^T}{1/\sqrt2}=(1,0,0,0)^T=|0\rangle\otimes|0\rangle

(A result of 1 gives 11|1\rangle\otimes|1\rangle the same way.)

Compare §5.3: there qubit 2 was +|+\rangle before and after, untouched; here only qubit 1 was measured — even a kilometre away — and qubit 2 becomes a definite 0|0\rangle on the spot, with the two results perfectly correlated forever. The same formula: gentle and local on a product state, reaching across space to change the other side’s situation on an entangled one.

One preemptive clarification: this cannot send a message faster than light — looking only at qubit 2’s local statistics, whether or not the other side measured and whatever they got, the answer is 50/50. The full proof has to wait for §7.8, because it needs a tool that does not exist yet.

5.5 The open case: what qubit 2 was before the measurement

The claim that qubit 2 has no definite state of its own is not rhetoric but a verifiable assertion. For Φ+|\Phi^+\rangle:

  • measuring Z on qubit 2: P(0)=a002+a102=12P(0)=|a_{00}|^2+|a_{10}|^2=\tfrac12;
  • expanding in the X basis (substituting 0=12(++)|0\rangle=\tfrac{1}{\sqrt2}(|+\rangle+|-\rangle) and 1=12(+)|1\rangle=\tfrac{1}{\sqrt2}(|+\rangle-|-\rangle)):
12(00+11)=12(0++0+1+1)\frac{1}{\sqrt2}\big(|0\rangle|0\rangle+|1\rangle|1\rangle\big)=\frac12\big(|0\rangle|+\rangle+|0\rangle|-\rangle+|1\rangle|+\rangle-|1\rangle|-\rangle\big)

measuring X on qubit 2 gives P(+)=122+122=12P(+)=\big|\tfrac12\big|^2+\big|\tfrac12\big|^2=\tfrac12. The Y basis behaves the same way, again 50/50.

Every pure state has a Bloch direction of its own, and measuring along that direction gives a certain result. Qubit 2 answers 50/50 in every direction — so no pure state can describe it. It is not 0|0\rangle, not +|+\rangle, not any point on the sphere.

When the previous notes distinguished ”+|+\rangle (on the surface, quantum superposition)” from “the centre (classical ignorance)”, the centre was still an abstract role. Its occupant has now been found: the local part of an entangled whole lives at the centre of the sphere. Giving that “part” a legitimate language requires a container bigger than a ket.

6. Density matrices: what a ket cannot hold

6.0 The new tool: the trace

The only new piece of mathematics in these notes. The trace of a matrix is the sum of its diagonal entries:

Tr(abcd)=a+d\mathrm{Tr}\begin{pmatrix}a&b\\c&d\end{pmatrix}=a+d

For example Tr[00]=1+0=1\mathrm{Tr}\big[|0\rangle\langle0|\big]=1+0=1 and Tr[++]=12+12=1\mathrm{Tr}\big[|+\rangle\langle+|\big]=\tfrac12+\tfrac12=1. The property needed below is cyclicity: Tr[AB]=Tr[BA]\mathrm{Tr}[AB]=\mathrm{Tr}[BA]. That is all.

6.1 A puzzle: two machines

Picture two machines, each emitting a stream of qubits:

  • Machine P (pure): every qubit is prepared in the same state +|+\rangle.
  • Machine M (mixed): each time it first flips a hidden fair coin — heads prepares 0|0\rangle, tails prepares 1|1\rangle.

Measure both streams in the computational basis. Each of machine P’s +|+\rangle gives 0 or 1 with probability 12\tfrac12 by the Born rule; half of machine M’s qubits are 0|0\rangle (certain to read 0) and half are 1|1\rangle (certain to read 1), which is still 50/50 statistically. The statistics are identical, yet the two situations are physically nothing alike:

Machine PMachine M
state of each qubitdefinitely +\vert+\rangleeither 0\vert0\rangle or 1\vert1\rangle
where the randomness comes fromborn at the moment of measurement (quantum)fixed at preparation; we merely do not know (classical ignorance)

The trouble is that machine M cannot be described by a ket at all. ”0|0\rangle or 1|1\rangle, 50% each” is not a ket, and forcing it into 12(0+1)\tfrac{1}{\sqrt2}(|0\rangle+|1\rangle) is simply wrong — that is +|+\rangle, which is machine P.

The open case of §5.5 needs exactly the same container.

6.2 The density operator

Definition: an ensemble that “is in state ψi|\psi_i\rangle with classical probability pip_i” is described by a density operator (also called a density matrix):

ρ=ipiψiψi(pi0, ipi=1)\boxed{\rho=\sum_i p_i\,|\psi_i\rangle\langle\psi_i|}\qquad\big(p_i\ge0,\ \textstyle\sum_i p_i=1\big)

The division of labour is clean: the outer product ψiψi|\psi_i\rangle\langle\psi_i| holds the quantum superposition (the amplitudes and phases inside each ket), and the real weight pip_i holds the classical probability (we do not know which one was drawn). Two kinds of uncertainty are stored in one object, in separate layers, without being confused.

Pure states are the special case: with a single term, ρ=ψψ\rho=|\psi\rangle\langle\psi|. Anything requiring more terms is a mixed state. Note that the ψi|\psi_i\rangle in the definition are not required to be orthogonal.

The two machines’ density matrices:

ρP=++=(12121212),ρM=1200+1211=(120012)=I2\rho_P=|+\rangle\langle+|=\begin{pmatrix}\tfrac12&\tfrac12\\[2pt]\tfrac12&\tfrac12\end{pmatrix},\qquad \rho_M=\tfrac12|0\rangle\langle0|+\tfrac12|1\rangle\langle1|=\begin{pmatrix}\tfrac12&0\\[2pt]0&\tfrac12\end{pmatrix}=\frac I2

6.3 The diagonal is probability, the off-diagonal is phase

The two matrices differ in exactly two slots. Diagonal entries = measurement probabilities in the computational basis: P(0)=ρ00P(0)=\rho_{00}, P(1)=ρ11P(1)=\rho_{11}, and both matrices have diagonal (12,12)(\tfrac12,\tfrac12) — that is the mathematical origin of “identical statistics”. Off-diagonal entries = coherences, recording the phase relation between 0|0\rangle and 1|1\rangle: ρP\rho_P has 12\tfrac12 off the diagonal (a genuine coherent superposition), ρM\rho_M has 0 (there never were “two components”, so phase is meaningless).

What a general pure state’s ρ\rho looks like is most convincing when computed yourself. With ψ=α0+β1|\psi\rangle=\alpha|0\rangle+\beta|1\rangle:

ρ=(αβ)(α    β)=(αααββαββ)=(α2αβαββ2)\rho=\binom\alpha\beta(\alpha^*\;\;\beta^*)=\begin{pmatrix}\alpha\alpha^*&\alpha\beta^*\\\beta\alpha^*&\beta\beta^*\end{pmatrix}=\begin{pmatrix}|\alpha|^2&\alpha\beta^*\\ \alpha^*\beta&|\beta|^2\end{pmatrix}

The diagonal holds probabilities (moduli squared, phase eaten), and the off-diagonal holds αβ\alpha\beta^*exactly the angle between the two arrows, the relative phase the first installment chased for a whole article. Here it finally gets a slot of its own.

This also makes an important phenomenon literally visible. The number one enemy of a real quantum computer is decoherence — the environment keeps “peeking” at the qubit and phase leaks into the surroundings. On the matrix that is precisely the off-diagonal entries decaying to 0, ρP\rho_P slowly turning into ρM\rho_M. That is where the name comes from.

6.4 Different recipes, the same ρ\rho

Compute one more recipe: flip a coin to decide between preparing +|+\rangle and |-\rangle. The outer product is =12(1111)|-\rangle\langle-|=\tfrac12\begin{pmatrix}1&-1\\-1&1\end{pmatrix}, so

12+++12=(14+141414141414+14)=I2\tfrac12|+\rangle\langle+|+\tfrac12|-\rangle\langle-|=\begin{pmatrix}\tfrac14+\tfrac14&\tfrac14-\tfrac14\\[2pt]\tfrac14-\tfrac14&\tfrac14+\tfrac14\end{pmatrix}=\frac I2

Exactly machine M. Two utterly different preparation procedures give the same ρ\rho.

This is not a defect but a feature: ensembles with the same ρ\rho cannot be told apart by any measurement, since every measurement probability is determined by ρ\rho. So ρ\rho holds exactly “everything knowable, and nothing more”, discarding the surplus history automatically. It is the same principle that discarded the global phase last time: a difference that cannot be measured is not a physical difference.

6.5 Credentials and purity

Not every matrix qualifies as a ρ\rho. Three credentials plus a measuring stick:

① Hermitian: ρ=ρ\rho^\dagger=\rho, which follows from the definition (each outer product is Hermitian and the weights are real). Consequence: all eigenvalues are real.

② Unit trace: Tr[ρ]=1\mathrm{Tr}[\rho]=1. The diagonal entries are probabilities of outcomes, and the total must be 1. Check: Tr[ρP]=12+12=1\mathrm{Tr}[\rho_P]=\tfrac12+\tfrac12=1 ✓ and Tr[I/2]=1\mathrm{Tr}[I/2]=1

③ Positive semidefinite: all eigenvalues 0\ge0. Hermiticity only guarantees real eigenvalues, but probabilities cannot be negative. Together ② and ③ say that the eigenvalues of ρ\rho themselves form a probability distribution.

④ Purity: Tr[ρ2]\mathrm{Tr}[\rho^2], a measuring stick for how mixed a state is. With eigenvalues λi\lambda_i, Tr[ρ2]=iλi2\mathrm{Tr}[\rho^2]=\sum_i\lambda_i^2; since λi=1\sum\lambda_i=1 with all terms non-negative, the sum of squares is largest when one λ=1\lambda=1 and the rest vanish (value 1, a pure state) and smallest when they are equal (for one qubit λ1=λ2=12\lambda_1=\lambda_2=\tfrac12, value 12\tfrac12). For Hermitian matrices there is a convenient shortcut: Tr[ρ2]=i,jρij2\mathrm{Tr}[\rho^2]=\sum_{i,j}|\rho_{ij}|^2, the sum of the squared moduli of all entries. Check:

Tr[ρP2]=(12)2×4=1 (pure),Tr[ρM2]=(12)2+0+0+(12)2=12\mathrm{Tr}[\rho_P^2]=\big(\tfrac12\big)^2\times4=1\ \text{(pure)},\qquad \mathrm{Tr}[\rho_M^2]=\big(\tfrac12\big)^2+0+0+\big(\tfrac12\big)^2=\tfrac12 purity=1    pure;the minimum for one qubit is 12, attained only by I/2\boxed{\text{purity}=1\iff\text{pure};\qquad\text{the minimum for one qubit is }\tfrac12\text{, attained only by }I/2}

That is why I/2I/2 is called the maximally mixed state.

6.6 Every old formula has a new version

Each pure-state formula has a density-matrix twin:

Pure-state versionDensity-matrix version
applying a gate UUψUψ\vert\psi\rangle\to U\vert\psi\rangleρUρU\rho\to U\rho U^\dagger
expectation value of OOψOψ\langle\psi\vert O\vert\psi\rangleTr[Oρ]\mathrm{Tr}[O\rho]
probability via a projector Π\PiψΠψ\langle\psi\vert\Pi\vert\psi\rangleTr[Πρ]\mathrm{Tr}[\Pi\rho]

Why is applying a gate the sandwich UρUU\rho U^\dagger rather than UρU\rho? Derive it: with ρ=ψψ\rho=|\psi\rangle\langle\psi|, the gate turns the ket into UψU|\psi\rangle, and since the bra is the dagger of the ket it becomes ψU\langle\psi|U^\dagger; assembling gives ρ=UρU\rho'=U\rho U^\dagger. The ket and the bra each take a share — that is where the sandwich comes from.

The new formulas strictly contain the old ones, provable in one line with cyclicity. For a pure ρ=ψψ\rho=|\psi\rangle\langle\psi|:

Tr[Oρ]=Tr[Oψψ]=Tr[ψOψ]=ψOψ\mathrm{Tr}[O\rho]=\mathrm{Tr}\big[O|\psi\rangle\langle\psi|\big]=\mathrm{Tr}\big[\langle\psi|O|\psi\rangle\big]=\langle\psi|O|\psi\rangle

(Last step: ψOψ\langle\psi|O|\psi\rangle is a number, and the trace of a number is itself.) The upgrade is lossless; nothing you computed correctly before goes wrong under the new formulas.

What can turn a pure state mixed? Not gates — a unitary sandwich leaves the eigenvalues alone, so purity is constant. The real culprits are three: measuring and forgetting (measured but never looked at the result: +|+\rangle ends up 0|0\rangle or 1|1\rangle with 50% each and you do not know which, which is exactly machine M), decoherence (every interaction with the environment is an uninvited little measurement whose “result” you can never read), and looking at only half of an entangled pair — the subject of chapter 7.

6.7 The solid Bloch ball

The Bloch sphere of the first installment can now be upgraded. Any single-qubit ρ\rho can be written

ρ=I+xX+yY+zZ2,(x,y,z)=(X,Y,Z)\rho=\frac{I+xX+yY+zZ}{2},\qquad (x,y,z)=\big(\langle X\rangle,\langle Y\rangle,\langle Z\rangle\big)

and inside those brackets are precisely the three average readings measured by tomography last time. Writing r=x2+y2+z2r=\sqrt{x^2+y^2+z^2} for the arrow’s length gives Tr[ρ2]=1+r22\mathrm{Tr}[\rho^2]=\tfrac{1+r^2}{2}, and hence a complete map:

LocationrrPurityExample
surface11ρP\rho_P (+\vert+\rangle, at +x+x)
interior0<r<10<r<1in betweenpartially decohered states
centre012\tfrac12ρM=I/2\rho_M=I/2

Pure states live on the surface, mixed states inside — the Bloch sphere turns from a shell into a solid ball. The centre has a peculiar property: it is equidistant from every pure state, reads 50/50 in every basis, and commits to nothing. The two kinds of dynamics are cleanly separated in this picture: a unitary gate is a rigid rotation (the whole ball turns, every point keeping its rr — the geometric version of “gates do not change purity”), and decoherence is a pull inward (rr shrinks and the point slides from the surface toward the centre). The picture of a real quantum computer is exactly this: you navigate precisely on the surface with gates while the environment drags you toward the centre.

6.8 Case closed: the two machines can be told apart

Back to the puzzle of §6.1. Measuring in a different basis suffices — measure X, that is, ask “is it +|+\rangle or |-\rangle”. Using the new formula P=Tr[Πρ]P=\mathrm{Tr}[\Pi\rho] with Π=++\Pi=|+\rangle\langle+|:

PP(+)=Tr[++++]=Tr[++]=1P_P(+)=\mathrm{Tr}\big[|+\rangle\langle+|\cdot|+\rangle\langle+|\big]=\mathrm{Tr}\big[|+\rangle\langle+|\big]=1 PM(+)=Tr[++I2]=12Tr[++]=12P_M(+)=\mathrm{Tr}\Big[|+\rangle\langle+|\cdot\frac I2\Big]=\frac12\mathrm{Tr}\big[|+\rangle\langle+|\big]=\frac12

Every one of machine P’s qubits is +|+\rangle, so measuring X gives + with certainty; machine M’s 0|0\rangle and 1|1\rangle are each 50/50 in the X basis, and the mixture is still 50/50. The practical test: take 100 qubits and measure X — all + means machine P almost surely, half and half means machine M.

So the off-diagonal coherence is not a bookkeeping symbol but a measurable physical quantity — it simply cannot be read in the computational basis. Summarized as a principle these notes will invoke repeatedly:

Two different ρ’s: some measurement distinguishes them. Two identical ρ’s: none does.\boxed{\text{Two different }\rho\text{'s: some measurement distinguishes them. Two identical }\rho\text{'s: none does.}}

7. The partial trace: what half of an entangled pair is

7.1 Bob’s problem

Alice and Bob share a pair of entangled qubits, Alice holding A and Bob holding B, possibly a galaxy apart. Bob has no idea what Alice is doing, not even whether she has measured. What should he use to describe the single qubit in his hands?

Not a ket; §5.5 verified that. But chapter 6 has just built the bigger container, so the answer has a shape: a density matrix, and generally a mixed one. What remains is to compute it.

7.2 The intuitive route: one worked example

Use an example that is deliberately not maximally entangled, so the numbers are interesting (convention: the first symbol is Alice’s A, the second is Bob’s B):

ψ=13(00+01+11)|\psi\rangle=\frac{1}{\sqrt3}\big(|00\rangle+|01\rangle+|11\rangle\big)

Regroup by Alice’s qubit, collecting the A = 0 terms into one pile (pulling out the common factor) and the A = 1 term into another, then normalizing the B state inside each bracket (0+1|0\rangle+|1\rangle has length 2\sqrt2, so pull it out):

ψ=23coefficient0A12(0+1)=++13coefficient1A1B|\psi\rangle=\underbrace{\sqrt{\tfrac23}}_{\text{coefficient}}|0\rangle_A\otimes\underbrace{\tfrac{1}{\sqrt2}\big(|0\rangle+|1\rangle\big)}_{=|+\rangle}+\underbrace{\sqrt{\tfrac13}}_{\text{coefficient}}|1\rangle_A\otimes|1\rangle_B

Checking the coefficients: 2/312=13\sqrt{2/3}\cdot\tfrac{1}{\sqrt2}=\tfrac{1}{\sqrt3} ✓ (the first two terms are restored) and 1/3=13\sqrt{1/3}=\tfrac{1}{\sqrt3} ✓ for the third. Same state, different notation. The value of this form is that A’s two branches are orthogonal and each carries a normalized B state behind it, so it reads off “whatever A measures, that is what B becomes”:

  • A gets 0 with probability 23\tfrac23 → B becomes +|+\rangle;
  • A gets 1 with probability 13\tfrac13 → B becomes 1|1\rangle.

Bob’s view: he does not know what Alice got (she has to phone him). From where he stands, his qubit is ”+|+\rangle with probability 23\tfrac23, 1|1\rangle with probability 13\tfrac13” — exactly the ensemble defined in §6.2, so a density matrix describes it:

ρB=23+++1311=23(12121212)+13(0001)=(13131323)\rho_B=\tfrac23|+\rangle\langle+|+\tfrac13|1\rangle\langle1|=\tfrac23\begin{pmatrix}\tfrac12&\tfrac12\\[2pt]\tfrac12&\tfrac12\end{pmatrix}+\tfrac13\begin{pmatrix}0&0\\0&1\end{pmatrix}=\begin{pmatrix}\tfrac13&\tfrac13\\[2pt]\tfrac13&\tfrac23\end{pmatrix}

This is the reduced density matrix of subsystem B — Bob’s complete rulebook: the probabilities of any experiment he can run follow from this one matrix through the formulas of §6.6. Check: Tr[ρB]=13+23=1\mathrm{Tr}[\rho_B]=\tfrac13+\tfrac23=1

7.3 The formal tool: the partial trace

“Regroup and imagine a measurement” is instructive but clumsy for large systems. The industrial-grade tool is

ρB=TrA[ρAB]=nAnAρABnA\boxed{\rho_B=\mathrm{Tr}_A[\rho_{AB}]=\sum_{n_A}\langle n_A|\rho_{AB}|n_A\rangle}

(summing over an orthonormal basis of A; for one qubit nA{0,1}n_A\in\{0,1\}). TrA\mathrm{Tr}_A is read “trace out A”, meaning average away, discard, subsystem A — you trace out the half you do not hold.

Compare with the ordinary trace: Tr[ρ]=nnρn\mathrm{Tr}[\rho]=\sum_n\langle n|\rho|n\rangle sandwiches the matrix between basis vectors on both slots and sums to a number; the partial trace sandwiches only A’s slot, leaving B’s position untouched, so the result is not a number but a matrix acting on B.

Why this formula and not another? Because the partial trace is the unique map satisfying the following consistency condition: for any observable OO on B,

Tr[(IO)ρAB]=Tr[OρB]\mathrm{Tr}\big[(I\otimes O)\,\rho_{AB}\big]=\mathrm{Tr}\big[O\,\rho_B\big]

The left side predicts Bob’s experiment using the full joint state, the right side predicts it using Bob’s simplified rulebook. The two must agree always — which is the entire requirement on Bob’s rulebook, and only the partial trace meets it.

7.4 Recomputing with the formula: cut into blocks, add the diagonal ones

Build the joint matrix. With ρAB=ψψ\rho_{AB}=|\psi\rangle\langle\psi| and ψ=13(1,1,0,1)T|\psi\rangle=\tfrac{1}{\sqrt3}(1,1,0,1)^T (basis order 00, 01, 10, 11):

ρAB=13(1101)(1    1    0    1)=13(1101110100001101)\rho_{AB}=\frac13\begin{pmatrix}1\\1\\0\\1\end{pmatrix}(1\;\;1\;\;0\;\;1)=\frac13\left(\begin{array}{cc|cc}1&1&0&1\\1&1&0&1\\\hline0&0&0&0\\1&1&0&1\end{array}\right)

(The third row and column vanish because 10|10\rangle is not in the state. The rules cut the matrix into four blocks by A’s value: the first two rows and columns are A = 0, the last two are A = 1.)

The mechanism of the partial trace: 0AρAB0A\langle0|_A\rho_{AB}|0\rangle_A keeps only the terms where A’s ket and bra are both 0 (orthogonality 01=0\langle0|1\rangle=0 kills the rest) — precisely the top-left block; likewise 1AρAB1A\langle1|_A\rho_{AB}|1\rangle_A picks out the bottom-right block. Summing:

ρB=13(1111)+13(0001)=(13131323)\rho_B=\frac13\begin{pmatrix}1&1\\1&1\end{pmatrix}+\frac13\begin{pmatrix}0&0\\0&1\end{pmatrix}=\begin{pmatrix}\tfrac13&\tfrac13\\[2pt]\tfrac13&\tfrac23\end{pmatrix}

exactly matching the intuitive route of §7.2 ✓

tracing out A=cut into four blocks by A’s value and add the two diagonal ones\boxed{\text{tracing out A}=\text{cut into four blocks by A's value and add the two diagonal ones}}

Where was the information lost? What gets thrown away are the off-diagonal blocks (top-right and bottom-left), which record the cross-correlations between A and B. Discard them and the remaining matrix carries mixedness. The concrete mechanism of “ignore half ⟹ the part goes mixed” is exactly this discarding of blocks.

7.5 Tracing out B: ρAρB\rho_A\ne\rho_B, but the purities must agree

Now the other way. Keeping A, what survives are the terms where B’s labels agree; since the basis order is 00, 01, 10, 11, B’s value alternates within each block, so the surviving entries sit elsewhere: ρA[i][j]=kρAB[(i,k)][(j,k)]\rho_A[i][j]=\sum_k\rho_{AB}[(i,k)][(j,k)]. Term by term:

ρA[0][0]=13+13=23,ρA[0][1]=0+13=13,ρA[1][0]=13,ρA[1][1]=0+13=13\rho_A[0][0]=\tfrac13+\tfrac13=\tfrac23,\quad \rho_A[0][1]=0+\tfrac13=\tfrac13,\quad \rho_A[1][0]=\tfrac13,\quad \rho_A[1][1]=0+\tfrac13=\tfrac13 ρA=(23131313)\rho_A=\begin{pmatrix}\tfrac23&\tfrac13\\[2pt]\tfrac13&\tfrac13\end{pmatrix}

Three self-checks: the trace is 1 ✓; the diagonal gives Alice’s measurement probabilities P(0)=23P(0)=\tfrac23, P(1)=13P(1)=\tfrac13, matching §7.2 exactly ✓; the purity is 49+19+19+19=79\tfrac49+\tfrac19+\tfrac19+\tfrac19=\tfrac79.

And ρB\rho_B‘s purity is (13)2×3+(23)2=79\big(\tfrac13\big)^2\times3+\big(\tfrac23\big)^2=\tfrac79different matrices, equal purity. That is no coincidence:

For any pure joint state, the two reduced density matrices have identical eigenvalues\boxed{\text{For any pure joint state, the two reduced density matrices have identical eigenvalues}}

Physically: the two halves of a pure whole are always equally mixed. You cannot build an entangled pure state whose Alice half is nearly pure while Bob’s is very mixed — the mixedness is shared, because it comes from the same correlation.

7.6 The whole is definite, the parts are not

Put the two ends of §7.2’s example side by side: the whole ψ|\psi\rangle is pure (a definite ket, purity 1), while Bob’s half has purity 79<1\tfrac79<1 and is mixed.

Entanglement means: the whole can be completely definite while the parts are not\boxed{\text{Entanglement means: the whole can be completely definite while the parts are not}}

That sentence has no classical counterpart. In classical probability, if you know the joint distribution of two variables completely (say you know for certain that (x,y)=(3,7)(x,y)=(3,7)), you automatically know each marginal completely. “The whole known, the parts unknown” is self-contradictory classically. This is probably the cleanest one-sentence definition of entanglement: all the information is stored in the correlation, none of it in the individuals.

7.7 The extreme case, and the measuring stick

Run the same procedure on Φ+=12(1,0,0,1)T|\Phi^+\rangle=\tfrac{1}{\sqrt2}(1,0,0,1)^T. Building the matrix:

ρAB=12(1001)(1    0    0    1)=12(1001000000001001)\rho_{AB}=\frac12\begin{pmatrix}1\\0\\0\\1\end{pmatrix}(1\;\;0\;\;0\;\;1)=\frac12\begin{pmatrix}1&0&0&1\\0&0&0&0\\0&0&0&0\\1&0&0&1\end{pmatrix}

Cutting into blocks and adding the top-left to the bottom-right:

ρB=12(1000)+12(0001)=I2(ρA likewise)\rho_B=\frac12\begin{pmatrix}1&0\\0&0\end{pmatrix}+\frac12\begin{pmatrix}0&0\\0&1\end{pmatrix}=\frac I2\qquad(\rho_A\text{ likewise})

This proves the assertion of §5.5: half of a Bell pair is I/2I/2, the centre of the Bloch ball, 50/50 in any basis, zero usable local information. All the structure is stored in the correlation and none of it on the individuals.

So the question left hanging at the end of §3.3 has its answer:

the more mixed the halves, the more entangled the whole\boxed{\text{the more mixed the halves, the more entangled the whole}}
Joint stateρB\rho_BPurityBloch locationEntanglement
product statepure11surfacenone
the example in §7.2mixed790.78\tfrac79\approx0.78interiorpartial
Bell stateI/2I/212\tfrac12centremaximal

The stick is monotone: purity falls from 1 to 12\tfrac12 as entanglement climbs from zero to maximal. The formal measure replaces purity with entropy: S(ρA)=Tr[ρAlogρA]S(\rho_A)=-\mathrm{Tr}[\rho_A\log\rho_A], the entanglement entropy (0 for a product state, 1 bit for a Bell state). Entropy rather than purity, because entropy is additive and has an operational meaning — and unlike the concurrence, it works in any dimension.

7.8 Why entanglement cannot signal faster than light

The proof owed since §5.4 can now be paid.

The question: Alice’s measurement “instantly” fixes Bob’s state, so can she use that to send him a signal (agreeing, say, that “measuring = 1, not measuring = 0”)?

No. Everything Bob can observe locally is determined by his reduced density matrix ρB\rho_B (the uniqueness in §7.3). For Φ+|\Phi^+\rangle:

  • before Alice measures: ρB=I/2\rho_B=I/2 (just computed in §7.7);
  • after Alice measures (without telling Bob the result): Bob’s side is the ensemble ”0|0\rangle with probability 12\tfrac12, 1|1\rangle with probability 12\tfrac12”, and 1200+1211=I/2\tfrac12|0\rangle\langle0|+\tfrac12|1\rangle\langle1|=I/2.

The very same matrix — §6.4’s “different recipes, same ρ\rho” doing its most important work here. And by §6.8, identical ρ\rho ⟹ no measurement can distinguish them. So no matter what Bob does or how many times he does it, he cannot tell whether Alice acted, let alone what she got; switching her measurement basis changes nothing either, since ρB\rho_B stays put.

Entanglement correlates results; it never transmits them\boxed{\text{Entanglement correlates results; it never transmits them}}

Only when Alice’s result arrives over an ordinary classical channel (at or below light speed) and the two compare records does the correlation appear. Relativity and quantum mechanics get to coexist — and popular talk of “quantum entanglement communication” is, for the same reason, wrong.

8. Bell’s inequality: is entanglement real?

8.1 The envelope story

Take Φ+|\Phi^+\rangle and send the halves to Andromeda (Alice) and Brisbane (Bob). Alice measures and gets 0. On the standard account, Bob’s qubit is at that instant in 0|0\rangle — a collapse spanning a galaxy, reaching a system nobody has touched. That is non-local, and it ought to make you uncomfortable. It made Einstein uncomfortable (the EPR paper of 1935), who derided it as “spooky action at a distance”.

The obvious escape hatch: maybe nothing was spanned at all. Maybe the pair was written the same note at birth — two envelopes sealed at the source, each holding an identical slip of paper. Opening one in Andromeda “instantly tells you” what the Brisbane one says, and nobody calls that spooky. Formalized:

The local hidden variable (LHV) hypothesis: each particle carries a piece of hidden information λ\lambda (the “note”) written at the factory, which predetermines the outcome of every possible measurement; the correlation exists because the notes were written together; and a measurement on one side does not affect the far side (that is the “local” part).

If LHV held, quantum mechanics would merely be incomplete — its “true randomness” a statistical description of a deeper layer of determinism. The idea is entirely reasonable. Bell’s genius was to show that it can be tested experimentally, and that it is false.

8.2 The CHSH inequality: a two-line proof

The setup: a source keeps emitting pairs. Each round, Alice freely chooses to measure A0A_0 or A1A_1, Bob freely chooses B0B_0 or B1B_1, and all four observables read ±1\pm1. After many rounds, four correlation values AiBj\langle A_iB_j\rangle are compiled (multiply the two readings in each round, then average over rounds) and combined into a single number:

S=A0B0+A0B1+A1B0A1B1S=\langle A_0B_0\rangle+\langle A_0B_1\rangle+\langle A_1B_0\rangle-\langle A_1B_1\rangle

(The minus sign on the fourth term is not a typo; its purpose becomes clear below.)

The Bell–CHSH inequality: if the results are determined by local hidden variables, then S2S\le2, always.

The proof is two lines and entirely elementary. Under LHV, all four values a0,a1,b0,b1=±1a_0,a_1,b_0,b_1=\pm1 exist in every round (written in advance, whether or not they get measured — that is precisely the content of the hypothesis). Consider the combination

a0(b0+b1)+a1(b0b1)a_0(b_0+b_1)+a_1(b_0-b_1)

Since b0b_0 and b1b_1 are each ±1\pm1, there are only two cases: if b0=b1b_0=b_1 then b0+b1=±2b_0+b_1=\pm2 and b0b1=0b_0-b_1=0, so the expression is a0(±2)=±2a_0\cdot(\pm2)=\pm2; if b0b1b_0\ne b_1 then b0+b1=0b_0+b_1=0 and b0b1=±2b_0-b_1=\pm2, so it is a1(±2)=±2a_1\cdot(\pm2)=\pm2. In both cases the whole expression equals ±2\pm2, and a quantity identically equal to ±2\pm2 has an average inside [2,2][-2,2]. Expanded, a0b0+a0b1+a1b0a1b1a_0b_0+a_0b_1+a_1b_0-a_1b_1 averages to exactly SS, so S2S\le2

Note which step used the hypothesis: “all four values exist” — including the two not measured this round. In the classical world that is a triviality (things have definite properties whether or not you look). Quantum mechanics is precisely what refuses it.

8.3 Quantum mechanics answers 222\sqrt2

Compute the same SS quantum-mechanically. Take Ψ=12(0110)|\Psi^-\rangle=\tfrac{1}{\sqrt2}(|01\rangle-|10\rangle) with the measurement settings

A0=Z,A1=X;B0=X+Z2,B1=XZ2A_0=Z,\quad A_1=X;\qquad B_0=-\frac{X+Z}{\sqrt2},\quad B_1=\frac{X-Z}{\sqrt2}

Bob’s two axes are Alice’s rotated by 45° in the x–z plane. Both are legitimate ±1\pm1-valued observables — verify B02=(X+Z)22=X2+XZ+ZX+Z22=I+0+I2=IB_0^2=\tfrac{(X+Z)^2}{2}=\tfrac{X^2+XZ+ZX+Z^2}{2}=\tfrac{I+0+I}{2}=I, using the Pauli anticommutation XZ+ZX=0XZ+ZX=0 from last time.

The quantum formula for a correlation is the two-qubit sandwich: AiBj=ΨAiBjΨ\langle A_iB_j\rangle=\langle\Psi^-|A_i\otimes B_j|\Psi^-\rangle. First the four base correlations, all by term-by-term application of the golden rule:

(1) ZZ\langle Z\otimes Z\rangle: (ZZ)01=0(1)=01(Z\otimes Z)|01\rangle=|0\rangle\otimes(-|1\rangle)=-|01\rangle and (ZZ)10=10(Z\otimes Z)|10\rangle=-|10\rangle, so (ZZ)Ψ=Ψ(Z\otimes Z)|\Psi^-\rangle=-|\Psi^-\rangle and ZZ=1\langle Z\otimes Z\rangle=-1.

(2) XX\langle X\otimes X\rangle: (XX)01=10(X\otimes X)|01\rangle=|10\rangle and (XX)10=01(X\otimes X)|10\rangle=|01\rangle, so (XX)Ψ=12(1001)=Ψ(X\otimes X)|\Psi^-\rangle=\tfrac{1}{\sqrt2}(|10\rangle-|01\rangle)=-|\Psi^-\rangle and XX=1\langle X\otimes X\rangle=-1.

(3) ZX\langle Z\otimes X\rangle: (ZX)01=00(Z\otimes X)|01\rangle=|00\rangle and (ZX)10=11(Z\otimes X)|10\rangle=-|11\rangle, so (ZX)Ψ=12(00+11)(Z\otimes X)|\Psi^-\rangle=\tfrac{1}{\sqrt2}(|00\rangle+|11\rangle). But Ψ|\Psi^-\rangle has components only at 01 and 10 while the result has components only at 00 and 11 — completely disjoint — so ZX=0\langle Z\otimes X\rangle=0.

(4) XZ=0\langle X\otimes Z\rangle=0: likewise, (XZ)Ψ=12(1100)(X\otimes Z)|\Psi^-\rangle=\tfrac{1}{\sqrt2}(-|11\rangle-|00\rangle), disjoint from Ψ|\Psi^-\rangle.

Now assemble the four correlation values, expanding everything by linearity:

A0B0=Z(X+Z2)=12(0ZX+(1)ZZ)=12\langle A_0B_0\rangle=\Big\langle Z\otimes\Big(-\frac{X+Z}{\sqrt2}\Big)\Big\rangle=-\frac{1}{\sqrt2}\big(\underbrace{0}_{\langle Z\otimes X\rangle}+\underbrace{(-1)}_{\langle Z\otimes Z\rangle}\big)=\frac{1}{\sqrt2} A0B1=12(0(1))=12,A1B0=12((1)+0)=12,A1B1=12((1)0)=12\langle A_0B_1\rangle=\frac{1}{\sqrt2}\big(0-(-1)\big)=\frac{1}{\sqrt2},\qquad \langle A_1B_0\rangle=-\frac{1}{\sqrt2}\big((-1)+0\big)=\frac{1}{\sqrt2},\qquad \langle A_1B_1\rangle=\frac{1}{\sqrt2}\big((-1)-0\big)=-\frac{1}{\sqrt2}

Substituting into SS:

S=12+12+12(12)=42=222.83>2\boxed{S=\frac{1}{\sqrt2}+\frac{1}{\sqrt2}+\frac{1}{\sqrt2}-\Big(-\frac{1}{\sqrt2}\Big)=\frac{4}{\sqrt2}=2\sqrt2\approx2.83>2}

The minus sign’s job is now clear: A1B1\langle A_1B_1\rangle is itself negative, and subtracting flips it positive so that all four terms add in the same direction.

8.4 The experimental verdict

Two theories predict different values for the same measurable number (2\le2 against 2.832.83), so experiment gets the deciding vote. The verdict has been delivered repeatedly since the 1970s and 80s (Freedman–Clauser, Aspect), made “loophole-free” in 2015 (closing both the detection-efficiency and the communication escape routes at once), and awarded the 2022 Nobel Prize in Physics (Aspect, Clauser, Zeilinger). Today an SPDC source (§4.5) reproduces it in an undergraduate teaching lab: S22S\approx2\sqrt2, the inequality violated, and violated by exactly the amount quantum mechanics predicts.

The conclusion deserves a moment’s sitting with, because it is a theorem about reality, not about some particular theory:

No local hidden variable picture of the world can stand\boxed{\text{No local hidden variable picture of the world can stand}}

The envelope story is not “unlikely” but impossible — no set of notes written in advance, however clever, can reproduce the observed statistics. Last time’s remark that “quantum randomness is not an unflipped coin” finds its evidence right here.

Three footnotes:

  1. 222\sqrt2 is quantum mechanics’ own ceiling (the Tsirelson bound) — quantum theory is not “as correlated as you like”, and the measured values land precisely on that bound;
  2. logically there is one more escape route: keep hidden variables and give up locality instead (as in Bohmian mechanics). What Bell’s theorem forecloses is the combination of locality and realism;
  3. the result has practical value: device-independent cryptography and certified randomness are built on it — you need not trust the device manufacturer, because observing S>2S>2 physically proves that those bits were not fixed by any local preset.

9. Detecting entanglement in mixed states

9.1 The definition of separability, upgraded

ad=bcad=bc works only for pure states, while the ρAB\rho_{AB} that comes out of a laboratory is usually mixed. So the definition of §3.1 has to be upgraded to allow classical mixing:

ρ=ipiρiAρiB\rho=\sum_i p_i\,\rho_i^A\otimes\rho_i^B

Anything of this form is separable; anything else is entangled.

The operational intuition behind the definition is clear: separable states are exactly the states two distant laboratories can produce with no quantum contact whatsoever — they share a classical die, the die tells each side which state to prepare locally this round, each prepares its own, repeat. Every correlation obtained this way is a classical correlation. An entangled state is one this procedure cannot forge.

Why detection is hard: the definition is existential, and a given ρ\rho has infinitely many recipes (§6.4), so you must prove that none of them takes the above form. In general this is NP-hard. But two qubits admit an efficient criterion.

9.2 Partial transpose

Operational definition: view a two-qubit ρAB\rho_{AB} as 2×22\times2 blocks of 2×22\times2 matrices (block row and column = A’s indices, position within a block = B’s indices), then transpose each little block in place:

ρAB=(A00A01A10A11)ρTB=(A00TA01TA10TA11T)\rho_{AB}=\begin{pmatrix}A_{00}&A_{01}\\A_{10}&A_{11}\end{pmatrix}\quad\longrightarrow\quad \rho^{T_B}=\begin{pmatrix}A_{00}^T&A_{01}^T\\A_{10}^T&A_{11}^T\end{pmatrix}

Note this is not a transpose of the whole 4×44\times4 — only B’s index is transposed while A’s side is left alone.

Why transposition, of all things? Transposing the whole system is a “fake physical operation”: ρρT=ρ\rho\mapsto\rho^T=\rho^* (since ρ\rho is Hermitian), which complex-conjugates the state and physically amounts to running time backwards. It maps legal ρ\rho‘s to legal ρ\rho‘s and looks harmless. But performing that surgery on only one half of a correlated pair is something no physical process can do. Hence:

  • separable states never notice: transposing the B factors of ipiρiAρiB\sum_i p_i\rho_i^A\otimes\rho_i^B gives ipiρiA(ρiB)T\sum_i p_i\rho_i^A\otimes(\rho_i^B)^T, where each (ρiB)T(\rho_i^B)^T is still a legal single-qubit density matrix, so the whole thing is still a legal separable state and in particular positive semidefinite (credential ③ of §6.5);
  • entangled states get torn: A and B are woven too tightly, and transposing only one side pulls out a negative eigenvalue — which no real physical state can ever have.

The Peres–Horodecki (PPT) criterion: if ρAB\rho_{AB} is separable, then all eigenvalues of ρTB\rho^{T_B} are non-negative.

The contrapositive, which is the form actually used: find a single negative eigenvalue of ρTB\rho^{T_B} and you have proved ρAB\rho_{AB} entangled.

Good news for small systems: for two qubits (222\otimes2) and for 232\otimes3, the converse holds as well — passing PPT implies separable — so here it is a complete decision procedure. (Larger systems contain states that pass PPT and are nonetheless entangled, called “bound entanglement”.)

9.3 How much noise a Bell state can take

The question has a real laboratory meaning. Take a perfect Φ+|\Phi^+\rangle and mix in white noise (the maximally mixed state I4/4I_4/4, exactly what decoherence tends to produce in transit):

ρw=4F13Φ+Φ++1F3I4\rho_w=\frac{4F-1}{3}|\Phi^+\rangle\langle\Phi^+|+\frac{1-F}{3}I_4

This is the Werner state. The odd-looking coefficients are deliberately arranged so that FF equals the fidelity F=Φ+ρwΦ+F=\langle\Phi^+|\rho_w|\Phi^+\rangle exactly. Verifying (with Φ+Φ+=1\langle\Phi^+|\Phi^+\rangle=1 and Φ+I4Φ+=1\langle\Phi^+|I_4|\Phi^+\rangle=1):

Φ+ρwΦ+=4F13+1F3=3F3=F \langle\Phi^+|\rho_w|\Phi^+\rangle=\frac{4F-1}{3}+\frac{1-F}{3}=\frac{3F}{3}=F\ \checkmark

FF means “how much Φ+\Phi^+ is left”: F=1F=1 is a pure Bell state and F=14F=\tfrac14 is pure noise. The question: for which FF is ρw\rho_w entangled?

Write out the matrix. Since Φ+Φ+|\Phi^+\rangle\langle\Phi^+| has 12\tfrac12 in the four corners and 0 elsewhere, the corners are 4F16\tfrac{4F-1}{6}, the diagonal entries at 00 and 11 are 4F16+1F3=2F+16\tfrac{4F-1}{6}+\tfrac{1-F}{3}=\tfrac{2F+1}{6}, and those at 01 and 10 are 1F3\tfrac{1-F}{3}:

ρw=(1+2F6004F1601F300001F304F16001+2F6)\rho_w=\begin{pmatrix}\frac{1+2F}{6}&0&0&\frac{4F-1}{6}\\[3pt]0&\frac{1-F}{3}&0&0\\[3pt]0&0&\frac{1-F}{3}&0\\[3pt]\frac{4F-1}{6}&0&0&\frac{1+2F}{6}\end{pmatrix}

Check the trace: 21+2F6+21F3=1+2F3+22F3=12\cdot\tfrac{1+2F}{6}+2\cdot\tfrac{1-F}{3}=\tfrac{1+2F}{3}+\tfrac{2-2F}{3}=1

Partial transpose. Both diagonal blocks are diagonal matrices and survive transposition unchanged; the two off-diagonal blocks A01=(04F1600)A_{01}=\begin{pmatrix}0&\frac{4F-1}{6}\\0&0\end{pmatrix} and A10=(004F160)A_{10}=\begin{pmatrix}0&0\\\frac{4F-1}{6}&0\end{pmatrix} swap the positions of their entries. Reassembling:

ρwTB=(1+2F600001F34F16004F161F300001+2F6)\rho_w^{T_B}=\begin{pmatrix}\frac{1+2F}{6}&0&0&0\\[3pt]0&\frac{1-F}{3}&\frac{4F-1}{6}&0\\[3pt]0&\frac{4F-1}{6}&\frac{1-F}{3}&0\\[3pt]0&0&0&\frac{1+2F}{6}\end{pmatrix}

The two corner entries have slid into the middle of the matrix — that is the surgery, concretely.

Compute the eigenvalues. The matrix is already block diagonal: rows 1 and 4 stand alone, so their diagonal entries are eigenvalues outright, 1+2F6\tfrac{1+2F}{6} twice; the middle 2×22\times2 block has the form (abba)\begin{pmatrix}a&b\\b&a\end{pmatrix}, whose eigenvalues are a±ba\pm b:

a+b=1F3+4F16=1+2F6,ab=1F34F16=36F6=12F2a+b=\frac{1-F}{3}+\frac{4F-1}{6}=\frac{1+2F}{6},\qquad a-b=\frac{1-F}{3}-\frac{4F-1}{6}=\frac{3-6F}{6}=\frac{1-2F}{2}

In total: λ=1+2F6\lambda=\tfrac{1+2F}{6} (threefold) and λ1=12F2\lambda_1=\tfrac{1-2F}{2} (once). The threefold one is positive throughout the legal range of FF; the interesting one is λ1\lambda_1:

12F2<0    F>12\frac{1-2F}{2}<0\iff F>\frac12 ρw is entangled for F>0.5 and separable for F0.5\boxed{\rho_w\text{ is entangled for }F>0.5\text{ and separable for }F\le0.5}

9.4 “Correlated” is not “entangled”

The good news: a Bell state tolerates surprisingly much noise — fidelity can fall all the way from 100% to 50% before entanglement is lost. Entanglement is not a thing that shatters at a touch.

The subtlety: at F0.5F\le0.5 the state is still correlated (the two halves still agree more often than chance), but that is classical correlation only — the “shared die plus two independent labs” recipe of §9.1 forges it completely, with no quantum contact required.

"Correlated" and "entangled" are different things, and the PPT criterion draws that line\boxed{\text{"Correlated" and "entangled" are different things, and the PPT criterion draws that line}}

This is the standard laboratory workflow: measure your own ρAB\rho_{AB} by the state tomography of the previous notes, then run PPT to certify what your entanglement source actually delivered. One negative eigenvalue is the certificate.

10. Misconceptions and traps

  1. 00|00\rangle is itself a four-dimensional vector, so how can it also be the first component?” — two roles: as a vector it is (1,0,0,0)T(1,0,0,0)^T; as a label it names the first component (the slot recording 00|00\rangle‘s coefficient). Same relation as e^x=(1,0,0)\hat e_x=(1,0,0) and “the first slot is the x component” (§1.1).
  2. “A and B can swap places in ABA\otimes B — they cannot; the left and right slots are the qubit indices, and XIIXX\otimes I\ne I\otimes X (§1.3).
  3. “To act on one qubit, a 2×22\times2 suffices” — the dimensions do not match; the bystander must be given an II (§1.3).
  4. “CNOT looks at the control bit and then decides” — nothing looks at the control; it is one unitary multiplication with a definite, reversible output (§2.3).
  5. “A controlled gate only changes the target” — phase kickback is the counterexample: +|+\rangle\otimes|-\rangle\to|-\rangle\otimes|-\rangle, and it is the control that changed (§2.4).
  6. “CNOT always creates entanglement” — with a basis-state control it is plain classical XOR and the output is still a product state (§2.6).
  7. “A few failed attempts at factoring prove entanglement” — that is a universal quantifier; it needs a contradiction argument or the ad=bcad=bc criterion (§3.1–3.2).
  8. “Measuring one qubit measures the other too” — on a product state the bystander is untouched (§5.3); on an entangled state it does settle, but only because it never had a state of its own (§5.4–5.5).
  9. “The ψi|\psi_i\rangle in a mixed state’s ρ\rho must be orthogonal” — they need not be; the definition asks for no such thing (§6.2).
  10. “Two recipes giving the same ρ\rho means ρ\rho lost information” — what it lost is exactly the unmeasurable part, a feature rather than a defect (§6.4).
  11. “A gate can turn a pure state mixed” — it cannot; a unitary sandwich preserves eigenvalues. The culprits are forgetting, decoherence, and looking at only half of an entangled pair (§6.6).
  12. ρA\rho_A and ρB\rho_B should be equal” — not necessarily equal, but for a pure whole their purities must agree (§7.5).
  13. “Entanglement can signal faster than light”ρB\rho_B never changes, and the local statistics stay 50/50 forever (§7.8).
  14. “Correlated means entangled” — a shared die produces correlation too; the PPT criterion draws the boundary (§9.4).

11. Self-test (answers included)

Problems

  1. Write out the 4×44\times4 matrix of ZIZ\otimes I and compute its action on (a,b,c,d)T(a,b,c,d)^T.
  2. Use the golden rule to compute (HX)01(H\otimes X)|01\rangle.
  3. Decide whether 15(1,2,2,4)T\tfrac{1}{\sqrt5}(1,2,2,4)^T is separable; if so, give the factorization.
  4. What is the matrix of controlled-Z (U=ZU=Z)? What does it give on ++|+\rangle\otimes|+\rangle? Is the result entangled?
  5. Measure qubit 1 of ψ=13(00+01+11)|\psi\rangle=\tfrac{1}{\sqrt3}(|00\rangle+|01\rangle+|11\rangle); write down P(0)P(0) and the post-measurement state for outcome 0.
  6. Write the density matrix of “prepare 0|0\rangle with probability 13\tfrac13 and +|+\rangle with probability 23\tfrac23”, and compute its purity.
  7. Compute ρA\rho_A for Ψ|\Psi^-\rangle by partial trace. What does the result say?
  8. Which step of the CHSH proof used the local-hidden-variable assumption?
  9. Is the Werner state entangled at F=0.6F=0.6? At F=0.4F=0.4?

Answers

  1. ZI=diag(1,1,1,1)Z\otimes I=\mathrm{diag}(1,1,-1,-1), giving (a,b,c,d)T(a,b,-c,-d)^T — a minus sign on the branches whose first bit is 1.
  2. H0X1=+0=12(1,0,1,0)TH|0\rangle\otimes X|1\rangle=|+\rangle\otimes|0\rangle=\tfrac{1}{\sqrt2}(1,0,1,0)^T.
  3. ad=14=4ad=1\cdot4=4 and bc=22=4bc=2\cdot2=4 are equal → separable. Factorization: 15(12)(12)\tfrac{1}{\sqrt5}\binom12\otimes\binom12 (check: (11,12,21,22)=(1,2,2,4)(1{\cdot}1,1{\cdot}2,2{\cdot}1,2{\cdot}2)=(1,2,2,4) ✓).
  4. CZ=diag(1,1,1,1)\mathrm{CZ}=\mathrm{diag}(1,1,1,-1). ++=12(1,1,1,1)T12(1,1,1,1)T|+\rangle\otimes|+\rangle=\tfrac12(1,1,1,1)^T\to\tfrac12(1,1,1,-1)^T, and ad=14bc=14ad=-\tfrac14\ne bc=\tfrac14entangled. CZ is an entangling gate too (in fact it differs from CNOT only by an H on each side of the target).
  5. P(0)=13+13=23P(0)=\tfrac13+\tfrac13=\tfrac23; the post-measurement state is 13(00+01)2/3=12(00+01)=0+\dfrac{\tfrac{1}{\sqrt3}(|00\rangle+|01\rangle)}{\sqrt{2/3}}=\tfrac{1}{\sqrt2}(|00\rangle+|01\rangle)=|0\rangle\otimes|+\rangle. (Matching the B state read off the A = 0 branch of the grouped form in §7.2.)
  6. ρ=13(1000)+23(12121212)=(23131313)\rho=\tfrac13\begin{pmatrix}1&0\\0&0\end{pmatrix}+\tfrac23\begin{pmatrix}\tfrac12&\tfrac12\\\tfrac12&\tfrac12\end{pmatrix}=\begin{pmatrix}\tfrac23&\tfrac13\\\tfrac13&\tfrac13\end{pmatrix}; purity =49+19+19+19=79=\tfrac49+\tfrac19+\tfrac19+\tfrac19=\tfrac79. (The very matrix that appeared as ρA\rho_A in §7.5 — a different physical origin, the same rulebook.)
  7. Ψ=12(0,1,1,0)T|\Psi^-\rangle=\tfrac{1}{\sqrt2}(0,1,-1,0)^T, so ρAB\rho_{AB} has 12\tfrac12 at (01,01) and (10,10) and 12-\tfrac12 at (01,10) and (10,01); the top-left block is 12diag(0,1)\tfrac12\mathrm{diag}(0,1) and the bottom-right is 12diag(1,0)\tfrac12\mathrm{diag}(1,0), summing to ρA=I/2\rho_A=I/2. All four Bell states are maximally entangled and both halves sit at the centre of the ball — consistent with every concurrence being maxed out.
  8. The sentence “all four values a0,a1,b0,b1a_0,a_1,b_0,b_1 exist in every round”, including the two that were not measured. Quantum mechanics is exactly what refuses this.
  9. F=0.6>0.5F=0.6>0.5 → entangled (λ1=11.22=0.1<0\lambda_1=\tfrac{1-1.2}{2}=-0.1<0); F=0.40.5F=0.4\le0.5 → separable (λ1=10.82=0.1>0\lambda_1=\tfrac{1-0.8}{2}=0.1>0).

12. Symbol quick reference (new in these notes)

SymbolNameOne-line meaning
(AB)(uv)(A\otimes B)(\vert u\rangle\otimes\vert v\rangle)golden rule=AuBv=A\vert u\rangle\otimes B\vert v\rangle; side-by-side gates mind their own qubit and never entangle
XIX\otimes I / IXI\otimes Xtwo side-by-side gatesflip qubit 1 (halves trade places) / flip qubit 2 (swap within each half)
column jj of a matrixdestination tablewhere basis vector jj goes; converts between truth table and matrix
C-U=(I00U)\text{C-}U=\begin{pmatrix}I&0\\0&U\end{pmatrix}controlled gatethe action is installed only on the half where the control is 1
CNOT(a,b,c,d)=(a,b,d,c)\mathrm{CNOT}(a,b,c,d)=(a,b,d,c)controlled-NOTreversible XOR; CNOT2=I\mathrm{CNOT}^2=I
HIH\otimes I then CNOTentangling recipea dictionary between computational and Bell bases; run backwards to decode
ad=bcad=bcseparability criterionpure two-qubit states; 2adbc2\vert ad-bc\vert = concurrence
Φ±,Ψ±\vert\Phi^\pm\rangle,\vert\Psi^\pm\rangleBell statesfour maximally entangled states forming the Bell basis
M0=Π0IM_0=\Pi_0\otimes Ipartial measurementmeasures qubit 1 only; zeroes incompatible branches, keeps the rest superposed
Tr[ρ]\mathrm{Tr}[\rho]tracesum of diagonal entries; Tr[AB]=Tr[BA]\mathrm{Tr}[AB]=\mathrm{Tr}[BA]
ρ=piψiψi\rho=\sum p_i\vert\psi_i\rangle\langle\psi_i\vertdensity matrixclassical probability and quantum superposition in separate layers; diagonal = probability, off-diagonal = coherence
Tr[ρ2]\mathrm{Tr}[\rho^2]purity1 = pure; 12\tfrac12 = maximally mixed for one qubit
I/2I/2maximally mixed statecentre of the Bloch ball; 50/50 in every basis
UρUU\rho U^\dagger / Tr[Oρ]\mathrm{Tr}[O\rho]density-matrix formulasthe sandwich: ket and bra each take a share; expectation values and probabilities generalized
TrA[ρAB]\mathrm{Tr}_A[\rho_{AB}]partial tracetrace out the half you do not hold; cut into blocks by A and add the diagonal ones
S(ρA)S(\rho_A)entanglement entropythe more mixed the halves, the more entangled the whole; 0 for a product state, 1 bit for a Bell state
S=A0B0+S=\langle A_0B_0\rangle+\cdotsCHSH value2\le2 under local hidden variables; quantum mechanics reaches 222\sqrt2
ρTB\rho^{T_B}partial transposetranspose each block in place; a negative eigenvalue ⟹ entangled

The whole article in one sentence: side-by-side gates ABA\otimes B let two qubits mind their own business and can never entangle them, while a controlled gate installs its action on only the half where the control is 1 — feed it a superposed control and two gates weave 00|00\rangle into a Bell state, with ad=bcad=bc telling the two kinds of state apart at a glance; but half of a Bell pair reads 50/50 in every basis and no ket can hold it, so in come the density matrix (diagonal for probability, off-diagonal for coherence) and the partial trace (cut into blocks by A, add the diagonal ones), whose verdict, “the whole is pure while the parts are mixed”, is at once the cleanest definition of entanglement and the reason it can never carry a message; and as for whether all of this was simply written on a note at the factory, the CHSH value 22>22\sqrt2>2 and decades of experiment answer: it was not.