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 .
Let be the projectors onto the six eigenvectors. Show that by evaluating both sides on .
Find and the snapshot of the outcome “basis , sign ”. What are its eigenvalues and its trace? Is it a state?
Let with . Show that for every state, and find the variance of one snapshot estimate. Compare with measuring directly in its own eigenbasis.
Check part 3 against Proposition 7.9 with , and explain why the two must agree.
Solution
For : each , and the six projectors sum to , so the left side is ; the right side is . For : only the two eigenprojectors have , giving ; for the and eigenprojectors . The right side is . The same holds for and by symmetry, and both sides are linear.
multiplies traceless operators by and fixes , so . The snapshot is , with eigenvalues and and trace . It is not a state; only its average over many outcomes is.
With basis and sign , , so . Its square is whatever is, and averaging over the three bases gives . The mean is , so the variance is . Measuring in its eigenbasis gives outcomes , with variance . The shadow pays up to a factor , the price of not knowing in advance.
The two agree because a uniformly random single-qubit Clifford maps to a uniformly random one of the six Pauli eigenvectors, so the two ensembles have the same measurement channel and the same snapshots.
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.
With , show that and .
Write the variance of one snapshot estimate of as a function of and .
Evaluate it at and at . Show that it is less than in both cases, for every .
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 ?
Solution
. Taking the trace gives , and taking the trace against gives .
The estimate is , with mean . Its variance is the second moment of minus :
At : the bracket is with , because ; this gives as in Corollary 7.11. At , and . The variance is , which simplifies to . Both are less than : and .
A standard error of needs . Clifford shadows: snapshots. Pauli shadows: snapshots. At four qubits the difference is less than a factor of two; it grows by about per qubit (Figure 7.2).
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 .
Show that the measurement channel satisfies and for , and that the measurement-channel dual is .
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?
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 .
Why not take ?
Solution
, and , so . For , , so . Hence fixes and divides by , and . These are the biased duals of Remark 1.8.
Now carries an extra factor : and for . So divides by and by , and , which is the stated formula. The two duals coincide if and only if for all , which forces . Otherwise the canonical dual has trace for some outcomes. It is still a dual frame (Proposition 1.5, part 2), and its trace is one on average, , as unbiasedness requires. This is the general fact of Proposition 7.13, part 2: unequal weights separate the two duals.
With the product dual, if both qubits were measured in (probability ) and otherwise; likewise for . The two events exclude each other, so the cross term vanishes and . At , , so and . For (uniform Pauli shadows) this is ; for it is , so the biased shadow needs about times fewer copies.
At , : the basis is never measured, the measurement is not informationally complete, is not invertible, and any observable with a factor cannot be estimated at all. As the shadow norm of , which is , diverges. Biasing trades performance on the observables of interest against all others; a positive keeps the shadow usable for every observable.
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.
Show that the pair term for two single-qubit snapshots and is , and derive the values , and used in K.
Show that the plug-in estimate equals , where is the U-statistic. What is its bias? Check the printed numbers.
For a qubit with Bloch vector , compute directly the expectation of one pair term for and show that it equals .
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?
Solution
. Same basis and same sign: , value . Same basis, opposite signs: orthogonal vectors, value . Different bases: eigenvectors of two different Pauli matrices have overlap , value .
The plug-in estimate is with , which is . The off-diagonal part is and each of the diagonal terms is , so the plug-in is . Its expectation is , a bias of , here . Check: .
Two snapshots use the same basis with probability for each , and then have the same sign with probability (the two signs are independent, each with mean ). Given the same basis, . Different bases have probability and value . In total , which is .
. Since , , which is for a pure state. As in part 3,
so for a pure state. The variance at is about , a standard error of ; the estimate is one standard error above the true value , as expected. For a product state the pair term factorizes over qubits, so for pure factors: the estimator’s variance grows exponentially with the size of the subsystem.