Statistical mechanics of the -queens problem
Phys. Rev. E 114, 034125 – Published 14 September, 2026
DOI: https://doi.org/10.1103/cx7m-n3d5
Abstract
The -queens problem asks for the number of ways to place mutually nonattacking queens on an chessboard. Simkin [M. Simkin, Adv. Math. 427, 109127 (2023)] proved , and subsequent work [P. Nobel, A. Agrawal, and S. Boyd, Optim. Lett. 17, 1229 (2023)] refined the constant to , settling the asymptotic behavior of this classical combinatorial problem. In this work, we pursue a thermodynamic-integration route in an unrestricted lattice-gas ensemble. We map the -queens problem to a lattice gas with pairwise repulsive interactions along shared rows, columns, and diagonals, and we perform extensive Monte Carlo simulations for with sweeps per temperature point. The specific heat per queen converges to a size-independent function with a broad, nondivergent maximum at , associated with a defect-proliferation crossover. This convergence, combined with the trivially exact high-temperature entropy , enables a thermodynamic integration of that extracts the ground-state entropy and yields at , within of the precise combinatorial value. The Simkin-Nobel value enters only as a benchmark; the thermodynamic route requires no prior knowledge of . We further present a transfer-matrix-based tensor-network formulation that encodes the nonattacking constraints into a rank-9 site tensor with 17 nonzero elements, providing a complementary exact-enumeration route.