Back to Module 8 notes

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).
  1. Let and . Compute the post-measurement state after the outcome and the exact trace distance . Is the gentle measurement lemma (Lemma 8.2) tight?
  2. Now take for the same state. What is the acceptance probability, and what is ? What does this say about the lemma?
  3. 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?
  4. 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.

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 , , .

  1. Show that and deduce
  1. Using the Golden–Thompson inequality and for , prove that after a mistake with (as in Theorem 8.7)
  1. Conclude that for the number of mistakes is at most , and find the that minimizes this bound.
  2. What does the bound say when ? Check the answer directly.

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.

  1. Check that is a state for and that .
  2. Compute exactly for and compare it with the bound used in the proposition.
  3. With the exact value, how many copies does every protocol need for qubits, , and ?
  4. 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?

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 np
 
def herm(A, f):                         # f applied to the eigenvalues of A
    w, V = np.linalg.eigh(A)
    return (V * f(w)) @ V.conj().T
 
d, eps = 8, 0.1
rng = 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))
  1. Run the snippet. It prints , , , mistakes, with final potentials , , , . Compare the mistake counts with the guarantee of Problem 8.2 where it applies.
  2. 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.
  3. 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?