iqm.benchmarks.compressive_gst.mgst.low_level_jit

iqm.benchmarks.compressive_gst.mgst.low_level_jit#

All functions compiled with numba, such as tensor contractions and derivatives.

Functions

MVE_lower(X_true, E_true, rho_true, X, E, ...)

Compute the lower bound of the mean value error (MVE) between true and estimated parameters.

Mp_norm_lower(X_true, E_true, rho_true, X, ...)

Compute the Mp-norm lower bound of the distance between true and estimated parameters.

contract(X, j_vec)

Contract a sequence of matrices in the given order.

dA(X, A, B, J, y, r, pdim, n_povm)

Compute the derivative of to the objective function with respect to the POVM tensor A.

dB(X, A, B, J, y, pdim)

Compute the derivative of the objective function with respect to the state tensor B.

dK(X, K, E, rho, J, y[, mle])

Compute the derivative of the objective function with respect to the Kraus tensor K.

dK_dMdM(X, K, E, rho, J, y[, mle])

Compute first order derivative and products.

ddA_derivs(X, A, B, J, y, n_povm[, mle])

Calculate all nonzero terms of the second derivatives with respect to the POVM tensor A.

ddB_derivs(X, A, B, J, y, r, pdim[, mle])

Calculate all nonzero terms of the second derivative with respect to the state tensor B.

ddM(X, K, E, rho, J, y[, mle])

Compute the second derivative of the objective function with respect to the Kraus tensor K.

local_basis(x, b, length)

Convert a base-10 integer to an integer in a specified base with a fixed number of digits.

objf(X, E, rho, J, y[, mle])

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

objf_gauge(X, E, rho, X_target, E_target, ...)

Calculate the objective function with respect to a unitary gauge transformation.