iqm.benchmarks.compressive_gst.mgst.reporting.reporting.job_counts_to_mGST_format

iqm.benchmarks.compressive_gst.mgst.reporting.reporting.job_counts_to_mGST_format#

iqm.benchmarks.compressive_gst.mgst.reporting.reporting.job_counts_to_mGST_format(qubits: list[int], num_povm: int, result_dict: list[dict[str, int]]) ndarray#

Turns the dictionary of outcomes obtained from qiskit backend into the format which is used in mGST.

Parameters:
  • qubits (list[int]) – The list of active qubits in the experiment

  • num_povm (int) – The number of POVM elements in the experiment

  • result_dict (list[dict[str, int]]) – The counts from the qiskit backend for each circuit

Returns:

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

Return type:

ndarray