iqm.benchmarks.compressive_gst.mgst.reporting.reporting.MVE_data

Contents

iqm.benchmarks.compressive_gst.mgst.reporting.reporting.MVE_data#

iqm.benchmarks.compressive_gst.mgst.reporting.reporting.MVE_data(X: ndarray, E: ndarray, rho: ndarray, J: ndarray, y: ndarray) tuple[float, float]#

Mean varation error between measured outcomes and predicted outcomes from a gate set.

Parameters:
  • X (ndarray) – Gate set

  • E (ndarray) – POVM

  • rho (ndarray) – Initial state

  • J (ndarray) – 2D array where each row contains the gate indices of a gate sequence

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

Returns:

Mean variation error max_dist: Maximal varaition error

Return type:

dist

Notes

For each sequence the total variation error of the two probability distribution over the POVM elements

is computed. Afterwards the meean over these total variation errors is returned.