Skip to content

ToolboxPhaseSpace ​

Wigner/Husimi grids: normalization, marginals, peaks, Hudson's theorem

3/3 passed in 4ms

TestWhat it doesResult
test_husimi_peakThe vacuum Husimi peaks at 1/(2*pi), half the Wigner peak 1/pi: the d^2 alpha convention's 1/pi times the dx dp Jacobian 1/2.✅ pass
test_negativityHudson's theorem: a squeezed displaced state's Wigner is non-negative, volume 0.✅ pass
test_wigner_marginalThe vacuum Wigner integrated over p has mean 0 and variance 1/2.✅ pass