Grand Canonical Generators
We extend Boltzmann generators to the grand canonical ensemble, where the particle number fluctuates. We factorize the distribution into a particle-number distribution and the canonical Boltzmann density. This lets us reuse any Boltzmann generator, generalize across chemical potentials, and correct samples with importance sampling. GCG reproduces grand canonical observables on a Lennard-Jones fluid and methane adsorption in a zeolite.