- #1
vitaniarain
- 11
- 0
Hi I'm looking for some help with trying to understand how to use the metropolis algorithm for the 2D ising model. In the problem i am trying to solve, the Hamiltonian is simply H= - sum(Si).
I am given a probability function= exp[-H/T] / Z(T) where Z is the partition function which i found analytically and I am asked to use the metropolis algorithm in order to produce N samples representative of the probability function given.
I know more or less how this is supposed to work but I am finding it very hard applying it. Could someone give me a step by step explanation of how to do this? thanks!
I am given a probability function= exp[-H/T] / Z(T) where Z is the partition function which i found analytically and I am asked to use the metropolis algorithm in order to produce N samples representative of the probability function given.
I know more or less how this is supposed to work but I am finding it very hard applying it. Could someone give me a step by step explanation of how to do this? thanks!