Education / Quantum Information

Quantum Information · Chapter 12

Quantum Compression

How many qubits are needed to preserve the messages of a quantum source?

In this chapter
  1. 12.1 Quantum Sources
    1. 12.1.1 Source ensembles and average states
    2. 12.1.2 Faithful recovery and fidelity
  2. 12.2 Typical Subspaces
    1. 12.2.1 Repeated sources and typicality
    2. 12.2.2 Encoding and decoding
  3. 12.3 Compression Limits
    1. 12.3.1 Schumacher compression
    2. 12.3.2 Rates, errors, and assumptions
Before you begin

Starting point: Classical typical strings, density operators, fidelity and von Neumann entropy; typical subspaces are introduced in context.

Keep in view: Compress repeated signals drawn from a biased qubit ensemble.

We have an entropy for quantum states: the entropy of the eigenvalues of the density operator. For classical sources, entropy was more than a measure of uncertainty. It was the number of bits per symbol needed to store long messages, because the likely strings are few.

Does the von Neumann entropy count qubits in the same way? A quantum source poses a new difficulty. Its signals may be nonorthogonal, so nobody can read them, and reading them would change them. What does it even mean to compress such a source? We first state what must be preserved and how to score a recovery. Then we find the likely part of a long block without measuring it, as a subspace spanned by eigenvector strings. Moving that subspace coherently into fewer qubits gives a compression rate equal to the entropy, and a cited theorem says no lower rate works.

12.1 Quantum Sources

A source emits one of two nonorthogonal qubit states on each use, independently. Sending one qubit per signal obviously works. Could a long block fit into fewer qubits? We first describe the source by its average state and see why measuring the signals is not an option. Then we fix the success criterion, the fidelity of the recovered signals, and show that preserving the average state alone is not enough.

12.1.1 Source ensembles and average states§

Our source emits \(\ket{\psi_\pm}=(\sqrt3\ket0\pm\ket1)/2\), each with probability \(1/2\). What does a receiver who does not know the signs hold? The off-diagonal entries of the two projectors cancel in the average, leaving

\[\rho=\tfrac12\ket{\psi_+}\bra{\psi_+}+\tfrac12\ket{\psi_-}\bra{\psi_-}=\mathrm{diag}(3/4,1/4).\]

Its entropy is \(S(\rho)=h_2(1/4)\approx0.811\). For \(n\) independent uses the block's average state is \(\rho\otimes\rho\otimes\cdots\otimes\rho\), written \(\rho^{\otimes n}\).

Could Alice simply measure each signal and compress the classical results? Measuring the eigenbasis of \(\rho\), here Z, gives 0 and 1 with probabilities \(3/4\) and \(1/4\), which classical compression could store in about 0.811 bits per signal. But the source never emits \(\ket0\) or \(\ket1\). The measurement replaces each signal by an eigenvector, so it changes the very states we were asked to keep. And measuring to learn the sign fails too, because the two signals are nonorthogonal. A quantum compressor must store the signals without reading them.

12.1.2 Faithful recovery and fidelity§

How should we score a compressor that is not perfect? When we studied copying we used the fidelity \(F=\bra\psi\sigma\ket\psi\), the probability that a recovered state \(\sigma\) passes the test for the intended pure state \(\psi\). It is 1 for exact recovery. For a source we average it over the signals. Some authors use the square root of this number instead, so the convention must be stated. There is also a general fidelity between two mixed states, due to Uhlmann, which we do not need here.

Score the measure-and-resend scheme. On \(\ket{\psi_+}\), measuring Z and preparing the result gives \(\ket0\) with probability \(3/4\) and \(\ket1\) with probability \(1/4\), so \(\sigma=\mathrm{diag}(3/4,1/4)\). Its fidelity is \(\bra{\psi_+}\sigma\ket{\psi_+}=\tfrac34\cdot\tfrac34+\tfrac14\cdot\tfrac14=5/8\). The same holds for \(\ket{\psi_-}\).

Yet this scheme leaves the average state exactly as it was. So preserving \(\rho\) is far too weak a criterion: a compressor could pass it while losing the signals. A stronger test asks the compressor to preserve entanglement between the source and a reference system that never passes through it. Any scheme that secretly measures the signals fails that test.

Problems

Problem 12.1. Measure three signals of the source in the eigenbasis of ρ, where outcome one has probability 1/4. What total probability lies on strings with zero or one ones?

Worked solution

It is \((3/4)^3+3(1/4)(3/4)^2=54/64=0.84375\). These four strings span a space that can be labeled with two qubits, but the discarded weight is still substantial. This is a finite illustration, not a high-fidelity asymptotic guarantee.

12.2 Typical Subspaces

Classical compression kept only the typical strings. A quantum block is not a string, and we may not look at it. Can we still keep its typical part? We find the eigenvectors of the block's average state, which are strings of eigenvectors, and span the typical ones. Then we move that subspace into fewer qubits coherently and bound the fidelity lost on the rest.

12.2.1 Repeated sources and typicality§

What are the eigenvectors of \(\rho^{\otimes n}\)? Let \(\rho\ket j=\lambda_j\ket j\). A tensor product acts on each factor separately, so

\[\rho^{\otimes n}\ket{j_1j_2\cdots j_n}=\lambda_{j_1}\lambda_{j_2}\cdots\lambda_{j_n}\ket{j_1j_2\cdots j_n}.\]

The eigenvectors are strings of single-signal eigenvectors, and each eigenvalue is a product, exactly like the probability of a string from an independent classical source with probabilities \(\lambda_j\). So the classical counting applies unchanged. Strings with about \(n\lambda_j\) copies of each label \(j\) are typical. Each has eigenvalue about \(2^{-nS(\rho)}\). Since the eigenvalues add to one, there are at most about \(2^{n(S+\delta)}\) of them, for any small margin \(\delta>0\).

The span of the typical eigenvector strings is the typical subspace. Its total weight, the sum of their eigenvalues, is the probability that an eigenbasis measurement would find a typical string. By the law of large numbers, which needs the independent-use assumption, this weight tends to one as \(n\) grows. For \(n=3\), with "typical" taken to mean at most one 1, it is \(54/64\approx0.84\), still far from one.

12.2.2 Encoding and decoding§

How can Alice store a block in the typical subspace without learning which string it is in? Take the illustrative three-signal subspace spanned by \(000,001,010,100\). A coherent encoder sends these four to the two-qubit labels \(00,01,10,11\), and acts linearly on superpositions. For instance, \((\ket{000}+\ket{100})/\sqrt2\) becomes \((\ket{00}+\ket{11})/\sqrt2\), with no record of which term was which. A map that keeps inner products like this, from a subspace into a register, is an isometry. The decoder reverses it.

What about the part of the block outside the subspace? Alice may perform the two-outcome projective measurement "typical or not". It reveals only that, and leaves any superposition within the typical subspace intact. On "not", she sends some fixed state and accepts a failure.

How much fidelity does this cost? Let \(P\) be the projector onto the typical subspace, and suppose a block signal \(\ket\psi\) has \(\bra\psi P\ket\psi=1-\epsilon_\psi\). The "typical" branch occurs with probability \(\|P\ket\psi\|^2\) and recovers \(P\ket\psi/\|P\ket\psi\|\), whose fidelity with \(\ket\psi\) is \(|\bra\psi P\ket\psi|^2/\|P\ket\psi\|^2\). Multiplying, the fidelity is at least \((1-\epsilon_\psi)^2\geq1-2\epsilon_\psi\). Averaged over the source, the \(\epsilon_\psi\) average to the weight outside the typical subspace. So the average fidelity is at least one minus twice the discarded weight.

For our three-signal toy subspace the discarded weight is \(10/64\), so the bound guarantees only about \(0.69\). This small example shows the map and its finite loss. It does not show that three signals reach the entropy rate.

Problems

Problem 12.2. Why not measure the typical string and send its index classically?

Worked solution

That would preserve the eigenbasis label but destroy superpositions of different strings and their coherence with a reference. Quantum compression preserves the state in the subspace.

12.3 Compression Limits

The typical subspace has dimension about \(2^{nS}\), and its weight tends to one. How many qubits per signal does that require, and could any cleverer scheme use fewer? We convert dimension into qubits to get the rate, then quote the theorem that makes it the limit. Finally we list what the theorem assumes, so that it is not applied where it does not hold.

12.3.1 Schumacher compression§

A register of \(m\) qubits has \(2^m\) orthogonal labels. So a subspace of dimension \(D\) fits into \(m=\lceil\log_2D\rceil\) qubits, where the ceiling rounds up to the next whole number. The typical subspace has \(D\leq2^{n(S+\delta)}\), so \(m\leq\lceil n(S+\delta)\rceil\). Per signal, the rate is at most \(S+\delta+1/n\), and the rounding cost \(1/n\) vanishes for long blocks. Since \(\delta\) can be as small as we like, any rate above \(S\) is reachable with fidelity tending to one.

Can a different scheme go below \(S\)? We quote Schumacher's quantum coding theorem (1995), which includes the converse. For a memoryless source of finite-dimensional signals, with fidelity required to tend to one, the entropy \(S(\rho)\) is the optimal rate in qubits per signal. Rates above it are achievable, and rates below it are not. The typical-subspace construction is the achievability half; the converse needs an argument we do not give. For our source the limiting rate is about 0.811 qubits per signal.

12.3.2 Rates, errors, and assumptions§

What exactly does the theorem promise for our source? A rate of 0.85 qubits per signal lies above the entropy, so long enough blocks can be compressed at that rate with fidelity as close to one as we like. A rate of 0.75 lies below it, and no scheme can keep fidelity near one. A single small encoding that happens to work proves neither statement.

The promise is asymptotic. It does not say that three signals fit faithfully into \(3\times0.811\approx2.433\) qubits. A register has a whole number of qubits, finite blocks leave atypical weight behind, and real encoding circuits have costs.

The assumptions matter too. If the source has memory, if its ensemble is unknown, or if every possible input must be preserved exactly rather than typical source behaviour, the theorem does not apply unchanged. And a compressible source does not mean that an arbitrary quantum computation can safely discard most of its qubits.

Many copies of a mixed state have a small typical subspace. Many copies of a weakly entangled pair have one too. Could Alice and Bob turn many weakly entangled pairs into fewer perfect Bell pairs?

Sources and further study: Schumacher, Quantum coding.

Problems

Problem 12.3. What compression rate follows for the maximally mixed qubit source?

Worked solution

Its entropy is one, so there is no asymptotic reduction below one qubit per signal under faithful quantum recovery.

Transfer problem. A three-qubit compressor measures which one of 000,001,010,100 occurred and then sends its two-bit label. Test it on \((\ket{000}+\ket{100})/\sqrt2\).

Worked solution

The decoded output is the equal mixture of 000 and 100, since the record removed the relative coherence. Its squared fidelity with the target superposition is one half. A coherent isometry between the same subspaces would preserve the superposition exactly; the dimension count alone does not validate a measurement-based encoder.

Summary

Questions and worked problems

These exercises draw on the whole chapter. Attempt each question before opening a hint, explain your reasoning, then compare it with the worked solution.

1. Quick check §

Give the Schumacher compression rate, in qubits per signal, for these memoryless sources: (a) always \(\ket0\); (b) \(\ket0\) or \(\ket1\) with probabilities \(0.9\) and \(0.1\); (c) \(\ket0\) or \(\ket+\) with equal probability.

Hint 1

The rate is \(S(\rho)\) of the average state.

Hint 2

For (c), the Holevo calculation found eigenvalues \((1\pm1/\sqrt2)/2\).

Worked solution

(a) \(S=0\): nothing needs to be sent, since the receiver can prepare \(\ket0\) himself. (b) \(S=h_2(0.1)\approx0.469\) qubits per signal. (c) \(S=h_2(0.854)\approx0.601\) qubits per signal, even though the label choice carries \(1\) bit of classical entropy. Overlapping signals are cheaper to store as quantum states than their labels would be as classical bits.

Revisit the relevant explanation

2. Quick check §

For the source \(\ket{\psi_\pm}=(\sqrt3\ket0\pm\ket1)/2\), compare the fidelity of three crude “compressors” that send nothing: (a) the decoder outputs \(I/2\); (b) the decoder outputs \(\ket0\); (c) the encoder measures \(Z\) and the decoder re-prepares the outcome (which sends one classical bit).

Hint 1

\(F=\bra{\psi_\pm}\sigma\ket{\psi_\pm}\).

Hint 2

\(|\braket0{\psi_\pm}|^2=\frac34\).

Worked solution

(a) \(F=\frac12\). (b) \(F=|\braket0{\psi_\pm}|^2=\frac34\). (c) The text found \(F=\frac58\). Sending nothing and always outputting \(\ket0\) beats measuring and resending, because the measurement scrambles the coherence while \(\ket0\) is simply the closest single state to both signals. None of these approaches \(F=1\); faithful recovery needs a coherent encoder that keeps the signals’ superpositions.

Revisit the relevant explanation

3. Quick check §

How many qubits are needed to store a subspace of dimension \(D=4\), \(D=5\), and \(D=2^{86.1}\)? For a source with \(S=0.811\), \(n=100\), and \(\delta=0.05\), what block size in qubits does the typical-space bound give, and what rate?

Hint 1

\(m=\lceil\log_2D\rceil\).

Hint 2

\(n(S+\delta)=86.1\).

Worked solution

\(D=4\) needs \(2\) qubits, \(D=5\) needs \(3\), and \(D=2^{86.1}\) needs \(87\). For the source, \(n(S+\delta)=86.1\), so \(87\) qubits suffice for the typical subspace: a rate of \(0.87\) qubits per signal, above \(S\) because of \(\delta\) and rounding. As \(n\) grows with \(\delta\) shrinking, the rate approaches \(0.811\).

Revisit the relevant explanation

4. Worked problem §

Apply the three-signal toy compressor to the product state \(\ket{\psi_+}^{\otimes3}\), where \(\ket{\psi_+}=(\sqrt3\ket0+\ket1)/2\). The encoder projects onto the span of \(000,001,010,100\); on success it keeps the projected state, and on failure the decoder outputs \(\ket{000}\). (a) Find the success probability \(p\). (b) Show that the fidelity is \(p^2+(1-p)\,|\braket{000}{\psi_+^{\otimes3}}|^2\) and evaluate it.

Hint 1

The amplitudes are \((\sqrt3/2)^3\) on \(000\) and \(\frac38\) on each string with one \(1\).

Hint 2

On success the overlap with the target is \(\sqrt p\), giving contribution \(p\cdot p\).

Worked solution

(a) \(p=\frac{27}{64}+3\cdot\frac{9}{64}=\frac{54}{64}\approx0.844\). (b) On success the normalized state \(P\ket\Psi/\sqrt p\) has overlap \(\bra\Psi P\ket\Psi/\sqrt p=\sqrt p\) with the target, contributing \(p\cdot p=p^2\). On failure, the output \(\ket{000}\) contributes \((1-p)|\braket{000}\Psi|^2=(1-p)\frac{27}{64}\). The fidelity is \(0.712+0.066\approx0.778\), using \(2\) qubits for \(3\) signals. A coherent compressor beats crude strategies, but the toy block is too short to be nearly faithful.

Revisit the relevant explanation

5. Worked problem §

A source emits \(\ket0\) or \(\ket+\) with equal probability, and Alice knows each label. Compare two ways of sending \(n\) signals to Bob: (a) send the labels classically; (b) Schumacher-compress the quantum signals. Give the asymptotic rates. Then explain which method remains available if Alice receives the signals from a device that hides the labels.

Hint 1

Classical labels have entropy \(1\) bit each.

Hint 2

\(S(\bar\rho)\approx0.601\).

Worked solution

(a) The labels are fair bits, so classical compression needs \(1\) bit per signal; Bob then prepares the states himself. (b) Quantum compression needs \(S\approx0.601\) qubits per signal, fewer resources, because the signals overlap and the average state is far from maximally mixed. If the labels are hidden, (a) is impossible: Alice cannot identify nonorthogonal states reliably, and any attempt disturbs them. Schumacher compression never needs to know which signal was sent, since it acts coherently on the typical subspace.

Revisit the relevant explanation

6. Worked problem §

A stronger test of a compressor uses a reference system. Let \(\ket\Phi=\frac{\sqrt3}{2}\ket0_R\ket0+\frac12\ket1_R\ket1\), which purifies \(\rho=\mathrm{diag}(\frac34,\frac14)\). The “compressor” measures the signal in \(Z\) and resends the outcome. (a) Find the output joint state. (b) Compute the entanglement fidelity \(\bra\Phi\sigma_{RS}\ket\Phi\). (c) Compare with the ensemble fidelity \(\frac58\).

Hint 1

Measuring \(Z\) on the signal removes the cross terms between \(\ket{00}\) and \(\ket{11}\).

Hint 2

The entanglement fidelity is \(\sum_j\lambda_j^2\).

Worked solution

(a) Dephasing gives \(\sigma_{RS}=\frac34\ket{00}\bra{00}+\frac14\ket{11}\bra{11}\). (b) \(\bra\Phi\sigma\ket\Phi=\frac34\cdot\frac34+\frac14\cdot\frac14=\frac58\). (c) It equals the ensemble fidelity found in Section 12.1.2. A procedure that measures the eigenbasis destroys the coherence between the system and anything entangled with it; faithful compression must preserve such correlations, which is the criterion Schumacher’s theorem uses.

Revisit the relevant explanation

7. Worked problem §

For \(n=2\) signals from the source with eigenvalues \(\frac34,\frac14\), compress into one qubit. (a) List the four eigenstring weights. (b) Which two-dimensional subspace keeps the most weight, and how much? (c) What rate is this, and how does the retained weight compare with the three-signal, two-qubit toy compressor?

Hint 1

Weights: \(00\): \(\frac{9}{16}\), \(01,10\): \(\frac{3}{16}\) each, \(11\): \(\frac1{16}\).

Hint 2

Keep the largest weights.

Worked solution

(a) \(\frac9{16},\frac3{16},\frac3{16},\frac1{16}\). (b) Keep \(00\) and one of \(01,10\): weight \(\frac{12}{16}=0.75\). (c) The rate is \(\frac12\) qubit per signal, below \(S\approx0.811\), and the retained weight is \(0.75\), lower than the \(0.844\) of the three-signal toy compressor at rate \(\frac23\). Short blocks force a crude choice between rate and fidelity; the asymptotic theorem says the trade-off disappears only above \(S\) and only as \(n\to\infty\).

Revisit the relevant explanation

8. Misconception §

A student writes: “A compressor is faithful if the decoded average density matrix equals the source’s average \(\rho\).” Give a procedure for the \(\ket{\psi_\pm}\) source that passes this test perfectly yet has fidelity \(\frac58\), and say what the correct criterion requires.

Hint 1

Measuring in the eigenbasis leaves the average matrix unchanged.

Hint 2

Fidelity is computed signal by signal, or with a reference.

Worked solution

Measure each signal in the computational basis and re-prepare the outcome. The decoded average is \(\frac34\ket0\bra0+\frac14\ket1\bra1=\rho\), exactly the source average, yet each individual signal is recovered with fidelity \(\frac58\). The average matrix forgets which signal was sent, so preserving it says nothing about preserving signals. A faithful compressor must give high fidelity for each signal (averaged over the ensemble), or equivalently preserve entanglement with a reference that purifies \(\rho\).

Revisit the relevant explanation

9. Extension §

No \(K\)-dimensional subspace can capture more weight of a state than the sum of its \(K\) largest eigenvalues (a result known as Ky Fan’s principle). (a) For \(\rho^{\otimes3}\) with eigenvalues \(\frac34,\frac14\), compute the best weight for \(K=2\) and \(K=4\). (b) Use the typical-string count to argue that for rates below \(S\), the best weight tends to zero as \(n\) grows.

Hint 1

The eight eigenvalues are \(\frac{27}{64}\), three of \(\frac{9}{64}\), three of \(\frac{3}{64}\), and \(\frac1{64}\).

Hint 2

A typical string has eigenvalue about \(2^{-nS}\).

Worked solution

(a) \(K=2\): \(\frac{27+9}{64}=0.5625\). \(K=4\): \(\frac{27+27}{64}=0.844\), which the toy compressor attains. (b) With rate \(R<S\), the subspace has dimension \(K=2^{nR}\). Almost all weight lies on typical strings, each with eigenvalue about \(2^{-nS}\), so \(K\) of them carry at most about \(2^{nR}\cdot2^{-nS}=2^{-n(S-R)}\), which tends to zero; the atypical strings carry vanishing weight in total. So every encoding into fewer than \(nS\) qubits eventually loses almost all of the signal, which is the converse of Schumacher’s theorem in outline.

Revisit the relevant explanation

10. Extension §

The three-signal toy compressor uses \(2\) qubits for \(3\) signals, a rate of \(\frac23\), below \(S\approx0.811\), yet it achieves fidelity about \(0.78\). Does this contradict the converse of Schumacher’s theorem? Explain what happens at rate \(\frac23\) as \(n\) increases, and what changes at a rate above \(S\).

Hint 1

The converse is a statement about the limit \(n\to\infty\).

Hint 2

At a fixed rate below \(S\), retained weight behaves like \(2^{-n(S-R)}\).

Worked solution

No. The theorem says that at any fixed rate below \(S\), fidelity cannot approach \(1\) as \(n\) grows; it allows imperfect fidelity for a short block. At rate \(\frac23\), the best retained weight shrinks roughly like \(2^{-n(0.811-0.667)}=2^{-0.14n}\) for large \(n\), so longer blocks make things worse, not better. Above \(S\), say at \(0.85\), the typical subspace eventually fits, and the fidelity approaches \(1\). Finite examples illustrate a theorem but cannot confirm or refute an asymptotic rate.

Revisit the relevant explanation

Search this book

Search the course.