This checkpoint ties the module together. You have an RB survival curve measured on a single-qubit
device, and your job is the thing benchmarking exists to do: turn that raw data into a gate
fidelity.
The data
A randomized benchmarking experiment on one qubit (d=2) reports the average survival probability of
∣0⟩ as a function of the Clifford sequence length m. The decay follows the standard model
Fˉ(m)=Apm+B,
where p is the per-Clifford depolarizing parameter and B=1/d=0.5 is the fully-depolarized
floor for one qubit. You are handed two clean points on this curve:
Fˉ(1)=0.99,Fˉ(5)=0.95196.
From the decay to p
Subtract the floor B from each point to expose the pure exponential Apm:
Fˉ(m1)−BFˉ(m2)−B=Apm1Apm2=pm2−m1.
The amplitude A — which carries the SPAM errors — cancels, exactly the robustness RB promises.
Solve for p:
p=(Fˉ(m1)−BFˉ(m2)−B)1/(m2−m1).
From p to the fidelity
The per-Clifford error rate for dimension d is
r=d(d−1)(1−p),
and the average gate fidelity per Clifford is its complement,
F=1−r=1−d(d−1)(1−p).
For one qubit, d=2, so r=(1−p)/2 and F=(1+p)/2.
Try it
Given Fˉ(1)=0.99, Fˉ(5)=0.95196, B=0.5, and d=2:
Extract p from the two survival points using the ratio formula.
Convert p to the average gate fidelity F=(1+p)/2.
Return F.
The grader checks your returned fidelity against the value derived from the same formulas (it should
come out essentially 0.99).
Run your code to see the quantum state.
Sign in on the full site to ask questions and join the discussion.