iqm.error_reduction_tools.readout_characterization.visualization.plot_error_probabilities#
- iqm.error_reduction_tools.readout_characterization.visualization.plot_error_probabilities(error_data, title='Readout Error Probabilities', show_plot=True)#
Plot readout error probabilities.
Wraps
compute_error_probabilities()output.Accepts the dictionary returned by
compute_error_probabilitiesand renders a grouped bar chart of P(1|0) and P(0|1) for each measured qubit, with optional error bars from the standard-deviation matrices.- Parameters:
error_data (ErrorProbabilities) – Obtained from
compute_error_probabilities.title (str) – Title for the plot.
show_plot (bool) – If
True, displays the plot. IfFalse, returns theFigure.
- Returns:
Matplotlib figure if
show_plot=False, otherwiseNone.- Return type:
Figure | None