Extended randomized benchmarking (XRB)

import trueq as tq

# Generate a circuit collection to run one-qubit XRB on qubit 0 with 30 random circuits
# for each circuit length in [4, 32, 64].
circuits = tq.make_xrb([0], [4, 32, 64], 30)

# Initialize a simulator with stochastic pauli noise.
sim = tq.Simulator().add_stochastic_pauli(px=0.01)

# Run the circuits on the simulator to populate the results.
sim.run(circuits)
# Plot the results.
circuits.plot.raw()
../../_images/sphx_glr_xrb1_001.png
# Print summary of the results.
circuits.fit()
XRB on [0]
Name
Estimate
95% CI
 
Description
ru
5.172
[4.422,5.922]
e-03
Average gate infidelity of systematic coherent error, d * (1 - sqrt(u)) / (d - 1), so that it is bounded between 0 and r from SRB
A
0.994
[0.923,1.065]
SPAM of the exponential decay A * u ** m
u
0.979
[0.976,0.982]
Decay rate of the exponential decay A * u ** m


Total running time of the script: ( 0 minutes 0.757 seconds)

Gallery generated by Sphinx-Gallery