iqm.benchmarks.compressive_gst.mgst.additional_fns.Mp_norm

Contents

iqm.benchmarks.compressive_gst.mgst.additional_fns.Mp_norm#

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

Mean of the p-norm deviation 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

  • p (int) – Defines the l_p - norm that is used to compare probability distributions

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

Returns:

Mean l_p - norm error

Return type:

MPE

Notes

Sequences are drawn without replacement from initally d**l possibilities. For each sequence the l_p - norm error of the two probability distribution over the POVM elements is computed. Afterward the meean over these total variation errors is returned.