These problems practise the damage accounting of gentle measurement, the potential argument behind the online mistake bound, and the lower bound for shadow tomography.
Problem 1
Problem 8.1 (How many tests fit on one copy).
Let and . Compute the post-measurement state after the outcome and the exact trace distance . Is the gentle measurement lemma (Lemma 8.2) tight?
Now take for the same state. What is the acceptance probability, and what is ? What does this say about the lemma?
A protocol runs projective tests in a row on one state, each rejecting the original state with probability . Using Theorem 8.3, what is the largest for which the failure probability is guaranteed to be at most ? For which is the conditioned state guaranteed to be within trace distance of the original? What would Sen’s bound allow?
In the first snippet of the module, tests that are each very likely to pass on the state they are applied to move to . Explain why this does not contradict Theorem 8.3.
Solution
. For pure states with , so . The lemma gives because , so it is tight for a pure state and a projector.
again, but , so . The lemma is a worst-case bound in terms of the acceptance probability alone; how much a measurement disturbs also depends on how acts, and a multiple of the identity does not act at all.
. Gao’s bound holds for . The damage bound holds for . Sen’s bound requires , so only . The linear dependence on the loss is what lets one copy support many tests.
The theorem measures every rejection probability on the original state . Test projects onto with , which rejects with probability ; these sum to . The guarantees and are then empty, so nothing is violated. The small step-by-step rejection probabilities, which sum to , are not the quantities the theorem is about.
Problem 2
Problem 8.2 (The potential behind the mistake bound).
Let be the MMW hypothesis of Theorem 8.6, with and , and suppose the learner updates in round with a loss , , .
Show that and deduce
Using the Golden–Thompson inequality and for , prove that after a mistake with (as in Theorem 8.7)
Conclude that for the number of mistakes is at most , and find the that minimizes this bound.
What does the bound say when ? Check the answer directly.
Solution
and , so . The relative entropy is , so, using , the difference is
and , which gives both inequalities.
3. The potential starts at , never becomes negative (Klein’s inequality), and does not change on rounds without an update. Each mistake lowers it by at least , so there are at most mistakes. The denominator is largest at , where it equals ; this gives the of Theorem 8.7.
4. For , and the bound is zero: no mistakes at all. Indeed the first hypothesis is , every prediction is exact, the learner never updates, and so it stays exact forever. More generally, the closer is to maximally mixed, the fewer corrections the learner can need.
Problem 3
Problem 8.3 (The lower bound instance is classical).
Use the family of Proposition 8.14, namely and , where the are diagonal with the non-constant rows of the Sylvester–Hadamard matrix on the diagonal.
Check that is a state for and that .
Compute exactly for and compare it with the bound used in the proposition.
With the exact value, how many copies does every protocol need for qubits, , and ?
Give a protocol that measures each copy on its own, in the computational basis, and solves shadow tomography for this family with copies. Evaluate its copy count for the numbers of part 3. What does this say about the lower bound?
Solution
is diagonal with entries for , and because for a non-constant Hadamard row (it has as many as entries). Then
since distinct Hadamard rows are orthogonal and .
2. The eigenvalues are , , each with multiplicity , so
The bound is about twice as large; for small , .
3. Every protocol needs
so at least copies.
4. Measure every copy in the computational basis; outcome occurs with probability . For each , estimate by the fraction of outcomes with : since is diagonal, this fraction is an average of independent variables with mean exactly . Hoeffding’s inequality (Theorem 1.14) gives failure probability at most per , and the union bound over indices gives once . For the numbers of part 3, , so copies. The same outcomes serve all estimates, exactly as in the classical setting. The lower bound and this upper bound differ only by a constant factor (about here), so the family is as hard as shadow tomography gets for commuting observables, and the information-theoretic argument cannot see any cost of quantum disturbance.
Problem 4
Problem 8.4 (The learning rate in practice).
The snippet runs the small-step adversary of Example 8.15 against MMW learners with four learning rates and prints the learning rate, the number of mistakes, and the final potential .
import numpy as npdef herm(A, f): # f applied to the eigenvalues of A w, V = np.linalg.eigh(A) return (V * f(w)) @ V.conj().Td, eps = 8, 0.1rng = np.random.default_rng(8)v = rng.normal(size=d) + 1j * rng.normal(size=d)v /= np.linalg.norm(v)rho = np.outer(v, v.conj())for eta in [0.025, 0.05, 0.1, 0.2]: H, omega, k = np.zeros((d, d)), np.eye(d) / d, 0 while True: w, V = np.linalg.eigh(omega - rho) P = V[:, w > 0] @ V[:, w > 0].conj().T T = w[w > 0].sum() # trace distance if T <= 1.01 * eps: break H = H + (1.01 * eps / T) * P # small-step mistake omega = herm(-eta * H, np.exp) omega, k = omega / np.trace(omega).real, k + 1 D = -np.vdot(v, herm(omega, np.log) @ v).real # D(rho || omega) print(eta, k, round(D, 3))
Run the snippet. It prints , , , mistakes, with final potentials , , , . Compare the mistake counts with the guarantee of Problem 8.2 where it applies.
Every error in this run equals . Assume that each mistake lowers the potential by exactly , neglecting the term. Predict the four mistake counts from the printed final potentials and compare.
The counts keep falling as grows past , where the guarantee no longer applies. Why does the theorem nevertheless insist on ? Which term of the inequality in part 2 of Problem 8.2 is small for this adversary, and what kind of measurement would make it large?
Solution
With and : for the guarantee is , and for it is . The observed and respect both. For and the denominator is zero or negative, and the theorem says nothing.
The potential falls from to the printed final value, so the predicted count is : , , and . The observed counts exceed these by one or two: the prediction is accurate to about one percent, so the term really is negligible here.
The neglected term is . The small-step adversary shows with , so . Early on is small; late in the run approaches one, but then is close to and puts little weight on , the subspace where it exceeds . In the run with , never exceeds and averages about . The theorem must hold for every stream, including measurements of norm one on which the hypothesis puts weight close to one, so that . Then the guaranteed decrease is only , which is positive only for : a learner with a large learning rate overreacts to each correction and can overshoot, and the worst-case analysis must allow for that. In practice a larger rate often learns faster, as here, but without a guarantee.