Skip to content

Entropy and distinguishability

A qubit’s state is described by continuous numbers, yet measuring it yields a single bit. So how much information does a qubit hold? This last lesson of the track gives three precise answers to three versions of that question.

Start with the classical case. A source produces outcomes with probabilities p1,p2,…p_1, p_2, \dots Its Shannon entropy is

H(p)=−∑ipilog⁡2pi,H(p) = -\sum_i p_i \log_2 p_i,

measured in bits. It is the average number of bits needed to record an outcome, and so a measure of how uncertain you are beforehand. A fair coin has entropy 1 bit. A coin that always lands heads has entropy 0. A coin with probabilities 0.9 and 0.1 has about 0.47 bits.

For a density matrix the corresponding quantity is the von Neumann entropy,

S(ρ)=−Tr(ρlog⁡2ρ).S(\rho) = -\mathrm{Tr}\bigl(\rho \log_2 \rho\bigr).

In practice you compute it from the eigenvalues λi\lambda_i of ρ\rho, which are non-negative and sum to 1, and so form a probability distribution:

S(ρ)=−∑iλilog⁡2λi.S(\rho) = -\sum_i \lambda_i \log_2 \lambda_i.

Two cases to remember:

  • a pure state has eigenvalues 1 and 0, so its entropy is 0,
  • the maximally mixed qubit I/2I/2 has eigenvalues 12\tfrac12 and 12\tfrac12, so its entropy is 1 bit.

Entropy measures mixedness, and nothing else.

Check

The state ∣+⟩\ket{+} gives 0 or 1 with equal probability when measured. What is its von Neumann entropy?

In the lesson on density matrices you saw that half of a Bell pair is maximally mixed, even though the pair is pure. That observation becomes a measuring stick.

For a pure state of two parts, the entropy of either part’s reduced state is called the entanglement entropy. Both parts always give the same value. It is 0 for a product state and 1 bit for a Bell pair, which is why one Bell pair is called one ebit of entanglement.

States in between exist too. The panel in this puzzle shows the entropy of the top qubit.

PuzzleA little entanglement

Starting from ∣00⟩\ket{00}, give the top qubit the reduced state with diagonal entries 0.854 and 0.146 and no coherences. Its entropy is about 0.6 bits: entangled, but less than a Bell pair.

This puzzle needs JavaScript.

Hint

HH, then TT, then HH on ∣0⟩\ket{0} gives a state with unequal probabilities, about 0.854 and 0.146. Then entangle.

The CNOT is the same one that makes a Bell pair. It produced less entanglement here because the control was not in an equal superposition. How much entanglement a gate creates depends on the state it acts on.

Now a different question. Someone hands you a qubit that is either in state ∣A⟩\ket{A} or in state ∣B⟩\ket{B}, each with probability 12\tfrac12. You may do any measurement you like, once. How often can you say correctly which it was?

If the states are orthogonal, such as ∣0⟩\ket{0} and ∣1⟩\ket{1}, always. If they are identical, half the time, by guessing. In between, it depends on their overlap, and no measurement does better than the limit set by quantum mechanics.

In the simulator, AA is fixed at ∣0⟩\ket{0} and you choose how far away BB is. Then turn the measurement axis to make your success rate as high as possible. The outcome on the side marked + is read as “it was A”.

SimulatorTell two states apart

Things to try:

  1. With the states at 90°, which are ∣0⟩\ket{0} and ∣+⟩\ket{+}, the natural choice is to measure along AA. That gives 75%. Can you beat it?
  2. Find the best axis for a few different angles. How is it placed relative to the two states?
  3. Bring the states close together. What does the best success rate tend to?

The best axis does not point straight at AA. It is tilted away from BB, at right angles to the line that bisects the two states, so that the + end favours AA exactly as much as the other end favours BB. The resulting success rate is the Helstrom bound:

Pbest=12(1+1−∣⟨A∣B⟩∣2).P_{\text{best}} = \tfrac12\Bigl(1 + \sqrt{1 - |\langle A|B\rangle|^2}\Bigr).

For ∣0⟩\ket{0} and ∣+⟩\ket{+} the overlap is 12\tfrac12, and the bound is about 85.4%.

This limit is not a statement about clumsy apparatus. It is a property of the states. Several things you have met depend on it:

  • Cryptography. BB84 is secure because an eavesdropper cannot reliably tell ∣0⟩\ket{0} from ∣+⟩\ket{+}.
  • No-cloning. If you could copy an unknown state, you could make many copies and measure them all, distinguishing the states as well as you liked. So copying must be impossible.

For mixed states the overlap is replaced by the trace distance D(ρ,σ)D(\rho, \sigma), a number between 0 and 1 that measures how different two density matrices are. The best success rate is 12(1+D)\tfrac12(1 + D). Trace distance is the standard way of saying how close a noisy state is to the one you wanted.

Finally, the question from the top of the page. Describing a qubit’s state exactly takes infinitely many bits. But the Holevo bound says that however Alice encodes a message into nn qubits, and however Bob measures them, he can recover at most nn bits of it.

Check

Alice and Bob share no entanglement. Alice sends Bob one qubit. How many bits of a message can he reliably recover?

So a qubit is not a container for unlimited data. The amplitudes are real, and a computation can make use of all of them along the way, but only a small amount of classical information can be read out at the end. Designing quantum algorithms is largely the art of working within that limit, arranging for the one thing you can read to be the thing you wanted to know.

That completes the foundation. You can now describe pure and mixed states, gates, measurements, entanglement and noise, and you have the vocabulary the other tracks are written in. They can be taken in any order:

RecallAnswer from memory, then check
LessonFinish this lesson