QM/MM models for solvated and embedded …...QM/MM models for solvated and embedded systems (ground...

17
QM/MM models for solvated and embedded systems (ground state energies, properties and reactivity) Workshop on Theoretical Chemistry: Modelling of Environment Effects in Quantum Chemistry Mariapfarr, 20-23 February 2018 Scientific Organizer: Benedetta Mennucci Jeremy Harvey, KU Leuven, Belgium Lecture 3: Challenges of Sampling

Transcript of QM/MM models for solvated and embedded …...QM/MM models for solvated and embedded systems (ground...

Page 1: QM/MM models for solvated and embedded …...QM/MM models for solvated and embedded systems (ground state energies, properties and reactivity) Workshop on Theoretical Chemistry: Modelling

QM/MM models for solvated and embedded systems (ground state energies, properties and reactivity)

Workshop on Theoretical Chemistry: Modelling of Environment Effects in Quantum Chemistry

Mariapfarr, 20-23 February 2018Scientific Organizer: Benedetta Mennucci

Jeremy Harvey, KU Leuven, BelgiumLecture 3: Challenges of Sampling

Page 2: QM/MM models for solvated and embedded …...QM/MM models for solvated and embedded systems (ground state energies, properties and reactivity) Workshop on Theoretical Chemistry: Modelling

JNH Lect.3,

Free Energies in QM/MM

2

• Free energies are directly comparable to experiment, not potential energies

• In QM studies, V → G corrections can be obtained within the rigid-rotor, harmonic oscillator, particle in a box framework of statistical mechanics

• This implies that there is well-defined single minimum on the potential energy surface – extensions to small numbersofadditional conformers are however straightforward.

S = NkB +NkB ln

✓q(V, T )

N

◆+NkBT

✓@ ln q

@T

V

q = qt ⇥ qr ⇥ qv qt =

✓2⇡mkBT

h2

◆ 32

V qv =Y

i

✓1� e

�h⌫ikBT

◆�1

Page 3: QM/MM models for solvated and embedded …...QM/MM models for solvated and embedded systems (ground state energies, properties and reactivity) Workshop on Theoretical Chemistry: Modelling

JNH Lect.3, 3

This is not applicable to large systems, with very large numbers of thermally populated conformers. A different approach to statistical mechanics must be used, based on simulation and approximate construction of the classical partition function:

This partition function cannot be evaluated exactly (far too many degrees of freedom!)The kinetic energy part can be separated and evaluated exactly(albeit neglecting quauntum mechanical effects)The potential energy part is challenging

Free Energies in Extended Systems

q =

1

h3n

ZZZZexp

��V (X) +

Pi miv2i /2mi

kBT

!dXdv

Page 4: QM/MM models for solvated and embedded …...QM/MM models for solvated and embedded systems (ground state energies, properties and reactivity) Workshop on Theoretical Chemistry: Modelling

JNH Lect.3, 4

A simple example: liquidbutane

Free Energies in Extended Systems: 2

Box of butane, periodic boundary conditions, MD simulation at 273 K, MM3 forcefield.Requires many thousands of E+grad

µ(✓) = �RT lnP (✓) + C

P (✓) / q(✓)

Page 5: QM/MM models for solvated and embedded …...QM/MM models for solvated and embedded systems (ground state energies, properties and reactivity) Workshop on Theoretical Chemistry: Modelling

JNH Lect.3, 5

• Molecular dynamics does not visit regions of high μ very frequently. May require unreasonably long simulation. Instead, various biased simulation techniques are used, in which V(X) is modified to visit regions of interest more often

• Many such methods! Example: umbrella sampling, metadynamics. • Umbrella sampling: multiple simulations

are carried out using a set ofmodified potentials, typicallyof the form:

• q is a coordinate chosen tomatch the reaction coordinate

Biased Sampling Methods

Vi(X) = V0 + k(q � qi)2

Page 6: QM/MM models for solvated and embedded …...QM/MM models for solvated and embedded systems (ground state energies, properties and reactivity) Workshop on Theoretical Chemistry: Modelling

JNH Lect.3, 6

Each simulation yields n(q) henceμ(q). These are all different:

Need to unbias the simulations to obtainunderlying potential of mean force. This isdone using the weighted histogram analysismethod (WHAM)

See: Kumar, Bouzida, Swendsen, Kollman,Rosenberg, J. Comp. Chem. 1992, 13, 1011;

J. Kästner, WIREs Comp. Mol. Sci. 2011, 1, 932

Umbrella Sampling and WHAM

ni(q) = exp

✓�µi(q)

kBT

◆= exp(��µi(q))

Page 7: QM/MM models for solvated and embedded …...QM/MM models for solvated and embedded systems (ground state energies, properties and reactivity) Workshop on Theoretical Chemistry: Modelling

JNH Lect.3, 7

Modified V are dependent on the biasing potentials fib(q) and the set {λi}. V0 has λi = 0 ∀ i. From observed distribution P{λ} with a given bias (i.e. a given set of λ values, usually λi = 1, λj = 0(i≠j)), we want to estimate the unbiased probability distribution P0:

WHAM Vi(X) = V0 + k(q � qi)2

Because fb(q) only depends on q, not other coordinates, and becauseof the δ[q-q’] term, can factorize:

Vi(X) = V0 + f bi (q(X))

Pi(q0) =

Rexp

���[V0(X) + f b

i (q)]��[q � q0]dXR

exp

���[V0(X) + f b

i (q)]�dX

P0(q0) =

Rexp(��V0(X))�[q � q0]dXR

exp(��V0(X))dX

Pi(q0) = exp

���f b

i (q0)

�⇥

Rexp(��V0(X))�[q � q(X)]dXRexp

���[V0(X) + f b

i (q)]�dX

Page 8: QM/MM models for solvated and embedded …...QM/MM models for solvated and embedded systems (ground state energies, properties and reactivity) Workshop on Theoretical Chemistry: Modelling

JNH Lect.3, 8

Matching:WHAM – 2

Because the last term in this expression (a mean value over thesimulation) can be shown not to depend on q’, one has:

P0(q0) =

Rexp(��V0(X))�[q � q0]dXR

exp(��V0(X))dX

Pi(q0) = exp

���f b

i (q0)

�⇥

Rexp(��V0(X))�[q � q(X)]dXRexp

���[V0(X) + f b

i (q)]�dX

And:

We get:

P0(q0) = Pi(q

0) exp

��f b

i (q0)

�⇥

Rexp

���[V0(X) + f b

i (q)]�dXR

exp(��V0(X))dX

Which can be rewritten as:P0(q

0) = Pi(q

0) exp

��f b

i (q0)

�⇥

⌦exp

���f b

i (q)�↵

µ(q0) = �RT lnPi(q0)� f b

i (q0) + Fi

With Fi an unknown constant.

Page 9: QM/MM models for solvated and embedded …...QM/MM models for solvated and embedded systems (ground state energies, properties and reactivity) Workshop on Theoretical Chemistry: Modelling

JNH Lect.3, 9

WHAM – 3 Each biased simulation yields an estimate of the overall free energy curve, with its own off-set Fi:

Each estimate is accurate nearthe corresponding centre ofthe biasing potential.They canbe combined using WHAM to yield an overall free energy curve

µ(q0) = �RT lnPi(q0)� f b

i (q0) + Fi

WHAM is rigorous but from the point of view of QM/MM is very expensive since it requires multiple molecular dynamics simulations

Page 10: QM/MM models for solvated and embedded …...QM/MM models for solvated and embedded systems (ground state energies, properties and reactivity) Workshop on Theoretical Chemistry: Modelling

JNH Lect.3,

Simulation with QM/MM

10

QM/MM potential energy surfaces can be used instead of MM forcefields to carry out simulations of extended systemsFor semiempirical QM/MM,this is more or less routinesince the cost of the QM/MMenergy and gradient is similar to that for MMFor DFT, this is used occa-sionally, especially with AIMD-type DFT methodsUmbrella sampling typically requires tens of simulations, each atleast 10 ps long.With a 1 fs timestep, this requires > 105 E + grad!

F = ma@V (t)

@x

= F =�x(t ! t+�t)

�t

x(t) = v(t) =�x(t ! t+�t)

�t

Page 11: QM/MM models for solvated and embedded …...QM/MM models for solvated and embedded systems (ground state energies, properties and reactivity) Workshop on Theoretical Chemistry: Modelling

JNH Lect.3,

Approximate QM/MM Free Energy Barriers

11

Against this background, various approaches are used to estimate free energy barriers in the framework of QM/MMThe simplest is to assume ΔG‡ ≅ ΔE‡ (reasonable for reactant complex to TS, as no change in molecularity).Still in this limit, there is the difficulty that each initial structure will yield a different ΔE‡. Which one totake?Many early QM/MM studies justtake one value, sometimes noteven checking that the corres-ponding reactant state and TS areconnected. -30

-25

-20

-15

-10

-5

0

5

10

15

20

-2 -1.5 -1 -0.5 0 0.5 1 1.5 2

Reaction Coordinate (Å)

Ener

gy (k

cal/m

ol)

Claeyssens et al Chem. Commun. 2005, 5068

Page 12: QM/MM models for solvated and embedded …...QM/MM models for solvated and embedded systems (ground state energies, properties and reactivity) Workshop on Theoretical Chemistry: Modelling

JNH Lect.3,

Approximate QM/MM ΔE‡ − 2

12

A (slightly) more reliable (but not so rigorous…)approach is to take an average:Based on ΔEi

‡ values computed from starting structures sampled from an MD simulation, and hence assumed to be equally likely.Reaction from starting structures leading tohigh ΔEi

‡ are exponentially lesslikely, so a further refinement isto ‘Boltzmann’ weightThis approach yields very high contributions from the smallest ΔEi

‡,and is subject to artefacts (‘rare’ high-energy reactant states). See: HowMany Conformations Need to Be Sampled to Obtain Converged QM/MM Energies? TheCurse of Exponential Averaging,U. Ryde, J. Chem.Theory Comput. 2017, 13, 5745.

⌦�E‡↵ =

Pni=1 �E‡

i

n

⌦�E‡↵

= �RT ln

8<

:

Pni=1 exp

⇣���E‡

i

n

9=

;

Page 13: QM/MM models for solvated and embedded …...QM/MM models for solvated and embedded systems (ground state energies, properties and reactivity) Workshop on Theoretical Chemistry: Modelling

JNH Lect.3,

Approximate QM/MM ΔE‡ − 3

13

Full sampling as in Umbrella Sampling would imply something like:

As the reactant state energies Eireac vary a lot, in practice a huge

number of energy barriers are needed to get a meaningful average.In practice, Boltzmann averaging with some ‘expert’ supervision (discarding unreasonable structures, pre-picking of reasonable ones) isclose to state of the art nowadays (though clearly unsatisfactory)See: Ulf Ryde (previous slide), or Averaging Techniques for Reaction Barriers in QM/MM Simulations, A. M. Cooper & J. Kästner, ChemPhysChem 2014, 15, 3264.

⌦�E‡↵

= �RT ln

8<

:

Pi exp

⇣���E‡

i

⌘exp(��Ereac

i )

Pi exp(��Ereac

i )

9=

;

Page 14: QM/MM models for solvated and embedded …...QM/MM models for solvated and embedded systems (ground state energies, properties and reactivity) Workshop on Theoretical Chemistry: Modelling

JNH Lect.3,

Dual-Level Approach for QM/MM Free Energies

14

Estimating a relative free energy on an accurate potential energy surface from the relative free energy on a less accurate (but less demanding) potential energy surface is attractive

See review: Eliot Boulanger and J. N. Harvey, QM/MM methods for free energies and photochemistry, Curr. Opinion. Struct. Bio. 2018, 49, 72.

Page 15: QM/MM models for solvated and embedded …...QM/MM models for solvated and embedded systems (ground state energies, properties and reactivity) Workshop on Theoretical Chemistry: Modelling

JNH Lect.3,

Dual-Level Approaches

15

Switching from the low-level reference state to the high-level target can be written in terms of free energy perturbation:

This can however be as expensive asfull free energy calculation, unless appro-ximations are usedSee review: Duarte, Amrein, Blaha-Nelson & Kamerlin, Recent advances in QM/MM methods free energy calculations using reference potentials, Biochim. Biophys. Acta BBA- General, 2015, 1850, 954.

�GR!T =X

m

�G�m!�m+1

Page 16: QM/MM models for solvated and embedded …...QM/MM models for solvated and embedded systems (ground state energies, properties and reactivity) Workshop on Theoretical Chemistry: Modelling

JNH Lect.3,

Dual-Level Approaches – 2

16

One approximation: linear response approximation:

Many other approximations, involving e.g. averaging to improve numerical convergence, e.g. construct mean solvent field from MD, and

perform QM/MM only in presence of mean solvent

�GR!T ⇡ {hET � ERiR + hET � ERiT } /2

Page 17: QM/MM models for solvated and embedded …...QM/MM models for solvated and embedded systems (ground state energies, properties and reactivity) Workshop on Theoretical Chemistry: Modelling

JNH Lect.3,

Lecture 1II Conclusions

17

• Given a QM/MM Hamiltonian, obtaining free energies remains very challenging

• ”Cheap” method typically used in QM studies is not reallyappropriate

• For the specific case of free energy barriers, some account of conformational complexity is usually mandatory

• Techniques such as umbrella sampling are available and accurate –but often too expensive for QM/MM

• Approximate dual-level techniques are currently being developed