CASINO manual - Theory of Condensed Matter
CASINO manual - Theory of Condensed Matter
CASINO manual - Theory of Condensed Matter
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
26.2.1 Standard sampling<br />
For the standard choice <strong>of</strong> sampling distribution the weight w is constant, and the usual estimates and<br />
standard error are recovered. This can be activated for alternative sampling by setting vmc sampling<br />
to ‘standard’ (the default).<br />
26.2.2 Optimum sampling<br />
Since we have an analytic expression for random error we may seek the sampling distribution that<br />
provides the lowest statistical error for a given sample size. A somewhat generalized version <strong>of</strong> this<br />
distribution is given by<br />
P (R) = λ|Ψ 2 (R)| [ (E L (R) − E 0 ) 2 + 2ɛ 2] 1 2<br />
, (233)<br />
where (E 0 , ɛ) are user-supplied parameters (vmc optimum e0 and vmc optimum ew). The best<br />
values for these parameters are E 0 = E tot and ɛ = 0, which provide the lowest possible statistical error<br />
for a given number <strong>of</strong> samples, but using a rough estimate with an accompanying error usually brings<br />
us close to this. It is worth emphasizing that the choice <strong>of</strong> parameters does not bias the estimate—for<br />
example, any E 0 with ɛ → ∞ provides a valid sampling distribution (standard sampling)—but it is<br />
advantageous to have ɛ ≈ |E tot − E 0 |. A particular special case that should be avoided is ɛ = 0, for<br />
which both the LLN and CLT are invalid and the quotient <strong>of</strong> weighted means given above is not an<br />
estimate (unless E 0 is exactly equal to the quantity we are estimating).<br />
If no values are provided by the user they are set ad hoc to E 0 = 0 and ɛ = 100, which usually gives<br />
similar accuracy to standard sampling. A rule <strong>of</strong> thumb is to use the best VMC total energy estimate<br />
available so far (e.g., from a test calculation), or to use the best ab initio total energy estimate for E 0<br />
and 10% <strong>of</strong> this for ɛ. During optimization vmc sampling e0 and vmc sampling ew are updated<br />
after each cycle to the best estimates available so far.<br />
Although this sampling strategy reduces random error in the estimate for a given system to close<br />
to the best value possible with a given sample size, it can be more expensive; for example, for allelectron<br />
atomic calculations with accurate trial wave functions such sampling results in a ×2 increase<br />
in computational cost for a given accuracy due to long correlation times in the Metropolis algorithm<br />
for these systems [69].<br />
This sampling scheme can be activated by setting vmc sampling to ‘optimum’, together with values<br />
for E 0 and ɛ via the keywords vmc optimum e0 and vmc optimum ew, respectively (notice that<br />
these are <strong>of</strong> type ‘physical’ and require energy units to be specified, as in ‘37.45 hartree’).<br />
26.2.3 Simplified optimum sampling<br />
We may attempt to achieve a more accurate estimate for a given computational cost by approximating<br />
the above optimum distribution with something that increases the fixed-sample-size error a little, but<br />
that allows the sample size to be increased. A computationally cheaper candidate implemented in<br />
the code is referred to as simplified optimum sampling, and corresponds to sampling the optimum<br />
distribution associated with a simplified version <strong>of</strong> the actual trial wave function. Note that this<br />
simplification occurs only in the sampling distribution; the expectation value estimated is still that <strong>of</strong><br />
the full trial wave function.<br />
A number <strong>of</strong> different forms <strong>of</strong> trial wave functions are implemented in the code, and we limit ourselves<br />
to a multideterminant expansion combined with a Jastrow factor and backflow. For these it is natural<br />
to take the dominant determinant, remove the Jastrow factor, and remove the backflow to provide a<br />
computationally undemanding wave function, Φ, whose optimum sampling distribution,<br />
P (R) = λ|Φ 2 (R)| [ (E L (R)[φ] − E 0 ) 2 + 2ɛ 2] 1 2<br />
, (234)<br />
may be used, in which the local energy is that <strong>of</strong> the simplified trial wave function.<br />
A good choice <strong>of</strong> parameters are as suggested for optimum sampling, but with ɛ replaced by a rough<br />
overestimate <strong>of</strong> the correlation energy in the system such as 10% <strong>of</strong> best total energy available so far.<br />
During optimization E 0 is updated, whereas ɛ is left unchanged.<br />
This sampling strategy reduces random error by a smaller amount than optimum sampling for a<br />
given sample size, but is computationally cheaper. For example, for accurate trial wave functions in<br />
all-electron atomic calculations the efficiency is comparable to standard sampling [69].<br />
164