Molecular Dynamics in the Multicanonical Ensemble

Molecular Dynamics in the Multicanonical Ensemble

Letter pubs.acs.org/JCTC Molecular Dynamics in the Multicanonical Ensemble: Equivalence of Wang−Landau Sampling, Statistical Temperature Molecular Dynamics, and Metadynamics Christoph Junghans, Danny Perez, and Thomas Vogel* Theoretical Division T-1, Los Alamos National Laboratory, Los Alamos, New Mexico 87545, United States *S Supporting Information ABSTRACT: We show a direct formal relationship between the Wang− Landau iteration [PRL 86, 2050 (2001)], metadynamics [PNAS 99, 12562 (2002)], and statistical temperature molecular dynamics (STMD) [PRL 97, 050601 (2006)] that are the major work-horses for sampling from generalized ensembles. We demonstrate that STMD, itself derived from the Wang−Landau method, can be made indistinguishable from metadynamics. We also show that Gaussian kernels significantly improve the performance of STMD, highlighting the practical benefits of this improved formal understanding. ■ INTRODUCTION smoothing of the estimated density of states16 have been Generalized ensemble methods have become the standard proposed as well. techniques to explore the energy landscape of complex In this paper, we investigate the relationship between WL, systems.1 From such samplings, the free energy can be STMD, and metadynamics. While these methods are well obtained, which provides various thermodynamic insights. established in their communities, their precise formal relation- The idea of performing Monte Carlo (MC) simulations in ships have, to the best of our knowledge, not been thoroughly analyzed, and consequently, their development largely proceeds noncanonical or extended ensembles goes back a long time. fi Early milestones include works by Torrie and Valleau,2 who in parallel. We provide a uni ed formal view of these three introduced the so-called Umbrella Sampling, Challa and methods and give the conditions under which they are Hetherington,3,4 who proposed a Gaussian ensemble to equivalent. In particular, we show that STMD and metady- interpolate between microcanonical and canonical views of namics produce, on a time step per time step basis, identical fi 5 dynamics when using consistent initialization and update phase transitions in nite systems, and Lyubartsev et al., who fi simulated an expanded ensemble covering a wide temperature schemes. This uni ed view allows for the transfer of innovation between the different methods and avoids duplication of efforts range. Monte Carlo (MC) simulations in the multicanonial ff (muca) ensemble, first proposed by Berg and Neuhaus,6,7 in di erent communities. exploit the umbrella sampling idea by generating an umbrella in a way that a random walk in energy space is obtained. Later, ■ MOLECULAR DYNAMICS IN THE Hansmann et al.8 extended multicanonial MC to molecular MULTICANONICAL ENSEMBLE dynamics (MD). Of course, the main technical challenge is the In the muca ensemble, one aims at sampling from a flat determination of good umbrellas (multicanonial weights) in potential energy distribution Pmuca(U), i.e., one requires order to achieve a diffusive behavior in energy space. In a related effort, Wang and Landau (WL) proposed a random- Pmuca()UgUwU∝= () muca () const. (1) walk algorithm9,10 for MC applications, in which the density of states, suitable to calculate multicanonical weights, is estimated where g(U) is the density of states, and wmuca(U) are the on the fly; in fact, over the past decade, the WL method has multicanonical weights, independent of T. Obviously, for this to become the most popular tool for this purpose in the MC be realized, the weights have to take the form of 11 12 community. Shortly after, Laio and Parrinello proposed an −1 −−ln()gU kB SU () MD-based methodmetadynamicsto fill up basins of the wmuca()UgU∝== 1/() e e (2) free-energy surface and enhance the exploration of config- uration space. Using a different approach, and independently where S(U)=kB ln g(U) is the microcanonical entropy, and kB 13,14 is the Boltzmann constant. In the traditional formulation where from metadynamics, Kim et al. later combined ideas from fi Hansmann’s multicanonial MD with the WL MC algorithm and only con gurational degrees of freedom are taken into account, put forward a method known as statistical temperature molecular dynamics (STMD). Other combinations of WL Received: January 31, 2014 and MD using the weighted histogram method15 and/or Published: April 16, 2014 © 2014 American Chemical Society 1843 dx.doi.org/10.1021/ct500077d | J. Chem. Theory Comput. 2014, 10, 1843−1847 Journal of Chemical Theory and Computation Letter the muca weights can be seen as canonical weights at a temperature update (T′(U,t) is also a binned discrete function) ff temperature T0 for an e ective potential in the energy bins next to the currently occupied one = VUeff() TSU 0 () (3) TU′(,)act± 1 t T′+Δ=(,Utact± 1 t ) The interatomic forces for muca MD simulations are 1(,)∓′δβTUact± 1 t (8) obtained from the gradient of V (U) eff δ Δ Δ with β = kB ln f WL/2 U and U being the energy bin width. dVSUqeff ( ( ( , ..., q ))) See refs 13 and 14 for all details. f muca =− 13n i dq Various extensions of this single-bin based update scheme are i possible. For example, one can choose any scalable kernel γ δ̂ ′ ∝ ∂S dUq ( , ..., q ) function k(x/ ) to evolve the entropy estimator S (U,t) =−T 13n ln g′(U,t). The update (which can now affect an arbitrarily large 0 ∂ U dqi (4) energy range) then reads: Using the definition of the microcanonical temperature ̂ ln(gU,t′+Δ=′ t ) ln() gU,t +γδ kU [( − Uact )/] (9) −1 T()USU=∂ ()/ ∂U (5) This scheme has proven particularly useful for Wang−Landau the multicanonical forces become sampling of joint densities of states, i.e., when performing random walks in more than one dimension.19 The above T f muca = 0 f expression can be cast in terms of an entropy estimator as iiTU() (6) S′=(U,t )γδ k [( U −* U ( t ))/ ]̂ +′ S ( U,t = 0) ff ∑ i.e., muca forces di er from the conventional forces, f i , only by tt*≤ (10) an energy-dependent rescaling factor ∝1/T(U). Because the multicanonical weights are related to the density where we use the times t* to index the entropy-update events. of states (eq 1), results of a single multicanonical simulation Following STMD, assume the initial guess S′(U,t = 0) is such can be reweighted to obtain canonical averages at any that temperature. The key difficulty in flat-histogram simulations, 1 ∂′SU,t(0) = 1 on the other hand, is to determine the simulation weights (i.e., = = the density of states), and many different approaches have been TU,t′=(0) ∂UT0 (11) proposed to address that issue, with WL being one of the most popular. In WL,9,10 the density of states g(U) is approximated Recalling eq 4, we then get for the muca forces using a discrete histogram. At each step, the value of the bin of ∂′SU,t() ′ f muca′()U,t= T f the instantaneous estimator g (U,t) containing the current ii0 ∂U energy is updated using a modification factor f via ⎛ ⎡ ⎤ ⎞ WL ⎜ ∂ UUt−*()∂′ SU,t ( = 0)⎟ = T ⎜ γ ∑ k ⎢ ⎥ + ⎟ f ′+Δ=′+ 0 ⎣ ̂ ⎦ i ln(gUact , t t ) ln( gU act ,) t ln fWL (7) ⎝∂U tt*≤ δ ∂U ⎠ ⎛ ⎡ ⎤⎞ where “act” is the actual bin index, and t is the MC (or later, ⎜ ∂ UUt−*()⎟ =+⎜1 γT ∑ k ⎢ ⎥⎟ f ′ 0 ∂ ⎣ ̂ ⎦ i MD) simulation time. [Primed quantities y (x,t) will generally ⎝ U tt*≤ δ ⎠ (12) refer to instantaneous estimators of y(x) in the following.] ′ Conventionally, ln f WL is initially set to 1 and ln g (U,t =0)=0. Taking a step back, we can use this last equation to factorize Simultaneously, a histogram H(U) of the energy bins visited Veff(U) (eq 3) into a sum of the original potential U and a bias during the simulation is accumulated. Once H(U) is deemed potential VG: Veff(U)=U + VG. By inspection (eqs 4 and 12), fl → 1/2 at enough, f WL is decreased, e.g., as f WL (f WL) . In this we directly get paper, we are mainly concerned with the first iteration, where ̂ the dynamics are still strongly biased, but it can be shown that, VU,tG0′( )=−*γδ T∑ kU [( Ut ( ))/ ] *≤ (13) as f WL tends to 1, the WL method converges to a correct tt multicanonical sampling.9,10,17 i.e., with the proper initial conditions, WL/STMD updates are Direct applications of the WL strategy to MD have been equivalent to the construction of an additive bias potential that attempted;18 however, such efforts were hampered by takes the form of a simple sum of kernel functions. As we will numerical stability issues introduced by the finite-difference now show, this procedure is functionally equivalent to a differentiation of noisy histograms, requiring the introduction 12 metadynamics approach with the potential energy as a of rather elaborate smoothing procedures.16 To avoid such collective variable. In metadynamics, one also aims at complications, Kim et al.13,14 proposed to directly estimate overcoming free energy barriers, allowing for a random walk T(U) (eqs 5 and 6) and update T′(U,t), which they refer to as 20 in the collective-variable space. In order for the system to statistical temperature, as the MD simulation proceeds and to freely diffuse with respect to the potential energy, the average begin from an initially constant temperature T′(U,t =0)= “metadynamics force” ϕ on the collective variable must vanish, T > 0 instead of a constant entropy as done in WL. This F 0 i.e., the free energy landscape F (U)=U −T S(U) must approach allows for a restriction of the sampled temperature T0 0 fl ff range, for example, to positive values.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    5 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us