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) – A dataset containing counts from the experiment and configurations

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

Returns:

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

Return type:

y