next up previous
Next: Exercise 13.3: Equilibration of Up: Metropolis algorithm Previous: Initial conditions and equilibration

Tricks

It is convenient that we store all the transition probabilities in lookup tables, so we do not have to calculate them at each step. Another trick consists of storing all the positions of the spins and their neighbors to avoid calculating many random numbers. If you need to perform several runs for different values of the temperature $T$, you can do it at the same time using the same random numbers.



Adrian E. Feiguin 2009-11-04