Langevin Dynamics In Hamiltonian Phase Space

Langevin dynamics is usually written like

MX→¨=−∇XU(X)−γMX→˙+2γMkBTdW→

which is really just two first order differential form relations

dx→i=v→idt
Midv→i=−∂∂xiU(x→)dt−γMiv→idt+2γMikBTdW→i

but statistical mechanics is formulated in Hamiltonian phase space.

Reformulating in Hamiltonian Phase space

Instead if we can generalize mass then can redefine the process as

dq→i=∂H∂pidt
dp→i=−∂H∂qidt−γip→idt+Ki2γikBTdW→i

where we will be solving for Ki to converge to the canonical ensemble equilibrium distribution.

Drift Diffusion Process

We can then combine both equations to a single drift diffusion process and generalize the matrix so the momentum can share noise

d[q1⋮qnp1⋮pn]=[∂H∂p1⋮∂H∂pn−∂H∂q1−γ1p1⋮−∂H∂qn−γnpn]dt+[0⋯0⋯0⋮⋮⋮⋮⋮0⋯0⋯00⋯K1,12γ1kBT⋯K1,n2γ1kBT⋮⋮⋮⋱⋮0⋯Kn,12γnkBT⋯Kn,n2γnkBT]dW→

Fokker Plank

From the Fokker Plank equation any drift diffusion process

dz→=A→(z→)dt+𝐁(z→)dW→

The probability density at each point will evolve as

∂ρ∂t=−∑i∂∂zi(ρA→i)+12∑i∑j∂2∂zi∂zj((𝐁T𝐁)i,jρ)

Substitute in the Langevin equation.

∂ρ∂t=−∑i=1n∂∂qi(ρ∂H∂pi)−∂∂pi(ρ(∂H∂qi+γipi))+12∑i=1n∑j=1n∂2∂pi∂pj(ρ2kBT∑kKi,kKj,kγiγj)

We can combine the two sums and simplify.

∑i=1n−∂∂qi(ρ∂H∂pi)+∂∂pi(ρ(∂H∂qi+γipi))+kBT∑j=1n∂2∂pi∂pj(ρ∑kKi,kKj,kγiγj)

Let Fi,j=∑kKi,kKj,kγiγj so that

∑i=1n−∂∂qi(ρ∂H∂pi)+∂∂pi(ρ(∂H∂qi+γipi))+kBT∑j=1n∂2∂pi∂pj(ρFi,j)

and use the chain rule to expand the derivatives in the first part.

=∑i=1n∂H∂qi∂ρ∂pi−∂H∂pi∂ρ∂qi+∂ρ∂piγipi+ργi+kBT∑j=1n∂2∂pi∂pj(ρFi,j)

Then for the second

=∑i=1n∂H∂qi∂ρ∂pi−∂H∂pi∂ρ∂qi+∂ρ∂piγipi+ργi+kBT∑j=1n∂∂pi(∂ρ∂piFi,j+∂Fi,j∂piρ)

and again.

=∑i=1n∂H∂qi∂ρ∂pi−∂H∂pi∂ρ∂qi+∂ρ∂piγipi+ργi+kBT∑j=1n(∂2ρ∂pi∂pjFi,j+ρ∂2Fi,j∂pi∂pj+∂ρ∂pi∂Fi,j∂pj+∂ρ∂pj∂Fi,j∂pi)

Enforcing canonical distribution convergence

In the canonical ensemble it should converge to the below.

ρ0(q→,p→)=1Ze−H(q→,p→)kBT

So it should be a stable distribution by definition of equilibrium

∂ρ0∂t=0

and putting it into the Fokker Plank equation we derived

=1Z∑i=1n∂H∂qi∂e−H(q→,p→)kBT∂pi−∂H∂pi∂e−H(q→,p→)kBT∂qi+∂e−H(q→,p→)kBT∂piγipi+e−H(q→,p→)kBTγi
+kBT∑j=1n(∂2e−H(q→,p→)kBT∂pi∂pjFi,j+e−H(q→,p→)kBT∂2Fi,j∂pi∂pj+∂e−H(q→,p→)kBT∂pi∂Fi,j∂pj+∂e−H(q→,p→)kBT∂pj∂Fi,j∂pi)

the Possion bracket part goes to zero.

=1Z∑i=1n∂e−H(q→,p→)kBT∂piγipi+e−H(q→,p→)kBTγi
+kBT∑j=1n(∂2e−H(q→,p→)kBT∂pi∂pjFi,j+e−H(q→,p→)kBT∂2Fi,j∂pi∂pj+∂e−H(q→,p→)kBT∂pi∂Fi,j∂pj+∂e−H(q→,p→)kBT∂pj∂Fi,j∂pi)

Then do the chain rule a bunch.

=1Z∑i=1n−e−HkBTkBT∂H∂piγipi+e−HkBTγi
+kBT∑j=1n((e−HkBT(kBT)2∂H∂pi∂H∂pj−e−HkBTkBT(∂2H∂pi∂pj))Fi,j
+e−HkBT∂2Fi,j∂pi∂pj
−e−HkBTkBT(∂H∂pi∂Fi,j∂pj+∂H∂pj∂Fi,j∂pi))

Factor out the probability.

=p0∑i=1n−1kBT∂H∂piγipi+γi
+kBT∑j=1n((1(kBT)2∂H∂pi∂H∂pj−1kBT(∂2H∂pi∂pj))Fi,j
+∂2Fi,j∂pi∂pj
−1kBT(∂H∂pi∂Fi,j∂pj+∂H∂pj∂Fi,j∂pi))

Multiply through the temperature.

=p0∑i=1n−1kBT∂H∂piγipi+γi
+∑j=1n(1kBT∂H∂pi∂H∂pj−(∂2H∂pi∂pj))Fi,j
+kBT∂2Fi,j∂pi∂pj
−(∂H∂pi∂Fi,j∂pj+∂H∂pj∂Fi,j∂pi)

Then group based on the temperature.

0=∑i=1n
1kBT(−∂H∂piγipi+∑j=1n∂H∂pi∂H∂pjFi,j)
+kBT∑j=1n∂2Fi,j∂pi∂pj
+γi+∑j=1n(−∂H∂pi∂Fi,j∂pj−∂H∂pj∂Fi,j∂pi−(∂2H∂pi∂pj)Fi,j)

Any Hamiltonian and matrix 𝐅=𝐊⊤𝐊 that satisfy the above equation will correctly have equilbibrium as a stable distribution

Quadratic Momentum

Lets assume that each term of the sum should be zero. Since it should be valid for any temperature there are 3 equalities that must hold

∂H∂piγipi=∑j=1n∂H∂pi∂H∂pjFi,j
0=∂2Fi,j∂pi∂pj
γi=∑j=1n(∂H∂pi∂Fi,j∂pj+∂H∂pj∂Fi,j∂pi+(∂2H∂pi∂pj)Fi,j)

From here or here a somewhat general Hamiltonian form is

H(q,p)=12p⊤𝐌(q)p+U(q)

where the "mass matrix" is only a function of position, then one can define a matrix

𝐒=12(𝐌+𝐌⊤)

where

∂2H∂pi∂pj=Si,j=Sj,i

Then if we assume that the F's are independent of momentum then the third equality becomes

γi=∑j=1n(∂2H∂pi∂pj)Fi,j
γi=∑j=1nFi,jSj,i=(FS)i,j

if all the gammas are equal then

𝐅=γ𝐒−1
Fi,j=(γS−1)i,j
∑kγKi,kKj,k=(γS−1)i,j
∑kKi,kKj,k=(S−1)i,j

Which requires

𝐊⊤𝐊=𝐒−1

since S is symmetric so it has an orthonormal eigenbasis

𝐒=𝐐⊤𝐃𝐐

and since we assumed it to be invertable then the inverse is

𝐒−1=𝐐⊤𝐃−1𝐐

and also assume it's positive definite then all the eigenvalues are positive so one can take the square root

𝐒−1=𝐐⊤𝐃−1/2𝐃−1/2𝐐
𝐒−1=(𝐃−1/2𝐐)⊤𝐃−1/2𝐐

So one possible solution is

𝐊=𝐃−1/2𝐐