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 ).
Everything from the first two installments is assumed: the tensor product rule, the projective-measurement recipe , 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 wires in means wires out and they cannot merge either. Only one picture survives — 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, , along with the four basis vectors it produces, through . What needs filling in is the correspondence between components and coefficients. One addition does it:
The 1st component is the coefficient of , the 2nd that of , and so on; is the probability of measuring 00. The basis vectors obey the same rule: is the vector with ”, everything else 0”, hence . (The single-qubit case was already like this: the first component of is the coefficient of , while itself is .)
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 matrix in these notes.
1.2 Side-by-side gates and the golden rule
States are now 4-dimensional vectors, so gates must be 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):
The golden rule (the mixed-product property):
Physically: the qubit in passes through gate A while the qubit in 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 . For instance,
The first equality hands out the assignments, the second has each X consult its table () — X is consumed at that step and leaves an output behind, just as “vanishes” in .
Scope: this decomposition requires the input itself to be a product state. If it cannot be written as (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 versus : ⊗ does not commute
“Doing nothing” has to be written out as — the state is a 4-dimensional vector, and a X simply cannot multiply it.
Multiplying , with all four rows written out:
All four basis vectors:
In each line the first bit flips and the second does not — that is what ” = flip only the first qubit” means. On a general vector:
The first two components swap wholesale with the last two, order preserved inside each half. Compare :
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:
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 ‘s” (an H on qubit 2 of three qubits is ).
1.4 A trick worth keeping for life
The reason: is times , and the row-by-row dot products pick out exactly the first column. Check: the first column of is ✓, 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
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, :
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:
Product state in, product state out. Making two qubits genuinely “talk” requires a gate that cannot be decomposed as .
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 to the target. Take (that is CNOT, control = qubit 1, target = qubit 2) and apply the rule case by case:
Using the trick of §1.4, copy the four destinations down as four columns:
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 ; the last two (control = 1) swap internally, so the bottom-right block is :
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 , which is unconditional. Unitarity comes free: ✓
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: run through again returns , so .
Last time it wore another hat: the orthogonal-state copier — , . 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 :
Machine A (measure, then act): measure the control → 50% gives 0 (output ), 50% gives 1 (output ). The output is one of two at random, the superposition destroyed, the process irreversible.
Machine B (CNOT): one matrix multiplication. First compute the input:
Apply :
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 . As a 4-dimensional vector:
Apply the formula:
Try to split it as with : ✓, ✓, ✓, ✓. So the output is :
The target did not change; the control did. The mechanism is shorter through eigenvectors: is an eigenvector of with . On the branch of the control, applying X leaves the target alone and produces an overall ; on its own that is a global phase, but because the control is in superposition it becomes a relative phase inside the control, turning into . 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 , so push the control into superposition with H first:
That is exactly the input from §2.3, so run it through CNOT:
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
| Configuration | Output | Entangled? |
|---|---|---|
| Side-by-side , any input | product in, product out (§1.6) | no |
| CNOT with a basis-state control | plain classical XOR, still a product state | no |
| CNOT with a superposed control | two branches coexisting and inseparable | yes |
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 — if it could, it would only ever output product states, contradicting the Bell output above. The family is a very small subset of the 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 . 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:
It looks like a joint state, but it is two independent stories: qubit 1 is , qubit 2 is .
3.2 The criterion
Last time was shown inseparable by contradiction. Doing that every time is clumsy; for a general state there is a mechanical test:
Forward: if it factors, , so and — the same four factors, hence equal. Backward: suppose with and take ; the first three entries differ from by the common factor , and the fourth, (by the criterion), differs by the same factor, so the two are proportional and normalization finishes the job (the case goes the same way by cases) ∎
Checking the two protagonists:
- : → separable ✓
- : → entangled ✓
A measuring stick comes free: 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:
Same shape as , but with unbalanced amplitudes. Here , so it is genuinely entangled, yet the concurrence is — close, but not maxed out.
Where is the difference? Measure the first qubit: . 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, 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:
The naming runs along two dimensions: the Greek letter records whether the two bits agree ( uses 00 and 11, the same; uses 01 and 10, opposite), and the superscript records the relative phase. As column vectors:
The criterion verifies in one second that all four are entangled: for the family ; for the family . And every concurrence is maxed out at 1, which is why they are called maximally entangled states.
The correlation signature: take and measure only the first qubit. Probability gives 0 and collapses to (the other side is 0 too); probability gives 1 and collapses to (the other side is 1 too). The family agrees on both sides, the 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):
(Between the and 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 or in — 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 . Feed the other three basis states to the same circuit :
Input : ; the formula sends , giving .
Input : ; the formula gives .
Input : ; the formula gives .
| Input | Output | Input | Output |
|---|---|---|---|
The pattern can be read straight out of the calculations: the first input bit sets the phase (since has matching signs and opposite ones, and CNOT carries that minus sign into the result untouched); the second input bit picks or (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. and differ only by a minus sign, and measuring directly returns the squared moduli of the components:
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 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:
(Both gates are their own inverses: and .) 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 :
Reading out 10 ✓, matching the dictionary. The full result: , , , .
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 ) strikes a special crystal, and occasionally one pump photon splits into two lower-energy photons, with energy conservation giving .
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
With the encoding and , this is precisely .
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:
The other three put a 1 in the 2nd, 3rd, or 4th diagonal slot. Hermitian and idempotent (the diagonal entries satisfy , ) ✓. For :
and the post-measurement state is . 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 :
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.
Dividing by 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 became .
5.3 On a product state, measurement is local
Take and measure qubit 1:
Suppose the result is 1; normalizing (with ):
Reading the result: the measured qubit 1 collapsed to , while qubit 2 is still in the superposition — 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 qubit 2 was already — not 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 through the same procedure, measuring qubit 1:
(A result of 1 gives the same way.)
Compare §5.3: there qubit 2 was before and after, untouched; here only qubit 1 was measured — even a kilometre away — and qubit 2 becomes a definite 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 :
- measuring Z on qubit 2: ;
- expanding in the X basis (substituting and ):
measuring X on qubit 2 gives . 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 , not , not any point on the sphere.
When the previous notes distinguished ” (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:
For example and . The property needed below is cyclicity: . 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 .
- Machine M (mixed): each time it first flips a hidden fair coin — heads prepares , tails prepares .
Measure both streams in the computational basis. Each of machine P’s gives 0 or 1 with probability by the Born rule; half of machine M’s qubits are (certain to read 0) and half are (certain to read 1), which is still 50/50 statistically. The statistics are identical, yet the two situations are physically nothing alike:
| Machine P | Machine M | |
|---|---|---|
| state of each qubit | definitely | either or |
| where the randomness comes from | born 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. ” or , 50% each” is not a ket, and forcing it into is simply wrong — that is , 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 with classical probability ” is described by a density operator (also called a density matrix):
The division of labour is clean: the outer product holds the quantum superposition (the amplitudes and phases inside each ket), and the real weight 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, . Anything requiring more terms is a mixed state. Note that the in the definition are not required to be orthogonal.
The two machines’ density matrices:
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: , , and both matrices have diagonal — that is the mathematical origin of “identical statistics”. Off-diagonal entries = coherences, recording the phase relation between and : has off the diagonal (a genuine coherent superposition), has 0 (there never were “two components”, so phase is meaningless).
What a general pure state’s looks like is most convincing when computed yourself. With :
The diagonal holds probabilities (moduli squared, phase eaten), and the off-diagonal holds — 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, slowly turning into . That is where the name comes from.
6.4 Different recipes, the same
Compute one more recipe: flip a coin to decide between preparing and . The outer product is , so
Exactly machine M. Two utterly different preparation procedures give the same .
This is not a defect but a feature: ensembles with the same cannot be told apart by any measurement, since every measurement probability is determined by . So 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 . Three credentials plus a measuring stick:
① Hermitian: , which follows from the definition (each outer product is Hermitian and the weights are real). Consequence: all eigenvalues are real.
② Unit trace: . The diagonal entries are probabilities of outcomes, and the total must be 1. Check: ✓ and ✓
③ Positive semidefinite: all eigenvalues . Hermiticity only guarantees real eigenvalues, but probabilities cannot be negative. Together ② and ③ say that the eigenvalues of themselves form a probability distribution.
④ Purity: , a measuring stick for how mixed a state is. With eigenvalues , ; since with all terms non-negative, the sum of squares is largest when one and the rest vanish (value 1, a pure state) and smallest when they are equal (for one qubit , value ). For Hermitian matrices there is a convenient shortcut: , the sum of the squared moduli of all entries. Check:
That is why 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 version | Density-matrix version | |
|---|---|---|
| applying a gate | ||
| expectation value of | ||
| probability via a projector |
Why is applying a gate the sandwich rather than ? Derive it: with , the gate turns the ket into , and since the bra is the dagger of the ket it becomes ; assembling gives . 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 :
(Last step: 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: ends up or 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 can be written
and inside those brackets are precisely the three average readings measured by tomography last time. Writing for the arrow’s length gives , and hence a complete map:
| Location | Purity | Example | |
|---|---|---|---|
| surface | 1 | 1 | (, at ) |
| interior | in between | partially decohered states | |
| centre | 0 |
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 — the geometric version of “gates do not change purity”), and decoherence is a pull inward ( 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 or ”. Using the new formula with :
Every one of machine P’s qubits is , so measuring X gives + with certainty; machine M’s and 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:
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):
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 ( has length , so pull it out):
Checking the coefficients: ✓ (the first two terms are restored) and ✓ 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 → B becomes ;
- A gets 1 with probability → B becomes .
Bob’s view: he does not know what Alice got (she has to phone him). From where he stands, his qubit is ” with probability , with probability ” — exactly the ensemble defined in §6.2, so a density matrix describes it:
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: ✓
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
(summing over an orthonormal basis of A; for one qubit ). 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: 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 on B,
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 and (basis order 00, 01, 10, 11):
(The third row and column vanish because 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: keeps only the terms where A’s ket and bra are both 0 (orthogonality kills the rest) — precisely the top-left block; likewise picks out the bottom-right block. Summing:
exactly matching the intuitive route of §7.2 ✓
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: , 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: . Term by term:
Three self-checks: the trace is 1 ✓; the diagonal gives Alice’s measurement probabilities , , matching §7.2 exactly ✓; the purity is .
And ‘s purity is — different matrices, equal purity. That is no coincidence:
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 is pure (a definite ket, purity 1), while Bob’s half has purity and is mixed.
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 ), 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 . Building the matrix:
Cutting into blocks and adding the top-left to the bottom-right:
This proves the assertion of §5.5: half of a Bell pair is , 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:
| Joint state | Purity | Bloch location | Entanglement | |
|---|---|---|---|---|
| product state | pure | surface | none | |
| the example in §7.2 | mixed | interior | partial | |
| Bell state | centre | maximal |
The stick is monotone: purity falls from 1 to as entanglement climbs from zero to maximal. The formal measure replaces purity with entropy: , 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 (the uniqueness in §7.3). For :
- before Alice measures: (just computed in §7.7);
- after Alice measures (without telling Bob the result): Bob’s side is the ensemble ” with probability , with probability ”, and .
The very same matrix — §6.4’s “different recipes, same ” doing its most important work here. And by §6.8, identical ⟹ 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 stays put.
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 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 — 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 (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 or , Bob freely chooses or , and all four observables read . After many rounds, four correlation values are compiled (multiply the two readings in each round, then average over rounds) and combined into a single number:
(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 , always.
The proof is two lines and entirely elementary. Under LHV, all four values exist in every round (written in advance, whether or not they get measured — that is precisely the content of the hypothesis). Consider the combination
Since and are each , there are only two cases: if then and , so the expression is ; if then and , so it is . In both cases the whole expression equals , and a quantity identically equal to has an average inside . Expanded, averages to exactly , so ∎
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
Compute the same quantum-mechanically. Take with the measurement settings
Bob’s two axes are Alice’s rotated by 45° in the x–z plane. Both are legitimate -valued observables — verify , using the Pauli anticommutation from last time.
The quantum formula for a correlation is the two-qubit sandwich: . First the four base correlations, all by term-by-term application of the golden rule:
(1) : and , so and .
(2) : and , so and .
(3) : and , so . But has components only at 01 and 10 while the result has components only at 00 and 11 — completely disjoint — so .
(4) : likewise, , disjoint from .
Now assemble the four correlation values, expanding everything by linearity:
Substituting into :
The minus sign’s job is now clear: 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 ( against ), 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: , 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:
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:
- 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;
- 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;
- the result has practical value: device-independent cryptography and certified randomness are built on it — you need not trust the device manufacturer, because observing 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
works only for pure states, while the that comes out of a laboratory is usually mixed. So the definition of §3.1 has to be upgraded to allow classical mixing:
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 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 as blocks of matrices (block row and column = A’s indices, position within a block = B’s indices), then transpose each little block in place:
Note this is not a transpose of the whole — 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”: (since is Hermitian), which complex-conjugates the state and physically amounts to running time backwards. It maps legal ‘s to legal ‘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 gives , where each 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 is separable, then all eigenvalues of are non-negative.
The contrapositive, which is the form actually used: find a single negative eigenvalue of and you have proved entangled.
Good news for small systems: for two qubits () and for , 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 and mix in white noise (the maximally mixed state , exactly what decoherence tends to produce in transit):
This is the Werner state. The odd-looking coefficients are deliberately arranged so that equals the fidelity exactly. Verifying (with and ):
means “how much is left”: is a pure Bell state and is pure noise. The question: for which is entangled?
Write out the matrix. Since has in the four corners and 0 elsewhere, the corners are , the diagonal entries at 00 and 11 are , and those at 01 and 10 are :
Check the trace: ✓
Partial transpose. Both diagonal blocks are diagonal matrices and survive transposition unchanged; the two off-diagonal blocks and swap the positions of their entries. Reassembling:
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, twice; the middle block has the form , whose eigenvalues are :
In total: (threefold) and (once). The threefold one is positive throughout the legal range of ; the interesting one is :
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 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.
This is the standard laboratory workflow: measure your own 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
- ” is itself a four-dimensional vector, so how can it also be the first component?” — two roles: as a vector it is ; as a label it names the first component (the slot recording ‘s coefficient). Same relation as and “the first slot is the x component” (§1.1).
- “A and B can swap places in ” — they cannot; the left and right slots are the qubit indices, and (§1.3).
- “To act on one qubit, a suffices” — the dimensions do not match; the bystander must be given an (§1.3).
- “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).
- “A controlled gate only changes the target” — phase kickback is the counterexample: , and it is the control that changed (§2.4).
- “CNOT always creates entanglement” — with a basis-state control it is plain classical XOR and the output is still a product state (§2.6).
- “A few failed attempts at factoring prove entanglement” — that is a universal quantifier; it needs a contradiction argument or the criterion (§3.1–3.2).
- “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).
- “The in a mixed state’s must be orthogonal” — they need not be; the definition asks for no such thing (§6.2).
- “Two recipes giving the same means lost information” — what it lost is exactly the unmeasurable part, a feature rather than a defect (§6.4).
- “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).
- ” and should be equal” — not necessarily equal, but for a pure whole their purities must agree (§7.5).
- “Entanglement can signal faster than light” — never changes, and the local statistics stay 50/50 forever (§7.8).
- “Correlated means entangled” — a shared die produces correlation too; the PPT criterion draws the boundary (§9.4).
11. Self-test (answers included)
Problems
- Write out the matrix of and compute its action on .
- Use the golden rule to compute .
- Decide whether is separable; if so, give the factorization.
- What is the matrix of controlled-Z ()? What does it give on ? Is the result entangled?
- Measure qubit 1 of ; write down and the post-measurement state for outcome 0.
- Write the density matrix of “prepare with probability and with probability ”, and compute its purity.
- Compute for by partial trace. What does the result say?
- Which step of the CHSH proof used the local-hidden-variable assumption?
- Is the Werner state entangled at ? At ?
Answers
- , giving — a minus sign on the branches whose first bit is 1.
- .
- and are equal → separable. Factorization: (check: ✓).
- . , and → entangled. CZ is an entangling gate too (in fact it differs from CNOT only by an H on each side of the target).
- ; the post-measurement state is . (Matching the B state read off the A = 0 branch of the grouped form in §7.2.)
- ; purity . (The very matrix that appeared as in §7.5 — a different physical origin, the same rulebook.)
- , so has at (01,01) and (10,10) and at (01,10) and (10,01); the top-left block is and the bottom-right is , summing to . All four Bell states are maximally entangled and both halves sit at the centre of the ball — consistent with every concurrence being maxed out.
- The sentence “all four values exist in every round”, including the two that were not measured. Quantum mechanics is exactly what refuses this.
- → entangled (); → separable ().
12. Symbol quick reference (new in these notes)
| Symbol | Name | One-line meaning |
|---|---|---|
| golden rule | ; side-by-side gates mind their own qubit and never entangle | |
| / | two side-by-side gates | flip qubit 1 (halves trade places) / flip qubit 2 (swap within each half) |
| column of a matrix | destination table | where basis vector goes; converts between truth table and matrix |
| controlled gate | the action is installed only on the half where the control is 1 | |
| controlled-NOT | reversible XOR; | |
| then CNOT | entangling recipe | a dictionary between computational and Bell bases; run backwards to decode |
| separability criterion | pure two-qubit states; = concurrence | |
| Bell states | four maximally entangled states forming the Bell basis | |
| partial measurement | measures qubit 1 only; zeroes incompatible branches, keeps the rest superposed | |
| trace | sum of diagonal entries; | |
| density matrix | classical probability and quantum superposition in separate layers; diagonal = probability, off-diagonal = coherence | |
| purity | 1 = pure; = maximally mixed for one qubit | |
| maximally mixed state | centre of the Bloch ball; 50/50 in every basis | |
| / | density-matrix formulas | the sandwich: ket and bra each take a share; expectation values and probabilities generalized |
| partial trace | trace out the half you do not hold; cut into blocks by A and add the diagonal ones | |
| entanglement entropy | the more mixed the halves, the more entangled the whole; 0 for a product state, 1 bit for a Bell state | |
| CHSH value | under local hidden variables; quantum mechanics reaches | |
| partial transpose | transpose each block in place; a negative eigenvalue ⟹ entangled |
The whole article in one sentence: side-by-side gates 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 into a Bell state, with 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 and decades of experiment answer: it was not.