We derive a compact expression for the second-order correlation function [Formula: see text] of a quantum state in terms of its Wigner function, thereby establishing a direct link between [Formula: see text] and the state's shape in phase space. We conduct an experiment that simultaneously measures [Formula: see text] through direct photocounting and reconstructs the Wigner function via homodyne tomography. The results confirm our theoretical predictions.This article is part of the theme issue 'The quantum theory of light'.
Keywords: Wigner function; correlations; phase-space; squeezing.