iqm.benchmarks.compressive_gst.mgst.additional_fns.F_avg_X

Contents

iqm.benchmarks.compressive_gst.mgst.additional_fns.F_avg_X#

iqm.benchmarks.compressive_gst.mgst.additional_fns.F_avg_X(X: ndarray, K: ndarray) tuple[float, ndarray]#

Returns the average gate fidelity between a superoperator and a set of Kraus operators.

Parameters:
  • X (ndarray) – CPT superoperator of size (pysical dimension ** 2) x (pysical dimension ** 2) as 2D array.

  • K (ndarray) – Array of Kraus operators with size (Kraus rank) x (pysical dimension) x (pysical dimension) as 3D array.

Returns:

Average gate fidelity.

Return type:

tuple[float, ndarray]

Notes

No gauge optimization is involved; average gate fidelity is gauge dependent.