K-body noise reconstruction (KNR)

import trueq as tq

# Define the cycle we wish to do noise reconstruction on.
cycle = {(label,): tq.Gate.id for label in range(4)}

# Generate a circuit collection to measure noise.
circuits = tq.make_knr(cycle, [4, 32, 64], 30)

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

# Run the circuits on the simulator to populate the results.
sim.run(circuits)
# Plot the results.
circuits.plot().nr_bar()
../../_images/sphx_glr_knr_001.png

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

Gallery generated by Sphinx-Gallery