Boson sampling (Aaronson and Arkhipov). Let be an unitary describing a passive linear-optical network on modes, and send one photon into each of the first modes, vacuum into the rest. Measuring the number of photons in each output mode gives an outcome with , with probability
where is the matrix formed from the first columns of by taking row of exactly times, and is the permanent. The task is to output samples from this distribution given . Computing permanents exactly is #P-hard, which underlies the hardness arguments.
Gaussian boson sampling (Hamilton et al.) replaces the single photons by single-mode squeezed states. The probability of a photon pattern is then given by the hafnian of a matrix built from the Gaussian state's covariance, and the task is likewise #P-hard to simulate exactly. Gaussian boson sampling is the task of the photonic advantage experiments; their detectors are often threshold ("click") detectors, which changes the relevant matrix function.