mirror of
https://github.com/vale981/phys512
synced 2025-03-04 09:11:37 -05:00
Fix typo in hw3
This commit is contained in:
parent
11f23f4aec
commit
7b4b7edbca
1 changed files with 1 additions and 1 deletions
2
hw3.md
2
hw3.md
|
@ -38,7 +38,7 @@ At a temperature $T$, the probability that the system is in a configuration with
|
|||
|
||||
$$\mathrm{Prob}(E) \propto \exp\left(-E/k_b T\right).\hspace{1cm} (*)$$
|
||||
|
||||
To calculate the magnetization at a given temperature, we need to sample the possible configurations from this probability distribution and then we can average over them to find the mean magnetization $\langle M\rangle$ as a function of temperature. Since the energy $E$ depends on the values of the $N$ spins $\{s_i\}$, we are dealing with a $2^N$ dimensional parameter space, and so this an example where Monte Carlo methods are needed to sample from the probability distribution.
|
||||
To calculate the magnetization at a given temperature, we need to sample the possible configurations from this probability distribution and then we can average over them to find the mean magnetization $\langle M\rangle$ as a function of temperature. Since the energy $E$ depends on the values of the $N$ spins $\{s_i\}$, we are dealing with an $N$ dimensional parameter space (with $2^N$ possible sample points), and so this an example where Monte Carlo methods are needed to sample from the probability distribution.
|
||||
|
||||
(a) Use the Metropolis-Hastings algorithm to generate a sample of configurations $\{s_i\}$ from the probability distribution (*). Rather than storing the sequence of configurations, instead calculate $M$ at each step and store the chain of $M$ values.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue