iqm.benchmarks.compressive_gst.mgst.reporting.figure_gen.generate_gate_err_pdf#
- iqm.benchmarks.compressive_gst.mgst.reporting.figure_gen.generate_gate_err_pdf(filename: str, gates1: ndarray, gates2: ndarray, basis_labels: list[str] | None = None, gate_labels: list[str] | None = None, save_fig: bool = False) list[Figure]#
Main routine to generate plots of reconstructed gates, ideal gates and the noise channels.
of the reconstructed gates. The matrices are shown as Hinton diagrams, where the size of each square represents the magnitude of the matrix element and the color represents its sign as well as the magnitude. The basis is arbitrary but using gates in the Pauli basis is recommended.
- Parameters:
filename (str) – The name under which the figures are saved in format “folder/name”
gates1 (ndarray) – A gate set in the same format as the “X”-tensor. These gates are assumed to be the GST estimates.
gates2 (ndarray) – A gate set in the same format as the “X”-tensor. These are assumed to be the target gates.
basis_labels (list[str] | None) – A list of labels for the basis elements. For the standard basis this could be [“00”, “01”,…] and for the Pauli basis [“I”, “X”, “Y”, “Z”] or the multi-qubit version.
gate_labels (list[str] | None) – A list of names for the gates
save_fig (bool) – Whether to save the generated figures as pdf files
- Return type: