Takes a quasiprobability distribution and maps it to the closest probability distribution as defined by the L2-norm.
return_distance (bool) – Return the L2 distance between distributions.
Nearest probability distribution. float: Euclidean (L2) distance of distributions.
- 반환 형식
Method from Smolin et al., Phys. Rev. Lett. 108, 070502 (2012).