Simulating anharmonic crystals:
Lights and shadows of first-principle approaches

Lorenzo Monacelli Dipartimento di Fisica, Università di Roma Sapienza
(July 3, 2024)
Abstract

Understanding and simulating the thermodynamic and dynamical properties of materials affected by strong ionic anharmonicity is a central challenge in material science. Two powerful methodologies have emerged as frontrunners in this exploration: the Self-Consistent Harmonic Approximation (SCHA) with its counterpart, Self-Consistent Phonons (SCP), and the Temperature-Dependent Effective Potential (TDEP). Despite their widespread use, the limitations of these methods are often overlooked, and the absence of a formal derivation for the TDEP has led to significant missteps that hamper its predictive accuracy.

Here, the theoretical foundations of both SCHA and TDEP are revised, unveiling their profound interconnection. This work introduces formal derivation for TDEP, dispelling misconceptions about how to improve its accuracy and refining best practices. The perturbative limit of these methods uncovers that both SCHA and TDEP fall short in reproducing the lowest-order perturbative free energy. While TDEP excels in providing an exact treatment of the static susceptibility, its dynamical extension violates the perturbative regime by overcounting anharmonicity. Conversely, SCHA delivers an approximate static susceptibility but maintains correct static and dynamic response functions within the perturbative limit.

This work introduces a corrective strategy for TDEP’s dynamical extension to address these shortcomings. All the claims provided here are benchmarked against the exact (numerical) solution on a simple one-dimensional anharmonic potential.

preprint: APS/123-QED

I Introduction

The development of new methods for electronic structure calculations paved the way to predicting material properties in silico. One of the most important advancements concerns determining lattice vibrations from the first principles. Thanks to their energy scale comparable with room temperature, the lattice excitations are responsible for most condensed matter systems’ thermodynamics. Therefore, an accurate description of the lattice and its dynamic, the phonons, is pivotal to simulating and predicting the properties of materials. This is challenging in scenarios where the standard Harmonic approximation falls short, like in the proximity of second-order phase transitions.

A particularly relevant case is the study of thermal transport. Here, phonon-phonon scattering is the major limiting factor for heat propagation as temperature increases, with deep technological implications for producing materials with extremely high values of thermal conductivity (heat dissipators) or particularly low ones (insulators). In fact, materials with both low thermal conductivity and electrical resistivity are promising thermoelectrics that can extract energy from heat wasted by other processes. Anharmonic phonon scattering is one of the best strategies to hamper heat diffusion in these good conductors[1].

An exact approach to evaluate thermal transport in materials involves the calculation of the Green-Kubo heat-current autocorrelation function within equilibrium molecular dynamics[2] (MD) or, alternatively, performing non-equilibrium MD simulations with a sustained temperature gradient[3]. However, these methods are extremely computationally expensive to converge for the system size and simulation time even when fast interatomic force fields are available[4]. Approximate empirical methods based on the Boltzmann transport equation and its quantum counterpart, Wigner transport[5], emerged as the de facto state-of-the-art to quantify the thermal conductivity. However, these methods assume a perturbative treatment of phonon-phonon interaction. What happens when they are applied to strongly anharmonic materials, where the harmonic approximation and the quasiparticle picture of phonons breaks down?

The same question arises with other properties depending on lattice motion, like the computation of vibrational spectroscopy within IR and Raman, related respectively to the dipole-dipole and polarizability-polarizability dynamical correlation functions, or the anharmonic phonon dispersion probed by Neutron and inelastic X-ray scattering, related to the dynamical structure factor. In the presence of strong anharmonicity, such as in proximity with second-order displacive phase transitions, the susceptibility diverges, causing a significative deviation of the phonon energies from their harmonic ones, which perturbation theory cannot describe.

Many methodologies have been introduced to address these issues while maintaining the easy phonon quasiparticle description of lattice vibration. Since its first formulation in 1912[6], the Self-Consistent Phonons (SCP) was successfully applied to describe the phonons of noble gasses in their solid phase[7]. Inspired by SCP, many other methods attempted to bridge the concept of phonons to strongly anharmonic materials employing a first-principles approach. The Self-Consistent Ab Initio Lattice Dynamics (SCAILD)[8, 9] was one of the first methods applied in tandem with ab initio simulations. Not too later, many other methodologies emerged[10], some commutated from quantum chemistry to periodic systems, like the vibrational self-consistent field [11]. Among them, the most successful ones in terms of the number of applications and complexity of the materials analyzed are the self-consistent harmonic approximation (SCHA[12, 13, 14], with its close relative self-consistent phonons, SCP[15]) and the temperature-dependent effective potential (TDEP[16, 17, 18]), which are the focus of this work.

All these methods correct the harmonic phonon dispersion with a nonperturbative self-energy, which can be exploited to compute thermodynamic quantities much more efficiently than standard MD. E.g., thermal conductivity may be obtained by adequately augmenting the Boltzmann-Wigner empirical transport equation[5] with anharmonic spectral functions[19, 20]. A similar approach has been recently applied to unveil the impact of anharmonicity on superconductivity in high-pressure hydrides[21]. However, it has been shown that different theories, and even different implementations among the same theory, lead to distinct phonon dispersions when applied in strongly anharmonic materials[22].

Are the aforementioned methods to simulate phonons in anharmonic systems an uncontrolled form of approximation with questionable predictive power, or is there a way to assess and systematically improve them, determining their accuracy a priori?

This work is divided as follows. Sec. II presents the exact definition of phonons in a strongly anharmonic material. Then, Sec. III introduces the equilibrium SCHA and TDEP methods from a rigorous variational principle on the free energy. In particular, TDEP is reformalized, underlying the only implementation based on proper first-principles grounds. Sec. IV discusses the static linear-response theory applied to SCHA and TDEP, unveiling the origin of the observed discrepancies[22], and showing how they can be predicted a priori and corrected within both theories. The dynamical response theory is revised in Sec. V, where the TDEP dynamical response function is shown to overcount anharmonicity, violating the perturbative limit. This work introduces a workaround to restore the proper anharmonic limit without extra computational cost. Finally, everything examined in this work is benchmarked against the exact solution of a simple anharmonic potential in Sec. VI. The similarities and differences between SCHA and SCP are discussed in Sec. VII. Sec. VIII presents the perspectives of this work’s findings.

II Exact results

This work accounts for nuclei as classical particles for simplicity. However, its findings are general and also apply to quantum nuclei.

The exact classical probability distribution in phase space is defined as

ρ0(𝒑,𝒓)=1Zexp[βH(𝒑,𝒓)],subscript𝜌0𝒑𝒓1𝑍𝛽𝐻𝒑𝒓\rho_{0}(\bm{p},\bm{r})=\frac{1}{Z}\exp\left[-\beta H(\bm{p},\bm{r})\right],italic_ρ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ( bold_italic_p , bold_italic_r ) = divide start_ARG 1 end_ARG start_ARG italic_Z end_ARG roman_exp [ - italic_β italic_H ( bold_italic_p , bold_italic_r ) ] , (1)

where 𝒓𝒓\bm{r}bold_italic_r and 𝒑𝒑\bm{p}bold_italic_p are the vectors of position and momentum of each particle in the system, β𝛽\betaitalic_β the Boltzmann factor β=1/kbT𝛽1subscript𝑘𝑏𝑇\beta=1/k_{b}Titalic_β = 1 / italic_k start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT italic_T, H(𝒑,r)𝐻𝒑𝑟H(\bm{p},r)italic_H ( bold_italic_p , italic_r ) is the Hamiltonian of nuclei (within the Born-Oppenheimer approximation) and Z𝑍Zitalic_Z is the partition function defined as a normalization factor for the probability density ρ𝜌\rhoitalic_ρ

Z=d3Npd3Nrexp[βH(𝒑,𝒓)].𝑍superscript𝑑3𝑁𝑝superscript𝑑3𝑁𝑟𝛽𝐻𝒑𝒓Z=\int d^{3N}p\,d^{3N}r\exp\left[-\beta H(\bm{p},\bm{r})\right].italic_Z = ∫ italic_d start_POSTSUPERSCRIPT 3 italic_N end_POSTSUPERSCRIPT italic_p italic_d start_POSTSUPERSCRIPT 3 italic_N end_POSTSUPERSCRIPT italic_r roman_exp [ - italic_β italic_H ( bold_italic_p , bold_italic_r ) ] . (2)

The knowledge of the partition function allows for computing equilibrium properties of matter through the free energy. At constant temperature, volume, and number of particles (canonical ensemble), the free energy is the one defined by Helmholtz as

F(N,V,T)=1βlnZ.𝐹𝑁𝑉𝑇1𝛽𝑍F(N,V,T)=-\frac{1}{\beta}\ln Z.italic_F ( italic_N , italic_V , italic_T ) = - divide start_ARG 1 end_ARG start_ARG italic_β end_ARG roman_ln italic_Z . (3)

All thermodynamics observables can be expressed as derivatives of F𝐹Fitalic_F to N,V,T𝑁𝑉𝑇N,V,Titalic_N , italic_V , italic_T. In particular, the second derivatives of F𝐹Fitalic_F are static linear-response quantities discussed in Sec. IV.

The generalized phonons in anharmonic crystals are defined through the lattice’s dynamical response to an external time-dependent perturbation on the nuclei, which coincides with the spectral features extracted from a spectroscopy measurement. The dynamical response is governed by the time propagation of the density distribution by the Liouville equation, acting as a master equation of the system:

ρt=i=13N(HriρpiHpiρri).𝜌𝑡superscriptsubscript𝑖13𝑁𝐻subscript𝑟𝑖𝜌subscript𝑝𝑖𝐻subscript𝑝𝑖𝜌subscript𝑟𝑖\frac{\partial\rho}{\partial t}=\sum_{i=1}^{3N}\left(\frac{\partial H}{% \partial r_{i}}\frac{\partial\rho}{\partial p_{i}}-\frac{\partial H}{\partial p% _{i}}\frac{\partial\rho}{\partial r_{i}}\right).divide start_ARG ∂ italic_ρ end_ARG start_ARG ∂ italic_t end_ARG = ∑ start_POSTSUBSCRIPT italic_i = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 3 italic_N end_POSTSUPERSCRIPT ( divide start_ARG ∂ italic_H end_ARG start_ARG ∂ italic_r start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_ARG divide start_ARG ∂ italic_ρ end_ARG start_ARG ∂ italic_p start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_ARG - divide start_ARG ∂ italic_H end_ARG start_ARG ∂ italic_p start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_ARG divide start_ARG ∂ italic_ρ end_ARG start_ARG ∂ italic_r start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_ARG ) . (4)

ρ(𝒑,𝒓,t0)𝜌𝒑𝒓subscript𝑡0\rho(\boldsymbol{p},{\bm{r}},t_{0})italic_ρ ( bold_italic_p , bold_italic_r , italic_t start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ) is prepared in equilibrium at time tt0𝑡subscript𝑡0t\leq t_{0}italic_t ≤ italic_t start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT where the density distribution satisfies Eq. (1), which is a stationary solution of the master equation (Eq. 4). At t=t0𝑡subscript𝑡0t=t_{0}italic_t = italic_t start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT, the system interacts with an external perturbation H(t)superscript𝐻𝑡H^{\prime}(t)italic_H start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ( italic_t ), and the density matrix evolves. In a typical experiment, this perturbation is given by external electric fields (like in the Raman or Infrared), X-rays, or neutron beams. In numerical simulations, perturbing the system with a Dirac delta δ(tt0)𝛿𝑡subscript𝑡0\delta(t-t_{0})italic_δ ( italic_t - italic_t start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ) impulse is convenient as it excites all frequencies with the same intensity. This is equivalent to offsetting the equilibrium distribution by a finite momentum along the perturbation direction and studying the free dynamics of the perturbed system. The phonon Green function Gij(t)subscript𝐺𝑖𝑗𝑡G_{ij}(t)italic_G start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT ( italic_t ) is defined as the dynamical response function of the average position of a nucleus when another nucleus is perturbed by a time-dependent external force

H(t)=rjF(t)superscript𝐻𝑡subscript𝑟𝑗𝐹𝑡H^{\prime}(t)=r_{j}F(t)italic_H start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ( italic_t ) = italic_r start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT italic_F ( italic_t ) (5)
ri(t)=t0tGij(tt)F(t)𝑑texpectationsubscript𝑟𝑖𝑡superscriptsubscriptsubscript𝑡0𝑡subscript𝐺𝑖𝑗𝑡superscript𝑡𝐹superscript𝑡differential-dsuperscript𝑡\braket{r_{i}}(t)=\int_{t_{0}}^{t}G_{ij}(t-t^{\prime})F(t^{\prime})dt^{\prime}⟨ start_ARG italic_r start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_ARG ⟩ ( italic_t ) = ∫ start_POSTSUBSCRIPT italic_t start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_t end_POSTSUPERSCRIPT italic_G start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT ( italic_t - italic_t start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ) italic_F ( italic_t start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ) italic_d italic_t start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT (6)

where

ri(t)=d3Nrd3Npriρ(𝒓,𝒑,t)expectationsubscript𝑟𝑖𝑡superscript𝑑3𝑁𝑟superscript𝑑3𝑁𝑝subscript𝑟𝑖𝜌𝒓𝒑𝑡\braket{r_{i}}(t)=\int d^{3N}r\,d^{3N}p\;r_{i}\rho(\bm{r},\bm{p},t)⟨ start_ARG italic_r start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_ARG ⟩ ( italic_t ) = ∫ italic_d start_POSTSUPERSCRIPT 3 italic_N end_POSTSUPERSCRIPT italic_r italic_d start_POSTSUPERSCRIPT 3 italic_N end_POSTSUPERSCRIPT italic_p italic_r start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT italic_ρ ( bold_italic_r , bold_italic_p , italic_t ) (7)

and F(t)𝐹𝑡F(t)italic_F ( italic_t ) is the time profile of the perturbation force on the atom j𝑗jitalic_j. Most of the physical observables can be expressed as functions of the phononic Green’s function. Of particular relevance is the so-called spectral function σ(ω,𝒒)𝜎𝜔𝒒\sigma(\omega,\bm{q})italic_σ ( italic_ω , bold_italic_q ), which refers to the Fourier transform (both in time and space) of the phononic Green function:

G~ij(ω,𝒒)=1Nqjei𝒒(𝒓i𝒓j)iωtGij(t),subscript~𝐺𝑖𝑗𝜔𝒒1subscript𝑁𝑞subscript𝑗superscript𝑒𝑖𝒒subscript𝒓𝑖subscript𝒓𝑗𝑖𝜔𝑡subscript𝐺𝑖𝑗𝑡\tilde{G}_{ij}(\omega,\bm{q})=\frac{1}{N_{q}}\sum_{j}e^{i\bm{q}\cdot(\bm{r}_{i% }-\bm{r}_{j})-i\omega t}G_{ij}(t),over~ start_ARG italic_G end_ARG start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT ( italic_ω , bold_italic_q ) = divide start_ARG 1 end_ARG start_ARG italic_N start_POSTSUBSCRIPT italic_q end_POSTSUBSCRIPT end_ARG ∑ start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT italic_e start_POSTSUPERSCRIPT italic_i bold_italic_q ⋅ ( bold_italic_r start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT - bold_italic_r start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) - italic_i italic_ω italic_t end_POSTSUPERSCRIPT italic_G start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT ( italic_t ) , (8)

where the sum over j𝑗jitalic_j only runs on the periodic images of the i𝑖iitalic_i with respect to the primitive cell, and Nqsubscript𝑁𝑞N_{q}italic_N start_POSTSUBSCRIPT italic_q end_POSTSUBSCRIPT counts the number of supercells included in the summation. The spectral function is the trace of the imaginary part of the Green function

σ(ω,𝒒)=i=13NucImG~ii(ω,𝒒),𝜎𝜔𝒒superscriptsubscript𝑖13subscript𝑁ucImsubscript~𝐺𝑖𝑖𝜔𝒒\sigma(\omega,\bm{q})=-\sum_{i=1}^{3N_{\text{uc}}}\mathrm{Im}\tilde{G}_{ii}(% \omega,\bm{q}),italic_σ ( italic_ω , bold_italic_q ) = - ∑ start_POSTSUBSCRIPT italic_i = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 3 italic_N start_POSTSUBSCRIPT uc end_POSTSUBSCRIPT end_POSTSUPERSCRIPT roman_Im over~ start_ARG italic_G end_ARG start_POSTSUBSCRIPT italic_i italic_i end_POSTSUBSCRIPT ( italic_ω , bold_italic_q ) , (9)

where Nucsubscript𝑁ucN_{\text{uc}}italic_N start_POSTSUBSCRIPT uc end_POSTSUBSCRIPT counts the number of atoms in the primitive cell. The spectral function σ(ω,𝒒)𝜎𝜔𝒒\sigma(\omega,\bm{q})italic_σ ( italic_ω , bold_italic_q ) presents peaks corresponding with the phonon excitation energies and is proportional to the response function of dynamical experiments, like Raman and IR spectroscopy, X-Ray, and Neutron scattering. The peaks of the spectral function are the real lattice excitations in the presence of anharmonicity and the natural extension of phonons in anharmonic crystals.

III Thermodynamics and phase-transitions within SCHA and TDEP

The exact resummation of the partition function in Eq. (2) quickly becomes intractable for a system containing more than a few degrees of freedom. While there are numerical tools like Monte Carlo and Molecular Dynamics simulations to sample the equilibrium probability distribution ρ0(𝒑,𝒓)subscript𝜌0𝒑𝒓\rho_{0}(\boldsymbol{p},{\bm{r}})italic_ρ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ( bold_italic_p , bold_italic_r ), the complete partition function is required to simulate the free energy (Eq. 59). This is where methods like SCHA and TDEP come in handy in providing an approximate definition of the free energy, which can be numerically computed very efficiently even with a system with tens of thousands of atoms. Both methods approach the problem of computing the free energy by introducing a Gaussian trial density matrix defined as

ρ~(𝒑,𝒓)=eβ2(i=13Npi2mi+ij=1NΦij(rii)(rjj))𝒵,~𝜌𝒑𝒓superscript𝑒𝛽2superscriptsubscript𝑖13𝑁superscriptsubscript𝑝𝑖2subscript𝑚𝑖superscriptsubscript𝑖𝑗1𝑁subscriptΦ𝑖𝑗subscript𝑟𝑖subscript𝑖subscript𝑟𝑗subscript𝑗𝒵\tilde{\rho}(\bm{p},\bm{r})=\frac{e^{-\frac{\beta}{2}\left(\sum_{i=1}^{3N}% \frac{p_{i}^{2}}{m_{i}}+\sum_{ij=1}^{N}\Phi_{ij}(r_{i}-\mathcal{R}_{i})(r_{j}-% \mathcal{R}_{j})\right)}}{\mathcal{Z}},over~ start_ARG italic_ρ end_ARG ( bold_italic_p , bold_italic_r ) = divide start_ARG italic_e start_POSTSUPERSCRIPT - divide start_ARG italic_β end_ARG start_ARG 2 end_ARG ( ∑ start_POSTSUBSCRIPT italic_i = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 3 italic_N end_POSTSUPERSCRIPT divide start_ARG italic_p start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG italic_m start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_ARG + ∑ start_POSTSUBSCRIPT italic_i italic_j = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_N end_POSTSUPERSCRIPT roman_Φ start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT ( italic_r start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT - caligraphic_R start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ) ( italic_r start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT - caligraphic_R start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) ) end_POSTSUPERSCRIPT end_ARG start_ARG caligraphic_Z end_ARG , (10)
𝒵=(2πkBT)3Ndet𝚽i=13Nmi.𝒵superscript2𝜋subscript𝑘𝐵𝑇3𝑁𝚽superscriptsubscriptproduct𝑖13𝑁subscript𝑚𝑖\mathcal{Z}=\frac{\left(2\pi k_{B}T\right)^{3N}}{\sqrt{\det\boldsymbol{\Phi}}}% \prod_{i=1}^{3N}\sqrt{m_{i}}.caligraphic_Z = divide start_ARG ( 2 italic_π italic_k start_POSTSUBSCRIPT italic_B end_POSTSUBSCRIPT italic_T ) start_POSTSUPERSCRIPT 3 italic_N end_POSTSUPERSCRIPT end_ARG start_ARG square-root start_ARG roman_det bold_Φ end_ARG end_ARG ∏ start_POSTSUBSCRIPT italic_i = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 3 italic_N end_POSTSUPERSCRIPT square-root start_ARG italic_m start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_ARG . (11)

This density matrix is the equilibrium solution of an auxiliary harmonic Hamiltonian

(𝒑,𝒓)=i=13Npi22mi+12ij(rii)Φij(rjj),𝒑𝒓superscriptsubscript𝑖13𝑁superscriptsubscript𝑝𝑖22subscript𝑚𝑖12subscript𝑖𝑗subscript𝑟𝑖subscript𝑖subscriptΦ𝑖𝑗subscript𝑟𝑗subscript𝑗\mathcal{H}(\boldsymbol{p},{\bm{r}})=\sum_{i=1}^{3N}\frac{p_{i}^{2}}{2m_{i}}+% \frac{1}{2}\sum_{ij}(r_{i}-\mathcal{R}_{i})\Phi_{ij}(r_{j}-\mathcal{R}_{j}),caligraphic_H ( bold_italic_p , bold_italic_r ) = ∑ start_POSTSUBSCRIPT italic_i = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 3 italic_N end_POSTSUPERSCRIPT divide start_ARG italic_p start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 2 italic_m start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_ARG + divide start_ARG 1 end_ARG start_ARG 2 end_ARG ∑ start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT ( italic_r start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT - caligraphic_R start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ) roman_Φ start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT ( italic_r start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT - caligraphic_R start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) , (12)
𝒱(𝒓)=12ij(rii)Φij(rjj).𝒱𝒓12subscript𝑖𝑗subscript𝑟𝑖subscript𝑖subscriptΦ𝑖𝑗subscript𝑟𝑗subscript𝑗\mathcal{V}({\bm{r}})=\frac{1}{2}\sum_{ij}(r_{i}-\mathcal{R}_{i})\Phi_{ij}(r_{% j}-\mathcal{R}_{j}).caligraphic_V ( bold_italic_r ) = divide start_ARG 1 end_ARG start_ARG 2 end_ARG ∑ start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT ( italic_r start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT - caligraphic_R start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ) roman_Φ start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT ( italic_r start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT - caligraphic_R start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) . (13)

The Gaussian density matrix depends on two tensorial parameters: the average position 𝓡𝓡\boldsymbol{\mathcal{R}}bold_caligraphic_R and the auxiliary force constant matrix 𝚽𝚽\boldsymbol{\Phi}bold_Φ. Regardless of the trial density matrix, the exact free energy can be evaluated through thermodynamic integration, smoothly changing the probability distribution from the auxiliary Harmonic one into the real one

H(λ)=i=13Npi22mi+𝒱(𝒓)+λ[V(𝒓)𝒱(𝒓)].𝐻𝜆superscriptsubscript𝑖13𝑁superscriptsubscript𝑝𝑖22subscript𝑚𝑖𝒱𝒓𝜆delimited-[]𝑉𝒓𝒱𝒓H(\lambda)=\sum_{i=1}^{3N}\frac{p_{i}^{2}}{2m_{i}}+\mathcal{V}({\bm{r}})+% \lambda\left[V({\bm{r}})-\mathcal{V}({\bm{r}})\right].italic_H ( italic_λ ) = ∑ start_POSTSUBSCRIPT italic_i = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 3 italic_N end_POSTSUPERSCRIPT divide start_ARG italic_p start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 2 italic_m start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_ARG + caligraphic_V ( bold_italic_r ) + italic_λ [ italic_V ( bold_italic_r ) - caligraphic_V ( bold_italic_r ) ] . (14)

When λ=0𝜆0\lambda=0italic_λ = 0, we have the auxiliary Harmonic Hamiltonian, with the probability distribution ρ~(𝒑,𝒓)~𝜌𝒑𝒓\tilde{\rho}(\bm{p},{\bm{r}})over~ start_ARG italic_ρ end_ARG ( bold_italic_p , bold_italic_r ) defined in Eq. (10). When λ=1𝜆1\lambda=1italic_λ = 1, the Hamiltonian becomes the exact one, and the probability distribution is given by Eq. (1). The exact free energy can be evaluated by integrating the free energy derivative with respect to λ𝜆\lambdaitalic_λ:

F=F(λ=1)=F(λ=0)+01Fλ𝑑λ,𝐹𝐹𝜆1𝐹𝜆0superscriptsubscript01𝐹𝜆differential-d𝜆F=F(\lambda=1)=F(\lambda=0)+\int_{0}^{1}\frac{\partial F}{\partial\lambda}d\lambda,italic_F = italic_F ( italic_λ = 1 ) = italic_F ( italic_λ = 0 ) + ∫ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT divide start_ARG ∂ italic_F end_ARG start_ARG ∂ italic_λ end_ARG italic_d italic_λ , (15)
Fλ=Hλλ=V𝒱λ,𝐹𝜆subscriptdelimited-⟨⟩𝐻𝜆𝜆subscriptexpectation𝑉𝒱𝜆\frac{\partial F}{\partial\lambda}=\left<\frac{\partial H}{\partial\lambda}% \right>_{\lambda}=\braket{V-\mathcal{V}}_{\lambda},divide start_ARG ∂ italic_F end_ARG start_ARG ∂ italic_λ end_ARG = ⟨ divide start_ARG ∂ italic_H end_ARG start_ARG ∂ italic_λ end_ARG ⟩ start_POSTSUBSCRIPT italic_λ end_POSTSUBSCRIPT = ⟨ start_ARG italic_V - caligraphic_V end_ARG ⟩ start_POSTSUBSCRIPT italic_λ end_POSTSUBSCRIPT , (16)

Eq. (15) is in principle exact. However, it requires many different simulations to sample the probability distribution ρ(𝒑,𝒓,λ)𝜌𝒑𝒓𝜆\rho(\boldsymbol{p},{\bm{r}},\lambda)italic_ρ ( bold_italic_p , bold_italic_r , italic_λ ), which is often impractical. SCHA and TDEP offer approximate solutions to the integral in Eq. (15). In particular, it is possible to prove that the integrand V𝒱expectation𝑉𝒱\braket{V-\mathcal{V}}⟨ start_ARG italic_V - caligraphic_V end_ARG ⟩ is always a strictly decreasing function in λ𝜆\lambdaitalic_λ between 0 and 1. Therefore

V𝒱001V𝒱λ𝑑λV𝒱1.subscriptexpectation𝑉𝒱0superscriptsubscript01subscriptexpectation𝑉𝒱𝜆differential-d𝜆subscriptexpectation𝑉𝒱1\braket{V-\mathcal{V}}_{0}\geq\int_{0}^{1}\braket{V-\mathcal{V}}_{\lambda}d% \lambda\geq\braket{V-\mathcal{V}}_{1}.⟨ start_ARG italic_V - caligraphic_V end_ARG ⟩ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ≥ ∫ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT ⟨ start_ARG italic_V - caligraphic_V end_ARG ⟩ start_POSTSUBSCRIPT italic_λ end_POSTSUBSCRIPT italic_d italic_λ ≥ ⟨ start_ARG italic_V - caligraphic_V end_ARG ⟩ start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT . (17)

The SCHA and TDEP exploit this property using two different strategies. From Eq. (17) we can derive a variational expression for the upper and lower bound of the free energy

F0+V𝒱0FF0+V𝒱1.subscript𝐹0subscriptexpectation𝑉𝒱0𝐹subscript𝐹0subscriptexpectation𝑉𝒱1F_{0}+\braket{V-\mathcal{V}}_{0}\geq F\geq F_{0}+\braket{V-\mathcal{V}}_{1}.italic_F start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT + ⟨ start_ARG italic_V - caligraphic_V end_ARG ⟩ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ≥ italic_F ≥ italic_F start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT + ⟨ start_ARG italic_V - caligraphic_V end_ARG ⟩ start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT . (18)

The SCHA exploits the left side of the inequality Eq. (18), while TDEP the right side.

FF𝚽(S)+V(𝒓)𝒱𝓡,𝚽(S)(𝒓)𝓡(S),𝚽(S)𝐹subscript𝐹superscript𝚽(S)subscriptexpectation𝑉𝒓subscript𝒱𝓡superscript𝚽(S)𝒓superscript𝓡(S)superscript𝚽(S)F\leq F_{\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\boldsymbol{\Phi}}}}+% \braket{V({\bm{r}})-\mathcal{V}_{\boldsymbol{\mathcal{R}},{\stackrel{{% \scriptstyle\text{\tiny(S)}}}{{\boldsymbol{\Phi}}}}}({\bm{r}})}_{{\stackrel{{% \scriptstyle\text{\tiny(S)}}}{{\boldsymbol{\mathcal{R}}}}},{\stackrel{{% \scriptstyle\text{\tiny(S)}}}{{\boldsymbol{\Phi}}}}}italic_F ≤ italic_F start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (S) end_ARG end_RELOP end_POSTSUBSCRIPT + ⟨ start_ARG italic_V ( bold_italic_r ) - caligraphic_V start_POSTSUBSCRIPT bold_caligraphic_R , start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (S) end_ARG end_RELOP end_POSTSUBSCRIPT ( bold_italic_r ) end_ARG ⟩ start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG bold_caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP , start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (S) end_ARG end_RELOP end_POSTSUBSCRIPT (19)
FF𝚽(T)+V(𝒓)𝒱𝓡(T),𝚽(T)(𝒓)MD𝐹subscript𝐹superscript𝚽(T)subscriptexpectation𝑉𝒓subscript𝒱superscript𝓡(T)superscript𝚽(T)𝒓MDF\geq F_{\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}+% \braket{V({\bm{r}})-\mathcal{V}_{{\stackrel{{\scriptstyle\text{\tiny(T)}}}{{% \boldsymbol{\mathcal{R}}}}},{\stackrel{{\scriptstyle\text{\tiny(T)}}}{{% \boldsymbol{\Phi}}}}}({\bm{r}})}_{\text{MD}}italic_F ≥ italic_F start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP end_POSTSUBSCRIPT + ⟨ start_ARG italic_V ( bold_italic_r ) - caligraphic_V start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG bold_caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP , start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP end_POSTSUBSCRIPT ( bold_italic_r ) end_ARG ⟩ start_POSTSUBSCRIPT MD end_POSTSUBSCRIPT (20)

The difference between the two expressions relies on the ensemble on which the average on the right-hand side is evaluated. For Eq. (19), the ensemble is distributed according to the Gaussian in Eq. (10). The average in Eq. (20), instead, is evaluated when λ=1𝜆1\lambda=1italic_λ = 1, thus on the exact distribution which has to be sampled using molecular dynamics (MD) or Monte Carlo techniques (which is referred to as a MDsubscriptexpectationMD\braket{\cdot}_{\text{MD}}⟨ start_ARG ⋅ end_ARG ⟩ start_POSTSUBSCRIPT MD end_POSTSUBSCRIPT in this work). Both inequalities hold for any auxiliary Harmonic Hamiltonian. Therefore, SCHA and TDEP select the dynamical matrix to obtain the best possible free energy estimation. For the SCHA, this corresponds to minimizing the right-hand side of Eq. (19)

FSCHA=min𝚽(S),𝓡(S)F𝚽(S)+V(𝒓)𝒱𝓡,𝚽(S)(𝒓)𝓡(S),𝚽(S).subscript𝐹SCHAsubscriptsuperscript𝚽(S)superscript𝓡(S)subscript𝐹superscript𝚽(S)subscriptexpectation𝑉𝒓subscript𝒱𝓡superscript𝚽(S)𝒓superscript𝓡(S)superscript𝚽(S)F_{\text{SCHA}}=\min_{{\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\boldsymbol{% \Phi}}}},{\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\boldsymbol{\mathcal{R}}}}% }}F_{\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\boldsymbol{\Phi}}}}+\braket{V(% {\bm{r}})-\mathcal{V}_{\boldsymbol{\mathcal{R}},{\stackrel{{\scriptstyle\text{% \tiny(S)}}}{{\boldsymbol{\Phi}}}}}({\bm{r}})}_{{\stackrel{{\scriptstyle\text{% \tiny(S)}}}{{\boldsymbol{\mathcal{R}}}}},{\stackrel{{\scriptstyle\text{\tiny(S% )}}}{{\boldsymbol{\Phi}}}}}.italic_F start_POSTSUBSCRIPT SCHA end_POSTSUBSCRIPT = roman_min start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (S) end_ARG end_RELOP , start_RELOP SUPERSCRIPTOP start_ARG bold_caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP end_POSTSUBSCRIPT italic_F start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (S) end_ARG end_RELOP end_POSTSUBSCRIPT + ⟨ start_ARG italic_V ( bold_italic_r ) - caligraphic_V start_POSTSUBSCRIPT bold_caligraphic_R , start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (S) end_ARG end_RELOP end_POSTSUBSCRIPT ( bold_italic_r ) end_ARG ⟩ start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG bold_caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP , start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (S) end_ARG end_RELOP end_POSTSUBSCRIPT . (21)

The condition that cancel the gradient of F(𝚽(S),𝓡(S))𝐹superscript𝚽(S)superscript𝓡(S)F({\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\boldsymbol{\Phi}}}},{\stackrel{{% \scriptstyle\text{\tiny(S)}}}{{\boldsymbol{\mathcal{R}}}}})italic_F ( start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (S) end_ARG end_RELOP , start_RELOP SUPERSCRIPTOP start_ARG bold_caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP ) give rise to two self-consistent equations[14]:

Φab(S)=2Vrarb𝓡(S),𝚽(S)\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\Phi}}_{ab}=\left<\frac{\partial^{2}% V}{\partial r_{a}\partial r_{b}}\right>_{{\stackrel{{\scriptstyle\text{\tiny(S% )}}}{{\boldsymbol{\mathcal{R}}}}},{\stackrel{{\scriptstyle\text{\tiny(S)}}}{{% \boldsymbol{\Phi}}}}}start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT = ⟨ divide start_ARG ∂ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT italic_V end_ARG start_ARG ∂ italic_r start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT ∂ italic_r start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT end_ARG ⟩ start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG bold_caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP , start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (S) end_ARG end_RELOP end_POSTSUBSCRIPT (22)
Vra𝓡(S),𝚽(S)=0.subscriptdelimited-⟨⟩𝑉subscript𝑟𝑎superscript𝓡(S)superscript𝚽(S)0\left<\frac{\partial V}{\partial r_{a}}\right>_{{\stackrel{{\scriptstyle\text{% \tiny(S)}}}{{\boldsymbol{\mathcal{R}}}}},{\stackrel{{\scriptstyle\text{\tiny(S% )}}}{{\boldsymbol{\Phi}}}}}=0.⟨ divide start_ARG ∂ italic_V end_ARG start_ARG ∂ italic_r start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT end_ARG ⟩ start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG bold_caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP , start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (S) end_ARG end_RELOP end_POSTSUBSCRIPT = 0 . (23)

Analogously, the TDEP auxiliary dynamical matrix and centroids maximize the right-hand side of Eq. (20)

FTDEP=max𝓡(T),𝚽(T)F𝚽(T)+V(𝒓)𝒱𝓡(T),𝚽(T)(𝒓)MD.subscript𝐹TDEPsubscriptsuperscript𝓡(T)superscript𝚽(T)subscript𝐹superscript𝚽(T)subscriptexpectation𝑉𝒓subscript𝒱superscript𝓡(T)superscript𝚽(T)𝒓MDF_{\text{TDEP}}=\max_{{\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{% \mathcal{R}}}}},{\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}% }}F_{\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}+\braket{V(% {\bm{r}})-\mathcal{V}_{{\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{% \mathcal{R}}}}},{\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}% }}({\bm{r}})}_{\text{MD}}.italic_F start_POSTSUBSCRIPT TDEP end_POSTSUBSCRIPT = roman_max start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG bold_caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP , start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP end_POSTSUBSCRIPT italic_F start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP end_POSTSUBSCRIPT + ⟨ start_ARG italic_V ( bold_italic_r ) - caligraphic_V start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG bold_caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP , start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP end_POSTSUBSCRIPT ( bold_italic_r ) end_ARG ⟩ start_POSTSUBSCRIPT MD end_POSTSUBSCRIPT . (24)

The zero gradient condition of Eq. (24) provides an equivalent expression for TDEP quantities:

𝓡(T)=𝒓MD,{\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\mathcal{R}}}}}=\braket% {{\bm{r}}}_{\text{MD}},start_RELOP SUPERSCRIPTOP start_ARG bold_caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP = ⟨ start_ARG bold_italic_r end_ARG ⟩ start_POSTSUBSCRIPT MD end_POSTSUBSCRIPT , (25)
(𝚽(T)1)ab=1kbT(raa(T))(rbb(T))MD.\left({\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}^{-1}% \right)_{ab}=\frac{1}{k_{b}T}\left<(r_{a}-\stackrel{{\scriptstyle\text{\tiny(T% )}}}{{\mathcal{R}}}_{a})(r_{b}-\stackrel{{\scriptstyle\text{\tiny(T)}}}{{% \mathcal{R}}}_{b})\right>_{\text{MD}}.( start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT ) start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT = divide start_ARG 1 end_ARG start_ARG italic_k start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT italic_T end_ARG ⟨ ( italic_r start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT ) ( italic_r start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ) ⟩ start_POSTSUBSCRIPT MD end_POSTSUBSCRIPT . (26)

Differently for the self-consistent SCHA equations (Eq. 23 and 22), Eq. (25) and Eq. (26) are one-shot: the right-hand side does not depend on the left-hand side and can be evaluated with one iteration. This comes at the cost of properly sampling the average position and displacement-displacement correlation function exactly within MD or MC. The proof of Eq. 25 and Eq. 26 is reported in Appendix A. The right-hand side of Eq. (26) differs from the procedure reported on the original TDEP works[16, 23, 18]. In fact, the usual TDEP force constants 𝚽(T)superscript𝚽(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP are computed by fitting 𝚽(T)superscript𝚽(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP on forces from configurations sampled by an MD run. Appendix A.1 demonstrates that Eq. (25) and Eq. (26) also minimize the following least-square cost function:

=a=13N[fa(𝒓)+bΦab(T)(rbb(T))]2MD,\mathcal{L}=\sum_{a=1}^{3N}\left<\left[f_{a}({\bm{r}})+\sum_{b}\stackrel{{% \scriptstyle\text{\tiny(T)}}}{{\Phi}}_{ab}(r_{b}-\stackrel{{\scriptstyle\text{% \tiny(T)}}}{{\mathcal{R}}}_{b})\right]^{2}\right>_{\text{MD}},caligraphic_L = ∑ start_POSTSUBSCRIPT italic_a = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 3 italic_N end_POSTSUPERSCRIPT ⟨ [ italic_f start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT ( bold_italic_r ) + ∑ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT ( italic_r start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ) ] start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ⟩ start_POSTSUBSCRIPT MD end_POSTSUBSCRIPT , (27)
𝓡(T)=0𝚽(T)=0formulae-sequencesuperscript𝓡(T)absent0superscript𝚽(T)absent0\frac{\partial\mathcal{L}}{\partial{\stackrel{{\scriptstyle\text{\tiny(T)}}}{{% \boldsymbol{\mathcal{R}}}}}}=0\qquad\frac{\partial\mathcal{L}}{\partial{% \stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}}=0divide start_ARG ∂ caligraphic_L end_ARG start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG bold_caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP end_ARG = 0 divide start_ARG ∂ caligraphic_L end_ARG start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP end_ARG = 0 (28)

where

fa(𝒓)=Vra.subscript𝑓𝑎𝒓𝑉subscript𝑟𝑎f_{a}({\bm{r}})=-\frac{\partial V}{\partial r_{a}}.italic_f start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT ( bold_italic_r ) = - divide start_ARG ∂ italic_V end_ARG start_ARG ∂ italic_r start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT end_ARG . (29)

Therefore, the force constants matrix fitting the first-principle forces 𝒇𝒇\bm{f}bold_italic_f sampled by MD or MC also maximizes the TDEP free energy. Interestingly, the order in which the average position 𝓡(T)superscript𝓡(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\mathcal{R}}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP and the auxiliary force constant 𝚽(T)superscript𝚽(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP are fitted is not important, as the zero-gradient condition of 𝓡(T)superscript𝓡(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\mathcal{R}}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP in Eq. (28) does not depend on 𝚽(T)superscript𝚽(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP. This equivalence provides formal grounds for the standard TDEP procedure while imposing some constraints. For example, the fit cost function must be a least-square (Eq. 27), and the variational principle remains valid only for a linear fit. Both these choices are fundamental to preserve the variational principle, and their violation leads to wrong results. E.g., fitting higher-order force constants simultaneously with 𝚽(T)superscript𝚽(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP in Eq. (27), as suggested in the original TDEP works to improve the accuracy[18], has the opposite detrimental effect of underplaying the role of anharmonicity: an infinite series of high-order force constant matrix recovers the Taylor expansion of the potential where the fitted quantities converge to the trivial terms of the Taylor series. A practical example is reported in Sec. VI, where the fit up to the third order leads to much worse results for free energy and linear response calculations in all tested cases. Fitting higher-order force constants from MD trajectories only makes sense to train cheaper and reliable potentials on which longer simulations can be performed, as implemented in ALAMODE[24]. The other important limitation is the choice of the fitting procedure, which is not arbitrary. For example, if the least-square cost function (Eq. 27) is replaced with any other cost function (like Eq. 3 from the original TDEP paper[16]), the resulting final 𝚽(T)superscript𝚽(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP does not maximize the free energy, leading, by definition, to a worse evaluation of the free energy and thermodynamics properties.

Both SCHA and TDEP can be extended to work in the quantum regime. In particular, for the SSCHA, this comes at no extra cost, as the density matrix of a quantum harmonic oscillator remains analytical[14]. In contrast, it presents more difficulties for the TDEP, as molecular dynamics sampling must be replaced by quantum sampling by employing more complex techniques like Path-Integral Molecular Dynamics, which is considerably more expensive.

IV Static Response theory

Extending the definition of phonons from the harmonic theory to anharmonic systems at finite temperatures has attracted significant efforts, as it is crucial for addressing changes in phase stability upon heating and cooling. At 0 Ktimes0kelvin0\text{\,}\mathrm{K}start_ARG 0 end_ARG start_ARG times end_ARG start_ARG roman_K end_ARG, neglecting quantum zero-point motion, the (meta)stability of a structure can be evaluated from the absence of imaginary phonons in the harmonic dispersion. In fact, a phonon with an imaginary frequency corresponds to a negative curvature of the total energy along the atomic displacement oriented with the phonon polarization. Since even an infinitesimal displacement in that direction leads to an energy decrease, the structure is in a saddle point of the Born-Oppenheimer energy landscape and is, therefore, unstable. Effects like strain, do**, or temperature can stabilize unstable configurations. However, while it is easy to evaluate changes in the harmonic phonons with the volume, as captured by the quasi-harmonic approximation (QHA), describing changes in the phonon frequencies with the temperature at constant volume is much more challenging.

It is, therefore, tempting to interpret the eigenvalues of the auxiliary dynamical matrix provided by the SCHA and TDEP as temperature-dependent phonons to assess the stability of an atomic structure. This has been done in many works without a proper theoretical justification[23, 24, 13, 15, 25, 26, 20, 22]; however, looking for sign changes in eigenvalues of 𝚽(S)superscript𝚽(S){\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (S) end_ARG end_RELOP and 𝚽(T)superscript𝚽(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP is trivially wrong, as it is easy to prove that both 𝚽(S)superscript𝚽(S){\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (S) end_ARG end_RELOP and 𝚽(T)superscript𝚽(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP are positive definite and, when properly converged, never display negative eigenvalues, even when the selected structure is unstable. When evaluating the lowest order perturbative correction of anharmonicity to the harmonic phonons, it was clear that the SSCHA auxiliary force constants 𝚽(S)superscript𝚽(S){\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (S) end_ARG end_RELOP miss a negative definite term. Therefore, a common a posteriori correction employed to the SCHA (and SCP) was to add this extra term empirically, the so-called bubble diagram, to the auxiliary phonons, allowing some of the 𝚽(S)superscript𝚽(S){\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (S) end_ARG end_RELOP eigenvalues to become negative. This term was introduced in the original SCP theory for computing the phonon spectrum of solid Helium and Neon[7, 27], and it has been formalized in the context of the SSCHA by Bianco et al. [28], proving that it emerges naturally from the calculation of the finite temperature free energy Hessian. Due to the positive definite nature of the TDEP force-constant matrix as well (which is evident in Eq. 26), some works attempted to add the bubble diagram also to the phonon dispersion calculated from 𝚽(T)superscript𝚽(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP[20]. However, this section shows that TDEP and SSCHA strongly differ in this aspect, as the bubble diagram is already accounted for within the TDEP auxiliary matrix, and adding it on top results in overcounting the anharmonicity.

The ionic static response function measures how much the average position of an atom changes when a static force is applied to it. Applying a static force on atoms results in changing the Hamiltonian into

H(𝝃)=Hb=13Nξb(rbb(T))H^{\prime}(\bm{\xi})=H-\sum_{b=1}^{3N}\xi_{b}(r_{b}-\stackrel{{\scriptstyle% \text{\tiny(T)}}}{{\mathcal{R}}}_{b})italic_H start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ( bold_italic_ξ ) = italic_H - ∑ start_POSTSUBSCRIPT italic_b = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 3 italic_N end_POSTSUPERSCRIPT italic_ξ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ( italic_r start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ) (30)

where ξbsubscript𝜉𝑏\xi_{b}italic_ξ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT is the force on the b𝑏bitalic_b atom (including the Cartesian coordinate). The (static) response function χabsubscript𝜒𝑎𝑏\chi_{ab}italic_χ start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT is defined as the derivative of the average atomic position with respect to the force applied to the system

χab=rb𝝃ξa.subscript𝜒𝑎𝑏subscriptdelimited-⟨⟩subscript𝑟𝑏𝝃subscript𝜉𝑎\chi_{ab}=\frac{\partial\left<r_{b}\right>_{\bm{\xi}}}{\partial\xi_{a}}.italic_χ start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT = divide start_ARG ∂ ⟨ italic_r start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ⟩ start_POSTSUBSCRIPT bold_italic_ξ end_POSTSUBSCRIPT end_ARG start_ARG ∂ italic_ξ start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT end_ARG . (31)

In the TDEP case, whose averages are performed on the exact equilibrium ensemble, the fluctuation-dissipation theorem holds (see Appendix B), leading to

1kbT(raa(T))(rbb(T))MD=raa(T)H(𝝃)ξb|𝝃=0.\frac{1}{k_{b}T}\left<(r_{a}-\stackrel{{\scriptstyle\text{\tiny(T)}}}{{% \mathcal{R}}}_{a})(r_{b}-\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\mathcal{R}% }}_{b})\right>_{\text{MD}}=\left.\frac{\partial\braket{r_{a}-\stackrel{{% \scriptstyle\text{\tiny(T)}}}{{\mathcal{R}}}_{a}}_{H^{\prime}(\bm{\xi})}}{% \partial\xi_{b}}\right|_{\bm{\xi}=0}.divide start_ARG 1 end_ARG start_ARG italic_k start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT italic_T end_ARG ⟨ ( italic_r start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT ) ( italic_r start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ) ⟩ start_POSTSUBSCRIPT MD end_POSTSUBSCRIPT = divide start_ARG ∂ ⟨ start_ARG italic_r start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT end_ARG ⟩ start_POSTSUBSCRIPT italic_H start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ( bold_italic_ξ ) end_POSTSUBSCRIPT end_ARG start_ARG ∂ italic_ξ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT end_ARG | start_POSTSUBSCRIPT bold_italic_ξ = 0 end_POSTSUBSCRIPT . (32)

Thanks to the equivalence in Eq. (26), the ionic static response function is directly related to the TDEP auxiliary force constant matrix

(𝚽(T)1)ab=χab.subscriptsuperscriptsuperscript𝚽(T)1𝑎𝑏subscript𝜒𝑎𝑏\left({\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}^{-1}% \right)_{ab}=\chi_{ab}.( start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT ) start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT = italic_χ start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT . (33)

Notably, Eq. (33) is exact. Therefore, the TDEP auxiliary phonons can be rigorously interpreted as the exact (dressed up to any order) static response function. The same is not true for the SSCHA. In particular, the average position in Eq. (31) is evaluated on the self-consistent Gaussian distribution, and not on the exact one; therefore, when computing the derivative, an extra term appears due to the explicit dependence of 𝓡(S)superscript𝓡(S){\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\boldsymbol{\mathcal{R}}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP and 𝚽(S)superscript𝚽(S){\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (S) end_ARG end_RELOP on 𝝃𝝃\bm{\xi}bold_italic_ξ. In particular, the SCHA response function is defined by substituting the exact average with the one evaluated on the SCHA Gaussian distribution in Eq. (31)

χab(S)=ra𝓡(S),𝚽(S),𝝃ξb=a(S)(𝝃)ξb.\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\chi}}_{ab}=\frac{\partial\left<r_{a% }\right>_{{\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\boldsymbol{\mathcal{R}}}% }},{\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\boldsymbol{\Phi}}}},\bm{\xi}}}{% \partial\xi_{b}}=\frac{\partial\stackrel{{\scriptstyle\text{\tiny(S)}}}{{% \mathcal{R}}}_{a}(\bm{\xi})}{\partial\xi_{b}}.start_RELOP SUPERSCRIPTOP start_ARG italic_χ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT = divide start_ARG ∂ ⟨ italic_r start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT ⟩ start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG bold_caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP , start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (S) end_ARG end_RELOP , bold_italic_ξ end_POSTSUBSCRIPT end_ARG start_ARG ∂ italic_ξ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT end_ARG = divide start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT ( bold_italic_ξ ) end_ARG start_ARG ∂ italic_ξ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT end_ARG . (34)

To solve Eq. (34), we need to apply perturbation theory to the SCHA equations, similarly to perturbation theory is derived in the framework of other self-consistent theories like Hartree-Fock or DFT. Differentiating the gradients of the SCHA equation with respect to the perturbation 𝝃𝝃\boldsymbol{\xi}bold_italic_ξ, we get

fa(S)(ξ),Φ(S)(ξ)=ξa,subscriptdelimited-⟨⟩subscript𝑓𝑎superscript(S)absent𝜉superscriptΦ(S)absent𝜉subscript𝜉𝑎\left<f_{a}\right>_{\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\mathcal{R}}}(% \xi),\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\Phi}}(\xi)}=\xi_{a},⟨ italic_f start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT ⟩ start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP ( italic_ξ ) , start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP ( italic_ξ ) end_POSTSUBSCRIPT = italic_ξ start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT , (35)
ξbfa(S)(ξ),Φ(S)(ξ)=δab;subscript𝜉𝑏subscriptdelimited-⟨⟩subscript𝑓𝑎superscript(S)absent𝜉superscriptΦ(S)absent𝜉subscript𝛿𝑎𝑏\frac{\partial}{\partial\xi_{b}}\left<f_{a}\right>_{\stackrel{{\scriptstyle% \text{\tiny(S)}}}{{\mathcal{R}}}(\xi),\stackrel{{\scriptstyle\text{\tiny(S)}}}% {{\Phi}}(\xi)}=\delta_{ab};divide start_ARG ∂ end_ARG start_ARG ∂ italic_ξ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT end_ARG ⟨ italic_f start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT ⟩ start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP ( italic_ξ ) , start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP ( italic_ξ ) end_POSTSUBSCRIPT = italic_δ start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT ; (36)
Φab(S)(𝝃)=d2VdRadRb(S)(ξ),Φ(S)(ξ),subscriptsuperscriptΦ(S)𝑎𝑏absent𝝃subscriptdelimited-⟨⟩superscript𝑑2𝑉𝑑subscript𝑅𝑎𝑑subscript𝑅𝑏superscript(S)absent𝜉superscriptΦ(S)absent𝜉\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\Phi}}_{ab}(\bm{\xi})=\left<\frac{d^% {2}V}{dR_{a}dR_{b}}\right>_{\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\mathcal% {R}}}(\xi),\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\Phi}}(\xi)},start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT ( bold_italic_ξ ) = ⟨ divide start_ARG italic_d start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT italic_V end_ARG start_ARG italic_d italic_R start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT italic_d italic_R start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT end_ARG ⟩ start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP ( italic_ξ ) , start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP ( italic_ξ ) end_POSTSUBSCRIPT , (37)
Φab(S)ξc=ξcd2VdRadRb(S),Φ(S).subscriptsuperscriptΦ(S)𝑎𝑏absentsubscript𝜉𝑐subscript𝜉𝑐subscriptdelimited-⟨⟩superscript𝑑2𝑉𝑑subscript𝑅𝑎𝑑subscript𝑅𝑏superscript(S)superscriptΦ(S)\frac{\partial\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\Phi}}_{ab}}{\partial% \xi_{c}}=\frac{\partial}{\partial\xi_{c}}\left<\frac{d^{2}V}{dR_{a}dR_{b}}% \right>_{\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\mathcal{R}}},\stackrel{{% \scriptstyle\text{\tiny(S)}}}{{\Phi}}}.divide start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT end_ARG start_ARG ∂ italic_ξ start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT end_ARG = divide start_ARG ∂ end_ARG start_ARG ∂ italic_ξ start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT end_ARG ⟨ divide start_ARG italic_d start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT italic_V end_ARG start_ARG italic_d italic_R start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT italic_d italic_R start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT end_ARG ⟩ start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP , start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP end_POSTSUBSCRIPT . (38)

By following all mathematical trivial steps (reported in Appendix C), one arrives at the two coupled linear response equations for the SCHA:

δab=hΦah(S)h(S)ξb+pqlmΛpqlmΦpqa(3)Φlm(S)ξb,subscript𝛿𝑎𝑏subscriptsubscriptsuperscriptΦ(S)𝑎subscriptsuperscript(S)absentsubscript𝜉𝑏subscript𝑝𝑞𝑙𝑚subscriptΛ𝑝𝑞𝑙𝑚subscriptsuperscriptΦ(3)𝑝𝑞𝑎subscriptsuperscriptΦ(S)𝑙𝑚absentsubscript𝜉𝑏\delta_{ab}=-\sum_{h}\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\Phi}}_{ah}% \frac{\partial\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\mathcal{R}}}_{h}}{% \partial\xi_{b}}+\sum_{pqlm}\Lambda_{pqlm}\stackrel{{\scriptstyle\text{\tiny(3% )}}}{{\Phi}}_{pqa}\frac{\partial\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\Phi% }}_{lm}}{\partial\xi_{b}},italic_δ start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT = - ∑ start_POSTSUBSCRIPT italic_h end_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_h end_POSTSUBSCRIPT divide start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_h end_POSTSUBSCRIPT end_ARG start_ARG ∂ italic_ξ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT end_ARG + ∑ start_POSTSUBSCRIPT italic_p italic_q italic_l italic_m end_POSTSUBSCRIPT roman_Λ start_POSTSUBSCRIPT italic_p italic_q italic_l italic_m end_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (3) end_ARG end_RELOP start_POSTSUBSCRIPT italic_p italic_q italic_a end_POSTSUBSCRIPT divide start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_l italic_m end_POSTSUBSCRIPT end_ARG start_ARG ∂ italic_ξ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT end_ARG , (39)
Φab(S)ξc=hΦabh(3)h(S)ξcpqlmΛpqlmΦpqab(4)Φlm(S)ξc,subscriptsuperscriptΦ(S)𝑎𝑏absentsubscript𝜉𝑐subscriptsubscriptsuperscriptΦ(3)𝑎𝑏subscriptsuperscript(S)absentsubscript𝜉𝑐subscript𝑝𝑞𝑙𝑚subscriptΛ𝑝𝑞𝑙𝑚subscriptsuperscriptΦ(4)𝑝𝑞𝑎𝑏subscriptsuperscriptΦ(S)𝑙𝑚absentsubscript𝜉𝑐\frac{\partial\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\Phi}}_{ab}}{\partial% \xi_{c}}=-\sum_{h}\stackrel{{\scriptstyle\text{\tiny(3)}}}{{\Phi}}_{abh}\frac{% \partial\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\mathcal{R}}}_{h}}{\partial% \xi_{c}}-\sum_{pqlm}\Lambda_{pqlm}\stackrel{{\scriptstyle\text{\tiny(4)}}}{{% \Phi}}_{pqab}\frac{\partial\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\Phi}}_{% lm}}{\partial\xi_{c}},divide start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT end_ARG start_ARG ∂ italic_ξ start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT end_ARG = - ∑ start_POSTSUBSCRIPT italic_h end_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (3) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b italic_h end_POSTSUBSCRIPT divide start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_h end_POSTSUBSCRIPT end_ARG start_ARG ∂ italic_ξ start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT end_ARG - ∑ start_POSTSUBSCRIPT italic_p italic_q italic_l italic_m end_POSTSUBSCRIPT roman_Λ start_POSTSUBSCRIPT italic_p italic_q italic_l italic_m end_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (4) end_ARG end_RELOP start_POSTSUBSCRIPT italic_p italic_q italic_a italic_b end_POSTSUBSCRIPT divide start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_l italic_m end_POSTSUBSCRIPT end_ARG start_ARG ∂ italic_ξ start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT end_ARG , (40)

where the 𝚽(3)superscript𝚽(3)\boldsymbol{\stackrel{{\scriptstyle\text{\tiny(3)}}}{{\Phi}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (3) end_ARG end_RELOP and 𝚽(4)superscript𝚽(4)\boldsymbol{\stackrel{{\scriptstyle\text{\tiny(4)}}}{{\Phi}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (4) end_ARG end_RELOP are the 3 and 4-phonon scattering vertices averaged on the ensemble:

Φabc(3)=d3VdRadRbdRc(S),Φ(S),\stackrel{{\scriptstyle\text{\tiny(3)}}}{{\Phi}}_{abc}=\left<\frac{d^{3}V}{dR_% {a}dR_{b}dR_{c}}\right>_{\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\mathcal{R}% }},\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\Phi}}},start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (3) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b italic_c end_POSTSUBSCRIPT = ⟨ divide start_ARG italic_d start_POSTSUPERSCRIPT 3 end_POSTSUPERSCRIPT italic_V end_ARG start_ARG italic_d italic_R start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT italic_d italic_R start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT italic_d italic_R start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT end_ARG ⟩ start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP , start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP end_POSTSUBSCRIPT , (41)
Φabcd(4)=d4VdRadRbdRcdRd(S),Φ(S).\stackrel{{\scriptstyle\text{\tiny(4)}}}{{\Phi}}_{abcd}=\left<\frac{d^{4}V}{dR% _{a}dR_{b}dR_{c}dR_{d}}\right>_{\stackrel{{\scriptstyle\text{\tiny(S)}}}{{% \mathcal{R}}},\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\Phi}}}.start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (4) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b italic_c italic_d end_POSTSUBSCRIPT = ⟨ divide start_ARG italic_d start_POSTSUPERSCRIPT 4 end_POSTSUPERSCRIPT italic_V end_ARG start_ARG italic_d italic_R start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT italic_d italic_R start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT italic_d italic_R start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT italic_d italic_R start_POSTSUBSCRIPT italic_d end_POSTSUBSCRIPT end_ARG ⟩ start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP , start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP end_POSTSUBSCRIPT . (42)

Inverting simultaneously Eq. (39) and Eq. (40) allows one to compute the SSCHA static response function χ(S)superscript𝜒(S)\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\chi}}start_RELOP SUPERSCRIPTOP start_ARG italic_χ end_ARG start_ARG (S) end_ARG end_RELOP of Eq. (34), derived formally for the first time in ref.[28]. The SSCHA expression for the response function is much more complex than the TDEP one. In particular, the auxiliary force constant matrix of the SCHA (Eq. 22) coincides with the inverse of the response function like the TDEP one only in the case 𝚽(3)superscript𝚽(3)\boldsymbol{\stackrel{{\scriptstyle\text{\tiny(3)}}}{{\Phi}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (3) end_ARG end_RELOP is exactly zero (and Eq. 39 can be trivially inverted). Notably, no symmetry condition can enforce 𝚽(3)superscript𝚽(3)\boldsymbol{\stackrel{{\scriptstyle\text{\tiny(3)}}}{{\Phi}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (3) end_ARG end_RELOP to be zero, as the summation in Eq. (39) runs over the whole Brillouin zone. For example, the inversion symmetry, often wrongly invoked to avoid inverting Eq. (39), cancels out only 𝚽(3)superscript𝚽(3)\boldsymbol{\stackrel{{\scriptstyle\text{\tiny(3)}}}{{\Phi}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (3) end_ARG end_RELOP matrix elements at ΓΓ\Gammaroman_Γ across atoms mapped into themselves by the inversion symmetry. Interestingly, by considering 𝚽(4)0\boldsymbol{\stackrel{{\scriptstyle\text{\tiny(4)}}}{{\Phi}}}\to 0start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (4) end_ARG end_RELOP → 0 in Eq. (40), Eq. (39) can be inverted. The extra term correcting 𝚽(S)superscript𝚽(S){\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (S) end_ARG end_RELOP coincides with the bubble diagram derived from perturbation theory[28]. Indeed, Eq. (39) and (40) go beyond perturbation theory as their complete inversion is equivalent to an infinite resummation of RPA-like diagrams, accounting for anharmonicity up to an arbitrary order[28].

The expression for the response function devised here and the SSCHA free energy Hessian derived by Bianco et al.[28] are related as

(𝝌(S))ab1=d2FSCHAda(S)db(S),subscriptsuperscriptsuperscript𝝌(S)1𝑎𝑏superscript𝑑2subscript𝐹SCHAsubscriptsuperscript(S)𝑎𝑑𝑑subscriptsuperscript(S)𝑏absent\left(\boldsymbol{\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\chi}}}\right)^{-1% }_{ab}=\frac{d^{2}F_{\text{SCHA}}}{d\stackrel{{\scriptstyle\text{\tiny(S)}}}{{% \mathcal{R}}}_{a}d\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\mathcal{R}}}_{b}},( start_RELOP SUPERSCRIPTOP start_ARG bold_italic_χ end_ARG start_ARG (S) end_ARG end_RELOP ) start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT = divide start_ARG italic_d start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT italic_F start_POSTSUBSCRIPT SCHA end_POSTSUBSCRIPT end_ARG start_ARG italic_d start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT italic_d start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT end_ARG , (43)

where the dependence of the free energy landscape from the atomic position can be obtained by minimizing FSCHAsubscript𝐹SCHAF_{\text{SCHA}}italic_F start_POSTSUBSCRIPT SCHA end_POSTSUBSCRIPT only on the effective force constant matrix, constraining the centroids 𝓡(S)superscript𝓡(S){\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\boldsymbol{\mathcal{R}}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP. The free energy landscape defined in this way coincides with the Landau theory of phase transition: when the curvature of the free energy vanishes with respect to an order parameter ΔΔ\Deltaroman_Δ (function of the atomic positions), the corresponding response function 𝝌𝝌\boldsymbol{\chi}bold_italic_χ diverges. This goes beyond the free energy landscape introduced by sampling transition rates in molecular dynamics, as the SCHA does not perform any adiabatic approximation on the order parameter’s dynamics.

The response functions of SSCHA and TDEP have a key difference. The SSCHA can study the response function as the inverse of Hessian’s atomic free energy landscape, thus defining temperature-dependent static phonons. The solution of the linear-response system (Eq. 39 and 40) may introduce non-positive eigenvalues to the spectrum of the phonons. The crossover between imaginary and real positive phonons is a marker of the critical point in a second-order displacive phase transition. The same is not true within the TDEP. The TDEP dynamical matrix is always positive definite (Eq. (26)), and it coincides with the static response function (Eq. (33)), so there is no extra diagram like the bubble one to add that can introduce an imaginary frequency. Indeed, the response function should diverge at the phase transition, thus giving a vanishing frequency in the TDEP dynamical matrix. However, this only occurs in the thermodynamic limit, as in any finite size system Eq. (26) will be finite. This does not change if 𝚽(T)superscript𝚽(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP is obtained through the fitting procedure in Eq. (28), as its equivalence with Eq. (26) is always true. Thus, converging to the thermodynamic limit in TDEP (or MD in general) is much trickier than in the SCHA, where a transition point exists even in finite-size systems.

This analysis rationalizes the origin of the discrepancy between SCHA, SCP, and TDEP reported in ref.[22], where the phonon frequencies of SCHA (and SCP) give an apparent worse agreement with the full MD calculations with respect to TDEP ones at low frequencies (thus close to the static limit). Indeed, the TDEP renormalized force constant matrix 𝚽(T)superscript𝚽(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP already coincides with the response function, while the SCHA (and SCP) require to invert the Eq. (39) and (40) to obtain the phonons, as 𝚽(S)superscript𝚽(S){\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (S) end_ARG end_RELOP alone does not carry a valid physical meaning.

A full test of the static susceptibility and the effect of different approximations is reported in Sec. VI.2

V Dynamical response

While static response functions are the key quantities to track second-order phase transitions, as they diverge at the critical point, dynamical response functions probe the atomic reaction to an external time-dependent stimulus. They are probed by vibrational spectroscopies like Raman, IR, X-rays, and Neutron scattering. Moreover, the dynamical spectral function of phonons encapsulates the phonon lifetimes, and the mean-free-path phonons propagate through the crystal. Thus, it is the fundamental ingredient for calculating the contribution of the lattice to thermal conductivity and plays a major role in simulating electron-phonon properties. The SCHA dynamical response is obtained by performing the analytic continuation at a finite frequency of the static self-energy[28, 27, 7]. This ansatz has been proved simultaneously by two independent works to satisfy a variational dynamical principle[29, 30]. Therefore, the SSCHA dynamical response function is formulated on solid first-principles grounds and does not leave room for arbitrary empirical decisions. The analytical continuation at finite frequency is obtained by adding a frequency dependence on the 𝚲𝚲\boldsymbol{\Lambda}bold_Λ tensor in Eq. (39) and Eq. (40).

On the contrary, up to very recently, no theoretically grounded approach to obtain dynamical spectral functions was available for TDEP, leading to widespread incorrect practices. The first attempt to formalize a rigorous dynamical expression for the TDEP response function was given by Castellano et al[31].

The main challenge of extending TDEP to compute the dynamical response function resides in defining the TDEP self-energy. In fact, 𝚽(T)superscript𝚽(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP is already the exact inverse of the static response function and it does not rely on a many-body definition that can be analytically continued at a finite frequency like the SSCHA or SCP one. A simple analytical continuation of the static response function, like

χ(ω)=1ω2ω(T)2,𝜒𝜔1superscriptsuperscript𝜔(T)2limit-fromsuperscript𝜔2absent\chi(\omega)=\frac{1}{\omega^{2}-\stackrel{{\scriptstyle\text{\tiny(T)}}}{{% \omega}}^{2}},italic_χ ( italic_ω ) = divide start_ARG 1 end_ARG start_ARG italic_ω start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG italic_ω end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG , (44)

where ω(T)superscript𝜔(T)\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\omega}}start_RELOP SUPERSCRIPTOP start_ARG italic_ω end_ARG start_ARG (T) end_ARG end_RELOP are the eigenfrequencies of the TDEP dynamical matrix

bΦab(T)eμbmamb=ω(T)μ2eμa,\sum_{b}\frac{\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\Phi}}_{ab}e_{\mu}^{b}% }{\sqrt{m_{a}m_{b}}}=\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\omega}}_{\mu}^% {2}e_{\mu}^{a},∑ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT divide start_ARG start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT italic_e start_POSTSUBSCRIPT italic_μ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_b end_POSTSUPERSCRIPT end_ARG start_ARG square-root start_ARG italic_m start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT italic_m start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT end_ARG end_ARG = start_RELOP SUPERSCRIPTOP start_ARG italic_ω end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_μ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT italic_e start_POSTSUBSCRIPT italic_μ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_a end_POSTSUPERSCRIPT , (45)

unavoidably leads to a vanishing imaginary part and a non-dissipative system, which prevents accessing crucial information like the phonon lifetime. This problem can be manually “fixed” by computing the lifetime of phonons exploiting the Fermi golden rule by fitting the third-order force constant matrix together with 𝚽(T)superscript𝚽(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP in Eq. (27)[23]. However, we already proved in Sec. III that this fit violates the variational principle and must be avoided. An alternative strategy is to fit a third-order force constant on the residual forces, kee** 𝚽(T)superscript𝚽(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP fixed, similar to how high-order force constants are defined within the SSCHA. This approach is justified by the mode-coupling theory[31], leading to much better results. Then, to achieve a nonperturbative response similar to the one obtained from the SSCHA, the Kramers-Kronig relations can be employed to correct the dynamical frequencies of phonons self-consistently[31]. However, extra care must be taken at this stage: the real part of the bubble self-energy does not vanish for ω0𝜔0\omega\to 0italic_ω → 0, thus violating the exact result achieved by TDEP in the static case (and the perturbative limit). A similar result affects the frequency shift computed from Krames-Kronig relations, as the limω0ωΔ(ω)0subscript𝜔0𝜔Δ𝜔0\lim_{\omega\to 0}\omega\Delta(\omega)\neq 0roman_lim start_POSTSUBSCRIPT italic_ω → 0 end_POSTSUBSCRIPT italic_ω roman_Δ ( italic_ω ) ≠ 0 in Eq. (53) and (56) of ref.[31] for μ=ν𝜇𝜈\mu=\nuitalic_μ = italic_ν, where ωΔ(ω)𝜔Δ𝜔\omega\Delta(\omega)italic_ω roman_Δ ( italic_ω ) quantifies the frequency shift introduced by the anharmonic phonon scattering. This contradiction arises from an intrinsic ambiguity of Krames-Kronig relations, which defines the real part of an analytic function up to a constant. To avoid the ambiguity of Krames-Kronig relations, they can be replaced with the complex self-energy arising from the bubble diagram, where

(𝝌1)ab(ω)=δabω2Φab(T)+Πab(ω)mambsubscriptsuperscript𝝌1𝑎𝑏𝜔subscript𝛿𝑎𝑏superscript𝜔2subscriptsuperscriptΦ(T)𝑎𝑏absentsubscriptΠ𝑎𝑏𝜔subscript𝑚𝑎subscript𝑚𝑏\left(\boldsymbol{\chi}^{-1}\right)_{ab}(\omega)=\delta_{ab}\omega^{2}-\frac{% \stackrel{{\scriptstyle\text{\tiny(T)}}}{{\Phi}}_{ab}+\Pi_{ab}(\omega)}{\sqrt{% m_{a}m_{b}}}( bold_italic_χ start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT ) start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT ( italic_ω ) = italic_δ start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT italic_ω start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT - divide start_ARG start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT + roman_Π start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT ( italic_ω ) end_ARG start_ARG square-root start_ARG italic_m start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT italic_m start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT end_ARG end_ARG (46)
Πab(ω)=pqrsΦapq(3)Λ(ω)pqrsΦrsb(3)subscriptΠ𝑎𝑏𝜔subscript𝑝𝑞𝑟𝑠subscriptsuperscriptΦ(3)𝑎𝑝𝑞Λsubscript𝜔𝑝𝑞𝑟𝑠subscriptsuperscriptΦ(3)𝑟𝑠𝑏absent\Pi_{ab}(\omega)=\sum_{pqrs}\stackrel{{\scriptstyle\text{\tiny(3)}}}{{\Phi}}_{% apq}\Lambda(\omega)_{pqrs}\stackrel{{\scriptstyle\text{\tiny(3)}}}{{\Phi}}_{rsb}roman_Π start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT ( italic_ω ) = ∑ start_POSTSUBSCRIPT italic_p italic_q italic_r italic_s end_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (3) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_p italic_q end_POSTSUBSCRIPT roman_Λ ( italic_ω ) start_POSTSUBSCRIPT italic_p italic_q italic_r italic_s end_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (3) end_ARG end_RELOP start_POSTSUBSCRIPT italic_r italic_s italic_b end_POSTSUBSCRIPT (47)

and Λpqrs(ω)subscriptΛ𝑝𝑞𝑟𝑠𝜔\Lambda_{pqrs}(\omega)roman_Λ start_POSTSUBSCRIPT italic_p italic_q italic_r italic_s end_POSTSUBSCRIPT ( italic_ω ) is the opposite of twice the two-phonons propagator[28]. The self-energy Πab(ω)subscriptΠ𝑎𝑏𝜔\Pi_{ab}(\omega)roman_Π start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT ( italic_ω ) is complex and arises from a phonon that scatters (or decays) with other phonons through the 3-body interaction term Φ(3)superscriptΦ(3)\stackrel{{\scriptstyle\text{\tiny(3)}}}{{\Phi}}start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (3) end_ARG end_RELOP. The imaginary part of Eq. (47) coincides with the Fermi golden rule applied to the three-phonons scattering processes. This self-energy overlaps with the SSCHA one when 𝚽(4)0\boldsymbol{\stackrel{{\scriptstyle\text{\tiny(4)}}}{{\Phi}}}\to 0start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (4) end_ARG end_RELOP → 0 in Eq. (40). Also here, the ω0𝜔0\omega\to 0italic_ω → 0 of Eq. (46) does not become the exact static TDEP susceptibility (Eq. 33), as 𝚽(T)superscript𝚽(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP already accounts for the real-part of the bubble correction (and beyond); therefore, dressing TDEP phonons with the bubble self-energy leads to overcounting anharmonicity and violating the perturbative regime.

Luckily, this problem has a straightforward solution: removing the static limit of the bubble self-energy from the calculation of the dynamical response function:

(𝝌1)ab(ω)=δabω2Φab(T)+Πab(ω)Πab(ω0)mamb.subscriptsuperscript𝝌1𝑎𝑏𝜔subscript𝛿𝑎𝑏superscript𝜔2subscriptsuperscriptΦ(T)𝑎𝑏absentsubscriptΠ𝑎𝑏𝜔subscriptΠ𝑎𝑏𝜔0subscript𝑚𝑎subscript𝑚𝑏\left(\boldsymbol{\chi}^{-1}\right)_{ab}(\omega)=\delta_{ab}\omega^{2}-\frac{% \stackrel{{\scriptstyle\text{\tiny(T)}}}{{\Phi}}_{ab}+\Pi_{ab}(\omega)-\Pi_{ab% }(\omega\to 0)}{\sqrt{m_{a}m_{b}}}.( bold_italic_χ start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT ) start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT ( italic_ω ) = italic_δ start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT italic_ω start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT - divide start_ARG start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT + roman_Π start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT ( italic_ω ) - roman_Π start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT ( italic_ω → 0 ) end_ARG start_ARG square-root start_ARG italic_m start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT italic_m start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT end_ARG end_ARG . (48)

Eq. (48) reproduces the correct ω0𝜔0\omega\to 0italic_ω → 0 limit and also satisfies the lowest-order perturbation theory at finite ω𝜔\omegaitalic_ω. Eq. (48) also generates the correct second-order memory kernel for the mode-coupling theory derived in ref.[31] while fixing the ambiguities of the Krames-Kronig transformations.

Differently from the SSCHA, where the full dynamical response is obtained from an infinite resummation of diagrams emerging from the inversion of Eq. (39) and (40), the correction in Eq. (48) is defined perturbatively adding more scattering processes in the self-energy (or the memory kernel in the language of mode-coupling theory[31]). However, perturbative truncations of the self-energy result in the violation of the response functions’ sum rules. Only the complete inversion of the SSCHA equations (Eq. 39 and 40) leads to a response function that satisfies all the correct sum rules[27, 7, 32], while truncating the inversion to the bubble diagram does not. For this reason, there is no complete dynamical expression for the TDEP response function that correctly satisfies all sum rules. This is crucial when computing properties for q0𝑞0q\to 0italic_q → 0, such as the bending rigidity of 2D materials[32], which may diverge if the self-energy is truncated at any finite order.

A numerical test for the perturbative regime of TDEP and SSCHA dynamical spectral functions is reported in Sec. VI.3.

VI Numerical comparison

This section tests the SSCHA and TDEP thermodynamics (free energy), static response, and dynamical response functions against an exact (numerical) benchmark.

Let us consider a particle in a 1D anharmonic potential of the form

V(x)=12ax2+16bx3+124cx4.𝑉𝑥12𝑎superscript𝑥216𝑏superscript𝑥3124𝑐superscript𝑥4V(x)=\frac{1}{2}ax^{2}+\frac{1}{6}bx^{3}+\frac{1}{24}cx^{4}.italic_V ( italic_x ) = divide start_ARG 1 end_ARG start_ARG 2 end_ARG italic_a italic_x start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT + divide start_ARG 1 end_ARG start_ARG 6 end_ARG italic_b italic_x start_POSTSUPERSCRIPT 3 end_POSTSUPERSCRIPT + divide start_ARG 1 end_ARG start_ARG 24 end_ARG italic_c italic_x start_POSTSUPERSCRIPT 4 end_POSTSUPERSCRIPT . (49)

The anharmonicity of this simple potential can be gradually switched on by tuning the b𝑏bitalic_b and c𝑐citalic_c parameters. To isolate the role played by the third order anharmonicity (the b𝑏bitalic_b parameter), we set a=1.0 Eh/a02𝑎times1.0subscript𝐸hsuperscriptsubscript𝑎02a=$1.0\text{\,}\mathrm{\text{$E$}_{\mathrm{h}}}\mathrm{/}\mathrm{\text{$a$}_{0% }}^{2}$italic_a = start_ARG 1.0 end_ARG start_ARG times end_ARG start_ARG italic_E start_POSTSUBSCRIPT roman_h end_POSTSUBSCRIPT / italic_a start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG and c=1.0×104 Eh/a04𝑐times1.0E-4subscript𝐸hsuperscriptsubscript𝑎04c=$1.0\text{\times}{10}^{-4}\text{\,}\mathrm{\text{$E$}_{\mathrm{h}}}\mathrm{/% }\mathrm{\text{$a$}_{0}}^{4}$italic_c = start_ARG start_ARG 1.0 end_ARG start_ARG times end_ARG start_ARG power start_ARG 10 end_ARG start_ARG - 4 end_ARG end_ARG end_ARG start_ARG times end_ARG start_ARG italic_E start_POSTSUBSCRIPT roman_h end_POSTSUBSCRIPT / italic_a start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 4 end_POSTSUPERSCRIPT end_ARG, just big enough to avoid run-away solutions while tuning b𝑏bitalic_b.

Although this may seem trivial, a systematic benchmark comparing TDEP and SSCHA was still missing.

VI.1 Free energy

All thermodynamic quantities can be inferred from derivatives of the free energy. In this section, the free energy obtained within SCHA (Eq. 21) and TDEP (Eq. 24) is benchmarked. To provide a comprehensive comparison, also the pure vibrational contribution to the TDEP free energy is evaluated, as performed by some TDEP implementations[33].

Refer to caption
Figure 1: Free energy (a) of the potential Eq. (49), β=1 Eh𝛽times1hartree\beta=$1\text{\,}\mathrm{\text{$E$}_{\mathrm{h}}}$italic_β = start_ARG 1 end_ARG start_ARG times end_ARG start_ARG italic_E start_POSTSUBSCRIPT roman_h end_POSTSUBSCRIPT end_ARG, comparing the exact (numerical) solution with SCHA and TDEP. Panel (b) reports the absolute value of the error versus the exact solution. The TDEP is implemented in two flavors: i) by fitting only the second-order force constant and then computing the free energy as in Eq. (24), ii) by fitting up to the third-order force constant matrix and removing the high-order terms of the expansion to reduce the fluctuations, as reported in Eq. (50) and (51) (also 24-25 of ref.[33]).

The simulations are conducted for β=1 Eh𝛽times1hartree\beta=$1\text{\,}\mathrm{\text{$E$}_{\mathrm{h}}}$italic_β = start_ARG 1 end_ARG start_ARG times end_ARG start_ARG italic_E start_POSTSUBSCRIPT roman_h end_POSTSUBSCRIPT end_ARG (Ehsubscript𝐸hE_{\text{h}}italic_E start_POSTSUBSCRIPT h end_POSTSUBSCRIPT is Hartree atomic units) by varying the third-order anharmonicity b𝑏bitalic_b, and reported in Figure 1. Both the SCHA and TDEP (only when fitted up to second-order) offer variational expressions to the free energy following the inequalities presented in Sec. III (Eq. 21 and 24). The TDEP fit with the third-order force constants leads to much worse results, recovering the correct answer only in the harmonic potential (b0𝑏0b\to 0italic_b → 0). This may be surprising since the potential of Eq. (49) is cubic, and the fit up to third-order force constants is exact. However, by inspecting the expression implemented in TDEP packages[33] for the free energy, the reason appears evident:

V(n)=V(𝒓)p=1n1p!a1apΦa1ap(p)k=1p(Rakak(T)),\stackrel{{\scriptstyle(n)}}{{V}}=\left<V(\bm{r})-\sum_{p=1}^{n}\frac{1}{p!}% \sum_{a_{1}\cdots a_{p}}\stackrel{{\scriptstyle(p)}}{{\Phi}}_{a_{1}\cdots a_{p% }}\prod_{k=1}^{p}(R_{a_{k}}-\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\mathcal% {R}}}_{a_{k}})\right>,start_RELOP SUPERSCRIPTOP start_ARG italic_V end_ARG start_ARG ( italic_n ) end_ARG end_RELOP = ⟨ italic_V ( bold_italic_r ) - ∑ start_POSTSUBSCRIPT italic_p = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT divide start_ARG 1 end_ARG start_ARG italic_p ! end_ARG ∑ start_POSTSUBSCRIPT italic_a start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ⋯ italic_a start_POSTSUBSCRIPT italic_p end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG ( italic_p ) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ⋯ italic_a start_POSTSUBSCRIPT italic_p end_POSTSUBSCRIPT end_POSTSUBSCRIPT ∏ start_POSTSUBSCRIPT italic_k = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_p end_POSTSUPERSCRIPT ( italic_R start_POSTSUBSCRIPT italic_a start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT end_POSTSUBSCRIPT ) ⟩ , (50)
FTDEP(n)TDEP=V(n)+32NkBTTS[𝚽(T)].\stackrel{{\scriptstyle(n)}}{{F_{\text{TDEP}}}}=\stackrel{{\scriptstyle(n)}}{{% V}}+\frac{3}{2}Nk_{B}T-TS[{\stackrel{{\scriptstyle\text{\tiny(T)}}}{{% \boldsymbol{\Phi}}}}].start_RELOP SUPERSCRIPTOP start_ARG italic_F start_POSTSUBSCRIPT TDEP end_POSTSUBSCRIPT end_ARG start_ARG ( italic_n ) end_ARG end_RELOP = start_RELOP SUPERSCRIPTOP start_ARG italic_V end_ARG start_ARG ( italic_n ) end_ARG end_RELOP + divide start_ARG 3 end_ARG start_ARG 2 end_ARG italic_N italic_k start_POSTSUBSCRIPT italic_B end_POSTSUBSCRIPT italic_T - italic_T italic_S [ start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP ] . (51)

Eq. (51) does not tend to the exact free energy for n𝑛n\to\inftyitalic_n → ∞ (it is not the cumulant expansion of the free energy). Therefore, there is no reason why increasing n𝑛nitalic_n would improve the result’s quality. Quite the opposite: in the n𝑛n\to\inftyitalic_n → ∞ limit, TDEP fits the potential with the temperature-independent Taylor expansion. Then, Eq. (50) coincides with the value of the potential energy in the average position

limnV(n)=V(𝓡(T)),\lim_{n\to\infty}\stackrel{{\scriptstyle(n)}}{{V}}=V({\stackrel{{\scriptstyle% \text{\tiny(T)}}}{{\boldsymbol{\mathcal{R}}}}}),roman_lim start_POSTSUBSCRIPT italic_n → ∞ end_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG italic_V end_ARG start_ARG ( italic_n ) end_ARG end_RELOP = italic_V ( start_RELOP SUPERSCRIPTOP start_ARG bold_caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP ) ,

and the second-order fitted force constant 𝚽(T)superscript𝚽(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP coincides with the harmonic perturbative term of the Taylor expansion. Therefore, Eq. (51) becomes the free energy within the Harmonic approximation. For the potential in Eq. (49), since c𝑐citalic_c is small, already a third-order fit is enough to recover the almost perfect harmonic limit, and the free energy obtained by this approach does not depend on the degree of anharmonicity b𝑏bitalic_b. The main reason for this failure relies on the fact that the high-order terms fitted from the potential should be included in the expression for the entropy S𝑆Sitalic_S in Eq. (51), however, this is not feasible, as entropy has an analytical expression only for quadratic potentials.

This is the first demonstration that the TDEP method leads to good results only if the fit is limited to second-order force constants, as anticipated in Sec. III. Notably, even if both the second-order TDEP and the SSCHA satisfy a variational condition on the free energy, the SSCHA performs better for stronger anharmonicity.

Figure 1 shows how both TDEP and SSCHA violate the perturbative limit of the free energy for b0𝑏0b\to 0italic_b → 0. In fact, the lowest-order correction to the free energy is quadratic in the third order anharmonicity b𝑏bitalic_b and can be recast in the two Feynman diagrams reported in Figure 2 (derived in Appendix D)

Refer to caption
Figure 2: The two lowest-order Feynman diagrams for the free energy correction in the cubic anharmonicity. The triangles represent the three-phonon scattering vertex 𝚽(3)superscript𝚽(3)\boldsymbol{\stackrel{{\scriptstyle\text{\tiny(3)}}}{{\Phi}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (3) end_ARG end_RELOP, while lines the one-phonon propagator. While a is accounted for within the SSCHA, the b is not. The derivation and expression of these diagrams are reported in Appendix D.

As was discussed by ref.[34], the SSCHA is limited to all possible Feynman diagrams in which each cut at time t𝑡titalic_t can intersect at most 2 phonon lines. In other words, the SSCHA cannot describe more than 2 photons propagating simultaneously throughout the system. While the one-phonon Green function does not have any of such diagrams at the lowest order of perturbation theory, making the response function correct in the perturbative limit, the same is not true for the free energy, where at the lowest order a diagram containing three simultaneous phonon lines contributes (Figure 2b). This translates into a wrong curvature (second derivative for b0𝑏0b\to 0italic_b → 0) for the free energy as a function of anharmonic parameter b𝑏bitalic_b. Indeed, the TDEP free energy also predicts the wrong curvature of the free energy, thus accounting for the two diagrams of Figure 2 with wrong prefactors. The error on the curvature of both SCHA and TDEP, as shown Figure 3, has an opposite sign for b0𝑏0b\to 0italic_b → 0, but it is not the same. For this reason, computing the Free energy as the average between SCHA and TDEP, while in some cases it may improve the absolute value of the free energy, still fails in reproducing the perturbative limit and also comes at the cost of violating the variational expression, which is particularly useful in computing the phase diagram by assuring a (partial) error cancellation when comparing free energies of different phases.

Refer to caption
Figure 3: Curvature of the free energy with respect to the third order coefficient b𝑏bitalic_b. SCHA and TDEP fail to reproduce the correct free energy curvature on the anharmonicity in the b0𝑏0b\to 0italic_b → 0 limit.

VI.2 The static linear response theory - second-order phase transitions

This section compares the SCHA and various TDEP flavors to describe the static response function. Static response functions are fundamental to predict second-order phase transitions as the susceptibility diverges at the critical point. The static susceptibility of the model in Eq. (49) is computed as described in Sec. IV: it is the derivative of the average atomic position upon the application of an external uniform force ξ𝜉\xiitalic_ξ (Eq. 31). The exact result has been evaluated numerically by computing the algorithmic differentiation of the average position Rξsubscriptdelimited-⟨⟩𝑅𝜉\left<R\right>_{\xi}⟨ italic_R ⟩ start_POSTSUBSCRIPT italic_ξ end_POSTSUBSCRIPT by integrating with the trapezoid method over the distribution:

p(R,ξ)=eβ[V(R)ξR]LLeβ[V(R)ξR]𝑝𝑅𝜉superscript𝑒𝛽delimited-[]𝑉𝑅𝜉𝑅superscriptsubscript𝐿𝐿superscript𝑒𝛽delimited-[]𝑉𝑅𝜉𝑅p(R,\xi)=\frac{e^{-\beta\left[V(R)-\xi R\right]}}{\int_{-L}^{L}e^{-\beta\left[% V(R)-\xi R\right]}}\qquaditalic_p ( italic_R , italic_ξ ) = divide start_ARG italic_e start_POSTSUPERSCRIPT - italic_β [ italic_V ( italic_R ) - italic_ξ italic_R ] end_POSTSUPERSCRIPT end_ARG start_ARG ∫ start_POSTSUBSCRIPT - italic_L end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_L end_POSTSUPERSCRIPT italic_e start_POSTSUPERSCRIPT - italic_β [ italic_V ( italic_R ) - italic_ξ italic_R ] end_POSTSUPERSCRIPT end_ARG (52)

where L𝐿Litalic_L is set to 10 a0times10bohr10\text{\,}\mathrm{\text{$a$}_{0}}start_ARG 10 end_ARG start_ARG times end_ARG start_ARG italic_a start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG to converge the result.

Refer to caption
Figure 4: Comparison of the static response function between TDEP, SCHA and the exact result. Panel a reports the susceptibility χ𝜒\chiitalic_χ as a function of the anharmonicity. Panel b shows the second derivative of χ𝜒\chiitalic_χ for the third-order anharmonic parameter b𝑏bitalic_b. Only SCHA and TDEP (second-order) present the correct b0𝑏0b\to 0italic_b → 0 limit, demonstrating how they are the only two approaches that correctly reproduce the perturbative result.

Figure 4 compares the static susceptibility from SCHA and two TDEP flavors with the exact result. As discussed in Sec. IV, the standard TDEP dynamical matrix 𝚽(T)superscript𝚽(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP (without any correction) matches the exact result independently on the degree of anharmonicity. This is a consequence of the fluctuation-dissipation theorem, as 𝚽(T)superscript𝚽(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP coincides with the inverse of the covariance matrix. Figure 4b shows the perturbative limit of the response function. The SCHA and the (second-order) TDEP static susceptibilities have the correct curvature versus the b𝑏bitalic_b parameter (perturbative limit). This was already demonstrated for the SSCHA in ref.[28] and, up to my knowledge, never proved for TDEP.

Refer to caption
Figure 5: Lowest order diagrammatic correction to the static response function. The triangle represents the three-phonon scattering vertex 𝚽(3)superscript𝚽(3)\boldsymbol{\stackrel{{\scriptstyle\text{\tiny(3)}}}{{\Phi}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (3) end_ARG end_RELOP, while a solid line is the phonon propagator. Panel a reports the tadpole diagram, responsible for the change of the centroids rdelimited-⟨⟩𝑟\left<r\right>⟨ italic_r ⟩ due to anharmonicity (real self-energy). Panel b displays the bubble diagram, whose dynamical equation is reported in Eq. 47. Both diagrams are quadratic in 𝚽(3)superscript𝚽(3)\boldsymbol{\stackrel{{\scriptstyle\text{\tiny(3)}}}{{\Phi}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (3) end_ARG end_RELOP, and the lowest order correction of anharmonicity to the static and dynamic susceptibilities.

The same Figure 4b also shows how two other commonly employed approaches for TDEP fail. As discussed in Sec. IV, TDEP force constant matrix 𝚽(T)superscript𝚽(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP is always positive definite, as it is equal to the position-position static correlator, even if the centroid positions are constrained to an unstable position. Therefore, exploiting 𝚽(T)superscript𝚽(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP to assess a structure’s stability is impossible. For this reason, a bubble diagram contribution is sometimes added to 𝚽(T)superscript𝚽(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP (Figure 5b) in the hope of describing a transition to a saddle point of the free energy landscape to disentangle the stability of a structure. For example, in ref.[20] the TDEP 𝚽(T)superscript𝚽(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP is corrected with the static self-energy of the bubble diagram 𝚷(ω0)𝚷𝜔0\boldsymbol{\Pi}(\omega\to 0)bold_Π ( italic_ω → 0 ) (Eq. 108) to assess the phase transition between rhombohedral and cubic \chGeTe. However, this procedure leads to wrong results as proved in Sec. IV: adding the extra bubble diagram leads to overcounting anharmonicity. The absence of a divergence in the bare TDEP susceptibility 𝚽(T)superscript𝚽(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP observed in ref.[20] is either a sign of a nondisplacive phase-transition in \chGeTe or a manifestation of the difficulties in converging TDEP results in the proximity of a phase-transition, with the latter being more likely as confirmed by a subsequent analysis from some of the same authors only relying on more expensive but exact MD correlation functions[35].

As we discussed for the free energy, fitting higher-order force-constant matrices (above second order) to minimize the least square error of forces leads to wrong results. In this case, the anharmonicity is undersampled, as the resulting second-order force constant matrix matches with the harmonic force-constant matrix (due to the negligible value of c𝑐citalic_c in Eq. 49). The only correction to evaluate the susceptibilities from the harmonic susceptibilities by TDEP comes from the bubble diagram (Figure 5b), thus missing the role played by the tadpole (Figure 5a) and underestimating the perturbative limit (Figure 4b).

VI.3 Dynamical spectral functions

One of the most promising applications of SSCHA and TDEP is the calculation of dynamical spectral functions, which play a dominant role in estimating the lattice thermal conductivity.

The exact dynamic response function is evaluated by numerically solving the Liouville equation (Eq. 4). The equilibrium solution is perturbed with a time-dependent potential V(x,t)=xδ(tt0)Δsuperscript𝑉𝑥𝑡𝑥𝛿𝑡subscript𝑡0ΔV^{\prime}(x,t)=x\delta(t-t_{0})\Deltaitalic_V start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ( italic_x , italic_t ) = italic_x italic_δ ( italic_t - italic_t start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ) roman_Δ, where δ(tt0)𝛿𝑡subscript𝑡0\delta(t-t_{0})italic_δ ( italic_t - italic_t start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ) is the Dirac’s delta function, here employed to excite all frequencies with the same amplitude. This results in a shift of the momentum p𝑝pitalic_p of the equilibrium distribution by a (small) finite value ΔΔ\Deltaroman_Δ

ρ(x,p,t0+)=ρ(x,p+Δ,t0)𝜌𝑥𝑝superscriptsubscript𝑡0𝜌𝑥𝑝Δsuperscriptsubscript𝑡0\rho(x,p,t_{0}^{+})=\rho(x,p+\Delta,t_{0}^{-})italic_ρ ( italic_x , italic_p , italic_t start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT + end_POSTSUPERSCRIPT ) = italic_ρ ( italic_x , italic_p + roman_Δ , italic_t start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT - end_POSTSUPERSCRIPT ) (53)
ρ(x,p,t0+)=exp[β(p+Δ)22mβV(x)]Z.𝜌𝑥𝑝superscriptsubscript𝑡0𝛽superscript𝑝Δ22𝑚𝛽𝑉𝑥𝑍\rho(x,p,t_{0}^{+})=\frac{\exp\left[-\beta\frac{\left(p+\Delta\right)^{2}}{2m}% -\beta V(x)\right]}{Z}.italic_ρ ( italic_x , italic_p , italic_t start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT + end_POSTSUPERSCRIPT ) = divide start_ARG roman_exp [ - italic_β divide start_ARG ( italic_p + roman_Δ ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 2 italic_m end_ARG - italic_β italic_V ( italic_x ) ] end_ARG start_ARG italic_Z end_ARG . (54)

Then, the response function is evaluated as the Fourier transform of the average position as a function of time (Eq. 7 and 8). The Liuville equation is solved with finite differences on a grid between 4 a0times-4bohr-4\text{\,}\mathrm{\text{$a$}_{0}}start_ARG - 4 end_ARG start_ARG times end_ARG start_ARG italic_a start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG and 4 a0times4bohr4\text{\,}\mathrm{\text{$a$}_{0}}start_ARG 4 end_ARG start_ARG times end_ARG start_ARG italic_a start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG discretized by Δx=0.05 a0Δ𝑥times0.05bohr\Delta x=$0.05\text{\,}\mathrm{\text{$a$}_{0}}$roman_Δ italic_x = start_ARG 0.05 end_ARG start_ARG times end_ARG start_ARG italic_a start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG, Δp=0.05 a01Δ𝑝times0.05bohr1\Delta p=$0.05\text{\,}{\mathrm{\text{$a$}_{0}}}^{-1}$roman_Δ italic_p = start_ARG 0.05 end_ARG start_ARG times end_ARG start_ARG power start_ARG italic_a start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG start_ARG - 1 end_ARG end_ARG, and Δt=2.5×103 Eh1Δ𝑡times2.5E-3hartree1\Delta t=$2.5\text{\times}{10}^{-3}\text{\,}{\mathrm{\text{$E$}_{\mathrm{h}}}}% ^{-1}$roman_Δ italic_t = start_ARG start_ARG 2.5 end_ARG start_ARG times end_ARG start_ARG power start_ARG 10 end_ARG start_ARG - 3 end_ARG end_ARG end_ARG start_ARG times end_ARG start_ARG power start_ARG italic_E start_POSTSUBSCRIPT roman_h end_POSTSUBSCRIPT end_ARG start_ARG - 1 end_ARG end_ARG, with a perturbation Δ=0.1 a01Δtimes0.1superscriptsubscript𝑎01\Delta=$0.1\text{\,}\mathrm{\text{$a$}_{0}}^{-1}$roman_Δ = start_ARG 0.1 end_ARG start_ARG times end_ARG start_ARG italic_a start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT end_ARG

Refer to caption
Figure 6: Dynamical spectral function of the 1D potential Eq. (49) where b=0.21 Eh/a03𝑏times0.21subscript𝐸hsuperscriptsubscript𝑎03b=$0.21\text{\,}\mathrm{\text{$E$}_{\mathrm{h}}}\mathrm{/}\mathrm{\text{$a$}_{% 0}}^{3}$italic_b = start_ARG 0.21 end_ARG start_ARG times end_ARG start_ARG italic_E start_POSTSUBSCRIPT roman_h end_POSTSUBSCRIPT / italic_a start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 3 end_POSTSUPERSCRIPT end_ARG and kBT=1 Ehsubscript𝑘𝐵𝑇times1hartreek_{B}T=$1\text{\,}\mathrm{\text{$E$}_{\mathrm{h}}}$italic_k start_POSTSUBSCRIPT italic_B end_POSTSUBSCRIPT italic_T = start_ARG 1 end_ARG start_ARG times end_ARG start_ARG italic_E start_POSTSUBSCRIPT roman_h end_POSTSUBSCRIPT end_ARG. All the spectral functions with TDEP and TD-SCHA have an imaginary smearing of η=4×103 Eh𝜂times4E-3hartree\eta=$4\text{\times}{10}^{-3}\text{\,}\mathrm{\text{$E$}_{\mathrm{h}}}$italic_η = start_ARG start_ARG 4 end_ARG start_ARG times end_ARG start_ARG power start_ARG 10 end_ARG start_ARG - 3 end_ARG end_ARG end_ARG start_ARG times end_ARG start_ARG italic_E start_POSTSUBSCRIPT roman_h end_POSTSUBSCRIPT end_ARG. The vertical dashed (dash-dot) lines represent the pole of the static TDEP (SCHA) response function.

Figure 6 reports the comparison between the exact spectral function and the one obtained by TDEP, TD-SCHA, and the modified TDEP proposed by this work for b=0.21 Eh/a03𝑏times0.21subscript𝐸hsuperscriptsubscript𝑎03b=$0.21\text{\,}\mathrm{\text{$E$}_{\mathrm{h}}}\mathrm{/}\mathrm{\text{$a$}_{% 0}}^{3}$italic_b = start_ARG 0.21 end_ARG start_ARG times end_ARG start_ARG italic_E start_POSTSUBSCRIPT roman_h end_POSTSUBSCRIPT / italic_a start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 3 end_POSTSUPERSCRIPT end_ARG. The TDEP spectral function is evaluated by adding to the static response the dynamic self-energy contribution of the bubble diagram (Figure 5b). The modified TDEP spectral function differs from the standard TDEP as the static (ω0𝜔0\omega\to 0italic_ω → 0) limit of the same bubble diagram is removed from the total self-energy, as explained in Sec. V, Eq. (48).

As can be seen, the real part of the bubble self-energy, emerging by Krames-Kronig relationships, produces a global red-shift of the frequencies, leading to a worse agreement than TD-SCHA with the exact result. Another interesting feature depicted in Figure 6 is the distance between the TD-SCHA and the TDEP spectral function peak and their respective static susceptibility pole. This difference originates from the real part of the bubble diagram self-energy that depends on frequency, and it is smaller at finite frequencies rather than at ω0𝜔0\omega\to 0italic_ω → 0.

Refer to caption
Figure 7: Dynamical frequency computed as the pole of the spectral function σ(ω)𝜎𝜔\sigma(\omega)italic_σ ( italic_ω ) (Figure 6) comparing different approximations (potential reported in Eq. 49) Panel a: Poles of the spectral functions. Panel b: second-derivative of the poles as a function of the anharmonicity b𝑏bitalic_b. Lines matching the poles for b0𝑏0b\to 0italic_b → 0 indicate a correct perturbative limit.

To further investigate the discrepancies with the exact results of the various approximations, Figure 7a compares the average position of the spectral peak (the pole of the spectral function) as a function of the third order anharmonicity (the b𝑏bitalic_b parameter). As always, all the methods give the exact result in the harmonic limit (b0𝑏0b\to 0italic_b → 0). However, as we introduce anharmonicity, only the TD-SCHA and the modified TDEP provide the correct perturbative coefficient. This is well shown by Figure 7b, where the second derivative of the dynamical average frequency with b𝑏bitalic_b is reported. The standard TDEP approach violates the perturbative limit by double counting the bubble diagram in Figure 5b, which is already accounted for at the static level. The agreement of TDEP is, in fact, much improved if the static limit (ω0𝜔0\omega\to 0italic_ω → 0) of the bubble diagram is removed from the real part of the self-energy and then added back with the full frequency dependence, as done in the modified TDEP (Eq. 48). Pure TDEP dressed with the bubble diagram violates the perturbative regime. Notably, the TDEP computed using the full fit of the potential energy landscape up to the third order performs even worse than the harmonic approximation. Despite this important discrepancy in the position of the dynamical vibrational frequency, all of these methods still give the correct perturbative value for the imaginary part of the self-energy, thus predicting reasonable values for the phonon lifetimes. In fact, phonon lifetimes depend on the imaginary part of the bubble diagram, which is nonzero only at finite frequency. This means that all the approaches discussed so far correctly evaluate the imaginary part of the self-energy in the perturbative scheme, as it is equivalent to the Fermi Golden rule.

This is probably the reason for the success of all different implementations of TDEP in computing thermal transport properties, where most of the contribution is given by the phonon lifetimes related to the imaginary part of the self-energy. However, in strongly anharmonic systems outside the perturbative regime, these differences in the phonon frequencies arising from the real part of the self-energy may hamper the accurate estimation of thermal transport properties, and the correction proposed in Eq. (48) becomes essential.

VII Self-Consistent Phonons

The Self-Consistent Phonons (SCP) approach originates from the many-body theory and has a very long history[6]; it is the phononic equivalent of Hartree-Fock for electrons. It solves the Dyson equation for the phonons’ Green function self-consistently by truncating the self-energy to a given order. The method comes in multiple flavors depending on the processes accounted for in the self-energy.

The simplest and most common implementation of SCP is truncating the self-energy only to the loop diagram (Figure 8a).

Refer to caption
Figure 8: Anharmonic diagrams that can be accounted for in the SCP theory. Panel a reports the loop diagram: the lowest order correction of the four-phonon scattering vertex 𝚽(4)superscript𝚽(4)\boldsymbol{\stackrel{{\scriptstyle\text{\tiny(4)}}}{{\Phi}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (4) end_ARG end_RELOP. Panel b shows how phonon-phonon scattering vertices can be re-normalized, accounting for higher-order terms. Tadpole-like corrections appended to one vertex account for the change of average position due to third-order anharmonicity, while a loop connecting two vertices accounts for the effect that higher-order terms of the phonon-phonon interaction have when taking the average (Eq. 41 and 42)

The self-consistency originates from the propagator that loops on the four-phonon scattering matrix 𝚽(4)superscript𝚽(4)\boldsymbol{\stackrel{{\scriptstyle\text{\tiny(4)}}}{{\Phi}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (4) end_ARG end_RELOP, which depends on the t0+𝑡superscript0t\to 0^{+}italic_t → 0 start_POSTSUPERSCRIPT + end_POSTSUPERSCRIPT phonons’ Green function:

Φab(SCP)=Φab(0)+Πab(𝚽(SCP))superscriptsubscriptΦ𝑎𝑏(SCP)subscriptsuperscriptΦ0𝑎𝑏subscriptΠ𝑎𝑏superscript𝚽(SCP)\Phi_{ab}^{\text{\tiny(SCP)}}=\Phi^{(0)}_{ab}+\Pi_{ab}(\boldsymbol{\Phi}^{% \text{\tiny(SCP)}})roman_Φ start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT start_POSTSUPERSCRIPT (SCP) end_POSTSUPERSCRIPT = roman_Φ start_POSTSUPERSCRIPT ( 0 ) end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT + roman_Π start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT ( bold_Φ start_POSTSUPERSCRIPT (SCP) end_POSTSUPERSCRIPT ) (55)
Πab(𝚽(SCP))=12cdΦabcd(4)(Rcc)(Rdd)𝚽(SCP).subscriptΠ𝑎𝑏superscript𝚽(SCP)12subscript𝑐𝑑subscriptsuperscriptΦ(4)𝑎𝑏𝑐𝑑subscriptdelimited-⟨⟩subscript𝑅𝑐subscript𝑐subscript𝑅𝑑subscript𝑑superscript𝚽(SCP)\Pi_{ab}(\boldsymbol{\Phi}^{\text{\tiny(SCP)}})=\frac{1}{2}\sum_{cd}\stackrel{% {\scriptstyle\text{\tiny(4)}}}{{\Phi}}_{abcd}\left<(R_{c}-\mathcal{R}_{c})(R_{% d}-\mathcal{R}_{d})\right>_{\boldsymbol{\Phi}^{\text{\tiny(SCP)}}}.roman_Π start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT ( bold_Φ start_POSTSUPERSCRIPT (SCP) end_POSTSUPERSCRIPT ) = divide start_ARG 1 end_ARG start_ARG 2 end_ARG ∑ start_POSTSUBSCRIPT italic_c italic_d end_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (4) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b italic_c italic_d end_POSTSUBSCRIPT ⟨ ( italic_R start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT - caligraphic_R start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT ) ( italic_R start_POSTSUBSCRIPT italic_d end_POSTSUBSCRIPT - caligraphic_R start_POSTSUBSCRIPT italic_d end_POSTSUBSCRIPT ) ⟩ start_POSTSUBSCRIPT bold_Φ start_POSTSUPERSCRIPT (SCP) end_POSTSUPERSCRIPT end_POSTSUBSCRIPT . (56)

SCP was successfully applied in solid helium[7], where, due to the high symmetry of the structure, only the frequencies of the 𝚽(SCP)superscript𝚽(SCP)\boldsymbol{\Phi}^{\text{\tiny(SCP)}}bold_Φ start_POSTSUPERSCRIPT (SCP) end_POSTSUPERSCRIPT must be updated in the self-consistent cycle. Interestingly, this approach reduces itself to the SCHA in a crystal where all the lattice positions are constrained by symmetry (eliminating the tadpole diagram in Figure 5a), and if the interatomic potential is at most quartic. However, even in this limit, the phonons determined by SCP considering only the loop still violate the perturbative limit as no symmetry argument can cancel out the bubble diagram (Figure 5b). For similarity with perturbation theory, the bubble diagram is often added a posteriori after the self-consistency of the loop is achieved. This has been employed for the first time to study the phonon spectra of solid neon[36], and more recently employed, e.g., in the simulation of \chSrTiO3 cubic phase[15], where all the parameters of the lattice are constrained by the Pm3¯m𝑃𝑚¯3𝑚Pm\bar{3}mitalic_P italic_m over¯ start_ARG 3 end_ARG italic_m symmetry group, thus leading to a result that correctly reproduces the perturbative limit both in 𝚽(4)superscript𝚽(4)\boldsymbol{\stackrel{{\scriptstyle\text{\tiny(4)}}}{{\Phi}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (4) end_ARG end_RELOP and in 𝚽(3)superscript𝚽(3)\boldsymbol{\stackrel{{\scriptstyle\text{\tiny(3)}}}{{\Phi}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (3) end_ARG end_RELOP. Indeed, the SCP method can be easily improved to add the contribution of diagram Figure 2b also a posteriori for the calculation of the free energy[37], and to relax the hypothesis of crystal lattice position fully constrained by symmetry[38] by adding the tadpole in the expression of the self-consistent self-energy (Figure 5a) and by renormalizing the anharmonic scattering vertices based on the relaxed structure (Figure 8b) by dressing high-order scattering vertices with tadpole diagrams.

Given its diagrammatic origin, this method is built on a rigorous perturbative expansion of the solution with anharmonicity. Therefore, it leads to a result that matches perturbation theory up to any arbitrary order, thus beating the limits of TDEP and SCHA encountered in this work. The other side of the medal is that correcting high-order terms comes at an exponentially high computational cost, thus limiting its practical applicability only to describe the first-order corrections.

An intrinsic limitation of the SCP method is that it remains bound to the Taylor expansion of the interatomic potential, which becomes significantly more expensive as the order increases. Moreover, the SCP Green’s function and susceptibilities do not emerge from a variational approach (except when the self-energy is truncated to reproduce the SSCHA, for which the two methods coincide). This has two consequences that must be considered carefully when employing this methodology: i) nonvariational free energy does not necessarily lead to error cancellation across different phases, and increasing the self-energy’s order does not necessarily convert into a more accurate phase diagram. ii) a nonvariational self-energy leads to sum rule violations. An example of the sum rule violation of the first-order SCP theory occurs in freestanding 2D materials, where the truncation of the self-energy leads to a linear dispersion of the flexural mode around the center of the Brillouin zone. In contrast, by symmetry arguments, the exact solution must exhibit a quadratic dispersion[32].

VIII Conclusions

This work systematically compared different methodologies to simulate strongly anharmonic crystals. The first-principle grounds for the TDEP introduced here shed new light on the different TDEP implementations, providing a unique receipt to perform accurate simulations. To summarize them: i) never fit beyond the second-order force constant. ii) employ a progressive fit over residual forces to extract higher-order contributions. iii) Always use a least-square cost function for fitting. iv) Do not correct the static-response function. v) Any process considered for evaluating phonon lifetimes should also be removed in the limit ω0𝜔0\omega\to 0italic_ω → 0 from the real part of the self-energy (as reported in Eq. 48).

We unveiled how SSCHA and TDEP share a common origin as variational principles on the free energy and explained the origin of the observed discrepancies[22]. Both of them fail to reproduce the perturbative limit of the free energy. While it is possible to correct the SSCHA and SCP a posteriori[37], this violates the variational principle, which may compromise the accuracy of a phase diagram estimation.

Despite the failure of available TDEP implementations in reproducing the perturbative limit of the phonon energies, reasonable results can still be obtained for the thermal transport properties, as the dominant contribution arises from the phonon lifetimes, correct in the perturbative limit regardless of the kind of TDEP implementation adopted. Indeed, this study reveals how much more care must be taken for strongly anharmonic crystals, where the real part of the phonon-phonon self-energy may play a crucial role, as it occurs when predicting the outcome of spectroscopy measurements, where the TD-SCHA is still the most reliable approximate method available[39, 40, 41], especially for correcting anharmonicity beyond the second-order while satisfying all sum rules of the crystal[32].

Acknowledgments

I acknowledge Giovanni Caldarelli, Antonio Siciliano, and Francesco Mauri for our helpful discussions.

Appendix A Proof of the TDEP method

While introduced long ago, a rigorous formal derivation of the TDEP method is still difficult to find in the literature, as it is typically presented as a generic fit of the potential energy landscape on a finite temperature MD run. Consequently, the TDEP method comes with many flavors, such as the order of the temperature-dependent force constants and the cost function employed in the fit, usually chosen empirically. For this reason, here we derive the TDEP method from the variational principle of the free energy presented in the main text, namely Eq. (24), which defines a unique and precise strategy in which the fit on the MD trajectory must be performed. The 𝓡(T)superscript𝓡(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\mathcal{R}}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP and 𝚽(T)superscript𝚽(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP parameters maximizing the free energy satisfy Eq. (24). For the centroids 𝓡(T)superscript𝓡(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\mathcal{R}}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP, the only term in the TDEP free energy depending on it is the auxiliary potential 𝒱𝓡(T),𝚽(T)(𝒓)subscript𝒱superscript𝓡(T)superscript𝚽(T)𝒓\mathcal{V}_{{\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\mathcal{R% }}}}},{\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}}(\bm{r})caligraphic_V start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG bold_caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP , start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP end_POSTSUBSCRIPT ( bold_italic_r ), from which we get the condition

a(T)ij(rii(T))Φij(T)(rjj(T))MD=0,\frac{\partial}{\partial\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\mathcal{R}}% }_{a}}\sum_{ij}\left<(r_{i}-\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\mathcal% {R}}}_{i})\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\Phi}}_{ij}(r_{j}-% \stackrel{{\scriptstyle\text{\tiny(T)}}}{{\mathcal{R}}}_{j})\right>_{\text{MD}% }=0,divide start_ARG ∂ end_ARG start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT end_ARG ∑ start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT ⟨ ( italic_r start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ) start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT ( italic_r start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) ⟩ start_POSTSUBSCRIPT MD end_POSTSUBSCRIPT = 0 , (57)

which trivially leads to

a(T)=raMD,\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\mathcal{R}}}_{a}=\left<r_{a}\right>% _{\text{MD}},start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT = ⟨ italic_r start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT ⟩ start_POSTSUBSCRIPT MD end_POSTSUBSCRIPT , (58)

corresponding to Eq. (25). A bit more complex is the equation for 𝚽(T)superscript𝚽(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP, as both 𝒱𝓡(T),𝚽(T)(𝒓)subscript𝒱superscript𝓡(T)superscript𝚽(T)𝒓\mathcal{V}_{{\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\mathcal{R% }}}}},{\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}}(\bm{r})caligraphic_V start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG bold_caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP , start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP end_POSTSUBSCRIPT ( bold_italic_r ) and the harmonic free energy F𝚽(T)subscript𝐹superscript𝚽(T)F_{{\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}}italic_F start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP end_POSTSUBSCRIPT depend on it. Let us start with the derivative of the auxiliary harmonic free energy, which can be computed from the partition function as

F𝚽(T)=1βln𝒵𝚽(T).subscript𝐹superscript𝚽(T)1𝛽subscript𝒵superscript𝚽(T)F_{\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}=-\frac{1}{% \beta}\ln{\mathcal{Z}}_{\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{% \Phi}}}}.italic_F start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP end_POSTSUBSCRIPT = - divide start_ARG 1 end_ARG start_ARG italic_β end_ARG roman_ln caligraphic_Z start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP end_POSTSUBSCRIPT . (59)

By replacing Eq. (2) into Eq. (59), we get

F𝚽(T)=kBT[12ln(det𝚽(T))i=13Nln(2πkBTmi)].F_{\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}=k_{B}T\left[% \frac{1}{2}\ln\left(\det{\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol% {\Phi}}}}\right)-\sum_{i=1}^{3N}\ln\left(2\pi k_{B}T\sqrt{m_{i}}\right)\right].italic_F start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP end_POSTSUBSCRIPT = italic_k start_POSTSUBSCRIPT italic_B end_POSTSUBSCRIPT italic_T [ divide start_ARG 1 end_ARG start_ARG 2 end_ARG roman_ln ( roman_det start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP ) - ∑ start_POSTSUBSCRIPT italic_i = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 3 italic_N end_POSTSUPERSCRIPT roman_ln ( 2 italic_π italic_k start_POSTSUBSCRIPT italic_B end_POSTSUBSCRIPT italic_T square-root start_ARG italic_m start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_ARG ) ] . (60)

Thus, the derivative of the free energy on 𝚽(T)superscript𝚽(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP only depends on the first term

F𝚽(T)Φab(T)=kBT2Φab(T)ln(det𝚽(T))\frac{\partial F_{\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}% }}}{\partial\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\Phi}}_{ab}}=\frac{k_{B}% T}{2}\frac{\partial}{\partial\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\Phi}}_% {ab}}\ln\left(\det{\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}% }}}\right)divide start_ARG ∂ italic_F start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP end_POSTSUBSCRIPT end_ARG start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT end_ARG = divide start_ARG italic_k start_POSTSUBSCRIPT italic_B end_POSTSUBSCRIPT italic_T end_ARG start_ARG 2 end_ARG divide start_ARG ∂ end_ARG start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT end_ARG roman_ln ( roman_det start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP ) (61)

We can now exploit the definition of the determinant. Let λksubscript𝜆𝑘\lambda_{k}italic_λ start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT be the k𝑘kitalic_k-th eigenvalue of the 𝚽(T)superscript𝚽(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP symmetric matrix, and ekisuperscriptsubscript𝑒𝑘𝑖e_{k}^{i}italic_e start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_i end_POSTSUPERSCRIPT be the i𝑖iitalic_i-th component of the corresponding k𝑘kitalic_k-th eigenvector, the determinant is the product of the eigenvalues

Φab(T)ln(det𝚽(T))\displaystyle\frac{\partial}{\partial\stackrel{{\scriptstyle\text{\tiny(T)}}}{% {\Phi}}_{ab}}\ln\left(\det{\stackrel{{\scriptstyle\text{\tiny(T)}}}{{% \boldsymbol{\Phi}}}}\right)divide start_ARG ∂ end_ARG start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT end_ARG roman_ln ( roman_det start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP ) =Φab(T)ln(k=13Nλk)absentsubscriptsuperscriptΦ(T)𝑎𝑏absentsuperscriptsubscriptproduct𝑘13𝑁subscript𝜆𝑘\displaystyle=\frac{\partial}{\partial\stackrel{{\scriptstyle\text{\tiny(T)}}}% {{\Phi}}_{ab}}\ln\left(\prod_{k=1}^{3N}\lambda_{k}\right)= divide start_ARG ∂ end_ARG start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT end_ARG roman_ln ( ∏ start_POSTSUBSCRIPT italic_k = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 3 italic_N end_POSTSUPERSCRIPT italic_λ start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT )
=Φab(T)k=13NlnλkabsentsubscriptsuperscriptΦ(T)𝑎𝑏absentsuperscriptsubscript𝑘13𝑁subscript𝜆𝑘\displaystyle=\frac{\partial}{\partial\stackrel{{\scriptstyle\text{\tiny(T)}}}% {{\Phi}}_{ab}}\sum_{k=1}^{3N}\ln\lambda_{k}= divide start_ARG ∂ end_ARG start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT end_ARG ∑ start_POSTSUBSCRIPT italic_k = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 3 italic_N end_POSTSUPERSCRIPT roman_ln italic_λ start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT
=k=13N1λkλkΦab(T)absentsuperscriptsubscript𝑘13𝑁1subscript𝜆𝑘subscript𝜆𝑘subscriptsuperscriptΦ(T)𝑎𝑏absent\displaystyle=\sum_{k=1}^{3N}\frac{1}{\lambda_{k}}\frac{\partial\lambda_{k}}{% \partial\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\Phi}}_{ab}}= ∑ start_POSTSUBSCRIPT italic_k = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 3 italic_N end_POSTSUPERSCRIPT divide start_ARG 1 end_ARG start_ARG italic_λ start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT end_ARG divide start_ARG ∂ italic_λ start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT end_ARG start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT end_ARG (62)

The derivative of the k𝑘kitalic_k-th eigenvalue on the Matrix element Φab(T)subscriptsuperscriptΦ(T)𝑎𝑏\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\Phi}}_{ab}start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT can be evaluated within perturbation theory

λkΦab(T)=ekaekb,subscript𝜆𝑘subscriptsuperscriptΦ(T)𝑎𝑏absentsuperscriptsubscript𝑒𝑘𝑎superscriptsubscript𝑒𝑘𝑏\frac{\partial\lambda_{k}}{\partial\stackrel{{\scriptstyle\text{\tiny(T)}}}{{% \Phi}}_{ab}}=e_{k}^{a}e_{k}^{b},divide start_ARG ∂ italic_λ start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT end_ARG start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT end_ARG = italic_e start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_a end_POSTSUPERSCRIPT italic_e start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_b end_POSTSUPERSCRIPT , (63)
Φab(T)ln(det𝚽(T))=k=13Nekaekbλk.\frac{\partial}{\partial\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\Phi}}_{ab}}% \ln\left(\det{\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}% \right)=\sum_{k=1}^{3N}\frac{e_{k}^{a}e_{k}^{b}}{\lambda_{k}}.divide start_ARG ∂ end_ARG start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT end_ARG roman_ln ( roman_det start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP ) = ∑ start_POSTSUBSCRIPT italic_k = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 3 italic_N end_POSTSUPERSCRIPT divide start_ARG italic_e start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_a end_POSTSUPERSCRIPT italic_e start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_b end_POSTSUPERSCRIPT end_ARG start_ARG italic_λ start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT end_ARG . (64)

The right-hand side of Eq. (64) is the inverse of the 𝚽(T)superscript𝚽(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP matrix decomposed on the basis that diagonalizes 𝚽(T)superscript𝚽(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP.

Φab(T)ln(det𝚽(T))=(𝚽(T)1)ab\frac{\partial}{\partial\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\Phi}}_{ab}}% \ln\left(\det{\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}% \right)=\left({\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}^% {-1}\right)_{ab}divide start_ARG ∂ end_ARG start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT end_ARG roman_ln ( roman_det start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP ) = ( start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT ) start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT (65)

Thus, we get

F𝚽(T)Φab(T)=kBT2(𝚽(T)1)absubscript𝐹superscript𝚽(T)subscriptsuperscriptΦ(T)𝑎𝑏absentsubscript𝑘𝐵𝑇2subscriptsuperscriptsuperscript𝚽(T)1𝑎𝑏\frac{\partial F_{\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}% }}}{\partial\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\Phi}}_{ab}}=\frac{k_{B}% T}{2}\left({\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}^{-1% }\right)_{ab}divide start_ARG ∂ italic_F start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP end_POSTSUBSCRIPT end_ARG start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT end_ARG = divide start_ARG italic_k start_POSTSUBSCRIPT italic_B end_POSTSUBSCRIPT italic_T end_ARG start_ARG 2 end_ARG ( start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT ) start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT (66)

The other part of the gradient comes from the average of the auxiliary Harmonic potential

F𝚽(T)Φab(T)𝒱𝓡(T),𝚽(T)MDΦab(T)=0subscript𝐹superscript𝚽(T)subscriptsuperscriptΦ(T)𝑎𝑏absentsubscriptexpectationsubscript𝒱superscript𝓡(T)superscript𝚽(T)MDsubscriptsuperscriptΦ(T)𝑎𝑏absent0\frac{\partial F_{\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}% }}}{\partial\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\Phi}}_{ab}}-\frac{% \partial\braket{\mathcal{V}_{{\stackrel{{\scriptstyle\text{\tiny(T)}}}{{% \boldsymbol{\mathcal{R}}}}},{\stackrel{{\scriptstyle\text{\tiny(T)}}}{{% \boldsymbol{\Phi}}}}}}_{\text{MD}}}{\partial\stackrel{{\scriptstyle\text{\tiny% (T)}}}{{\Phi}}_{ab}}=0divide start_ARG ∂ italic_F start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP end_POSTSUBSCRIPT end_ARG start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT end_ARG - divide start_ARG ∂ ⟨ start_ARG caligraphic_V start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG bold_caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP , start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP end_POSTSUBSCRIPT end_ARG ⟩ start_POSTSUBSCRIPT MD end_POSTSUBSCRIPT end_ARG start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT end_ARG = 0 (67)

From this we get

kBT2(𝚽(T)1)ab12(raa(T))(rbb(T))MD=0,\frac{k_{B}T}{2}\left({\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{% \Phi}}}}^{-1}\right)_{ab}-\frac{1}{2}\left<(r_{a}-\stackrel{{\scriptstyle\text% {\tiny(T)}}}{{\mathcal{R}}}_{a})(r_{b}-\stackrel{{\scriptstyle\text{\tiny(T)}}% }{{\mathcal{R}}}_{b})\right>_{\text{MD}}=0,divide start_ARG italic_k start_POSTSUBSCRIPT italic_B end_POSTSUBSCRIPT italic_T end_ARG start_ARG 2 end_ARG ( start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT ) start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT - divide start_ARG 1 end_ARG start_ARG 2 end_ARG ⟨ ( italic_r start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT ) ( italic_r start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ) ⟩ start_POSTSUBSCRIPT MD end_POSTSUBSCRIPT = 0 , (68)

and consequently Eq. (26).

A.1 The TDEP fit

Here, the equivalence of the TDEP definition in Eq. (26) with the fit procedure of the potential energy surface (Eq. 28) is demonstrated. The condition minimizing Eq. (28) is

a(T)=bcΦabΦbcrccMD=0,subscriptsuperscript(T)𝑎absentsubscript𝑏𝑐subscriptΦ𝑎𝑏subscriptΦ𝑏𝑐subscriptdelimited-⟨⟩subscript𝑟𝑐subscript𝑐MD0\frac{\partial\mathcal{L}}{\partial\stackrel{{\scriptstyle\text{\tiny(T)}}}{{% \mathcal{R}}}_{a}}=-\sum_{bc}\Phi_{ab}\Phi_{bc}\left<r_{c}-\mathcal{R}_{c}% \right>_{\text{MD}}=0,divide start_ARG ∂ caligraphic_L end_ARG start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT end_ARG = - ∑ start_POSTSUBSCRIPT italic_b italic_c end_POSTSUBSCRIPT roman_Φ start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT roman_Φ start_POSTSUBSCRIPT italic_b italic_c end_POSTSUBSCRIPT ⟨ italic_r start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT - caligraphic_R start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT ⟩ start_POSTSUBSCRIPT MD end_POSTSUBSCRIPT = 0 , (69)

from which we get the Eq. (25):

raMD=a(T).subscriptdelimited-⟨⟩subscript𝑟𝑎MDsubscriptsuperscript(T)𝑎\left<r_{a}\right>_{\text{MD}}=\stackrel{{\scriptstyle\text{\tiny(T)}}}{{% \mathcal{R}}}_{a}.⟨ italic_r start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT ⟩ start_POSTSUBSCRIPT MD end_POSTSUBSCRIPT = start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT . (70)

The equation for 𝚽(T)superscript𝚽(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP is a bit more involved:

Φcd(T)=2[fc+bΦcb(T)(rbb(T))](rdd(T))MD=0\frac{\partial\mathcal{L}}{\partial\stackrel{{\scriptstyle\text{\tiny(T)}}}{{% \Phi}}_{cd}}=2\left<\left[f_{c}+\sum_{b}\stackrel{{\scriptstyle\text{\tiny(T)}% }}{{\Phi}}_{cb}(r_{b}-\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\mathcal{R}}}_% {b})\right](r_{d}-\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\mathcal{R}}}_{d})% \right>_{\text{MD}}=0divide start_ARG ∂ caligraphic_L end_ARG start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_c italic_d end_POSTSUBSCRIPT end_ARG = 2 ⟨ [ italic_f start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT + ∑ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_c italic_b end_POSTSUBSCRIPT ( italic_r start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ) ] ( italic_r start_POSTSUBSCRIPT italic_d end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_d end_POSTSUBSCRIPT ) ⟩ start_POSTSUBSCRIPT MD end_POSTSUBSCRIPT = 0 (71)
bΦcb(T)(rbb(T))(rdd(T))MD=fc(rdd(T))MD\sum_{b}\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\Phi}}_{cb}\left<(r_{b}-% \stackrel{{\scriptstyle\text{\tiny(T)}}}{{\mathcal{R}}}_{b})(r_{d}-\stackrel{{% \scriptstyle\text{\tiny(T)}}}{{\mathcal{R}}}_{d})\right>_{\text{MD}}=-\left<f_% {c}(r_{d}-\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\mathcal{R}}}_{d})\right>_% {\text{MD}}∑ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_c italic_b end_POSTSUBSCRIPT ⟨ ( italic_r start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ) ( italic_r start_POSTSUBSCRIPT italic_d end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_d end_POSTSUBSCRIPT ) ⟩ start_POSTSUBSCRIPT MD end_POSTSUBSCRIPT = - ⟨ italic_f start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT ( italic_r start_POSTSUBSCRIPT italic_d end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_d end_POSTSUBSCRIPT ) ⟩ start_POSTSUBSCRIPT MD end_POSTSUBSCRIPT (72)
bΦcb(T)(rbb(T))(rdd(T))MD=dr(rdd(T))VrceβVZ.\sum_{b}\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\Phi}}_{cb}\left<(r_{b}-% \stackrel{{\scriptstyle\text{\tiny(T)}}}{{\mathcal{R}}}_{b})(r_{d}-\stackrel{{% \scriptstyle\text{\tiny(T)}}}{{\mathcal{R}}}_{d})\right>_{\text{MD}}=\int dr(r% _{d}-\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\mathcal{R}}}_{d})\frac{% \partial V}{\partial r_{c}}\frac{e^{-\beta V}}{Z}.∑ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_c italic_b end_POSTSUBSCRIPT ⟨ ( italic_r start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ) ( italic_r start_POSTSUBSCRIPT italic_d end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_d end_POSTSUBSCRIPT ) ⟩ start_POSTSUBSCRIPT MD end_POSTSUBSCRIPT = ∫ italic_d italic_r ( italic_r start_POSTSUBSCRIPT italic_d end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_d end_POSTSUBSCRIPT ) divide start_ARG ∂ italic_V end_ARG start_ARG ∂ italic_r start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT end_ARG divide start_ARG italic_e start_POSTSUPERSCRIPT - italic_β italic_V end_POSTSUPERSCRIPT end_ARG start_ARG italic_Z end_ARG . (73)

Integrating by parts the last term, we get

fc(rdd(T))MD=kBTδcd.-\left<f_{c}(r_{d}-\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\mathcal{R}}}_{d}% )\right>_{\text{MD}}=k_{B}T\delta_{cd}.- ⟨ italic_f start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT ( italic_r start_POSTSUBSCRIPT italic_d end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_d end_POSTSUBSCRIPT ) ⟩ start_POSTSUBSCRIPT MD end_POSTSUBSCRIPT = italic_k start_POSTSUBSCRIPT italic_B end_POSTSUBSCRIPT italic_T italic_δ start_POSTSUBSCRIPT italic_c italic_d end_POSTSUBSCRIPT . (74)

This is a particular case of the generalized equipartition theorem, stating

HqkqhMD=δhkkBT,subscriptdelimited-⟨⟩𝐻subscript𝑞𝑘subscript𝑞MDsubscript𝛿𝑘subscript𝑘𝐵𝑇\left<\frac{\partial H}{\partial q_{k}}q_{h}\right>_{\text{MD}}=\delta_{hk}k_{% B}T,⟨ divide start_ARG ∂ italic_H end_ARG start_ARG ∂ italic_q start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT end_ARG italic_q start_POSTSUBSCRIPT italic_h end_POSTSUBSCRIPT ⟩ start_POSTSUBSCRIPT MD end_POSTSUBSCRIPT = italic_δ start_POSTSUBSCRIPT italic_h italic_k end_POSTSUBSCRIPT italic_k start_POSTSUBSCRIPT italic_B end_POSTSUBSCRIPT italic_T ,

where, qksubscript𝑞𝑘q_{k}italic_q start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT and qhsubscript𝑞q_{h}italic_q start_POSTSUBSCRIPT italic_h end_POSTSUBSCRIPT are two canonical variables, and H𝐻Hitalic_H is the real Hamiltonian of the system. With this equality, we get

bΦcb(T)(rbb(T))(rdd(T))MD=kBTδcd\sum_{b}\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\Phi}}_{cb}\left<(r_{b}-% \stackrel{{\scriptstyle\text{\tiny(T)}}}{{\mathcal{R}}}_{b})(r_{d}-\stackrel{{% \scriptstyle\text{\tiny(T)}}}{{\mathcal{R}}}_{d})\right>_{\text{MD}}=k_{B}T% \delta_{cd}∑ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_c italic_b end_POSTSUBSCRIPT ⟨ ( italic_r start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ) ( italic_r start_POSTSUBSCRIPT italic_d end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_d end_POSTSUBSCRIPT ) ⟩ start_POSTSUBSCRIPT MD end_POSTSUBSCRIPT = italic_k start_POSTSUBSCRIPT italic_B end_POSTSUBSCRIPT italic_T italic_δ start_POSTSUBSCRIPT italic_c italic_d end_POSTSUBSCRIPT (75)

Which is satisfied by the expression of 𝚽(T)superscript𝚽(T){\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (T) end_ARG end_RELOP that maximizes the TDEP free energy (Eq. 26).

Appendix B Static fluctuation-dissipation theorem

Here, we report the proof of the textbook fluctuation-dissipation theorem in the static limit and discuss why it can be applied to TDEP but not to the SSCHA.

Consider a uniform force 𝝃𝝃\bm{\xi}bold_italic_ξ perturbing the system. The new equilibrium state solves the modified Hamiltonian

H(𝝃)=Hbξb(rbb(T)).H^{\prime}(\bm{\xi})=H-\sum_{b}\xi_{b}(r_{b}-\stackrel{{\scriptstyle\text{% \tiny(T)}}}{{\mathcal{R}}}_{b}).italic_H start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ( bold_italic_ξ ) = italic_H - ∑ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT italic_ξ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ( italic_r start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ) . (76)

The new average position of the a𝑎aitalic_a-th atom is

raH(𝝃)=d3Nrd3Npeβ[Hbξb(rbb(T))]rad3Nrd3Npeβ[Hbξb(rbb(T))]\braket{r_{a}}_{H^{\prime}(\bm{\xi})}=\frac{\int d^{3N}r\,d^{3N}pe^{-\beta% \left[H-\sum_{b}\xi_{b}(r_{b}-\stackrel{{\scriptstyle\text{\tiny(T)}}}{{% \mathcal{R}}}_{b})\right]}r_{a}}{\int d^{3N}r\,d^{3N}pe^{-\beta\left[H-\sum_{b% }\xi_{b}(r_{b}-\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\mathcal{R}}}_{b})% \right]}}⟨ start_ARG italic_r start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT end_ARG ⟩ start_POSTSUBSCRIPT italic_H start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ( bold_italic_ξ ) end_POSTSUBSCRIPT = divide start_ARG ∫ italic_d start_POSTSUPERSCRIPT 3 italic_N end_POSTSUPERSCRIPT italic_r italic_d start_POSTSUPERSCRIPT 3 italic_N end_POSTSUPERSCRIPT italic_p italic_e start_POSTSUPERSCRIPT - italic_β [ italic_H - ∑ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT italic_ξ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ( italic_r start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ) ] end_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT end_ARG start_ARG ∫ italic_d start_POSTSUPERSCRIPT 3 italic_N end_POSTSUPERSCRIPT italic_r italic_d start_POSTSUPERSCRIPT 3 italic_N end_POSTSUPERSCRIPT italic_p italic_e start_POSTSUPERSCRIPT - italic_β [ italic_H - ∑ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT italic_ξ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ( italic_r start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ) ] end_POSTSUPERSCRIPT end_ARG (77)

The static response function is the derivative of the new average position with respect to the external force.

raa(T)H(𝝃)ξb=β(rbb(T))(raa(T))MD.\frac{\partial\braket{r_{a}-\stackrel{{\scriptstyle\text{\tiny(T)}}}{{\mathcal% {R}}}_{a}}_{H^{\prime}(\bm{\xi})}}{\partial\xi_{b}}=\beta\left<(r_{b}-% \stackrel{{\scriptstyle\text{\tiny(T)}}}{{\mathcal{R}}}_{b})(r_{a}-\stackrel{{% \scriptstyle\text{\tiny(T)}}}{{\mathcal{R}}}_{a})\right>_{\text{MD}}.divide start_ARG ∂ ⟨ start_ARG italic_r start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT end_ARG ⟩ start_POSTSUBSCRIPT italic_H start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ( bold_italic_ξ ) end_POSTSUBSCRIPT end_ARG start_ARG ∂ italic_ξ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT end_ARG = italic_β ⟨ ( italic_r start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ) ( italic_r start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (T) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT ) ⟩ start_POSTSUBSCRIPT MD end_POSTSUBSCRIPT . (78)

This is no longer true if H𝐻Hitalic_H is self-consistent like in the SSCHA, as we have to add an extra term in the derivative due to the derivative of the unperturbed Hamiltonian with respect to the new perturbed equilibrium state. This extra term gives rise to the complex system of linear equations reported in Eq. (39) and (40), derived in Appendix C.

Appendix C SCHA static linear response

Here, the static linear response for the SSCHA theory is obtained. The derivation follows the derivation performed for the full dynamical linear response presented in ref.[30] and coincides with the final result presented in ref.[28]. Let us compute the derivative

fa(S),Φ(S)ξb=d3N𝑹ρ(S),Φ(S)ξbfa(𝑹),subscriptdelimited-⟨⟩subscript𝑓𝑎superscript(S)superscriptΦ(S)subscript𝜉𝑏superscript𝑑3𝑁𝑹subscript𝜌superscript(S)superscriptΦ(S)subscript𝜉𝑏subscript𝑓𝑎𝑹\frac{\partial\left<f_{a}\right>_{\stackrel{{\scriptstyle\text{\tiny(S)}}}{{% \mathcal{R}}},\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\Phi}}}}{\partial\xi_{% b}}=\int d^{3N}{\bm{R}}\frac{\partial\rho_{\stackrel{{\scriptstyle\text{\tiny(% S)}}}{{\mathcal{R}}},\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\Phi}}}}{% \partial\xi_{b}}f_{a}(\boldsymbol{R}),divide start_ARG ∂ ⟨ italic_f start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT ⟩ start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP , start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP end_POSTSUBSCRIPT end_ARG start_ARG ∂ italic_ξ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT end_ARG = ∫ italic_d start_POSTSUPERSCRIPT 3 italic_N end_POSTSUPERSCRIPT bold_italic_R divide start_ARG ∂ italic_ρ start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP , start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP end_POSTSUBSCRIPT end_ARG start_ARG ∂ italic_ξ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT end_ARG italic_f start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT ( bold_italic_R ) , (79)

where ρ(S),Φ(S)(𝑹)subscript𝜌superscript(S)superscriptΦ(S)𝑹\rho_{\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\mathcal{R}}},\stackrel{{% \scriptstyle\text{\tiny(S)}}}{{\Phi}}}(\boldsymbol{R})italic_ρ start_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP , start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP end_POSTSUBSCRIPT ( bold_italic_R ) is the SCHA probability density of the SCHA. The derivative of the density with respect to the Lagrange parameter ξbsubscript𝜉𝑏\xi_{b}italic_ξ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT can be obtained by using the chain rule on the two variational parameters of the SCHA: 𝓡(S)superscript𝓡(S){\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\boldsymbol{\mathcal{R}}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP and 𝚽(S)superscript𝚽(S){\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (S) end_ARG end_RELOP.

For brevity, the explicit indexing of 𝓡(S)superscript𝓡(S){\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\boldsymbol{\mathcal{R}}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP and 𝚽(S)superscript𝚽(S){\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (S) end_ARG end_RELOP in ρ𝜌\rhoitalic_ρ is avoided in the rest of this appendix. The derivative of the density with respect to

ρξb=hρh(S)h(S)ξb+hkρΦhk(S)Φhk(S)ξb,𝜌subscript𝜉𝑏subscript𝜌subscriptsuperscript(S)absentsubscriptsuperscript(S)absentsubscript𝜉𝑏subscript𝑘𝜌subscriptsuperscriptΦ(S)𝑘absentsubscriptsuperscriptΦ(S)𝑘absentsubscript𝜉𝑏\frac{\partial\rho}{\partial\xi_{b}}=\sum_{h}\frac{\partial\rho}{\partial% \stackrel{{\scriptstyle\text{\tiny(S)}}}{{\mathcal{R}}}_{h}}\frac{\partial% \stackrel{{\scriptstyle\text{\tiny(S)}}}{{\mathcal{R}}}_{h}}{\partial\xi_{b}}+% \sum_{hk}\frac{\partial\rho}{\partial\stackrel{{\scriptstyle\text{\tiny(S)}}}{% {\Phi}}_{hk}}\frac{\partial\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\Phi}}_{% hk}}{\partial\xi_{b}},divide start_ARG ∂ italic_ρ end_ARG start_ARG ∂ italic_ξ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT end_ARG = ∑ start_POSTSUBSCRIPT italic_h end_POSTSUBSCRIPT divide start_ARG ∂ italic_ρ end_ARG start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_h end_POSTSUBSCRIPT end_ARG divide start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_h end_POSTSUBSCRIPT end_ARG start_ARG ∂ italic_ξ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT end_ARG + ∑ start_POSTSUBSCRIPT italic_h italic_k end_POSTSUBSCRIPT divide start_ARG ∂ italic_ρ end_ARG start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_h italic_k end_POSTSUBSCRIPT end_ARG divide start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_h italic_k end_POSTSUBSCRIPT end_ARG start_ARG ∂ italic_ξ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT end_ARG , (80)

and

ρh(S)=ρ(𝑹)kΥhk(Rkk(S)),\frac{\partial\rho}{\partial\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\mathcal% {R}}}_{h}}=-\rho(\bm{R})\sum_{k}\Upsilon_{hk}(R_{k}-\stackrel{{\scriptstyle% \text{\tiny(S)}}}{{\mathcal{R}}}_{k}),divide start_ARG ∂ italic_ρ end_ARG start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_h end_POSTSUBSCRIPT end_ARG = - italic_ρ ( bold_italic_R ) ∑ start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT roman_Υ start_POSTSUBSCRIPT italic_h italic_k end_POSTSUBSCRIPT ( italic_R start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT ) , (81)
ρΦhk(S)=ρ(𝑹)2lmΥlmΦhk(S)[Υlm1(Rll(S))(Rmm(S))],\frac{\partial\rho}{\partial\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\Phi}}_{% hk}}=\frac{\rho(\boldsymbol{R})}{2}\sum_{lm}\frac{\partial\Upsilon_{lm}}{% \partial\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\Phi}}_{hk}}\left[\Upsilon_{% lm}^{-1}-(R_{l}-\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\mathcal{R}}}_{l})(R% _{m}-\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\mathcal{R}}}_{m})\right],divide start_ARG ∂ italic_ρ end_ARG start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_h italic_k end_POSTSUBSCRIPT end_ARG = divide start_ARG italic_ρ ( bold_italic_R ) end_ARG start_ARG 2 end_ARG ∑ start_POSTSUBSCRIPT italic_l italic_m end_POSTSUBSCRIPT divide start_ARG ∂ roman_Υ start_POSTSUBSCRIPT italic_l italic_m end_POSTSUBSCRIPT end_ARG start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_h italic_k end_POSTSUBSCRIPT end_ARG [ roman_Υ start_POSTSUBSCRIPT italic_l italic_m end_POSTSUBSCRIPT start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT - ( italic_R start_POSTSUBSCRIPT italic_l end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_l end_POSTSUBSCRIPT ) ( italic_R start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT ) ] , (82)

where the 𝚼𝚼\boldsymbol{\Upsilon}bold_Υ matrix is the inverse of the covariance matrix

(𝚼1)ab=(Raa(S))(Rbb(S)),\left(\boldsymbol{\Upsilon}^{-1}\right)_{ab}=\left<(R_{a}-\stackrel{{% \scriptstyle\text{\tiny(S)}}}{{\mathcal{R}}}_{a})(R_{b}-\stackrel{{% \scriptstyle\text{\tiny(S)}}}{{\mathcal{R}}}_{b})\right>,( bold_Υ start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT ) start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT = ⟨ ( italic_R start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT ) ( italic_R start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ) ⟩ , (83)

in the classical limit, it becomes:

Υab=ΦabkBT,subscriptΥ𝑎𝑏subscriptΦ𝑎𝑏subscript𝑘𝐵𝑇\Upsilon_{ab}=\frac{\Phi_{ab}}{k_{B}T},roman_Υ start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT = divide start_ARG roman_Φ start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT end_ARG start_ARG italic_k start_POSTSUBSCRIPT italic_B end_POSTSUBSCRIPT italic_T end_ARG , (84)

which is the classical counterpart of the quantum equation usually reported in the SSCHA papers[28, 14]:

Υab=mambμ2ωμ(2nμ+1)eμaeμb,subscriptΥ𝑎𝑏subscript𝑚𝑎subscript𝑚𝑏subscript𝜇2subscript𝜔𝜇Planck-constant-over-2-pi2subscript𝑛𝜇1superscriptsubscript𝑒𝜇𝑎superscriptsubscript𝑒𝜇𝑏\Upsilon_{ab}=\sqrt{m_{a}m_{b}}\sum_{\mu}\frac{2\omega_{\mu}}{\hbar(2n_{\mu}+1% )}e_{\mu}^{a}e_{\mu}^{b},roman_Υ start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT = square-root start_ARG italic_m start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT italic_m start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT end_ARG ∑ start_POSTSUBSCRIPT italic_μ end_POSTSUBSCRIPT divide start_ARG 2 italic_ω start_POSTSUBSCRIPT italic_μ end_POSTSUBSCRIPT end_ARG start_ARG roman_ℏ ( 2 italic_n start_POSTSUBSCRIPT italic_μ end_POSTSUBSCRIPT + 1 ) end_ARG italic_e start_POSTSUBSCRIPT italic_μ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_a end_POSTSUPERSCRIPT italic_e start_POSTSUBSCRIPT italic_μ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_b end_POSTSUPERSCRIPT , (85)

where ωμsubscript𝜔𝜇\omega_{\mu}italic_ω start_POSTSUBSCRIPT italic_μ end_POSTSUBSCRIPT are SCHA frequencies (square root eigenvalues of the mass rescaled 𝚽(S)superscript𝚽(S){\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\boldsymbol{\Phi}}}}start_RELOP SUPERSCRIPTOP start_ARG bold_Φ end_ARG start_ARG (S) end_ARG end_RELOP matrix), eμasuperscriptsubscript𝑒𝜇𝑎e_{\mu}^{a}italic_e start_POSTSUBSCRIPT italic_μ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_a end_POSTSUPERSCRIPT is the a𝑎aitalic_a-th Cartesian component of the μ𝜇\muitalic_μ-the eigenvector, and nμsubscript𝑛𝜇n_{\mu}italic_n start_POSTSUBSCRIPT italic_μ end_POSTSUBSCRIPT the corresponding Bose-Einstein occupation factor. Exploiting these relationships, we get

faξbdelimited-⟨⟩subscript𝑓𝑎subscript𝜉𝑏\displaystyle\frac{\partial\left<f_{a}\right>}{\partial\xi_{b}}divide start_ARG ∂ ⟨ italic_f start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT ⟩ end_ARG start_ARG ∂ italic_ξ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT end_ARG =hklΥkl(Rll(S))fah(S)ξb+\displaystyle=\sum_{hkl}\Upsilon_{kl}\left<(R_{l}-\stackrel{{\scriptstyle\text% {\tiny(S)}}}{{\mathcal{R}}}_{l})f_{a}\right>\frac{\partial\stackrel{{% \scriptstyle\text{\tiny(S)}}}{{\mathcal{R}}}_{h}}{\partial\xi_{b}}+= ∑ start_POSTSUBSCRIPT italic_h italic_k italic_l end_POSTSUBSCRIPT roman_Υ start_POSTSUBSCRIPT italic_k italic_l end_POSTSUBSCRIPT ⟨ ( italic_R start_POSTSUBSCRIPT italic_l end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_l end_POSTSUBSCRIPT ) italic_f start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT ⟩ divide start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_h end_POSTSUBSCRIPT end_ARG start_ARG ∂ italic_ξ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT end_ARG +
12lmΥlmΦhk(S)(Rll(S))(Rmm(S))faΦlm(S)ξb.\displaystyle-\frac{1}{2}\sum_{lm}\frac{\partial\Upsilon_{lm}}{\partial% \stackrel{{\scriptstyle\text{\tiny(S)}}}{{\Phi}}_{hk}}\left<(R_{l}-\stackrel{{% \scriptstyle\text{\tiny(S)}}}{{\mathcal{R}}}_{l})(R_{m}-\stackrel{{% \scriptstyle\text{\tiny(S)}}}{{\mathcal{R}}}_{m})f_{a}\right>\frac{\partial% \stackrel{{\scriptstyle\text{\tiny(S)}}}{{\Phi}}_{lm}}{\partial\xi_{b}}.- divide start_ARG 1 end_ARG start_ARG 2 end_ARG ∑ start_POSTSUBSCRIPT italic_l italic_m end_POSTSUBSCRIPT divide start_ARG ∂ roman_Υ start_POSTSUBSCRIPT italic_l italic_m end_POSTSUBSCRIPT end_ARG start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_h italic_k end_POSTSUBSCRIPT end_ARG ⟨ ( italic_R start_POSTSUBSCRIPT italic_l end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_l end_POSTSUBSCRIPT ) ( italic_R start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT ) italic_f start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT ⟩ divide start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_l italic_m end_POSTSUBSCRIPT end_ARG start_ARG ∂ italic_ξ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT end_ARG . (86)

To obtain the other response function, we must exploit the self-consistent equation of the SCHA

Φab(S)=2VRaRb.\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\Phi}}_{ab}=\left<\frac{\partial^{2}% V}{\partial R_{a}\partial R_{b}}\right>.start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT = ⟨ divide start_ARG ∂ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT italic_V end_ARG start_ARG ∂ italic_R start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT ∂ italic_R start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT end_ARG ⟩ . (87)

We can directly integrate this by parts to get

Φab(S)=hΥah(Rhh(S))fb,\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\Phi}}_{ab}=-\sum_{h}\Upsilon_{ah}% \left<(R_{h}-\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\mathcal{R}}}_{h})f_{b}% \right>,start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT = - ∑ start_POSTSUBSCRIPT italic_h end_POSTSUBSCRIPT roman_Υ start_POSTSUBSCRIPT italic_a italic_h end_POSTSUBSCRIPT ⟨ ( italic_R start_POSTSUBSCRIPT italic_h end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_h end_POSTSUBSCRIPT ) italic_f start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ⟩ , (88)

and differentiate. Notably, the explicit derivative of (S)superscript(S)\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\mathcal{R}}}start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP in the average is zero, as it gives an average of forces that is zero at equilibrium. Thus, the only remaining derivatives are the one in 𝚼𝚼\boldsymbol{\Upsilon}bold_Υ and the one in the distribution ρ𝜌\rhoitalic_ρ

Φab(S)ξcsubscriptsuperscriptΦ(S)𝑎𝑏absentsubscript𝜉𝑐\displaystyle\frac{\partial\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\Phi}}_{% ab}}{\partial\xi_{c}}divide start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT end_ARG start_ARG ∂ italic_ξ start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT end_ARG =hklΥahΦkl(S)Φkl(S)ξc(Rhh(S))fb+\displaystyle=-\sum_{hkl}\frac{\partial\Upsilon_{ah}}{\partial\stackrel{{% \scriptstyle\text{\tiny(S)}}}{{\Phi}}_{kl}}\frac{\partial\stackrel{{% \scriptstyle\text{\tiny(S)}}}{{\Phi}}_{kl}}{\partial\xi_{c}}\left<(R_{h}-% \stackrel{{\scriptstyle\text{\tiny(S)}}}{{\mathcal{R}}}_{h})f_{b}\right>+= - ∑ start_POSTSUBSCRIPT italic_h italic_k italic_l end_POSTSUBSCRIPT divide start_ARG ∂ roman_Υ start_POSTSUBSCRIPT italic_a italic_h end_POSTSUBSCRIPT end_ARG start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_k italic_l end_POSTSUBSCRIPT end_ARG divide start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_k italic_l end_POSTSUBSCRIPT end_ARG start_ARG ∂ italic_ξ start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT end_ARG ⟨ ( italic_R start_POSTSUBSCRIPT italic_h end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_h end_POSTSUBSCRIPT ) italic_f start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ⟩ +
+khlΥahΥkl(Rhh(S))(Rll(S))fbk(S)ξb+\displaystyle+\sum_{khl}\Upsilon_{ah}\Upsilon_{kl}\left<(R_{h}-\stackrel{{% \scriptstyle\text{\tiny(S)}}}{{\mathcal{R}}}_{h})(R_{l}-\stackrel{{% \scriptstyle\text{\tiny(S)}}}{{\mathcal{R}}}_{l})f_{b}\right>\frac{\partial% \stackrel{{\scriptstyle\text{\tiny(S)}}}{{\mathcal{R}}}_{k}}{\partial\xi_{b}}++ ∑ start_POSTSUBSCRIPT italic_k italic_h italic_l end_POSTSUBSCRIPT roman_Υ start_POSTSUBSCRIPT italic_a italic_h end_POSTSUBSCRIPT roman_Υ start_POSTSUBSCRIPT italic_k italic_l end_POSTSUBSCRIPT ⟨ ( italic_R start_POSTSUBSCRIPT italic_h end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_h end_POSTSUBSCRIPT ) ( italic_R start_POSTSUBSCRIPT italic_l end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_l end_POSTSUBSCRIPT ) italic_f start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ⟩ divide start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT end_ARG start_ARG ∂ italic_ξ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT end_ARG +
+12hklmnΥklΦmn(S)Υah(Rhh(S))(Rkk(S))(Rll(S))fbΦmn(S)ξb+\displaystyle+\frac{1}{2}\sum_{hklmn}\frac{\partial\Upsilon_{kl}}{\partial% \stackrel{{\scriptstyle\text{\tiny(S)}}}{{\Phi}}_{mn}}\Upsilon_{ah}\left<(R_{h% }-\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\mathcal{R}}}_{h})(R_{k}-\stackrel% {{\scriptstyle\text{\tiny(S)}}}{{\mathcal{R}}}_{k})(R_{l}-\stackrel{{% \scriptstyle\text{\tiny(S)}}}{{\mathcal{R}}}_{l})f_{b}\right>\frac{\partial% \stackrel{{\scriptstyle\text{\tiny(S)}}}{{\Phi}}_{mn}}{\partial\xi_{b}}++ divide start_ARG 1 end_ARG start_ARG 2 end_ARG ∑ start_POSTSUBSCRIPT italic_h italic_k italic_l italic_m italic_n end_POSTSUBSCRIPT divide start_ARG ∂ roman_Υ start_POSTSUBSCRIPT italic_k italic_l end_POSTSUBSCRIPT end_ARG start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_m italic_n end_POSTSUBSCRIPT end_ARG roman_Υ start_POSTSUBSCRIPT italic_a italic_h end_POSTSUBSCRIPT ⟨ ( italic_R start_POSTSUBSCRIPT italic_h end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_h end_POSTSUBSCRIPT ) ( italic_R start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT ) ( italic_R start_POSTSUBSCRIPT italic_l end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_l end_POSTSUBSCRIPT ) italic_f start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ⟩ divide start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_m italic_n end_POSTSUBSCRIPT end_ARG start_ARG ∂ italic_ξ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT end_ARG +
12hklmnΥklΦmn(S)Υkl1Υha(Rhh(S))fbΦmn(S)ξb.\displaystyle-\frac{1}{2}\sum_{hklmn}\frac{\partial\Upsilon_{kl}}{\partial% \stackrel{{\scriptstyle\text{\tiny(S)}}}{{\Phi}}_{mn}}\Upsilon^{-1}_{kl}% \Upsilon_{ha}\left<(R_{h}-\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\mathcal{R% }}}_{h})f_{b}\right>\frac{\partial\stackrel{{\scriptstyle\text{\tiny(S)}}}{{% \Phi}}_{mn}}{\partial\xi_{b}}.- divide start_ARG 1 end_ARG start_ARG 2 end_ARG ∑ start_POSTSUBSCRIPT italic_h italic_k italic_l italic_m italic_n end_POSTSUBSCRIPT divide start_ARG ∂ roman_Υ start_POSTSUBSCRIPT italic_k italic_l end_POSTSUBSCRIPT end_ARG start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_m italic_n end_POSTSUBSCRIPT end_ARG roman_Υ start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_k italic_l end_POSTSUBSCRIPT roman_Υ start_POSTSUBSCRIPT italic_h italic_a end_POSTSUBSCRIPT ⟨ ( italic_R start_POSTSUBSCRIPT italic_h end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_h end_POSTSUBSCRIPT ) italic_f start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ⟩ divide start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_m italic_n end_POSTSUBSCRIPT end_ARG start_ARG ∂ italic_ξ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT end_ARG . (89)

We can remove the SCHA harmonic force from 𝒇𝒇\boldsymbol{f}bold_italic_f. This term is zero for all averages except the one multiplied by the displacement three times:

uaubuc(eΦdeue)=eΦdedelimited-⟨⟩subscript𝑢𝑎subscript𝑢𝑏subscript𝑢𝑐subscript𝑒subscriptΦ𝑑𝑒subscript𝑢𝑒subscript𝑒subscriptΦ𝑑𝑒\displaystyle\left<u_{a}u_{b}u_{c}\left(-\sum_{e}\Phi_{de}u_{e}\right)\right>=% -\sum_{e}\Phi_{de}⟨ italic_u start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT ( - ∑ start_POSTSUBSCRIPT italic_e end_POSTSUBSCRIPT roman_Φ start_POSTSUBSCRIPT italic_d italic_e end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_e end_POSTSUBSCRIPT ) ⟩ = - ∑ start_POSTSUBSCRIPT italic_e end_POSTSUBSCRIPT roman_Φ start_POSTSUBSCRIPT italic_d italic_e end_POSTSUBSCRIPT (Υab1Υce1+\displaystyle\bigg{(}\Upsilon^{-1}_{ab}\Upsilon^{-1}_{ce}+( roman_Υ start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT roman_Υ start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_c italic_e end_POSTSUBSCRIPT +
+Υac1Υbe1+limit-fromsubscriptsuperscriptΥ1𝑎𝑐subscriptsuperscriptΥ1𝑏𝑒\displaystyle+\Upsilon^{-1}_{ac}\Upsilon^{-1}_{be}++ roman_Υ start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_a italic_c end_POSTSUBSCRIPT roman_Υ start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_b italic_e end_POSTSUBSCRIPT +
+Υae1Υbc1),\displaystyle+\Upsilon^{-1}_{ae}\Upsilon^{-1}_{bc}\bigg{)},+ roman_Υ start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_a italic_e end_POSTSUBSCRIPT roman_Υ start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_b italic_c end_POSTSUBSCRIPT ) , (90)

where ua=Raa(S)subscript𝑢𝑎limit-fromsubscript𝑅𝑎subscriptsuperscript(S)𝑎absentu_{a}=R_{a}-\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\mathcal{R}}}_{a}italic_u start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT = italic_R start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT - start_RELOP SUPERSCRIPTOP start_ARG caligraphic_R end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT. Now, a bit of algebraic manipulations of matrices results in

ΥabΦlm(S)=hkΥhk1Φlm(S)ΥabΥhk1,subscriptΥ𝑎𝑏subscriptsuperscriptΦ(S)𝑙𝑚absentsubscript𝑘subscriptsuperscriptΥ1𝑘subscriptsuperscriptΦ(S)𝑙𝑚absentsubscriptΥ𝑎𝑏subscriptsuperscriptΥ1𝑘\frac{\partial\Upsilon_{ab}}{\partial\stackrel{{\scriptstyle\text{\tiny(S)}}}{% {\Phi}}_{lm}}=\sum_{hk}\frac{\partial\Upsilon^{-1}_{hk}}{\partial\stackrel{{% \scriptstyle\text{\tiny(S)}}}{{\Phi}}_{lm}}\frac{\partial\Upsilon_{ab}}{% \partial\Upsilon^{-1}_{hk}},divide start_ARG ∂ roman_Υ start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT end_ARG start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_l italic_m end_POSTSUBSCRIPT end_ARG = ∑ start_POSTSUBSCRIPT italic_h italic_k end_POSTSUBSCRIPT divide start_ARG ∂ roman_Υ start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_h italic_k end_POSTSUBSCRIPT end_ARG start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_l italic_m end_POSTSUBSCRIPT end_ARG divide start_ARG ∂ roman_Υ start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT end_ARG start_ARG ∂ roman_Υ start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_h italic_k end_POSTSUBSCRIPT end_ARG , (91)
ΥahΥpq1=ΥapΥqh,subscriptΥ𝑎subscriptsuperscriptΥ1𝑝𝑞subscriptΥ𝑎𝑝subscriptΥ𝑞\frac{\partial\Upsilon_{ah}}{\partial\Upsilon^{-1}_{pq}}=-\Upsilon_{ap}% \Upsilon_{qh},divide start_ARG ∂ roman_Υ start_POSTSUBSCRIPT italic_a italic_h end_POSTSUBSCRIPT end_ARG start_ARG ∂ roman_Υ start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_p italic_q end_POSTSUBSCRIPT end_ARG = - roman_Υ start_POSTSUBSCRIPT italic_a italic_p end_POSTSUBSCRIPT roman_Υ start_POSTSUBSCRIPT italic_q italic_h end_POSTSUBSCRIPT , (92)
ΥabΦlm(S)=hkΥhk1Φlm(S)ΥahΥkb.subscriptΥ𝑎𝑏subscriptsuperscriptΦ(S)𝑙𝑚absentsubscript𝑘subscriptsuperscriptΥ1𝑘subscriptsuperscriptΦ(S)𝑙𝑚absentsubscriptΥ𝑎subscriptΥ𝑘𝑏\frac{\partial\Upsilon_{ab}}{\partial\stackrel{{\scriptstyle\text{\tiny(S)}}}{% {\Phi}}_{lm}}=-\sum_{hk}\frac{\partial\Upsilon^{-1}_{hk}}{\partial\stackrel{{% \scriptstyle\text{\tiny(S)}}}{{\Phi}}_{lm}}\Upsilon_{ah}\Upsilon_{kb}.divide start_ARG ∂ roman_Υ start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT end_ARG start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_l italic_m end_POSTSUBSCRIPT end_ARG = - ∑ start_POSTSUBSCRIPT italic_h italic_k end_POSTSUBSCRIPT divide start_ARG ∂ roman_Υ start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_h italic_k end_POSTSUBSCRIPT end_ARG start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_l italic_m end_POSTSUBSCRIPT end_ARG roman_Υ start_POSTSUBSCRIPT italic_a italic_h end_POSTSUBSCRIPT roman_Υ start_POSTSUBSCRIPT italic_k italic_b end_POSTSUBSCRIPT . (93)

The last derivative is the so-called 𝚲𝚲\boldsymbol{\Lambda}bold_Λ matrix, related to the two-phonon propagator introduced by Bianco et al. [28].

Υab1Φlm(S)=2Λablm,superscriptsubscriptΥ𝑎𝑏1subscriptsuperscriptΦ(S)𝑙𝑚absent2subscriptΛ𝑎𝑏𝑙𝑚\frac{\partial\Upsilon_{ab}^{-1}}{\partial\stackrel{{\scriptstyle\text{\tiny(S% )}}}{{\Phi}}_{lm}}=2\Lambda_{ablm},divide start_ARG ∂ roman_Υ start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT end_ARG start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_l italic_m end_POSTSUBSCRIPT end_ARG = 2 roman_Λ start_POSTSUBSCRIPT italic_a italic_b italic_l italic_m end_POSTSUBSCRIPT , (94)

and the three and four-phonon scattering vertices

Φabc(3)=d3VdRadRbdRc\stackrel{{\scriptstyle\text{\tiny(3)}}}{{\Phi}}_{abc}=\left<\frac{d^{3}V}{dR_% {a}dR_{b}dR_{c}}\right>start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (3) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b italic_c end_POSTSUBSCRIPT = ⟨ divide start_ARG italic_d start_POSTSUPERSCRIPT 3 end_POSTSUPERSCRIPT italic_V end_ARG start_ARG italic_d italic_R start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT italic_d italic_R start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT italic_d italic_R start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT end_ARG ⟩ (95)
Φabcd(4)=d4VdRadRbdRcdRd\stackrel{{\scriptstyle\text{\tiny(4)}}}{{\Phi}}_{abcd}=\left<\frac{d^{4}V}{dR% _{a}dR_{b}dR_{c}dR_{d}}\right>start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (4) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b italic_c italic_d end_POSTSUBSCRIPT = ⟨ divide start_ARG italic_d start_POSTSUPERSCRIPT 4 end_POSTSUPERSCRIPT italic_V end_ARG start_ARG italic_d italic_R start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT italic_d italic_R start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT italic_d italic_R start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT italic_d italic_R start_POSTSUBSCRIPT italic_d end_POSTSUBSCRIPT end_ARG ⟩ (96)

Coupling all together, we get the final system

δab=hΦah(S)hξb+pqlmΛpqlmΦpqa(3)Φlm(S)ξbsubscript𝛿𝑎𝑏subscriptsubscriptsuperscriptΦ(S)𝑎subscriptsubscript𝜉𝑏subscript𝑝𝑞𝑙𝑚subscriptΛ𝑝𝑞𝑙𝑚subscriptsuperscriptΦ(3)𝑝𝑞𝑎subscriptsuperscriptΦ(S)𝑙𝑚absentsubscript𝜉𝑏\delta_{ab}=-\sum_{h}\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\Phi}}_{ah}% \frac{\partial\mathcal{R}_{h}}{\partial\xi_{b}}+\sum_{pqlm}\Lambda_{pqlm}% \stackrel{{\scriptstyle\text{\tiny(3)}}}{{\Phi}}_{pqa}\frac{\partial\stackrel{% {\scriptstyle\text{\tiny(S)}}}{{\Phi}}_{lm}}{\partial\xi_{b}}italic_δ start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT = - ∑ start_POSTSUBSCRIPT italic_h end_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_h end_POSTSUBSCRIPT divide start_ARG ∂ caligraphic_R start_POSTSUBSCRIPT italic_h end_POSTSUBSCRIPT end_ARG start_ARG ∂ italic_ξ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT end_ARG + ∑ start_POSTSUBSCRIPT italic_p italic_q italic_l italic_m end_POSTSUBSCRIPT roman_Λ start_POSTSUBSCRIPT italic_p italic_q italic_l italic_m end_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (3) end_ARG end_RELOP start_POSTSUBSCRIPT italic_p italic_q italic_a end_POSTSUBSCRIPT divide start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_l italic_m end_POSTSUBSCRIPT end_ARG start_ARG ∂ italic_ξ start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT end_ARG (97)
Φab(S)ξc=hΦabh(3)hξcpqlmΛpqlmΦpqab(4)Φlm(S)ξcsubscriptsuperscriptΦ(S)𝑎𝑏absentsubscript𝜉𝑐subscriptsubscriptsuperscriptΦ(3)𝑎𝑏subscriptsubscript𝜉𝑐subscript𝑝𝑞𝑙𝑚subscriptΛ𝑝𝑞𝑙𝑚subscriptsuperscriptΦ(4)𝑝𝑞𝑎𝑏subscriptsuperscriptΦ(S)𝑙𝑚absentsubscript𝜉𝑐\frac{\partial\stackrel{{\scriptstyle\text{\tiny(S)}}}{{\Phi}}_{ab}}{\partial% \xi_{c}}=-\sum_{h}\stackrel{{\scriptstyle\text{\tiny(3)}}}{{\Phi}}_{abh}\frac{% \partial\mathcal{R}_{h}}{\partial\xi_{c}}-\sum_{pqlm}\Lambda_{pqlm}\stackrel{{% \scriptstyle\text{\tiny(4)}}}{{\Phi}}_{pqab}\frac{\partial\stackrel{{% \scriptstyle\text{\tiny(S)}}}{{\Phi}}_{lm}}{\partial\xi_{c}}divide start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT end_ARG start_ARG ∂ italic_ξ start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT end_ARG = - ∑ start_POSTSUBSCRIPT italic_h end_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (3) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b italic_h end_POSTSUBSCRIPT divide start_ARG ∂ caligraphic_R start_POSTSUBSCRIPT italic_h end_POSTSUBSCRIPT end_ARG start_ARG ∂ italic_ξ start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT end_ARG - ∑ start_POSTSUBSCRIPT italic_p italic_q italic_l italic_m end_POSTSUBSCRIPT roman_Λ start_POSTSUBSCRIPT italic_p italic_q italic_l italic_m end_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (4) end_ARG end_RELOP start_POSTSUBSCRIPT italic_p italic_q italic_a italic_b end_POSTSUBSCRIPT divide start_ARG ∂ start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (S) end_ARG end_RELOP start_POSTSUBSCRIPT italic_l italic_m end_POSTSUBSCRIPT end_ARG start_ARG ∂ italic_ξ start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT end_ARG (98)

Appendix D Perturbative expression of the free energy

Here, we derive the perturbative expression for the free energy and show that its diagrammatic representation coincides with the one reported in Figure 2.

The expression of the free energy is given by

F=1βlnZ𝐹1𝛽𝑍F=-\frac{1}{\beta}\ln Zitalic_F = - divide start_ARG 1 end_ARG start_ARG italic_β end_ARG roman_ln italic_Z (99)
Z=d3Npeβp22md3NReβV(R)𝑍superscript𝑑3𝑁𝑝superscript𝑒𝛽superscript𝑝22𝑚superscript𝑑3𝑁𝑅superscript𝑒𝛽𝑉𝑅Z=\int d^{3N}pe^{-\beta\frac{p^{2}}{2m}}\int d^{3N}Re^{-\beta V(R)}italic_Z = ∫ italic_d start_POSTSUPERSCRIPT 3 italic_N end_POSTSUPERSCRIPT italic_p italic_e start_POSTSUPERSCRIPT - italic_β divide start_ARG italic_p start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 2 italic_m end_ARG end_POSTSUPERSCRIPT ∫ italic_d start_POSTSUPERSCRIPT 3 italic_N end_POSTSUPERSCRIPT italic_R italic_e start_POSTSUPERSCRIPT - italic_β italic_V ( italic_R ) end_POSTSUPERSCRIPT (100)

Expanding perturbatively around a small third-order term, we get

V(𝑹)=12abΦabuaub+abc16Φabc(3)uaubuc𝑉𝑹12subscript𝑎𝑏subscriptΦ𝑎𝑏subscript𝑢𝑎subscript𝑢𝑏subscript𝑎𝑏𝑐16subscriptsuperscriptΦ(3)𝑎𝑏𝑐subscript𝑢𝑎subscript𝑢𝑏subscript𝑢𝑐V(\boldsymbol{R})=\frac{1}{2}\sum_{ab}\Phi_{ab}u_{a}u_{b}+\sum_{abc}\frac{1}{6% }\stackrel{{\scriptstyle\text{\tiny(3)}}}{{\Phi}}_{abc}u_{a}u_{b}u_{c}italic_V ( bold_italic_R ) = divide start_ARG 1 end_ARG start_ARG 2 end_ARG ∑ start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT roman_Φ start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT + ∑ start_POSTSUBSCRIPT italic_a italic_b italic_c end_POSTSUBSCRIPT divide start_ARG 1 end_ARG start_ARG 6 end_ARG start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (3) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b italic_c end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT (101)

where 𝒖𝒖\bm{u}bold_italic_u represents the displacement from the average position. Perturbatively, we can expand the exponential as

eβV(R)superscript𝑒𝛽𝑉𝑅absent\displaystyle e^{-\beta V(R)}\approxitalic_e start_POSTSUPERSCRIPT - italic_β italic_V ( italic_R ) end_POSTSUPERSCRIPT ≈ eβ2abΦabuaub(1β6abcΦabc(3)uaubuc+\displaystyle e^{-\frac{\beta}{2}\sum_{ab}\Phi_{ab}u_{a}u_{b}}\bigg{(}1-\frac{% \beta}{6}\sum_{abc}\stackrel{{\scriptstyle\text{\tiny(3)}}}{{\Phi}}_{abc}u_{a}% u_{b}u_{c}+italic_e start_POSTSUPERSCRIPT - divide start_ARG italic_β end_ARG start_ARG 2 end_ARG ∑ start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT roman_Φ start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT end_POSTSUPERSCRIPT ( 1 - divide start_ARG italic_β end_ARG start_ARG 6 end_ARG ∑ start_POSTSUBSCRIPT italic_a italic_b italic_c end_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (3) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b italic_c end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT +
β2262abcdefΦabc(3)uaubucudueufΦdef(3))\displaystyle\frac{\beta^{2}}{2\cdot 6^{2}}\sum_{\begin{subarray}{c}abc\\ def\end{subarray}}\stackrel{{\scriptstyle\text{\tiny(3)}}}{{\Phi}}_{abc}u_{a}u% _{b}u_{c}u_{d}u_{e}u_{f}\stackrel{{\scriptstyle\text{\tiny(3)}}}{{\Phi}}_{def}% \bigg{)}divide start_ARG italic_β start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 2 ⋅ 6 start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG ∑ start_POSTSUBSCRIPT start_ARG start_ROW start_CELL italic_a italic_b italic_c end_CELL end_ROW start_ROW start_CELL italic_d italic_e italic_f end_CELL end_ROW end_ARG end_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (3) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b italic_c end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_d end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_e end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_f end_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (3) end_ARG end_RELOP start_POSTSUBSCRIPT italic_d italic_e italic_f end_POSTSUBSCRIPT ) (102)

Then we get

Z=Z0+Z1𝑍subscript𝑍0subscript𝑍1Z=Z_{0}+Z_{1}italic_Z = italic_Z start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT + italic_Z start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT
Z1Z0=β2262abcdefΦabc(3)uaubucudueuf0Φdef(3)subscript𝑍1subscript𝑍0superscript𝛽22superscript62subscript𝑎𝑏𝑐𝑑𝑒𝑓subscriptsuperscriptΦ(3)𝑎𝑏𝑐subscriptdelimited-⟨⟩subscript𝑢𝑎subscript𝑢𝑏subscript𝑢𝑐subscript𝑢𝑑subscript𝑢𝑒subscript𝑢𝑓0subscriptsuperscriptΦ(3)𝑑𝑒𝑓absent\frac{Z_{1}}{Z_{0}}=\frac{\beta^{2}}{2\cdot 6^{2}}\sum_{\begin{subarray}{c}abc% \\ def\end{subarray}}\stackrel{{\scriptstyle\text{\tiny(3)}}}{{\Phi}}_{abc}\left<% u_{a}u_{b}u_{c}u_{d}u_{e}u_{f}\right>_{0}\stackrel{{\scriptstyle\text{\tiny(3)% }}}{{\Phi}}_{def}divide start_ARG italic_Z start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_ARG start_ARG italic_Z start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG = divide start_ARG italic_β start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 2 ⋅ 6 start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG ∑ start_POSTSUBSCRIPT start_ARG start_ROW start_CELL italic_a italic_b italic_c end_CELL end_ROW start_ROW start_CELL italic_d italic_e italic_f end_CELL end_ROW end_ARG end_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (3) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b italic_c end_POSTSUBSCRIPT ⟨ italic_u start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_d end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_e end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_f end_POSTSUBSCRIPT ⟩ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (3) end_ARG end_RELOP start_POSTSUBSCRIPT italic_d italic_e italic_f end_POSTSUBSCRIPT (103)

where Z0subscript𝑍0Z_{0}italic_Z start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT is the harmonic partition function, and the average 0subscriptdelimited-⟨⟩0\left<\cdot\right>_{0}⟨ ⋅ ⟩ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT is performed on the harmonic Gaussian distribution. The odd term in Eq. (102) vanishes in when averaged over a Gaussian distribution as it is the integral of an odd function (u3superscript𝑢3u^{3}italic_u start_POSTSUPERSCRIPT 3 end_POSTSUPERSCRIPT) times an even function (the Gaussian). The full free energy is

F1βln[Z0(1+Z1Z0)]=Fharm1βZ1Z0𝐹1𝛽subscript𝑍01subscript𝑍1subscript𝑍0subscript𝐹harm1𝛽subscript𝑍1subscript𝑍0F\approx-\frac{1}{\beta}\ln\left[Z_{0}\left(1+\frac{Z_{1}}{Z_{0}}\right)\right% ]=F_{\text{harm}}-\frac{1}{\beta}\frac{Z_{1}}{Z_{0}}italic_F ≈ - divide start_ARG 1 end_ARG start_ARG italic_β end_ARG roman_ln [ italic_Z start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ( 1 + divide start_ARG italic_Z start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_ARG start_ARG italic_Z start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG ) ] = italic_F start_POSTSUBSCRIPT harm end_POSTSUBSCRIPT - divide start_ARG 1 end_ARG start_ARG italic_β end_ARG divide start_ARG italic_Z start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_ARG start_ARG italic_Z start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG (104)

Therefore, the correction in Eq. (103) represents the perturbative correction beyond harmonic to the free energy, which is quadratic in the third-order term. The six-body correlation function uaubucudueuf0subscriptdelimited-⟨⟩subscript𝑢𝑎subscript𝑢𝑏subscript𝑢𝑐subscript𝑢𝑑subscript𝑢𝑒subscript𝑢𝑓0\left<u_{a}u_{b}u_{c}u_{d}u_{e}u_{f}\right>_{0}⟨ italic_u start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_d end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_e end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_f end_POSTSUBSCRIPT ⟩ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT can be evaluated by exploiting the properties of Gaussian integrals by splitting it in all the possible contractions of two-body correlations:

uaubucudueuf0=subscriptdelimited-⟨⟩subscript𝑢𝑎subscript𝑢𝑏subscript𝑢𝑐subscript𝑢𝑑subscript𝑢𝑒subscript𝑢𝑓0absent\displaystyle\left<u_{a}u_{b}u_{c}u_{d}u_{e}u_{f}\right>_{0}=⟨ italic_u start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_d end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_e end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_f end_POSTSUBSCRIPT ⟩ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT = uaub0ucud0ueuf0+limit-fromsubscriptdelimited-⟨⟩subscript𝑢𝑎subscript𝑢𝑏0subscriptdelimited-⟨⟩subscript𝑢𝑐subscript𝑢𝑑0subscriptdelimited-⟨⟩subscript𝑢𝑒subscript𝑢𝑓0\displaystyle\left<u_{a}u_{b}\right>_{0}\left<u_{c}u_{d}\right>_{0}\left<u_{e}% u_{f}\right>_{0}+⟨ italic_u start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ⟩ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ⟨ italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_d end_POSTSUBSCRIPT ⟩ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ⟨ italic_u start_POSTSUBSCRIPT italic_e end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_f end_POSTSUBSCRIPT ⟩ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT +
uaub0ucue0uduf0+limit-fromsubscriptdelimited-⟨⟩subscript𝑢𝑎subscript𝑢𝑏0subscriptdelimited-⟨⟩subscript𝑢𝑐subscript𝑢𝑒0subscriptdelimited-⟨⟩subscript𝑢𝑑subscript𝑢𝑓0\displaystyle\left<u_{a}u_{b}\right>_{0}\left<u_{c}u_{e}\right>_{0}\left<u_{d}% u_{f}\right>_{0}+⟨ italic_u start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ⟩ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ⟨ italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_e end_POSTSUBSCRIPT ⟩ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ⟨ italic_u start_POSTSUBSCRIPT italic_d end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_f end_POSTSUBSCRIPT ⟩ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT +
uaub0ucuf0udue0+subscriptdelimited-⟨⟩subscript𝑢𝑎subscript𝑢𝑏0subscriptdelimited-⟨⟩subscript𝑢𝑐subscript𝑢𝑓0subscriptdelimited-⟨⟩subscript𝑢𝑑subscript𝑢𝑒0\displaystyle\left<u_{a}u_{b}\right>_{0}\left<u_{c}u_{f}\right>_{0}\left<u_{d}% u_{e}\right>_{0}+\cdots⟨ italic_u start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ⟩ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ⟨ italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_f end_POSTSUBSCRIPT ⟩ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ⟨ italic_u start_POSTSUBSCRIPT italic_d end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_e end_POSTSUBSCRIPT ⟩ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT + ⋯ (105)

Each contraction is equal to the covariance matrix

uaub0=(𝚼1)ab.subscriptdelimited-⟨⟩subscript𝑢𝑎subscript𝑢𝑏0subscriptsuperscript𝚼1𝑎𝑏\left<u_{a}u_{b}\right>_{0}=\left(\boldsymbol{\Upsilon}^{-1}\right)_{ab}.⟨ italic_u start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ⟩ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT = ( bold_Υ start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT ) start_POSTSUBSCRIPT italic_a italic_b end_POSTSUBSCRIPT . (106)

Exploiting the language from many-body theory, uaub0subscriptdelimited-⟨⟩subscript𝑢𝑎subscript𝑢𝑏0\left<u_{a}u_{b}\right>_{0}⟨ italic_u start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ⟩ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT is a static correlation function between two positions, i.e., the same time phononic Green function. In the language of Feynman diagrams, each one of the terms in Eq. (105) can be represented by a line connecting two atoms a𝑎aitalic_a and b𝑏bitalic_b, while the three-phonon vertex Φabc(3)subscriptsuperscriptΦ(3)𝑎𝑏𝑐\stackrel{{\scriptstyle\text{\tiny(3)}}}{{\Phi}}_{abc}start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (3) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b italic_c end_POSTSUBSCRIPT as a triangle with the three atoms a,b,c𝑎𝑏𝑐a,b,citalic_a , italic_b , italic_c as vertices. Therefore, the expression of the free energy correction in Eq. (103) can be written as two different terms:

abcdefΦabc(3)uaub0ucud0ueuf0Φdef(3),subscriptsuperscriptΦ(3)𝑎𝑏𝑐subscript𝑎𝑏𝑐𝑑𝑒𝑓subscriptdelimited-⟨⟩subscript𝑢𝑎subscript𝑢𝑏0subscriptdelimited-⟨⟩subscript𝑢𝑐subscript𝑢𝑑0subscriptdelimited-⟨⟩subscript𝑢𝑒subscript𝑢𝑓0subscriptsuperscriptΦ(3)𝑑𝑒𝑓absent\sum_{\begin{subarray}{c}abc\\ def\end{subarray}}\stackrel{{\scriptstyle\text{\tiny(3)}}}{{\Phi}}_{abc}\left<% u_{a}u_{b}\right>_{0}\left<u_{c}u_{d}\right>_{0}\left<u_{e}u_{f}\right>_{0}% \stackrel{{\scriptstyle\text{\tiny(3)}}}{{\Phi}}_{def},∑ start_POSTSUBSCRIPT start_ARG start_ROW start_CELL italic_a italic_b italic_c end_CELL end_ROW start_ROW start_CELL italic_d italic_e italic_f end_CELL end_ROW end_ARG end_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (3) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b italic_c end_POSTSUBSCRIPT ⟨ italic_u start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ⟩ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ⟨ italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_d end_POSTSUBSCRIPT ⟩ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ⟨ italic_u start_POSTSUBSCRIPT italic_e end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_f end_POSTSUBSCRIPT ⟩ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (3) end_ARG end_RELOP start_POSTSUBSCRIPT italic_d italic_e italic_f end_POSTSUBSCRIPT , (107)
abcdefΦabc(3)uaud0ubue0ucuf0Φdef(3).subscriptsuperscriptΦ(3)𝑎𝑏𝑐subscript𝑎𝑏𝑐𝑑𝑒𝑓subscriptdelimited-⟨⟩subscript𝑢𝑎subscript𝑢𝑑0subscriptdelimited-⟨⟩subscript𝑢𝑏subscript𝑢𝑒0subscriptdelimited-⟨⟩subscript𝑢𝑐subscript𝑢𝑓0subscriptsuperscriptΦ(3)𝑑𝑒𝑓absent\sum_{\begin{subarray}{c}abc\\ def\end{subarray}}\stackrel{{\scriptstyle\text{\tiny(3)}}}{{\Phi}}_{abc}\left<% u_{a}u_{d}\right>_{0}\left<u_{b}u_{e}\right>_{0}\left<u_{c}u_{f}\right>_{0}% \stackrel{{\scriptstyle\text{\tiny(3)}}}{{\Phi}}_{def}.∑ start_POSTSUBSCRIPT start_ARG start_ROW start_CELL italic_a italic_b italic_c end_CELL end_ROW start_ROW start_CELL italic_d italic_e italic_f end_CELL end_ROW end_ARG end_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (3) end_ARG end_RELOP start_POSTSUBSCRIPT italic_a italic_b italic_c end_POSTSUBSCRIPT ⟨ italic_u start_POSTSUBSCRIPT italic_a end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_d end_POSTSUBSCRIPT ⟩ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ⟨ italic_u start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_e end_POSTSUBSCRIPT ⟩ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ⟨ italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT italic_f end_POSTSUBSCRIPT ⟩ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_RELOP SUPERSCRIPTOP start_ARG roman_Φ end_ARG start_ARG (3) end_ARG end_RELOP start_POSTSUBSCRIPT italic_d italic_e italic_f end_POSTSUBSCRIPT . (108)

All other terms in Eq. (105) can be recast in one of Eq. (107) and Eq. (108) by changing the names of the labels in the summation. Eq. (107) two indices of each three-phonons vertex are completely contracted with a phonon Green-function, leading to the Feynman diagram in Figure 2a. Eq. (108), on the opposite, has all phonon Green’s functions connecting different three-phonons vertices, and can be depicted as Figure 2b.

References

  • [1] U. Aseginolaza, R. Bianco, L. Monacelli, L. Paulatto, M. Calandra, F. Mauri, A. Bergara, and I. Errea, “Phonon collapse and second-order phase transition in thermoelectric SnSe,” Physical Review Letters, vol. 122, no. 7, p. 075901, 2019.
  • [2] P. K. Schelling, S. R. Phillpot, and P. Keblinski, “Comparison of atomic-level simulation methods for computing thermal conductivity,” Phys. Rev. B, vol. 65, p. 144306, 2002.
  • [3] A. Tenenbaum, G. Ciccotti, and R. Gallico, “Stationary nonequilibrium states by molecular dynamics. fourier’s law,” Phys. Rev. A, vol. 25, pp. 2778–2787, 1982.
  • [4] E. Drigo, M. G. Izzo, and S. Baroni, “Heat conductivity from energy-density fluctuations,” The Journal of Chemical Physics, vol. 159, no. 18, p. 184107, 2023.
  • [5] M. Simoncelli, N. Marzari, and F. Mauri, “Unified theory of thermal transport in crystals and glasses,” Nature Physics, vol. 15, no. 8, pp. 809–813, 2019.
  • [6] M. Born and T. von Karman Phys. Z., vol. 13, p. 297, 1912.
  • [7] M. L. Klein and G. K. Horton, “The rise of self-consistent phonon theory,” Journal of Low Temperature Physics, vol. 9, no. 3–4, p. 151, 1972.
  • [8] P. Souvatzis, O. Eriksson, M. I. Katsnelson, and S. P. Rudin, “Entropy driven stabilization of energetically unstable crystal structures explained from first principles theory,” Phys. Rev. Lett., vol. 100, p. 095901, 2008.
  • [9] A. van Roekeghem, J. Carrete, and N. Mingo, “Quantum self-consistent ab-initio lattice dynamics,” Computer Physics Communications, vol. 263, p. 107945, 2021.
  • [10] D. B. Zhang, T. Sun, and R. M. Wentzcovitch, “Phonon quasiparticles and anharmonic free energy in complex systems,” Physical review letters, vol. 112, no. 5, p. 058501, 2014.
  • [11] B. Monserrat, N. D. Drummond, and R. J. Needs, “Anharmonic vibrational properties in periodic systems: energy, electron-phonon coupling, and stress,” Physical Review B, vol. 87, no. 14, 2013.
  • [12] I. Errea, B. Rousseau, and A. Bergara, “Isotope effect in the superconducting high-pressure simple cubic phase of calcium from first principles,” Journal of Applied Physics, vol. 111, no. 11, p. 112604, 2012.
  • [13] I. Errea, M. Calandra, and F. Mauri, “Anharmonic free energies and phonon dispersions from the stochastic self-consistent harmonic approximation: Application to platinum and palladium hydrides,” Physical Review B, vol. 89, no. 6, p. 064302, 2014.
  • [14] L. Monacelli, R. Bianco, M. Cherubini, M. Calandra, I. Errea, and F. Mauri, “The stochastic self-consistent harmonic approximation: calculating vibrational properties of materials with full quantum and anharmonic effects,” Journal of Physics: Condensed Matter, vol. 33, no. 36, p. 363001, 2021.
  • [15] T. Tadano and S. Tsuneyuki, “Self-consistent phonon calculations of lattice dynamical properties in cubic SrTiO3 with first-principles anharmonic force constants,” Physical Review B, vol. 92, no. 5, p. 054301, 2015.
  • [16] O. Hellman, I. A. Abrikosov, and S. I. Simak, “Lattice dynamics of anharmonic solids from first principles,” Physical Review B, vol. 84, no. 18, p. 180301, 2011.
  • [17] O. Hellman and I. A. Abrikosov, “Temperature-dependent effective third-order interatomic force constants from first principles,” Physical Review B, vol. 88, no. 14, p. 144301, 2013.
  • [18] O. Hellman and I. A. Abrikosov, “Temperature-dependent effective third-order interatomic force constants from first principles,” Physical Review B, vol. 88, no. 14, p. 144301, 2013.
  • [19] G. Caldarelli, M. Simoncelli, N. Marzari, F. Mauri, and L. Benfatto, “Many-body green’s function approach to lattice thermal transport,” Physical Review B, vol. 106, no. 2, p. 024312, 2022.
  • [20] D. Dangic, O. Hellman, S. Fahy, and I. Savić, “The origin of the lattice thermal conductivity enhancement at the ferroelectric phase transition in GeTe,” npj Computational Materials, vol. 7, no. 1, pp. 1–8, 2021.
  • [21] D. Dangic, L. Monacelli, R. Bianco, F. Mauri, and I. Errea, “Large impact of phonon lineshapes on the superconductivity of solid hydrogen,” Communications Physics, vol. 7, no. 1, p. 150, 2024.
  • [22] E. Fransson, P. Rosander, F. Eriksson, J. M. Rahm, T. Tadano, and P. Erhart, “Limits of the phonon quasi-particle picture at the cubic-to-tetragonal phase transition in halide perovskites,” Communications Physics, vol. 6, no. 1, p. 173, 2023.
  • [23] O. Hellman, P. Steneteg, I. A. Abrikosov, and S. I. Simak, “Temperature dependent effective potential method for accurate free energy calculations of solids,” Physical Review B, vol. 87, no. 10, p. 104111, 2013.
  • [24] T. Tadano, Y. Gohda, and S. Tsuneyuki, “Anharmonic force constants extracted from first-principles molecular dynamics: applications to heat transfer simulations,” Journal of Physics: Condensed Matter, vol. 26, no. 22, p. 225402, 2014.
  • [25] M. Borinaga, P. Riego, A. Leonardo, M. Calandra, F. Mauri, A. Bergara, and I. Errea, “Anharmonic enhancement of superconductivity in metallic molecularCmca - 4 hydrogen at high pressure: a first-principles study,” Journal of Physics: Condensed Matter, vol. 28, no. 49, p. 494001. Publisher: IOP Publishing.
  • [26] M. Borinaga, I. Errea, M. Calandra, F. Mauri, and A. Bergara, “Anharmonic effects in atomic hydrogen: Superconductivity and lattice dynamical stability,” Physical Review B, vol. 93, no. 17, p. 174308. Number of pages: 8 Publisher: American Physical Society.
  • [27] V. V. Goldman, G. K. Horton, and M. L. Klein, “Phonon energies and lifetimes in solid ne and he in the first-order self-consistent approximation,” Physical Review Letters, vol. 24, pp. 1424–1427, 1970.
  • [28] R. Bianco, I. Errea, L. Paulatto, M. Calandra, and F. Mauri, “Second-order structural phase transitions, free energy curvature, and temperature-dependent anharmonic phonons in the self-consistent harmonic approximation: Theory and stochastic implementation,” Physical Review B, vol. 96, no. 1, p. 014111, 2017.
  • [29] J.-M. Lihm and C.-H. Park, “Gaussian time-dependent variational principle for the finite-temperature anharmonic lattice dynamics,” Physical Review Research, vol. 3, p. L032017, 2021.
  • [30] L. Monacelli and F. Mauri, “Time-dependent self-consistent harmonic approximation: Anharmonic nuclear quantum dynamics and time correlation functions,” Physical Review B, vol. 103, no. 10, p. 104305, 2021.
  • [31] A. Castellano, J. P. A. Batista, and M. J. Verstraete, “Mode-coupling theory of lattice dynamics for classical and quantum crystals,” The Journal of Chemical Physics, vol. 159, no. 23, p. 234501, 2023.
  • [32] U. Aseginolaza, J. Diego, T. Cea, R. Bianco, L. Monacelli, F. Libbi, M. Calandra, A. Bergara, F. Mauri, and I. Errea, “Bending rigidity, sound propagation and ripples in flat graphene,” Nature Physics, 2024.
  • [33] F. Bottin, J. Bieder, and J. Bouchet, “a-TDEP: Temperature dependent effective potential for abinit – lattice dynamic properties including anharmonicity,” Computer Physics Communications, vol. 254, p. 107301, 2020.
  • [34] A. Siciliano, L. Monacelli, G. Caldarelli, and F. Mauri, “Wigner gaussian dynamics: Simulating the anharmonic and quantum ionic motion,” Physical Review B, vol. 107, no. 17, p. 174307, 2023.
  • [35] D. Dangić, S. Fahy, and I. Savić, “Molecular dynamics simulation of the ferroelectric phase transition in gete: Displacive or order-disorder character,” Physical Review B, vol. 106, p. 134113, 2022.
  • [36] T. R. Koehler, “Theoretical temperature-dependent phonon spectra of solid neon,” Physical Review Letters, vol. 22, p. 777, 1969.
  • [37] Y. Oba, T. Tadano, R. Akashi, and S. Tsuneyuki, “First-principles study of phonon anharmonicity and negative thermal expansion in scf3subscriptscf3{\mathrm{scf}}_{3}roman_scf start_POSTSUBSCRIPT 3 end_POSTSUBSCRIPT,” Physical Review Materials, vol. 3, p. 033601, 2019.
  • [38] R. Masuki, T. Nomoto, R. Arita, and T. Tadano, “Ab initio structural optimization at finite temperatures based on anharmonic phonon theory: Application to the structural phase transitions of batio3subscriptbatio3{\mathrm{batio}}_{3}roman_batio start_POSTSUBSCRIPT 3 end_POSTSUBSCRIPT,” Physical Review B, vol. 106, p. 224104, 2022.
  • [39] L. Monacelli, I. Errea, M. Calandra, and F. Mauri, “Black metal hydrogen above 360 GPa driven by proton quantum fluctuations,” Nature Physics, vol. 17, no. 1, pp. 63–67, 2021.
  • [40] M. Cherubini, L. Monacelli, and F. Mauri, “The microscopic origin of the anomalous isotopic properties of ice relies on the strong quantum anharmonic regime of atomic vibration,” Journal of Chemical Physics, vol. 155, no. 18, p. 184502.
  • [41] U. Ranieri, S. D. Cataldo, M. Rescigno, L. Monacelli, R. Gaal, M. Santoro, L. Andriambariarijaona, P. Parisiades, C. D. Michele, and L. E. Bove, “Observation of the most h2-dense filled ice under high pressure,” Proceedings of the National Academy of Sciences, vol. 120, no. 52, p. e2312665120, 2023.