qiskit-community / qiskit-experiments

Qiskit Experiments
https://qiskit-community.github.io/qiskit-experiments/
Apache License 2.0
154 stars 125 forks source link

Add option to plot residuals #1382

Closed ItamarGoldman closed 6 months ago

ItamarGoldman commented 7 months ago

Summary

This PR will give the user the option to pass plot_residual=True to the analysis. This will add a residual plot to the figure.

Details and comments

Some details that should be in this section include:

What needed to do in this PR:

When setting plot_residuals=True in analysis option, a residual plot will be added. currently work only for experiments with 1 plot in its figure. Example for output with plot_residuals=True for RamseyXY experiment: image

coruscating commented 6 months ago

Can the residual plot example be moved from the Ramsey manual to the Visualization tutorial? I think that's a place where users are more likely to lok for the information.