thewalrus is a library for the calculation of hafnians, Hermite polynomials and Gaussian boson sampling.