iqm.benchmarks.compressive_gst.mgst.reporting.figure_gen.plot_largest_errors

iqm.benchmarks.compressive_gst.mgst.reporting.figure_gen.plot_largest_errors#

iqm.benchmarks.compressive_gst.mgst.reporting.figure_gen.plot_largest_errors(param_delta: ndarray, param_labels: list[str], n_errs: int, threshold: float, gate_label: str, has_uncertainties: bool = False, yerr_low: ndarray | None = None, yerr_high: ndarray | None = None, param_delta_high: ndarray | None = None, param_delta_low: ndarray | None = None) Figure#

Generate a bar plot showing the largest coherent errors.

Parameters:
  • param_delta (ndarray) – Difference between measured and ideal parameters

  • param_labels (list[str]) – Labels for the Pauli basis elements

  • n_errs (int) – Number of largest errors to display

  • threshold (float) – Minimum threshold for errors to display

  • gate_label (str) – Label of the gate being visualized

  • has_uncertainties (bool) – Whether uncertainty data is available

  • yerr_low (ndarray | None) – Lower error bounds

  • yerr_high (ndarray | None) – Upper error bounds

  • param_delta_high (ndarray | None) – Upper bound differences

  • param_delta_low (ndarray | None) – Lower bound differences

Returns:

The generated bar plot figure

Return type:

Figure