Lecture V: Multicanonical Simulations.

Similar documents
Generalized Ensembles: Multicanonical Simulations

Lecture 8: Computer Simulations of Generalized Ensembles

Markov Chain Monte Carlo Simulations and Their Statistical Analysis An Overview

Multicanonical methods

Monte Carlo study of the Baxter-Wu model

Multicanonical parallel tempering

Their Statistical Analvsis. With Web-Based Fortran Code. Berg

Finite-size analysis via the critical energy -subspace method in the Ising models

Monte Caro simulations

Hanoi 7/11/2018. Ngo Van Thanh, Institute of Physics, Hanoi, Vietnam.

A New Method to Determine First-Order Transition Points from Finite-Size Data

Advanced sampling. fluids of strongly orientation-dependent interactions (e.g., dipoles, hydrogen bonds)

Interface tension of the 3d 4-state Potts model using the Wang-Landau algorithm

Chapter 2 Ensemble Theory in Statistical Physics: Free Energy Potential

Wang-Landau sampling for Quantum Monte Carlo. Stefan Wessel Institut für Theoretische Physik III Universität Stuttgart

Phase Transition in a Bond. Fluctuating Lattice Polymer

Wang-Landau algorithm: A theoretical analysis of the saturation of the error

Monte Carlo. Lecture 15 4/9/18. Harvard SEAS AP 275 Atomistic Modeling of Materials Boris Kozinsky

VSOP19, Quy Nhon 3-18/08/2013. Ngo Van Thanh, Institute of Physics, Hanoi, Vietnam.

AGuideto Monte Carlo Simulations in Statistical Physics

Markov Chain Monte Carlo Method

Simulation of the two-dimensional square-lattice Lenz-Ising model in Python

Evaluation of Wang-Landau Monte Carlo Simulations

Evaporation/Condensation of Ising Droplets

Brazilian Journal of Physics, vol. 26, no. 4, december, P. M.C.deOliveira,T.J.P.Penna. Instituto de Fsica, Universidade Federal Fluminense

Overcoming the slowing down of flat-histogram Monte Carlo simulations: Cluster updates and optimized broad-histogram ensembles

First steps toward the construction of a hyperphase diagram that covers different classes of short polymer chains

A = {(x, u) : 0 u f(x)},

Molecular Interactions F14NMI. Lecture 4: worked answers to practice questions

Optimized statistical ensembles for slowly equilibrating classical and quantum systems

Optimized multicanonical simulations: A proposal based on classical fluctuation theory

GPU-based computation of the Monte Carlo simulation of classical spin systems

Available online at ScienceDirect. Physics Procedia 57 (2014 ) 82 86

2m + U( q i), (IV.26) i=1

Lecture 14: Advanced Conformational Sampling

Advanced Monte Carlo Methods Problems

Mathematical Structures of Statistical Mechanics: from equilibrium to nonequilibrium and beyond Hao Ge

INTRODUCTION TO MARKOV CHAIN MONTE CARLO SIMULATIONS AND THEIR STATISTICAL ANALYSIS

arxiv:cond-mat/ v1 [cond-mat.stat-mech] 5 Jun 2003

(# = %(& )(* +,(- Closed system, well-defined energy (or e.g. E± E/2): Microcanonical ensemble

Directional Ordering in the Classical Compass Model in Two and Three Dimensions

Parallel Tempering Algorithm for. Conformational Studies of Biological Molecules

Phase transitions and finite-size scaling

Rare Event Sampling using Multicanonical Monte Carlo

3.320 Lecture 18 (4/12/05)

Random Walks A&T and F&S 3.1.2

Simulation Techniques for Calculating Free Energies

Critical Dynamics of Two-Replica Cluster Algorithms

Intro. Each particle has energy that we assume to be an integer E i. Any single-particle energy is equally probable for exchange, except zero, assume

Phase transition phenomena of statistical mechanical models of the integer factorization problem (submitted to JPSJ, now in review process)

Topological defects and its role in the phase transition of a dense defect system

Statistical thermodynamics for MD and MC simulations

Trivially parallel computing

General Construction of Irreversible Kernel in Markov Chain Monte Carlo

Principles of Equilibrium Statistical Mechanics

Population Annealing: An Effective Monte Carlo Method for Rough Free Energy Landscapes

REVIEW: Derivation of the Mean Field Result

Physics 115/242 Monte Carlo simulations in Statistical Physics

Lecture 6: Ideal gas ensembles

Monte Carlo simulation of proteins through a random walk in energy space

The XY-Model. David-Alexander Robinson Sch th January 2012

Multicanonical methods, molecular dynamics, and Monte Carlo methods: Comparison for Lennard-Jones glasses

Statistical Thermodynamics and Monte-Carlo Evgenii B. Rudnyi and Jan G. Korvink IMTEK Albert Ludwig University Freiburg, Germany

3.320: Lecture 19 (4/14/05) Free Energies and physical Coarse-graining. ,T) + < σ > dµ

Microscopic Deterministic Dynamics and Persistence Exponent arxiv:cond-mat/ v1 [cond-mat.stat-mech] 22 Sep 1999

6 Reweighting. 6.1 Reweighting in Monte Carlo simulations

Copyright 2001 University of Cambridge. Not to be quoted or copied without permission.

XVI International Congress on Mathematical Physics

Numerical estimates of critical exponents of the Anderson transition. Keith Slevin (Osaka University) Tomi Ohtsuki (Sophia University)

LECTURE 11: Monte Carlo Methods III

Slow dynamics in systems with long-range interactions

Population annealing study of the frustrated Ising antiferromagnet on the stacked triangular lattice

LECTURE 3 WORM ALGORITHM FOR QUANTUM STATISTICAL MODELS

arxiv:cond-mat/ v1 [cond-mat.stat-mech] 19 Oct 2004

Computational Physics (6810): Session 13

Statistical Mechanics and Information Theory

Equilibrium, out of equilibrium and consequences

Classical Monte Carlo Simulations

Computer Simulation of Peptide Adsorption

Multi-Ensemble Markov Models and TRAM. Fabian Paul 21-Feb-2018

8 Error analysis: jackknife & bootstrap

Order-parameter-based Monte Carlo simulation of crystallization

Basics of Statistical Mechanics

An improved Monte Carlo method for direct calculation of the density of states

A Brief Introduction to Statistical Mechanics

Computer simulations as concrete models for student reasoning

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Physics Department Statistical Physics I Spring Term Solutions to Problem Set #10

Monte Carlo Simulation of the 2D Ising model

Statistical Analysis of Simulations: Data Correlations and Error Estimation

J ij S i S j B i S i (1)

Computer Simulations of Statistical Models and Dynamic Complex Systems

Thermodynamics of nuclei in thermal contact

Stat 516, Homework 1

Monte Carlo and cold gases. Lode Pollet.

Invaded cluster dynamics for frustrated models

Wang-Landau Monte Carlo simulation. Aleš Vítek IT4I, VP3

Department for the Mathematical Sciences, University of Liverpool, Liverpool, L69 7ZL, UK

Energy Barriers and Rates - Transition State Theory for Physicists

Metropolis Monte Carlo simulation of the Ising Model

Wang-Landau Sampling of an Asymmetric Ising Model: A Study of the Critical Endpoint Behavior

Transcription:

Lecture V: Multicanonical Simulations. 1. Multicanonical Ensemble 2. How to get the Weights? 3. Example Runs (2d Ising and Potts models) 4. Re-Weighting to the Canonical Ensemble 5. Energy and Specific Heat Calculation 6. Free Energy and Entropy Calculation 7. Summary 1

Multicanonical Ensemble One of the questions which ought to be addressed before performing a large scale computer simulation is What are suitable weight factors for the problem at hand? So far we used the Boltzmann weights as this appears natural for simulating the Gibbs ensemble. However, a broader view of the issue is appropriate. Conventional canonical simulations can by re-weighting techniques only be extrapolated to a vicinity of this temperature. For multicanonical simulations this is different. A single simulation allows to obtain equilibrium properties of the Gibbs ensemble over a range of temperatures. Of particular interest are two situations for which canonical simulations do not provide the appropriate implementation of importance sampling: 1. The physically important configurations are rare in the canonical ensemble. 2. A rugged free energy landscape makes the physically important configurations difficult to reach. 2

MC calculation of the interface tension of a first order phase transition provide an example where canonical MC simulation miss the important configurations. Let N = L d be the lattice size. For first order phase transition pseudo-transition temperatures β c (L) exist so that the energy distributions P (E) = P (E; L) become double peaked and the maxima at E 1 max < E 2 max are of equal height P max = P (E 1 max) = P (E 2 max). In-between the maximum values a minimum is located at some energy E min. Configurations at E min are exponentially suppressed like P min = P (E min ) = c f L p exp( f s A) (1) where f s is the interface tension and A is the minimal area between the phases, A = 2L d 1 for an L d lattice, c f and p are constants (computations of p have been done in the capillary-wave approximation). The interface tension can be calculated by Binder s histogram method: f s (L) = 1 A(L) ln R(L) with R(L) = P min(l) P max (L) (2) 3

and a finite size scaling (FSS) extrapolation of f s (L) for L. For large systems a canonical MC simulation will practically never visit configurations at energy E = E min and estimates of the ratio R(L) will be very inaccurate. The terminology supercritical slowing down was coined to characterize such an exponential deterioration of simulation results with lattice size. Multicanonical simulations approach this problem by sampling, in an appropriate energy range, with an approximation ŵ mu (k) = w mu (E (k) ) = e b(e(k) ) E (k) +a(e (k) ) (3) to the weights ŵ 1/n (k) = w 1/n (E (k) ) = 1 n(e (k) ) where n(e) is the spectral density. The function b(e) defines the inverse microcanonical temperature and a(e) the dimensionless, microcanonical free (4) 4

energy. The function b(e) has a relatively smooth dependence on its arguments, which makes it a useful quantity when dealing with the weight factors. Instead of the canonical energy distribution P (E), multicanonical distribution one samples a new P mu (E) = c mu n(e) w mu (E) c mu. (5) The desired canonical probability density is obtained by re-weighting P (E) = c β c mu P mu (E) w mu (E) e βe. (6) This relation is rigorous, because the weights w mu (E) used in the actual simulation are exactly known. With the approximate relation (5) the average number of configurations sampled does not longer depend strongly on the energy and accurate 5

estimates of the ratio R(L) = P min /P max become possible: R(L) = R mu (L) w mu(e i max) exp( β c E min ) w mu (E min ) exp( β c E max ), (i = 1, 2). (7) The statistical errors are those of the ratio R mu times the exactly known factor. The multicanonical method requires two steps: 1. Obtain a working estimate ŵ mu (k) of the weights ŵ 1/n (k). Working estimate means that the approximation to (4) has to be good enough to ensure movement in the desired energy range, while deviations of P mu (E) from the constant behavior (5) are tolerable. 2. Perform a Markov chain MC simulation with the fixed weights ŵ mu (k). The thus generated configurations constitute the multicanonical ensemble. Canonical expectation values are found by re-weighting to the Gibbs ensemble and standard jackknife methods allow reliable error estimates. 6

How to get the Weights? To get the weights is at the heart of the method (and a stumbling block for beginners). Some approaches used are listed in the following: 1. Overlapping constrained (microcanonical) MC simulations. Potential problem: ergodicity. 2. Finite Size Scaling (FSS) Estimates. Best when it works! Problem: There may be no FSS theory or the prediction may be so inaccurate that the initial simulation will not cover the target region. 3. General Purpose Recursions. Problem: Tend to deteriorate with increasing lattice size (large lattices). 7

Multicanonical Recursion (A variant of Berg, J. Stat. Phys. 82 (1996) 323.) Multicanonical parameterization of the weights: w(a) = e S(E a) = e b(e a) E a +a(e a ), where b(e) = [S(E + ɛ) S(E)] /ɛ (ɛ smallest stepsize) and a(e ɛ) = a(e) + [b(e ɛ) b(e)] E. Recursion: b n+1 (E) = b n (E) + ĝ0 n (E) [ln H n (E + ɛ) ln H n (E)]/ɛ ĝ0 n (E) = g0 n (E) / [g n (E) + ĝ0 n (E)], g0 n (E) = H n (E + ɛ) H n (E) / [H n (E + ɛ) + H n (E)], g n+1 (E) = g n (E) + g0 n (E), g 0 (E) = 0. ANIMATION: 2d 10-state 80 80 Potts model (Iterations of 100 sweeps each). 8

F. Wang and Landau: Update are performed with estimators g(e) of the density of states [ ] g(e1 ) p(e 1 E 2 ) = min g(e 2 ), 1. Each time an energy level is visited, they update the estimator multiplicatively: g(e) g(e) f, where, initially, g(e) = 1 and f = f 0 = e 1. covered, the factor f is refined: Once the desired energy range is f 1 = f, f n+1 = f n+1 until a value sufficiently close to 1. is reached. Sufficiently close means: The system keeps on cycling (next page) with fixed weights. Now the usual MUCA production runs should be carried out (not their philosophy). 9

Example Runs (2d Ising and Potts models) Ising model on a 20 20 lattice: The multicanonical recursion is run in the range namin = 400 iact 800 = namax. (8) The recursion is terminated after a number of so called tunneling events. tunneling event is defined as an updating process which finds its way from A iact = namin to iact = namax and back. This notation comes from applications to first order phase transitions. An alternative notation for tunneling event is random walk cycle. For most applications 10 tunneling events lead to acceptable weights. For an example run of the Ising model we find the requested 10 tunneling events after 787 recursions and 64,138 sweeps (assignment a0501 01, a0501 02 for the 2d 10-state Potts model). 10

Performance If the multicanonical weighting would remove all relevant free energy barriers, the updating process would become a free random walk. Therefore, the theoretically optimal performance for the second part of the multicanonical simulation is τ tun V 2. Recent work about first order transitions by Neuhaus and Hager shows that that the multicanonical procedure removes only the leading free energy barrier, while at least one subleading barrier causes still a residual supercritical slowing done. Up to certain medium sized lattices the behavior V 2+ɛ gives a rather good effective description. For large lattices supercritical slowing down of the form τ tun exp ( +const L d 1) dominates again. The slowing down of the weight recursion with the volume size is expected to be even (slightly) worse than that of the second part of the simulation. 11

Re-Weighting to the Canonical Ensemble Let us assume that we have performed a multicanonical simulation which covers the action histograms needed for a temperature range β min β = 1 T β max. Given the multicanonical time series, where i = 1,..., n labels the generated configurations. The formula O = n i=1 O(i) exp [ β E (i) + b(e (i) ) E (i) a(e (i) ) ] n i=1 exp [ β E (i) + b(e (i) ) E (i) a(e (i) ) ]. replaces the multicanonical weighting of the simulation by the Boltzmann factor. The denominator differs from the partition function Z by a constant factor which drops out. 12

For discrete systems it is sufficient to keep histograms when only functions of the energy are calculated. For an operator O (i) = f(e (i) ) and reweighting simplifies to f = E f(e) h mu(e) exp [ β E + b(e) E a(e)] E h mu(e) exp [ β E + b(e) E a(e)] where h mu (E) is the histogram sampled during the multicanonical production run and the sums are over all energy values for which h mu (E) has entries. 13

The computer implementation of these equations requires care. The differences between the largest and the smallest numbers encountered in the exponents can be really large. We can avoid large numbers by dealing only with logarithms of sums and partial sums: For C = A + B with A > 0 and B > 0 we can calculate ln C = ln(a + B) from ln A and ln B without ever storing either A or B or C: ln C = ln [ max(a, B) ( 1 + )] min(a, B) max(a, B) = max (ln A, ln B) + ln{1 + exp [min(ln A, ln B) max(ln A, ln B)]} = max (ln A, ln B) + ln{1 + exp [ ln A ln B ]}. 14

Energy and Specific Heat Calculation We are now ready to produce multicanonical data for the energy per spin (with jackknife errors) of the 2d Ising model on a 20 20 lattice and to compare them with the exact results of Ferdinand and Fisher (assignment a0501 03): 0-0.5 Energy per spin <e 0s > Multicanonical data <e 0s > -1-1.5-2 0 0.1 0.2 0.3 0.4 0.5 0.6 β 15

The same numerical data allow to calculate the specific heat defined by C = d Ê d T = β2 ( E 2 E 2). C/N 1.8 1.6 1.4 1.2 1 0.8 0.6 0.4 0.2 0 Specific heat per spin 0 0.2 0.4 0.6 0.8 1 β 16

The energy histogram of the multicanonical simulation together its canonically re-weighted descendants at β = 0, β = 0.2 and β = 0.4 (assignment a0501 04): 7000 Histograms 6000 5000 4000 3000 2000 1000 multicanonical beta=0.0 beta=0.2 beta=0.4 0 0-0.5-1 -1.5-2 e s The normalization of the multicanonical histogram is adjusted so that it fits into the same figure with the three re-weighted histograms. 17

Similar data for the 2d 10-state Potts model, action variable actm data (assignment a0501 05): 1 0.8 Action variable q=10 actm 0.6 0.4 0.2 0 0 0.2 0.4 0.6 0.8 1 β 18

The canonically re-weighted histogram at β = 0.71 together with the multicanonical histogram using suitable normalizations (the ordinate is on a logarithmic scale): 1000 Histograms Multicanonical β=0.71 100 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 act 19

The multicanonical method allows to estimate the interface tension of the transition by following the minimum to maximum ratio over many orders of magnitude (Berg and Neuhaus 1992): 20

0.110 2 f s 0.105 0.100 0.095 0.00 0.02 0.04 0.06 L -1 Figure 1: Interface tension fit (Berg and Neuhaus 1992). 21

Free Energy and Entropy Calculation At β = 0 the Potts partition function is Z 0 = q N. MUCA simulations allow for proper normalization of the partition function, if β = 0 is included in the temperature range. The properly normalized partition function allows to calculate the properly normalized Helmholtz free energy F = β 1 ln(z) and the Entropy S = F E = β (F E) T of the canonical ensemble. Here E is the expectation value of the internal energy and the last equal sign holds because of our choice of units for the temperature. For the 2d Ising model as well as for the 2d 10-state Potts model, we show in the next figure multicanonical estimates of the free energy density per site f = F/N. 22

-2-3 -4-5 f -6-7 -8-9 -10 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 β Ising 10 state Potts Figure 2: Free energies from multicanonical simulations of the Ising and 10-state Potts models on an 20 20 lattice (assignments a0501 03 and a0501 05). The full lines are the exact results of Ferdinand and Fischer for the Ising model and the asymptotic behavior f as = 2 d q 2 d β 1 ln(q) N for the 10-state Potts model. 23

Entropy Density s = S/N : 0.8 0.7 0.6 0.5 s 0.4 0.3 0.2 0.1 0 Ising 10-state Potts 0 0.2 0.4 0.6 0.8 1 β Figure 3: Entropies from multicanonical simulations of the Ising and 10-state Potts models on an 20 20 lattice (assignments a0501 03 and a0501 05). The full line is the exact result of Ferdinand and Fischer for the Ising model. 24

For the 2d Ising model one may also compare directly with the number of states. Up to medium sized lattices this integer can be calculated to all digits by analytical methods (Beale). MC results are only sensitive to the first few (not more than six) digits and one finds no real advantages over using other physical quantities. Time series analysis Typically, one prefers in continuous systems time series data over keeping histograms, because one avoids then dealing with the discretization errors. Even in discrete systems time series data are of importance, as one often wants to measure more physical quantities than just the energy. Then the RAM storage requirements may require to use a time series instead of histograms. We illustrate this point, using the Potts magnetization: In assignments a0501 08 and a0501 09 we create the same statistics on 20 20 lattices as before, including time series measurements for the energy and also for the Potts magnetization. For energy based observables the analysis of the histogram and the time series data give consistent results. 25

For zero magnetic field, H = 0, the expectation value of the Potts magnetization on a finite lattice is M q0 = δ qi,q 0 = 1 q, independently of the temperature. For the multicanonical simulation each Potts state is visited with probability 1/q also at low temperatures. In contrast to this, the expectation value of the magnetization squared M 2 q0 = q ( 1 N ) 2 N δ qi,q 0 i=1 is a non-trivial quantity. At β = 0 its N value is M 2 q0 = q (1/q) 2 = 1/q, whereas it approaches 1 for β. For q = 2 and q = 10 the next figure shows our numerical results and we see that the crossover of M 2 q0 from 1/q to 1 happens in the neighborhood of the critical temperature. A FSS analysis would reveal that, a singularity develops at β c, which is in the derivative of M 2 q0 for the second order phase transitions (q 4) and in M 2 q0 itself for the first order transitions (q 5). 26

1 0.8 M 2 q0 0.6 0.4 0.2 2d Ising 2d q=10 Potts 0 0 0.2 0.4 0.6 0.8 1 Figure 4: The Potts magnetization per lattice site squared for the q = 2 and q = 10 Potts models on an 20 20 lattice (assignments a0501 08 and a0501 09). β 27

Summary We considered Statistics, Markov Chain Monte Carlo simulations, the Statistical Analysis of Markov chain data and, finally, Multicanonical Sampling. It is a strength of computer simulations that one can generate artificial (not realized by nature) ensembles, which enhance the probabilities of rare events on may be interested in, or speed up the dynamics. Nowadays Generalized Ensembles (umbrella, multicanonical, 1/k,...) have found many applications. Besides for first order phase transitions in particular for Complex Systems such as biomolecules, where they accelerate the dynamics. 28