iqm.benchmarks.compressive_gst.mgst.optimization.dU_gauge#
- iqm.benchmarks.compressive_gst.mgst.optimization.dU_gauge(X: ndarray, E: ndarray, rho: ndarray, X_target: ndarray, E_target: ndarray, rho_target: ndarray, U: ndarray, weights: list[float] | None) ndarray#
Compute the derivative of the gauge transformation objective function with respect to given unitary U.
- Parameters:
X (ndarray) – Current gate estimates with shape (n_gates, r, r)
E (ndarray) – Current POVM estimates with shape (n_povm, r)
rho (ndarray) – Current initial state estimate with shape (r,)
X_target (ndarray) – Target gate estimates with shape (n_gates, r, r)
E_target (ndarray) – Target POVM estimates with shape (n_povm, r)
rho_target (ndarray) – Target initial state estimate with shape (r,)
U (ndarray) – Current gauge transformation matrix with shape (pdim, pdim)
weights (list[float] | None) – Weights for gates and SPAM. If None or incorrect length, defaults to all ones. Expected length is n_gates + 1
- Returns:
Derivative of the gauge objective function with respect to U, shape (pdim, pdim)
- Return type: