# Simultaneous extended randomized benchmarking (XRB)¶

import trueq as tq

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

# Initialize a simulator with stochastic pauli noise.

# Run the circuits on the simulator to populate the results.
sim.run(circuits)

# Plot the results.
circuits.plot.raw()

# Print summary of the results.
circuits.fit()

XRB on [0]
Name
Estimate
95% CI

Description
ru
6.543
[5.780,7.306]
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
1.008
[0.957,1.060]
SPAM of the exponential decay A * u ** m
u
0.974
[0.971,0.977]
Decay rate of the exponential decay A * u ** m
XRB on [1]
Name
Estimate
95% CI

Description
ru
5.702
[4.815,6.589]
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.926
[0.824,1.029]
SPAM of the exponential decay A * u ** m
u
0.977
[0.974,0.981]
Decay rate of the exponential decay A * u ** m
XRB on [2]
Name
Estimate
95% CI

Description
ru
5.669
[4.749,6.589]
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.938
[0.830,1.046]
SPAM of the exponential decay A * u ** m
u
0.977
[0.974,0.981]
Decay rate of the exponential decay A * u ** m

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

Gallery generated by Sphinx-Gallery