Question: Write code to calculate the probability of accepting a Monte Carlo move for energies ranging from - 2 to 2 for T = 0 .

Write code to calculate the probability of accepting a Monte Carlo move for energies ranging from -2 to 2 for T =0.9, T =0.4, and T =1.4. What is the effect of temperature on the probability of a MC move being accepted? Does this make sense based on your intuition or from what you know about thermodynamics? Why or why not? Create a plot showing your results. Note that you arent going to be able to use your function accept_or_reject for this. You will have to take p_acc out of it to make the plot.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!