Back to Module 7 notes

These problems compute measurement channels and shadow norms by hand, compare two dual frames of the same measurement, and analyse the estimator for nonlinear functions.

Problem 1

Problem 7.1 (Single-qubit Pauli shadows by hand).

A qubit in the state is measured in the eigenbasis of , or , each with probability .

  1. Let be the projectors onto the six eigenvectors. Show that by evaluating both sides on .
  2. Find and the snapshot of the outcome “basis , sign ”. What are its eigenvalues and its trace? Is it a state?
  3. Let with . Show that for every state, and find the variance of one snapshot estimate. Compare with measuring directly in its own eigenbasis.
  4. Check part 3 against Proposition 7.9 with , and explain why the two must agree.

Problem 2

Problem 7.2 (Fidelity estimation with Clifford shadows).

Let be a pure target state in dimension and . Use random Clifford shadows and the formula for the second moment in Proposition 7.9.

  1. With , show that and .
  2. Write the variance of one snapshot estimate of as a function of and .
  3. Evaluate it at and at . Show that it is less than in both cases, for every .
  4. For the four-qubit GHZ state of Example 7.15, Pauli shadows have single-snapshot variance for the fidelity. How many snapshots does each ensemble need for a standard error of on at ?

Problem 3

Problem 7.3 (Biased Pauli shadows and two dual frames).

Measure one qubit in the eigenbasis of with probability , , and write . The effects are for .

  1. Show that the measurement channel satisfies and for , and that the measurement-channel dual is .
  2. The frame operator of Definition 1.4 is . Show that the canonical dual is . When do the two duals coincide? Does the canonical dual have trace one?
  3. On two qubits with the same bias on each qubit, and , estimate with the product of the duals of part 1. Show that for every state. Evaluate the variance at the Bell state for and .
  4. Why not take ?

Problem 4

Problem 7.4 (Purity from pairs of Pauli snapshots).

The snippet draws single-qubit Pauli snapshots of the pure state with Bloch vector and evaluates the U-statistic of Proposition 7.12 and the plug-in estimate that keeps the diagonal.

import numpy as np
 
rng = np.random.default_rng(11)
N, r = 2000, np.array([0.0, 0.6, 0.8])        # Bloch vector of a pure state
b = rng.integers(0, 3, size=N)                 # basis 0, 1, 2 = X, Y, Z
s = np.where(rng.random(N) < (1 + r[b]) / 2, 1, -1)   # Born rule
same_b = b[:, None] == b[None, :]
same_s = s[:, None] == s[None, :]
K = np.where(same_b, np.where(same_s, 5.0, -4.0), 0.5)
u_stat = (K.sum() - np.trace(K)) / (N * (N - 1))
plug_in = K.sum() / N**2
print(round(u_stat, 4), round(plug_in, 4))   # 1.0306 1.0326
  1. Show that the pair term for two single-qubit snapshots and is , and derive the values , and used in K.
  2. Show that the plug-in estimate equals , where is the U-statistic. What is its bias? Check the printed numbers.
  3. For a qubit with Bloch vector , compute directly the expectation of one pair term for and show that it equals .
  4. The variance of a U-statistic of order two is

where is the variance of and the variance of . Compute and for a pure state, and decide whether the printed estimate is consistent with the true purity. How does grow for a pure product state on qubits?