16.12 Exercises 531
InitializeR,
setαand
ΨT−α(R)
Suggest
a move
Compute ac-
ceptance ratio
Generate a
uniformly
distributed
variabler
Is
R≥r?
Reject move:
xnewi =xoldi
Accept move:
xoldi =xnewi
Last
move?
Get local
energyEL
Last
MC
step?
Collect
samples
Is
〈E〉min?
End
yes
no
yes
yes
no
yes
no
Fig. 16.1Optimization of the trial wave functionΨt rial(α)and minimization of the energy with respect to the
variational parameters.