evanberkowitz / supervillain

MCMC for modified Villain constructions
https://supervillain.readthedocs.io/
Other
0 stars 0 forks source link

Fix the symmetrization #61

Closed evanberkowitz closed 1 year ago

evanberkowitz commented 1 year ago

The symmetrization was lifted from tdg where, for reasons of ergodicity, we only do N=odd. But here we do N=even too. There was a bug for N=even.

The bug was that the set of coordinates for an even-sized lattice is not closed under a naive application of the symmetry group operations.

However, if we mod the coordinates back into the lattice all is fixed.