Back to Module 6 notes

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.

  1. The depolarizing channel , with PTM . Evaluate for .
  2. The rotation with . Express as a function of and compare with part 1 for small errors.
  3. Amplitude damping with Kraus operators and . Compute only the process fidelity and , and evaluate them for .

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.

  1. 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 .
  2. 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 ?
  3. 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.
  4. The same device runs standard randomized benchmarking with its (perfect) Cliffords. What is the survival curve , and what error rate does RB report?

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.

  1. Show that the state and the effect of are those of , and that is the PTM of a rotation about the axis .
  2. Show that the process fidelity of the transformed with its target is . Evaluate the reported infidelity for .
  3. Which experiment could distinguish from ?
  4. 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?

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 np
 
th, m = 0.1, 10                         # rotation angle, number of repetitions
 
def 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 identity
f_rb = lambda R: (np.trace(R) - 1) / 3  # RB decay parameter of the noise
r = 2 * infid(ptm_rz(th)) / 3           # average gate infidelity of R_z(th)
p = 1.5 * r                             # dephasing with the same r
print(round(r, 7), round(p, 6))                   # 0.0016653 0.002498
fc, fd = f_rb(ptm_rz(th)), f_rb(ptm_deph(p))
print(round(fc, 6), round(fd, 6))                  # 0.996669 0.996669
print(round(np.sin(th / 2), 6), round(p, 6))       # diamond: 0.049979 0.002498
Rc = np.linalg.matrix_power(ptm_rz(th), m)         # m repetitions, no twirling
Rd = np.linalg.matrix_power(ptm_deph(p), m)
print(round(infid(Rc), 4), round(infid(Rd), 4))    # 0.2298 0.0244
  1. Derive and explain why the two RB decay parameters must be equal.
  2. Derive the two diamond distances and their ratio.
  3. Derive the two infidelities after repetitions in closed form, and their behaviour for small and as functions of .
  4. 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.