2pm chemistry seminar zhang mit

22
Lecture 8 . - Monte Carlo sampling @ 2pm , chemistry seminar , Bin Zhang , MIT in 2 weeks @ 2pm Zob Distasio , Cornell Today : Nobel Prize in Physics 2021 Georgio Parisi

Upload: others

Post on 23-Jun-2022

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 2pm chemistry seminar Zhang MIT

Lecture 8 .-

Monte Carlo sampling

@2pm , chemistry seminar,

Bin Zhang , MITin 2 weeks @ 2pmZob Distasio

, Cornell

Today : Nobel Prize in Physics 2021Georgio Parisi

Page 2: 2pm chemistry seminar Zhang MIT

Reminder 40> =fdÑOWPW= { ✗ , , Xz , . . . , Xp , Pi , Pa . . . - , Psv}

☒ = { ×. . . - , Asu) F- {A, . . - Psn}

☒ ={tip}itptx

, -51=17×71757it Oli,p→1= 01×-3

Page 3: 2pm chemistry seminar Zhang MIT

@ constant N,HT

Pfxip , = e-BYKingz

E-fdxfdpe-mteiip-itttiypt-EP.IM;t Uli )

PC Iii') = eIaH

2- ice Zpe

Page 4: 2pm chemistry seminar Zhang MIT

PLÉ ) = §dp→ PCÉ,p→ ) =ftp.PCEIPcp?fdpPCp-7--I

-BUCH= C

[ position'D

Generate a set of configurations

{ It } where these are distributedaccording to PCE )

Page 5: 2pm chemistry seminar Zhang MIT

{ ✗+3 wait

Playpen, =

⇐ e- Piuij

Dilip = Ulxj ) - Uki)

Page 6: 2pm chemistry seminar Zhang MIT

Algorithm: ( want]✗c- → ✗ c- +1 St

P( ✗c- til /p(✗+, = e-PM±tyt

•Generate a Markov Chain

i. → i. → ii. →ii. - -¥"

Markovian " : no memory

P(Ñt→Ñt+, ) only depends on it

[ not É , . . - ¥?

Page 7: 2pm chemistry seminar Zhang MIT

Eg Molecular Dynamics

¥,

-

- Et ist Liii ] ii. pjm

iii. , = É+ + Est

want :-Bluth

,'t

Patti )|p(✗+,→ e

converges ? as 1-→✗

① Markovian② Detailed Balance &

Page 8: 2pm chemistry seminar Zhang MIT

D.etailedy.BE#pg A

¥:*DB:

P(A) - PCA→B) = PCB) - PCB→A)

✗t → ✗c- + ,

→ ✗c- +2

-

PCA) PEX t →✗++1) = Plitt, )P(✗c-+i>✗t)

choosing aru6J~

Page 9: 2pm chemistry seminar Zhang MIT

P ( ✗→ y)↳ Pgen ( ✗ → y) Paccept (✗→y)

Generation, make new config y

Accept /reject going to y" rate

"

PIN Pgen (✗→ y l Paul✗→ g) = r(✗→y)

Ply) Pgenly → x) Pauly→x) /Pace ( ✗→ y)=[¥,P§g¥y ] Pauly→x)- -

Page 10: 2pm chemistry seminar Zhang MIT

Metropolis Monte-Carlo 119531

MTTRR → Manhattan Pngecf• - - ' ' Lusitanos Computing Center

Pace (✗→y ) = min ( 1,rlx →y) )

Paul ✗→ y)=[¥,P§h¥f) Pauly→xD1- -

Pace (✗→yl = r(✗→y) Pace Cy→x )

Pace ( y → a) = rly -5×1Pace ( ✗→ y)

r (✗→ y ) = →×)

Page 11: 2pm chemistry seminar Zhang MIT

② r( ✗ → y) 71 st My -3×1<1

⑥rlx→ y ) < 1 St pr(y→x) > 1

Race =mn[ 1,rcx ->yl]

Pace (✗→y)-

= r( ✗→y )

Pauly -3×1 F)a) Pace /✗ →g) = 1

Pauly -1×1 = Yr(✗→ y) )b) Pace ( ✗ →g) = rC✗→y ) < 1

Pauly -5×1=1

Page 12: 2pm chemistry seminar Zhang MIT

Algorithm : start at config It① Propose Xttl W/ prob Pages 1×+0×+1 )-

generate rand number"a"

[0,1)fhiforn -

② if a < min [ 1 , rlx+→ ✗t.is] ←

accept,more to Xtti

else :

✗1- + i = ✗ t

③ go back to I

Page 13: 2pm chemistry seminar Zhang MIT

run;¥¥¥"÷,¥+

[email protected][ucy, .ua,]

e-P[HÉnp% - Hiii:p? ,

Mike generation symmetric

Page 14: 2pm chemistry seminar Zhang MIT

711×1 pl = PEN +& kid

sample

Plxl = e-PUCH

If e-pacy=

§nT¥e→±k"

"

✗¥÷

Page 15: 2pm chemistry seminar Zhang MIT

Move rule , that is symmetricpropose :

✗tti = ✗+ + az.by ←

rzt ( -1 , 1) uniform random

by biggest possible move

Xttz = ✗c-+ , Taz. §

Pga ( y→ x)

1¥>g)= I rlx-syi-e-f.tn

Pace ( ✗+→ ✗+a) = min ( 1 , e-Pd" )

Page 16: 2pm chemistry seminar Zhang MIT

Pace ( ✗+→ ✗++ 1) = min ( 1 , e-Pd" )

= " ""

how doesat

compareto last

9current posmove 1

, energy goesdown

U ( Xz ) - Ucx , I <0,e-Pd"

> 1,alwaysaccept

Move 2 Ulxz)-uh , , > 0 , e-PAUL 1

,acceptprobe-Blu

Page 17: 2pm chemistry seminar Zhang MIT

Tune our moves , here §St average acceptance rate ~

0.25-3 0.5

Tradeoff between efficiency &explorationif E is large , each accepted

more will go far,but most

moves will be rejectedby is really small , almost always accept

but stay close to starting point

Page 18: 2pm chemistry seminar Zhang MIT

to be this/i¥qDenture

simpleI 2

① pick an atom [ atom 47

② generate a random move

Ñy(1- til =IyCH + random

REC-1 , 1)

Ii + [mamarandom ☒ { ]random . {

③then calc e- Psu for whole system

Page 19: 2pm chemistry seminar Zhang MIT

Random move

① more com of molecule

✗can= ✗

can✗ it {

② rotate molecule by arandom angle

Page 20: 2pm chemistry seminar Zhang MIT

Why MC & why not :

① easy

② CI choose very smart

types of moves, jump our

energy barriers st . explorationis very fast

WH:① not real dynamics [gives

static properties]

② usually only tiny charges accepted

Page 21: 2pm chemistry seminar Zhang MIT

Do we have to use Mei nieGlauber Rule

- PAULPaulk?y) = e- ←

e- Path + etpbulz

why? All = Uly )- UCHxy

buy ✗ = UCH-Uly) = -All✗y

%¥⇒, -- e-nunsor

Page 22: 2pm chemistry seminar Zhang MIT

acceptrate Mmetrope's

i

Go%

-xtx