iqm.benchmarks.compressive_gst.mgst.reporting.figure_gen.generate_hamiltonian_visualizations

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

iqm.benchmarks.compressive_gst.mgst.reporting.figure_gen.generate_hamiltonian_visualizations(dataset: Dataset, n_errs: int = 4, threshold: float = 0.01) dict[str, Figure]#

Plots the coherent errors as the difference of the entries of two Hamiltonian in the Pauli basis.

  1. Matrix plots showing all parameters with color coding

  2. Bar plots showing the largest coherent errors

Parameters:
  • dataset (Dataset) – A dataset containing counts from the experiment, results, and configurations.

  • n_errs (int) – Number of largest errors to plot in bar charts. Default is 4.

  • threshold (float) – Minimum threshold for errors to display in bar charts. The threshold can lead to more than n_errs errors being displayed.

Returns:

  • Matrix plots

  • Bar plots

Return type:

A tuple containing two nested lists of figures for each qubit layout and gate