HAL Id: jpa-00210932
https://hal.archives-ouvertes.fr/jpa-00210932
Submitted on 1 Jan 1989
HAL is a multi-disciplinary open access archive for the deposit and dissemination of sci- entific research documents, whether they are pub- lished or not. The documents may come from teaching and research institutions in France or abroad, or from public or private research centers.
L’archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d’enseignement et de recherche français ou étrangers, des laboratoires publics ou privés.
Test of parallel updating in Ising model simulation
D.P. Landau, D. Stauffer
To cite this version:
D.P. Landau, D. Stauffer. Test of parallel updating in Ising model simulation. Journal de Physique,
1989, 50 (5), pp.509-512. �10.1051/jphys:01989005005050900�. �jpa-00210932�
509
Short Communication
Test of parallel updating in Ising model simulation
D.P. Landau* and D. Stauffer
HLRZ, c/o KFA Jülich, P.O.Box 1913, D-5170 Jülich 1, F.R.G.
(Reçu le 28 novembre 1988, accepté le 13 janvier 1989)
Résumé.2014 Le cumulant d’ordre 2
et4 de l’aimantation
estcalculé
pour unmodèle
d’Ising
avec uneévolution simultanée de l’ensemble des spins,
commel’ont proposé Neu-
mann et
Derrida. Des simulations de Monte-Carlo
montrent que cetteméthode donne la valeur attendue
pourla température critique dans le
casd’un réseau carré. Cependant,
un
écart faible mais significatif
estobservé
entreles valeurs critiques des cumulants
d’ordre 4 calculées
pour uneévolution simultanée
ou uneévolution séquentielle.
Abstract.2014 Simultaneous updating of Ising spins, following Neumann and Derrida, is
tested
onthe second and fourth
momentsof the magnetization. Monte-Carlo simulations indicate that it gives
a correctcritical temperature for the
squarelattice Ising model,
but
aslight deviation for the critical value of the fourth cumulant.
LE JOURNAL DE PHYSIQUE
J. Phys. France 50 (1989) 509-512 1er MARS 1989,
Classification
Physics Abstracts
05.50 - 64.fi0C
Monte Carlo simulations of interacting spin systems [1]
aretraditionally carried
out
in such
away that the surrounding (interacting) environment of
aparticular spin
is held fixed while the decision is made about whether
ornot to flip it ; and the interacting neighbors
areonly treated after the spin is updated. This procedure is straightforward and easy
toapply when traditional single-spin-flip simulations
arecarried
outbut introduce complications when
one usesmultispin coding
orattempts
to
optimize
analgorithm for
aparallel
orvector processing machine. In such
casesone must
separate the lattice into interpenetrating sublattices, chosen such that the
Article published online by EDP Sciences and available at http://dx.doi.org/10.1051/jphys:01989005005050900
510
spins
on agiven sublattice do not mutually interact ; then
onetreats each sublattice in its entirety before considering other spins. This procedure makes the simulation
relatively cumbersome, reducing
aswell the speed of the algorithm.
A great simplification
wasrecently suggested by Neumann and Derrida [2] who
carried
outsimultaneous flipping of all spins
onthe lattice using
afixed environment for each spin determined by the spin configuration which existed before any of the
spins
wereflipped. This approach is in the tradition of simultaneous updating for
cellular automata. (While
asimilar procedure is used in molecular dynamics it should
be remembered that the update interval
canbe made arbitrarily small in molecular dynamics and hence the environment of a particular site becomes almost static during
an
update). They applied this approach to magnets and spin glasses and concluded that at least the first moments of various quantities
werecorrectly reproduced. They warned, however, that certain distributions
are nolonger correct.
Since this approach not only simplifies vectorization but also
runsfaster than
sequential updating,
webelieve that it is important to determine whether
ornot other equilibrium properties will be properly reproduced in models with short-range coupling. The simplest possible test is provided by the Ising square lattice for which
a
great deal is known about distribution functions of the order parameter m, etc. For
example, above Te the
meansquare fluctuation ( m 2)
=kTX/N is proportional to
the susceptibility x ; both diverge at the Curie point. At Tc, the order parameter
mdecays with lattice size L
asL-/3/v; and the fourth order cumulant U where [1].
approaches [3]
afixed point value U*= 0.615 :i: 0.010. In addition, characteristically
the
curvesfor U
versusT for different L
crossat
atemperature which approaches T,
as
L becomes infinite.
We therefore simulated Ising square lattices with helical boundary conditions using
avery simple and fully vectorized simultaneous updating computer program
(no multispin coding, 6 million spin flip trials per second
on asingle processor of
the Cray XMP using
asymmetric Glauber transition probability) for temperatures
near
the critical temperature (kTc/ J
=2.269). (Although the finite L results for helical boundary conditions
areexpected to be slightly different than when periodic boundary conditions
areused, the results for L ->
ooshould be the same). At least
250,000 MCS/site
wereinitially discarded to allow the system to reach equilibrium,
and the following 750,000 MCS/site
werethen used to compute averages. Each date
point
wasrepeated using différent initial configurations and different speudo-random
number sequences ; in
some casesalso the random number generators
werechanged.
Overall averages, with
errorbars,
weredetermined typically from five independent
runs
(except for the
onecomparison
runwith sequential updates).
Varying the temperature, in units of J/k, between 2.4 and 3, far above the critical
point, where finite-size effects
arenegligible,
wefound the fluctuations ( m 2) of the
magnetization to be only about half
aslarge
asthose found by sequential updating.
(We made
two runs on a1000*1000 lattice,
seeTab. I). Thus the usual relation
between ( m 2) and the susceptibility is violated, compatible with the warnings of
Neumann and Derrida. Right
atTc, the decay of the squared order parameter with
increasing lattice size
atTe is also given in table I. The data
arewell described by
apower law with the expected exponent 2Q/v
=0.25, but the prefactor is somewhat
smaller than that obtained from sequential updating.
Table I.- (a) Fluctuation (m2) £2versus temperature for 1000 ;
,.(b) Fluctuation (m2) £1/4
versus
L
aithe Curie point. In both
cases,the
upperline gives parallel, the lower line sequential
updating (in agreement with the
exactresults).
With these deviations in ( m 2)
nowdetermined,
ourquestion
nowis if these
"errors" cancel out from the ratio (M 4) / (M2)2 entering the above cumulant. In
figure 1
weplot the reduced fourth order cumulant U
versusT for three different lattice sizes. We
seethat the
curvesall
crossat
atemperature which is within
anerror
of less than 0.01 in’ kT/J the exact infinite-lattice critical temperature. In table
II
weshow the values of U* obtained at Tc, including
nowdata for L
=80. We
seethat U is essentially identical for all lattices sizes ( U
=0.591 ± 0.006 for L
=80)
but is clearly below the correct value of U*
=0.615 found in table II by traditional
sequential updating. (With minor modifications
ourprogram carried
outsequential updating giving the correct value of U* thus making programming
errors anunlikely
source
of the discrepancy).
Table II.- Variation of ,fourth cumulant U*
versusL
atthe Curie point.
The semi-universal quantity Uis known [4]
todepend strongly
onthe shape of the
sample,
evenwith sequential updates. With parallel updates this dependence is
even512
stronger : for 9* 10
or19*20 lattices, U is only about half its above value, in agreement with
atheoretical prediction of Derrida (Priv. Comm.). For these odd*even shapes
our
helical boundary conditions lead to two decoupled sublattices of
evenand odd
sites, at
eventimes, for which the statements of Neumann and Derrida apply.
Fig. 1.- Variation of cumulant U with temperature (in units of J/k) for L
=10 (dots), 20(x),
and 40(+). The
errors areof the order of the symbol sizes.
(F. Gutbrod, private communication, showed parallel updating to give wrong averages for the heat bath simulation of SU2 lattice gauge theory).
We thus conclude, consistent with Neumann and Derrida, that simultaneous up-
dating,
asapplied
tothe Ising square lattice, introduces drastic
errorsin the suscepti- bility and subtle but noticable
errorsinto the ratio of the higher moments of the order parameter. This technique
canthus not be used with impunity for treating arbitrary systems.
One of
us(D.P.L.) wishes to thank the Humboldt Foundation for its support and Johannes Gutenberg-Universitat Mainz for its hospitality during
aportion of the
time this work
wascarried out. This work
wasalso supported in part by NSF grant
# DMR-8715740. We wish to thank B. Derrida, E. Domany, G. LeCaer and D.W.
Heermann for helpful discussions.
References
[1] BINDER K. (Ed.), Applications of the Monte Carlo Method in Physics (Springer Verlag, Heidelberg) 1987, chapter 1.
[2] NEUMANN A.U. and DERRIDA B., J. Phys. France 49 (1988) 1647 ;
see