iqm.benchmarks.compressive_gst.gst_analysis.dataset_counts_to_mgst_format

iqm.benchmarks.compressive_gst.gst_analysis.dataset_counts_to_mgst_format#

iqm.benchmarks.compressive_gst.gst_analysis.dataset_counts_to_mgst_format(dataset: Dataset, qubit_layout: List[int]) ndarray#
Turns the dictionary of outcomes obtained from qiskit backend

into the format which is used in mGST

Parameters:
  • dataset (Dataset) – xarray.Dataset A dataset containing counts from the experiment and configurations

  • qubit_layout (List[int]) – List[int] The list of qubits for the current GST experiment

Returns:

y – 2D array of measurement outcomes for sequences in J; Each column contains the outcome probabilities for a fixed sequence

Return type:

numpy array