iqm.benchmarks.compressive_gst.mgst.additional_fns.MVE

Contents

iqm.benchmarks.compressive_gst.mgst.additional_fns.MVE#

iqm.benchmarks.compressive_gst.mgst.additional_fns.MVE(gates_true: list[ndarray], gates_estimate: list[ndarray], d: int, length: int, n_povm: int, samples: int = 10000) tuple[float, float]#

Mean varation error between the outputs of two gate sets on random sequences.

Parameters:
  • gates_true (list[ndarray]) – Target gates, POVM and initial state

  • gates_estimate (list[ndarray]) – Current gate, POVM and initial state estimate

  • d (int) – Number of different gates in the gate set

  • length (int) – Length of the test sequences

  • n_povm (int) – Number of POVM elements

  • samples (int) – Number of random gate sequences over which the mean variation error is computed

Returns:

Mean varaition error

Return type:

MVE

Notes

Sequences are drawn without replacement from initally d**l possibilities. 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.