iqm.benchmarks.compressive_gst.mgst.reporting.figure_gen.generate_spam_err_std_pdf#
- iqm.benchmarks.compressive_gst.mgst.reporting.figure_gen.generate_spam_err_std_pdf(filename: str, E: ndarray, rho: ndarray, E2: ndarray, rho2: ndarray, basis_labels: list[str] | bool = False, title: str | None = None) Figure#
Generate pdf plots of two sets of POVM + state side by side in matrix shape - standard basis.
The input sets can be either POVM/state directly or a difference different SPAM parametrizations to visualize errors.
- Parameters:
filename (str) – The name under which the figures are saved in format “folder/name”
E (ndarray) – POVM
rho (ndarray) – Initial state
E2 (ndarray) – POVM #2
rho2 (ndarray) – Initial state #2
basis_labels (list[str] | bool) – A list of labels for the basis elements. For the standard basis this could be [“00”, “01”,…]
title (str | None) – The Figure title
- Return type: