mpsprep.helpers.mean_fractional_entropy
- mpsprep.helpers.mean_fractional_entropy(y_amp)[source]
Given an array of amplitudes y_amp that define the quantum state \(|y> = \sum_i y_{amp}[i] |i>\), this function returns the mean fractional entropy of \(|y>\).
- Parameters
- y_ampnp.ndarray
Array of amplitudes. Can be complex.
- Returns
- mean_fractional_entropyfloat
Mean fractional entropy of the amplitudes.