16.12 Exercises 531
InitializeR,
setαand
ΨT−α(R)Suggest
a moveCompute ac-
ceptance ratioGenerate a
uniformly
distributed
variablerIs
R≥r?Reject move:
xnewi =xoldiAccept move:
xoldi =xnewiLast
move?Get local
energyELLast
MC
step?Collect
samplesIs
〈E〉min?EndyesnoyesyesnoyesnoFig. 16.1Optimization of the trial wave functionΨt rial(α)and minimization of the energy with respect to the
variational parameters.