circuit_knitting_toolbox.utils.metrics

Functions for comparing array distances.

Functions

HOP(target, obs)

Compue the Heavy Output Probability (HOP).

MAPE(target, obs)

Compute the Mean Absolute Percentage Error (MAPE).

MSE(target, obs)

Compute the Mean Squared Error (MSE).

chi2_distance(target, obs)

Measure the Chi-square distance.

cross_entropy(target, obs)

Compue the cross entropy between two distributions.