iqm.benchmarks.compressive_gst.mgst.reporting.reporting.phase_opt

Contents

iqm.benchmarks.compressive_gst.mgst.reporting.reporting.phase_opt#

iqm.benchmarks.compressive_gst.mgst.reporting.reporting.phase_opt(X: ndarray, K_t: ndarray) ndarray#

Return rK = 1 gate set with global phase fitting matching to target gate set.

Parameters:
  • X (ndarray) – Array where CPT superoperators are stacked along the first axis. These should correspond to rK = 1 gates for the outputs to be meaningful.

  • K_t (ndarray) – Array of target gate Kraus operators Each subarray along the first axis contains a set of Kraus operators. The second axis enumerates Kraus operators for a gate specified by the first axis.

Returns:

Array of Kraus operators with mathed global phase

Return type:

ndarray