iqm.benchmarks.compressive_gst.gst_analysis.pandas_results_to_observations#
- iqm.benchmarks.compressive_gst.gst_analysis.pandas_results_to_observations(dataset: Dataset, df_g: DataFrame, df_o: DataFrame, identifier: BenchmarkObservationIdentifier) List[BenchmarkObservation] #
Converts high level GST results from a pandas Dataframe to a simple observation dictionary
- Parameters:
dataset (Dataset) – xarray.Dataset A dataset containing counts from the experiment and configurations
qubit_layout – List[int] The list of qubits for the current GST experiment
df_g (DataFrame) – Pandas DataFrame The dataframe with properly formated gate results
df_o (DataFrame) – Pandas DataFrame The dataframe with properly formated non-gate results like SPAM error measures or fit quality.
identifier (BenchmarkObservationIdentifier) – BenchmarkObservationIdentifier An identifier object for the current GST run
- Returns:
- List[BenchmarkObservation]
List of observations converted from the pandas dataframes
- Return type:
observation_list