Here are the python programs related to Week 9:

And here are some sections of the SMAC book (Krauth W., "Statistical mechanics: algorithms and computations". OUP Oxford, 2006) related to the topics treated in Week 9:

7.2.1 (faster-than-the-clock sampling for one spin), 7.3 (disks on a sphere), 7.3.1 (simulated annealing)