ToolboxPhaseSpace
Wigner/Husimi grids: normalization, marginals, peaks, Hudson's theorem
3/3 passed in 4ms
| Test | What it does | Result |
|---|---|---|
test_husimi_peak | The 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_negativity | Hudson's theorem: a squeezed displaced state's Wigner is non-negative, volume 0. | ✅ pass |
test_wigner_marginal | The vacuum Wigner integrated over p has mean 0 and variance 1/2. | ✅ pass |