iqm.benchmarks.compressive_gst.mgst.low_level_jit.objf

Contents

iqm.benchmarks.compressive_gst.mgst.low_level_jit.objf#

iqm.benchmarks.compressive_gst.mgst.low_level_jit.objf(X: ndarray, E: ndarray, rho: ndarray, J: ndarray, y: ndarray, mle: bool = False) float#

Calculate the objective function value for matrices, POVM elements, and target values.

This function computes the objective function value based on input matrices X, POVM elements E, density matrix rho, and target values y.

Parameters:
  • X (ndarray) – A 3D array containing the input matrices, of shape (n_matrices, n_rows, n_columns).

  • E (ndarray) – A 2D array representing the POVM elements, of shape (n_povm, r).

  • rho (ndarray) – A 1D array representing the density matrix.

  • J (ndarray) – A 2D array representing the indices for which the objective function will be evaluated.

  • y (ndarray) – A 2D array of shape (n_povm, len(J)) containing the target values.

  • mle (bool) – If True, the log-likelihood objective function is used, otherwise the least squares objective function is used

Returns:

The objective function value for the given set of matrices, POVM elements, and target values, normalized by m and n_povm.

Return type:

float