Grand-canonical partition function of a two-dimensional Hubbard model.