Grand canonical ensemble (source code)

= Grand canonical ensemble
{wiki}

At fixed temperature, volume, and chemical potential, the grand canonical ensemble permits both energy and particle number to fluctuate and weights a state by $e^{-\beta(E-\mu N)}$.