iqm.benchmarks.compressive_gst.gst_analysis.generate_non_gate_results

iqm.benchmarks.compressive_gst.gst_analysis.generate_non_gate_results#

iqm.benchmarks.compressive_gst.gst_analysis.generate_non_gate_results(df_o: DataFrame, bootstrap_results: None | tuple[Any, Any, Any, Any, Any] = None) DataFrame#

Creates error bars (if bootstrapping was used) and formats results for non-gate errors. The resulting tables are also turned into figures, so that they can be saved automatically.

Parameters:
  • df_o (DataFrame) – Pandas DataFrame A dataframe containing the non-gate quality metrics (SPAM errors and fit quality)

  • bootstrap_results (None | tuple[Any, Any, Any, Any, Any]) – Union[None, tuple[Any, Any, Any, Any, Any]] If provided, contains the results of the bootstrap analysis.

Returns:

Pandas DataFrame

The final formated results

Return type:

df_o_final