iqm.benchmarks.compressive_gst.mgst.reporting.reporting.phase_err

Contents

iqm.benchmarks.compressive_gst.mgst.reporting.reporting.phase_err#

iqm.benchmarks.compressive_gst.mgst.reporting.reporting.phase_err(angle: float, U: ndarray, U_t: ndarray) float#

Computes norm between two input unitaries after a global phase is added to one of them.

Parameters:
  • angle (float) – The global phase angle (in rad)

  • U (ndarray) – The first unitary matrix

  • U_t (ndarray) – The second unitary matrix (typically the a target gate)

Returns:

The norm of the difference

Return type:

float