Replica Exchange molecular dynamics involves performing simultaneous simulations on many (
N
{\displaystyle N}
) copies of a system with a different value for a certain control variable. Parallel tempering is a replica exchange method in which temperature is used as the control parameter. A set of temperatures are assigned to the
N
{\displaystyle N}
copies of a system satisfying
T
N
>
T
N
−
1
>
⋯
>
T
1
{\displaystyle T_{N}>T_{N-1}>\dots >T_{1}}
. The probability distribution for an independent system depends on the configuration of all the atoms
(
R
)
{\displaystyle (\mathbf {R} )}
within a system and
R
1
,
R
2
,
…
,
R
N
{\displaystyle \mathbf {R} _{1},\mathbf {R} _{2},\dots ,\mathbf {R} _{N}}
represents the complete set of configurations for
N
{\displaystyle N}
copies of the system. Replica exchange simulations are performed on canonical ensemble (NVT) systems. An exchange of coordinates between a neighbouring pair of replica is attempted, and the attempted move is accepted or rejected based on Metropolis Monte Carlo criterion[ 1] .
A replica exchange molecular dynamics simulation of the folding of a peptide. The lowest temperature replica is labeled in bold].
A replica exchange molecular dynamics simulation where there are 4 replicas at different temperatures. m steps of molecular dynamics are completed between exchange attempts.
A schematic of a replica exchange simulation carried out on 4 replicas at different temperatures is shown. The m steps of MD are done on each individual replica between exchange attempts. The first attempted exchange between replicas 3 and 4 is made,
(
R
3
,
R
4
)
→
(
R
~
3
,
R
~
4
)
{\displaystyle (\mathbf {R} _{3},\mathbf {R} _{4})\rightarrow ({\tilde {\mathbf {R} }}_{3},{\tilde {\mathbf {R} }}_{4})}
, and the attempted exchange is accepted,
R
~
3
=
R
4
{\displaystyle {\tilde {\mathbf {R} }}_{3}=\mathbf {R} _{4}}
and
R
~
4
=
R
3
{\displaystyle {\tilde {\mathbf {R} }}_{4}=\mathbf {R} _{3}}
.The attempted exchange between replicas 1 and 2 is rejected, therefore,
(
R
1
,
R
2
)
→
(
R
~
1
,
R
~
2
)
{\displaystyle (\mathbf {R} _{1},\mathbf {R} _{2})\rightarrow ({\tilde {\mathbf {R} }}_{1},{\tilde {\mathbf {R} }}_{2})}
where
R
~
1
=
R
1
{\displaystyle {\tilde {\mathbf {R} }}_{1}=\mathbf {R} _{1}}
and
R
~
2
=
R
2
{\displaystyle {\tilde {\mathbf {R} }}_{2}=\mathbf {R} _{2}}
.
The aim of replica exchange molecular dynamics is to ensure that high temperature configurations can cross barriers easily on the potential energy surface. The low temperature replicas sample the lowest energy minima, while the high temperature replicas are capable of sampling the entire surface, making lower temperature configurations accessible at higher temperatures. Furthermore, conventional molecular dynamics or Monte Carlo methods show extremely slow convergence when calculating equilibrium properties, therefore, it takes a long time for a configuration to escape a local minimum because the probability of crossing an energy barrier of height
q
‡
{\displaystyle q^{\ddagger }}
is proportional to
exp
(
−
q
‡
k
B
T
)
{\displaystyle \exp \left(-{\frac {q^{\ddagger }}{k_{B}T}}\right)}
. Replica exchange methods improve sampling efficiency by making it easier to cross energy barriers.
The Acceptance Probability
edit
Simulation of two NVT systems where the second simulation is thermostated at a higher temperature,
T
2
>
T
1
{\displaystyle T_{2}>T_{1}}
.
The probability distribution of System 1:
P
1
(
R
1
)
=
exp
(
−
V
(
R
1
)
/
k
B
T
1
)
∫
exp
(
−
V
(
r
)
/
k
B
T
1
)
d
r
{\displaystyle {\begin{aligned}P_{1}(\mathbf {R} _{1})={\frac {\exp \left(-{\mathcal {V}}(\mathbf {R} _{1})/k_{B}T_{1}\right)}{\int \exp \left(-{\mathcal {V}}(\mathbf {r} )/k_{B}T_{1}\right)d\mathbf {r} }}\\\end{aligned}}}
R
1
{\displaystyle \mathbf {R} _{1}}
represents the coordinates of all atoms in system 1.
The probability distribution of System 2:
P
2
(
R
2
)
=
exp
(
−
V
(
R
2
)
/
k
B
T
2
)
∫
exp
(
−
V
(
r
)
/
k
B
T
2
)
d
r
{\displaystyle {\begin{aligned}P_{2}(\mathbf {R} _{2})={\frac {\exp \left(-{\mathcal {V}}(\mathbf {R} _{2})/k_{B}T_{2}\right)}{\int \exp \left(-{\mathcal {V}}(\mathbf {r} )/k_{B}T_{2}\right)d\mathbf {r} }}\\\end{aligned}}}
R
2
{\displaystyle \mathbf {R} _{2}}
represents the coordinates of all atoms in system 2.
The probability of System 1 having coordinates
R
1
{\displaystyle \mathbf {R} _{1}}
and System 2 having coordinates
R
2
{\displaystyle \mathbf {R} _{2}}
:
P
1
(
R
1
)
P
2
(
R
2
)
=
exp
(
−
V
(
R
1
)
/
k
B
T
1
)
∫
exp
(
−
V
(
r
)
/
k
B
T
1
)
d
r
exp
(
−
V
(
R
2
)
/
k
B
T
2
)
∫
exp
(
−
V
(
r
)
/
k
B
T
2
)
d
r
{\displaystyle {\begin{aligned}P_{1}(\mathbf {R} _{1})P_{2}(\mathbf {R} _{2})={\frac {\exp \left(-{\mathcal {V}}(\mathbf {R} _{1})/k_{B}T_{1}\right)}{\int \exp \left(-{\mathcal {V}}(\mathbf {r} )/k_{B}T_{1}\right)d\mathbf {r} }}{\frac {\exp \left(-{\mathcal {V}}(\mathbf {R} _{2})/k_{B}T_{2}\right)}{\int \exp \left(-{\mathcal {V}}(\mathbf {r} )/k_{B}T_{2}\right)d\mathbf {r} }}\\\end{aligned}}}
The probability of System 1 having coordinates
R
2
{\displaystyle \mathbf {R} _{2}}
and System 2 having coordinates
R
1
{\displaystyle \mathbf {R} _{1}}
:
P
1
(
R
2
)
P
2
(
R
1
)
=
exp
(
−
V
(
R
2
)
/
k
B
T
1
)
∫
exp
(
−
V
(
r
)
/
k
B
T
1
)
d
r
exp
(
−
V
(
R
1
)
/
k
B
T
2
)
∫
exp
(
−
V
(
r
)
/
k
B
T
2
)
d
r
{\displaystyle {\begin{aligned}P_{1}(\mathbf {R} _{2})P_{2}(\mathbf {R} _{1})&={\frac {\exp \left(-{\mathcal {V}}(\mathbf {R} _{2})/k_{B}T_{1}\right)}{\int \exp \left(-{\mathcal {V}}(\mathbf {r} )/k_{B}T_{1}\right)d\mathbf {r} }}{\frac {\exp \left(-{\mathcal {V}}(\mathbf {R} _{1})/k_{B}T_{2}\right)}{\int \exp \left(-{\mathcal {V}}(\mathbf {r} )/k_{B}T_{2}\right)d\mathbf {r} }}\\\end{aligned}}}
The probability of accepting the attempted exchange of coordinates between System 1 and 2 becomes:
P
swapped
P
old
=
exp
(
−
V
(
R
2
)
/
k
B
T
1
)
∫
exp
(
−
V
(
r
)
/
k
B
T
1
)
d
r
exp
(
−
V
(
R
1
)
/
k
B
T
2
)
∫
exp
(
−
V
(
r
)
/
k
B
T
2
)
d
r
exp
(
−
V
(
R
1
)
/
k
B
T
1
)
∫
exp
(
−
V
(
r
)
/
k
B
T
1
)
d
r
exp
(
−
V
(
R
2
)
/
k
B
T
2
)
∫
exp
(
−
V
(
r
)
/
k
B
T
2
)
d
r
=
exp
(
−
V
(
R
2
)
/
k
B
T
1
)
exp
(
−
V
(
R
1
)
/
k
B
T
1
)
exp
(
−
V
(
R
1
)
/
k
B
T
2
)
exp
(
−
V
(
R
2
)
/
k
B
T
2
)
=
exp
(
−
V
(
R
2
)
k
B
T
1
)
exp
(
+
V
(
R
1
)
k
B
T
1
)
exp
(
−
V
(
R
1
)
k
B
T
2
)
exp
(
+
V
(
R
2
)
k
B
T
2
)
=
exp
(
[
−
V
(
R
2
)
+
V
(
R
1
)
]
k
B
T
1
)
exp
(
[
−
V
(
R
1
)
+
V
(
R
2
)
]
k
B
T
2
)
{\displaystyle {\begin{aligned}{\frac {P_{\textit {swapped}}}{P_{\textit {old}}}}&={\frac {{\frac {\exp \left(-{\mathcal {V}}(\mathbf {R} _{2})/k_{B}T_{1}\right)}{\int \exp \left(-{\mathcal {V}}(\mathbf {r} )/k_{B}T_{1}\right)d\mathbf {r} }}{\frac {\exp \left(-{\mathcal {V}}(\mathbf {R} _{1})/k_{B}T_{2}\right)}{\int \exp \left(-{\mathcal {V}}(\mathbf {r} )/k_{B}T_{2}\right)d\mathbf {r} }}}{{\frac {\exp \left(-{\mathcal {V}}(\mathbf {R} _{1})/k_{B}T_{1}\right)}{\int \exp \left(-{\mathcal {V}}(\mathbf {r} )/k_{B}T_{1}\right)d\mathbf {r} }}{\frac {\exp \left(-{\mathcal {V}}(\mathbf {R} _{2})/k_{B}T_{2}\right)}{\int \exp \left(-{\mathcal {V}}(\mathbf {r} )/k_{B}T_{2}\right)d\mathbf {r} }}}}\\&={\frac {\exp \left(-{\mathcal {V}}\left(\mathbf {R} _{2}\right)/k_{B}T_{1}\right)}{\exp \left(-{\mathcal {V}}\left(\mathbf {R} _{1}\right)/k_{B}T_{1}\right)}}{\frac {\exp \left(-{\mathcal {V}}\left(\mathbf {R} _{1}\right)/k_{B}T_{2}\right)}{\exp \left(-{\mathcal {V}}\left(\mathbf {R} _{2}\right)/k_{B}T_{2}\right)}}\\&=\exp \left({\frac {-{\mathcal {V}}\left(\mathbf {R} _{2}\right)}{k_{B}T_{1}}}\right)\exp \left({\frac {+{\mathcal {V}}\left(\mathbf {R} _{1}\right)}{k_{B}T_{1}}}\right)\exp \left({\frac {-{\mathcal {V}}\left(\mathbf {R} _{1}\right)}{k_{B}T_{2}}}\right)\exp \left({\frac {+{\mathcal {V}}\left(\mathbf {R} _{2}\right)}{k_{B}T_{2}}}\right)\\&=\exp \left({\frac {[-{\mathcal {V}}(\mathbf {R} _{2})+{\mathcal {V}}(\mathbf {R} _{1})]}{k_{B}T_{1}}}\right)\exp \left({\frac {[-{\mathcal {V}}(\mathbf {R} _{1})+{\mathcal {V}}(\mathbf {R} _{2})]}{k_{B}T_{2}}}\right)\end{aligned}}}
Letting
Δ
V
=
V
(
R
2
)
−
V
(
R
1
)
{\displaystyle \Delta {\mathcal {V}}={\mathcal {V}}(\mathbf {R} _{2})-{\mathcal {V}}(\mathbf {R} _{1})}
P
swapped
P
old
=
exp
(
−
Δ
V
k
B
T
1
)
exp
(
+
Δ
V
k
B
T
2
)
=
exp
(
−
Δ
V
k
B
T
1
+
Δ
V
k
B
T
2
)
=
exp
(
−
Δ
V
β
1
+
Δ
V
β
2
)
=
exp
(
−
Δ
V
[
β
1
−
β
2
]
)
{\displaystyle {\begin{aligned}{\frac {P_{\textit {swapped}}}{P_{\textit {old}}}}&=\exp \left({\frac {-\Delta {\mathcal {V}}}{k_{B}T_{1}}}\right)\exp \left({\frac {+\Delta {\mathcal {V}}}{k_{B}T_{2}}}\right)\\&=\exp \left({\frac {-\Delta {\mathcal {V}}}{k_{B}T_{1}}}+{\frac {\Delta {\mathcal {V}}}{k_{B}T_{2}}}\right)\\&=\exp \left(-\Delta {\mathcal {V}}\beta _{1}+\Delta {\mathcal {V}}\beta _{2}\right)\\&=\exp \left(-\Delta {\mathcal {V}}\left[\beta _{1}-\beta _{2}\right]\right)\\\end{aligned}}}
Where
β
1
=
1
k
B
T
1
{\displaystyle \beta _{1}={\frac {1}{k_{B}T_{1}}}}
and
β
2
=
1
k
B
T
2
{\displaystyle \beta _{2}={\frac {1}{k_{B}T_{2}}}}
.
P
acceptance
=
min
[
1
,
exp
(
−
Δ
V
(
1
k
B
T
1
−
1
k
B
T
2
)
)
]
{\displaystyle {\begin{aligned}P_{\textit {acceptance}}={\text{min}}\left[1,\exp \left(-\Delta {\mathcal {V}}\left({\frac {1}{k_{B}T_{1}}}-{\frac {1}{k_{B}T_{2}}}\right)\right)\right]\\\end{aligned}}}