Metropolis update
In the sumulation we need to store only the phase of the field θ as a double,
and we update the configuration extracting a number −1<δ(x)<1 for each point x and considering the
new configuration
ϕ′(x)=ei(θ(x)+δ(x)),
then we compute the variation of the action
ΔS=S[ϕ′]−S[ϕ]