iqm.benchmarks.compressive_gst.mgst.reporting.figure_gen.generate_spam_err_pdf#
- iqm.benchmarks.compressive_gst.mgst.reporting.figure_gen.generate_spam_err_pdf(filename: str, E: ndarray, rho: ndarray, E2: ndarray, rho2: ndarray, title: str | None = None, spam2_content: str = 'ideal') None#
Generate pdf plots of two sets of POVM + state side by side in vector shape - Pauli 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
title (str | None) – The Figure title
spam2_content (str) – Label of the right SPAM plot to indicate whether it is the ideal SPAM parametrization or for instance the error between the reconstructed and target SPAM
- Return type:
None