These problems practise converting between the figures of merit of a gate, tracking what SPAM errors do to process tomography and to randomized benchmarking, and separating gauge-dependent from physical statements about a gate set.
Problem 1
Problem 6.1 (Three figures of merit for three channels).
All targets are the identity on one qubit. For each channel below, compute the process fidelity, the average gate infidelity and the diamond distance to the identity channel.
The depolarizing channel , with PTM . Evaluate for .
The rotation with . Express as a function of and compare with part 1 for small errors.
Amplitude damping with Kraus operators and . Compute only the process fidelity and , and evaluate them for .
, so and . The diamond distance of the unitary error is (Proposition 6.8), so . For depolarizing noise , linear in . For a small rotation the diamond distance is the square root of the error rate, which is much larger: at it is about instead of .
and , so by Proposition 6.6 and . For , and . (Amplitude damping is not a Pauli channel, so part 2 of Proposition 6.8 does not apply; one only has .)
Problem 2
Problem 6.2 (Process tomography of a perfect gate).
A device implements the identity gate perfectly. Its readout flips every measurement outcome, in every basis, with probability , independently. Its preparations are perfect at first.
Show that the readout error multiplies every measured expectation value of a non-identity Pauli by , and that this is the same as an ideal measurement preceded by the channel .
Standard QPT with linear inversion is run with exact probabilities. Which PTM does it report? What are the reported process fidelity and error rate for ?
Now the preparations are also noisy: every input is replaced by . Show that the report is . Give a gate that, with perfect preparations and readout, produces exactly the same QPT data as the perfect gate with these SPAM errors.
The same device runs standard randomized benchmarking with its (perfect) Cliffords. What is the survival curve , and what error rate does RB report?
Solution
If the ideal outcome has probabilities , a flip with probability gives , so the expectation becomes . The depolarizing channel has PTM , so it multiplies every non-identity Pauli expectation of the state it acts on by ; measuring after it gives the same statistics.
QPT with SPAM errors reports (the SPAM formula of the notes). With and the report is . Its process fidelity is and its error rate is . For : and . A perfect gate is reported with a error rate.
The inputs now have Pauli vectors , so and . With this is with , which is the PTM of . So the depolarizing gate with perfect SPAM gives identical data: the identification problem in its simplest form.
With perfect gates, , so in Theorem 6.10 and is constant. With and readout flips, , below , but the curve does not decay, and RB reports . SPAM errors moved the level of the curve, not its rate.
Problem 3
Problem 6.3 (A perfect gate set in a rotated gauge).
Consider the ideal qubit gate set with state , effect , and the two gates and (as PTMs). Let be the PTM of a -rotation, and the gauge-transformed gate set of Theorem 6.13.
Show that the state and the effect of are those of , and that is the PTM of a rotation about the axis .
Show that the process fidelity of the transformed with its target is . Evaluate the reported infidelity for .
Which experiment could distinguish from ?
The angle between the rotation axes of and is a physical property. Show that is a rotation by an angle with , and conclude that is gauge invariant. What is for the ideal gate set?
Solution
fixes the Pauli vector of , which is also the effect vector, and since is orthogonal. By Proposition 3.5, is the PTM of , because conjugating by rotates to .
Write and . Then , and Proposition 6.6 gives . For the reported infidelity is , although the gate set is perfect.
None that uses only this gate set: by Theorem 6.13 every circuit has the same probability. Only an external reference, for example a second, trusted device that defines the axis, could tell them apart.
For unit vectors , has trace , and a rotation by has trace . The eigenvalues of the PTM of a rotation by are , and by Proposition 6.14 the eigenvalues of are gauge invariant, so is too. Since , the angle is fixed by , hence and are fixed as well: is gauge invariant. For the ideal gate set , so and . In part 1 the gauge rotates both axes by and leaves unchanged.
Problem 4
Problem 6.4 (Same benchmarking number, different errors).
Compare two kinds of qubit noise with the same average gate infidelity: a coherent over-rotation with , and dephasing with chosen to give the same . The script computes their error rates, their RB decay parameters, their diamond distances, and the process infidelity after repetitions of the noise without any twirling.
import numpy as npth, m = 0.1, 10 # rotation angle, number of repetitionsdef ptm_rz(t): # PTM of R_z(t); Pauli order I, X, Y, Z c, s = np.cos(t), np.sin(t) return np.array([[1, 0, 0, 0], [0, c, -s, 0], [0, s, c, 0], [0, 0, 0, 1]])def ptm_deph(p): # rho -> (1 - p) rho + p Z rho Z return np.diag([1, 1 - 2 * p, 1 - 2 * p, 1])infid = lambda R: 1 - np.trace(R) / 4 # process infidelity to the identityf_rb = lambda R: (np.trace(R) - 1) / 3 # RB decay parameter of the noiser = 2 * infid(ptm_rz(th)) / 3 # average gate infidelity of R_z(th)p = 1.5 * r # dephasing with the same rprint(round(r, 7), round(p, 6)) # 0.0016653 0.002498fc, fd = f_rb(ptm_rz(th)), f_rb(ptm_deph(p))print(round(fc, 6), round(fd, 6)) # 0.996669 0.996669print(round(np.sin(th / 2), 6), round(p, 6)) # diamond: 0.049979 0.002498Rc = np.linalg.matrix_power(ptm_rz(th), m) # m repetitions, no twirlingRd = np.linalg.matrix_power(ptm_deph(p), m)print(round(infid(Rc), 4), round(infid(Rd), 4)) # 0.2298 0.0244
Derive and explain why the two RB decay parameters must be equal.
Derive the two diamond distances and their ratio.
Derive the two infidelities after repetitions in closed form, and their behaviour for small and as functions of .
Explain why repeating a gate many times, as in the germs of long-sequence gate set tomography, can tell the two errors apart while standard RB cannot.
Solution
The process infidelity of is and that of the dephasing channel is (its PTM has trace ). Equal means equal process infidelity by Theorem 6.7, so . The RB decay parameter of Theorem 6.10 depends on the noise only through , which is for both, so both noises produce the same RB curve, .
By Proposition 6.8, the rotation has and the dephasing channel, a Pauli channel, has . The ratio is .
Repeating times gives , with infidelity : the amplitudes add. Repeating dephasing gives the PTM , with infidelity : the probabilities add. For the values are and .
In RB the random Cliffords twirl the noise between consecutive gates, so the coherent rotations no longer add up; each gate contributes only through . Repeating the same gate without randomization keeps the coherent errors aligned, so they grow like instead of . A germ repeated times turns an angle error into , which is why long-sequence GST can estimate coherent errors with precision improving like , and why the diamond distance, not , is the right measure when errors are coherent.