원시데이터 수집 시스템
선정목록으로

Time correlation functions for quantum systems: validating Bayesian approaches for harmonic oscillators and beyond

관련 필름·전자재료 · (16) CPI(투명 폴리이미드)

기본 정보

저자
  1. Efremkin, Vladislav
  2. Barrat, Jean-Louis
  3. Mossa, Stefano
  4. Holzmann, Markus
DOI
10.48550/arxiv.2105.09575
저널
arXiv (Cornell University)
발행년도
2022
발행기관
Cornell University
피인용수
0
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.48550/arxiv.2105.09575
토픽
Thermal properties of materials
OpenAlex ID
W6891831325

평가 내용

관련도
관련
사업분야
필름·전자재료 · (16) CPI(투명 폴리이미드)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > CPI(투명 폴리이미드)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

The quantum harmonic oscillator is the fundamental building block to compute thermal properties of virtually any dielectric crystal at low temperatures in terms of phonons, extended further to cases with anharmonic couplings, or even disordered solids. In general, Path Integral Monte Carlo (PIMC) or Molecular Dynamics (PIMD) methods are powerful tools to determine stochastically thermodynamic quantities without systematic bias, not relying on perturbative schemes. Addressing transport properties, for instance calculating thermal conductivity from PIMC, however, is substantially more difficult. Although correlation functions of current operators can be determined by PIMC from analytic continuation on the imaginary-time axis, Bayesian methods are usually employed for the numerical inversion back to real-time response functions. This task not only strongly relies on the accuracy of the PIMC data, but also introduces noticeable dependence on the model used for the inversion. Here, we address both difficulties with care. In particular, we first devise improved estimators for current correlations which substantially reduce the variance of the PIMC data. Next, we provide a neat statistical approach to the inversion problem, blending into a fresh workflow the classical stochastic maximum entropy method together with recent notions borrowed from statistical learning theory. We test our ideas on a single harmonic oscillator and a collection of oscillators with a continuous distribution of frequencies, and provide indications of the performance of our method in the case of a particle in a double well potential. This work establishes solid grounds for an unbiased, fully quantum mechanical calculation of transport properties in solids.

본문 97,361자

본문 펼치기
## Time correlation functions for quantum systems: validating Bayesian approaches for harmonic oscillators and beyond Vladislav Efremkin, <sup>1, a)</sup> Jean-Louis Barrat, <sup>2, b)</sup> Stefano Mossa, <sup>3</sup> and Markus Holzmann <sup>4</sup> 1) _Univ._ _Grenoble Alpes, CNRS, LIPhy, 38000 Grenoble, France_ 2) _Univ._ _Grenoble Alpes, CNRS, LIPhy, 38000 Grenoble, France_ 3) _CEA, IRIG-MEM, Univ._ _Grenoble Alpes, 38000 Grenoble, France_ 4) _Univ._ _Grenoble Alpes, CNRS, LPMMC, 38000 Grenoble, France_ (Dated: 8 September 2021) The quantum harmonic oscillator is the fundamental building block to compute thermal properties of virtually any dielectric crystal at low temperatures in terms of phonons, extended further to cases with anharmonic couplings, or even disordered solids. In general, Path Integral Monte Carlo (PIMC) or Molecular Dynamics (PIMD) methods are powerful tools to determine stochastically thermodynamic quantities without systematic bias, not relying on perturbative schemes. Addressing transport properties, for instance calculating thermal conductivity from PIMC, however, is substantially more difficult. Although correlation functions of current operators can be determined by PIMC from analytic continuation on the imaginary-time axis, Bayesian methods are usually employed for the numerical inversion back to real-time response functions. This task not only strongly relies on the accuracy of the PIMC data, but also introduces noticeable dependence on the model used for the inversion. Here, we address both difficulties with care. In particular, we first devise improved estimators for current correlations which substantially reduce the variance of the PIMC data. Next, we provide a neat statistical approach to the inversion problem, blending into a fresh workflow the classical stochastic maximum entropy method together with recent notions borrowed from statistical learning theory. We test our ideas on a single harmonic oscillator and a collection of oscillators with a continuous distribution of frequencies, and provide indications of the performance of our method in the case of a particle in a double well potential. This work establishes solid grounds for an unbiased, fully quantum mechanical calculation of transport properties in solids. I. INTRODUCTION Atomic nuclei in condensed phases behave, in many cases, as quantum objects. For instance, Nuclear Quantum Effects are responsible for the _heat_ _capacity_ _problem_, i.e., the deviation from the classical Dulong and Petit law for the heat capacity of solids at low temperatures. The solution of this issue eventually led to the development of the harmonic theory of solids, an accurate quantum theory that lets us to compute their thermal properties at temperatures lower than the Debye temperature, and can be corrected to account for anharmonic effects <sup>1,2</sup> . By reducing the description of an insulating solid to a set of independent harmonic oscillators, the _phonons_, weakly interacting through anharmonic couplings, this theory also provides a framework for the computation of transport properties, in particular of heat conductivity. In contrast to the very high accuracy that can be achieved for thermal properties, however, the computation of transport features is sensibly more delicate and often requires ad hoc approximations for the lifetime of phonons, which is limited by phononphonon scattering processes and the presence of defects. The general framework of the harmonic theory of solids, originally developed for crystals, can be adapted to _disordered_ _solids_ . This is at the expenses of employing a numerical approach to characterize the harmonic eigenmodes, that replace phonons and are no longer determined by symmetries. Again, this procedure can be efficiently employed to determine thermal properties, while its application to transport is much more limited. a)Electronic mail: [vladislav.efremkin@univ-grenoble-alpes.fr](mailto:vladislav.efremkin@univ-grenoble-alpes.fr) b)Electronic mail: [jean-louis.barrat@univ-grenoble-alpes.fr](mailto:jean-louis.barrat@univ-grenoble-alpes.fr) Very often these properties are indeed calculated via classical statistical mechanics approaches (based on classical Molecular Dynamics simulations), whose results are next empirically corrected to account for quantum effects (see, among others, <sup>3</sup> ). We also note that, in systems (ordered or disordered) involving light nuclei (e.g., hydrogen in solid ice), the large wavelength associated with light atoms makes the harmonic approximation itself inappropriate. Therefore, an exact calculation should in general be considered even for thermal properties, or for the determination of phase boundaries <sup>4</sup> . The harmonic theory of crystalline solids undoubtedly constitutes a remarkable achievement, as many results can be obtained based on an almost fully analytical approach. However, the above limitations in computing transport properties or in applying the theory to disordered structures, point to the necessity of numerical approaches. It would therefore be highly desirable to develop a numerical methodology that could fully take into account the quantum nature of atomic nuclei, allowing us to determine without approximations both thermal and transport properties of any insulating solid. When interested in thermal properties, an exact numerical method that encompasses all quantum aspects and is valid at any temperature, independently of the strength of anharmonic effects, involves the path integral representation of the partition function <sup>5–8</sup> . In the absence of exchange effects (a reasonable hypothesis in most common solids), the determination of thermodynamic properties at the inverse temperature _β_ = ( _kBT_ ) <sup>_−_</sup> <sup>1</sup> involves the sampling of an equivalent system where each quantum particle is replaced by a discretized "path" consisting of _M_ "imaginary time slices". The method becomes exact in the limit of large _M_, and the sampling of _N_ quantum degrees of freedom at temperature _T_ turns out to be equivalent to that of _N ×_ _M_ classical degrees of freedom at temperature _M ×_ _T_ . This sampling can be achieved efficiently using Monte Carlo or Molecular Dynamics methods, leading to the PIMC and PIMD methods, respectively <sup>9</sup> . Computation of transport properties is more problematic. The standard Green and Kubo statistical mechanics approach to transport coefficients <sup>10–12</sup>, obtains the heat conductivity tensor _κ_ in a system of volume _V_ at temperature _T_ from a time correlation function of the energy current operator J as, <u>1</u> _καβ_ = _VkBT_ <sup>2</sup> - ∞ 0 <sup>_dt⟨Jα_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_Jβ_</sup> <sup>(0)</sup> <sup>_⟩._</sup> (1) Unfortunately, the path integral method provides directly static (time-independent) quantities only. A possible solution to this problem has been identified long ago <sup>13</sup>, by noting that the PIMC approach can rather supply the analytical continuation of the correlation functions on the _imaginary time_ axis, simply by computing the correlation between two imaginary time slices along the path. The power spectrum, _SAB_ ( _ω_ ), of a real time correlator, _CAB_, between two operators _A_ and _B_ can then be obtained in an apparently straightforward manner by using the identity, _CAB_ ( _iτ_ ) = - ∞ - _SAB_ ( _ω_ ) _e_ <sup>_−h_</sup> <sup>¯</sup> <sup>_ωτ_</sup> + _SBA_ ( _ω_ ) _e_ <sup>_−h_</sup> <sup>¯</sup> <sup>_ω_</sup> <sup>(</sup> <sup>_β_</sup> <sup>_−τ_</sup> <sup>)�</sup> 0 <sup>_dω_</sup> _._ (2) the discretization itself. Second, the harmonic oscillator is at the heart of the harmonic theory of solids, the natural starting point for any calculation of transport in insulating solids. Completely controlling this case is, therefore, crucial for any serious step forward in this direction. We conclude the study by providing promising indications of the performance of our method when applied to the strongly anharmonic case of a particle evolving in a double well potential. The manuscript is organized as follows: in Sect. II we introduce the general formalism of the path integral and imaginary time correlations, while in Sect. III we present the procedure that we have developed to cope with the inversion problem. In Sect. IV we next describe a new approach that circumvents the issue of the diverging variance for current-current correlators. Finally, in Sects V and VI we illustrate the application of these methods to a single harmonic oscillator, followed by the case of a collection of oscillators with a continuum distribution of frequencies, mimicking the density of states of a crystalline solid. In Sect. VII we draw our conclusions. II. THE PATH INTEGRAL FORMALISM FOR TIME CORRELATIONS The path integral Monte Carlo method provides a numerically exact route to the evaluation of thermodynamic properties of quantum systems at finite temperature, _T_ . If we consider, for simplicity, a system described by a single degree of freedom _X_ of mass _m_, with Hamiltonian _H_ <sup>ˆ</sup> = _P_ <sup>ˆ2</sup> _/_ 2 _m_ + _U_ ( _X_ <sup>ˆ</sup> ), the average value of an observable _A_ <sup>ˆ</sup> is <u>1</u> _⟨A_ <sup>ˆ</sup> _⟩_ = (3) _Z_ ( _β_ ) <sup>Tr[</sup> <sup>_Ae_</sup> <sup>ˆ</sup> <sup>_−β_</sup> <sup>_H_</sup> <sup>ˆ</sup> <sup>]</sup> <sup>_,_</sup> where _Z_ ( _β_ ) = Tr[ _e_ <sup>_−β_</sup> <sup>_H_</sup> <sup>ˆ</sup> ]. In the PIMC approach, the trace is evaluated by expressing the density operator as _e_ <sup>_−β_</sup> <sup>_H_</sup> <sup>ˆ</sup> = ( _e_ <sup>_−β_</sup> <sup>_H_</sup> <sup>ˆ</sup> <sup>_/M_</sup> ) <sup>_M_</sup> . In the position representation _|X⟩_, and using the notation _ρ_ ( _X,Y,_ _τ_ ) = _⟨X|e_ <sup>_−τH_</sup> <sup>ˆ</sup> _|Y_ _⟩_, we can write While Eq. (2) in principle allows one to obtain _S_ based on the data for _C_ ( _iτ_ ), with _τ_ in [0 _,_ _β_ ], it is well known that the inversion problem is ill-posed, in the sense that determining _S_ with high precision is an extremely difficult task, even if _C_ is known with excellent accuracy. For this reason, the approach pioneered by a few groups in the eighties within the framework of path integral calculations did not spread widely. As an alternative, real-time correlation functions of the centroid, or ring-polymer dynamics computed within PIMD, often provide accurate spectra <sup>14</sup> . They lack, nonetheless, a rigorous justification of the underlying semi-classical approximation for obtaining low temperature transport properties, and we will not go this route in what follows. Many recent studies obtained in various fields <sup>15–19</sup>, however, indicate that the present computing capabilities should by now allow us to carry out the original program of analytical continuation from imaginary to real time spectrasatisfactorily, by addressing the two major (and related) difficulties: _i)_ to obtain with high accuracy the imaginary time correlation, in particular for current operators which suffer from the well known issue of diverging variance <sup>7</sup> in the limit of large _M_ ; and _ii)_ to solve the ill-posed problem of extracting the frequency spectrum from the imaginary time correlation functions. Here we address these two issues based on numerical and analytical calculations of very simple examples, namely a single harmonic oscillator or an ensemble of oscillators with a continuum distribution of frequencies. The interest of this choice is twofold. First, due to its simplicity, we can obtain exact analytical expressions for most quantities of interest, including all time dependent correlations and exact expressions for the discretized path integrals. The availability of these expressions enables a precise control of the different sources of error, which can be both of statistical origin or associated with (5) <u>1</u> _⟨A_ <sup>ˆ</sup> _⟩_ = _Z_ ( _β_ ) _dX_ 0 _..._ _dXM_ _⟨X_ 0 _|A_ <sup>ˆ</sup> _|X_ 1 _⟩ρ_ ( _X_ 1 _,_ _X_ 2 _,_ _β_ _/M_ ) _..._ _ρ_ ( _XM,_ _X_ 0 _,_ _β_ _/M_ ) _._ (4) If an expression for _ρ_ ( _X,Y,_ _β_ _/M_ ) is known, the observable can be evaluated by sampling the "path" _{X_ 0 _..._ _XM}_ with a statistical weight proportional to _ρ_ ( _X_ 1 _,_ _X_ 2 _,_ _β_ _/M_ ) _..._ _ρ_ ( _XM,_ _X_ 0 _,_ _β_ _/M_ ). As the matrix element _⟨X_ 0 _|A_ <sup>ˆ</sup> _|X_ 1 _⟩_ of a _local_ operator _A_ <sup>ˆ</sup> involves in general a term _δ_ ( _X_ 0 _−_ _X_ 1), the sampling is actually performed over a closed path of _M_ points. In the following we will repeatedly consider the "primitive" approximation, based on the factorization of the kinetic and potential parts of the density operator and valid in the limit of small _τ_ <sup>6</sup>, _ρp_ ( _X,Y,_ _τ_ ) _≃_ ~~�~~ _<u>m</u>_ - _−m_ <sup><u>(</u></sup> <sup>_<u>X −Y</u>_</sup> <sup><u>)2</u></sup> 2 _πh_ ¯ <sup>2</sup> _τ_ <sup>exp</sup> 2¯ _h_ <sup>2</sup> _τ_ <sup>_<u>−Y</u>_</sup> <sup><u>)2</u></sup> _−_ <sup>_<u>τ</u>_</sup> 2¯ _h_ <sup>2</sup> _τ_ 2 <sup>_<u>τ</u>_</sup> 2 <sup>[</sup> <sup>_U_</sup> <sup>(</sup> <sup>_X_</sup> <sup>)+</sup> <sup>_U_</sup> <sup>(</sup> <sup>_Y_</sup> <sup>)]</sup> - _._ This simplified expression can be replaced by a more accurate one if needed, and if the exact value of _ρ_ is known, as it is the case for the harmonic oscillator, the latter can be used to sample the path more efficiently <sup>20</sup> . Here, we are interested in equilibrium time correlation functions that determine the linear response properties of the system. A time correlation involving the observables _A_ at time _t_ and _B_ at time _t_ = 0 is the equilibrium average of the product of the operators _A_ <sup>ˆ</sup> ( _t_ ) = _e_ <sup>_itH/h_</sup> <sup>¯ ˆ</sup> _Ae_ <sup>_−itH/h_</sup> <sup>¯</sup>, and _B_ <sup>ˆ</sup> (0) = _B_ <sup>ˆ</sup>, which we can write as, <u>1</u> _CAB_ ( _t/h_ ¯ ) = _⟨A_ <sup>ˆ</sup> ( _t_ ) _B_ <sup>ˆ</sup> (0) _⟩_ = _Z_ ( _β_ ) <sup>Tr[</sup> <sup>_A_</sup> <sup>ˆ(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_B_</sup> <sup>ˆ(0)</sup> <sup>_e−β_</sup> <sup>_H_</sup> <sup>ˆ</sup> <sup>]</sup> <sup>_._</sup> (6) Obviously, the splitting method could be applied to the operators exp( _itH_ <sup>ˆ</sup> _/h_ ¯ ). Unfortunately, the statistical weight associated with the resulting path is imaginary, and therefore it is not suitable for usual sampling methods. If, however, the real time _t_ is replaced by an imaginary time _t_ = _iτh_ ¯, we can write, <u>1</u> _CAB_ ( _iτ_ ) = _Z_ ( _β_ ) <sup>Tr[</sup> <sup>_Ae_</sup> <sup>ˆ</sup> <sup>_−τH_</sup> <sup>ˆ</sup> <sup>_Be_</sup> <sup>ˆ</sup> <sup>_−_</sup> <sup>(</sup> <sup>_β_</sup> <sup>_−τ_</sup> <sup>)</sup> <sup>_H_</sup> <sup>ˆ</sup> <sup>]</sup> of some basis set), and the _C_ ( _τk_ ) are affected by statistical errors, a very large number of solutions for _S_ compatible with the original data will be found. This topic is the subject of a vast literature, and it is fair to conclude that no single method emerges as a preferred solution. Generally speaking, most current solutions employ some particular version of a "maximum entropy" approach <sup>22,23</sup> . In the context of PIMC and to obtain real time data in combination with real time approximate methods, this procedure was used for instance in Refs. <sup>24–26</sup> . The spectral function, _SME_, is therefore obtained as an average over the possible _S_ ( _ω_ )’s (defined by some finite set of parameters), weighted by the probability that they are the exact model given the data set ( C _,_ _σ_ <sup>2</sup> ), _S_ ( _ω_ ) _ME_ = _DS_ _p_ ( _S|_ C _,_ _σ_ <sup>2</sup> ) _S_ ( _ω_ ) _._ (9) <u>1</u> = _Z_ ( _β_ ) _dXdX_ <sup>_′_</sup> _dYdY_ <sup>_′_</sup> _⟨X|A_ <sup>ˆ</sup> _|X_ <sup>_′_</sup> _⟩ρ_ ( _X_ <sup>_′_</sup> _,Y,_ _τ_ ) _⟨Y_ _|B_ <sup>ˆ</sup> _|Y_ <sup>_′_</sup> _⟩ρ_ ( _Y_ <sup>_′_</sup> _,_ _X,_ _β −_ _τ_ ) _,_ (7) which is defined for 0 _≤_ _τ_ _≤_ _β_, and verifies _CAB_ ( _iτ_ ) = _CBA_ ( _i_ ( _β −_ _τ_ )). Partitioning again the interval [0 _,_ _β_ ] into _M_ slices of width ∆ _τ_ = _β_ _/M_, the correlation function can be sampled for discrete values of _τ_ of the form _τk_ = _k_ ∆ _τ_, with _k_ = 0 _..._ _M −_ 1, at a computational cost that is similar to that needed to calculate the thermodynamic observables of Eq. (4), obtaining <u>1</u> _CAB_ ( _iτk_ ) = _Z_ ( _β_ ) _dXdYdX_ 1 _...dXM⟨X|A_ <sup>ˆ</sup> _|X_ 1 _⟩ρ_ ( _X_ 1 _,_ _X_ 2 _,_ ∆ _τ_ ) _..._ Here _DS_ indicates the phase space element associated with the parametrization of _S_ ( _ω_ ), C = ( _C_ ( _τ_ 1) _,C_ ( _τ_ 2) _,...,C_ ( _τM_ )) <sup>†</sup> _≡_ ( _C_ 1 _,C_ 2 _,...CM_ ) <sup>†</sup> is a line vector that contains the data points, and _σ_ <sup>2</sup> describes the statistical uncertainty of these data in the form of a covariance matrix. By using the Bayes formula, one has, _p_ ( _S|_ C _,_ _σ_ <sup>2</sup> ) = <sup>_<u>p</u>_</sup> <sup><u>(</u></sup> <sup><u>C</u></sup> <sup>_<u>,</u>_</sup> <sup>_<u>σ</u>_</sup> <sup>2</sup> <sup>_<u>|S</u>_</sup> <sup><u>)</u></sup> (10) _p_ ( C _,_ _σ_ <sup>2</sup> ) <sup>_p_</sup> <sup>(</sup> <sup>_S_</sup> <sup>)</sup> <sup>_,_</sup> where _p_ ( _S_ ) encompasses any prior information on the spectrum.Making the assumption of Gaussian statistics for the likelihood we can write, _p_ ( C _|S,_ _σ_ ) ∝ _e_ <sup>_−_</sup> <sup><u>1</u></sup> <u>2</u> <sup>(</sup> <sup>C</sup> <sup>_−_</sup> <sup>C</sup> <sup>[</sup> <sup>_S_</sup> <sup>])(</sup> <sup>_σ_</sup> <sup>2)</sup> <sup>_−_</sup> <sup>1(</sup> <sup>C</sup> <sup>_−_</sup> <sup>C</sup> <sup>[</sup> <sup>_S_</sup> <sup>])</sup> = _e_ <sup>_−_</sup> <sup><u>1</u></sup> <u>2</u> <sup>_χ_</sup> <sup>2[</sup> <sup>_S_</sup> <sup>]</sup> _,_ (11) which we can interpret as the definition of _χ_ <sup>2</sup> [ _S_ ]. Here C [ _S_ ] is the expression of the vector _C_, obtained by inserting a known spectrum _S_ into the r.h.s. of Eq. (2) and computing the resulting _M_ correlation values. In the case of a spectrum defined by the amplitudes _A_ ( _ωp_ ) for a set of _Nω_ discrete frequencies on a regular grid, using Eq. (2) we obtain, _ρ_ ( _Xk−_ 1 _,_ _Xk,_ ∆ _τ_ ) _⟨Xk|B_ <sup>ˆ</sup> _|Y_ _⟩ρ_ ( _Y,_ _Xk_ +1 _,_ ∆ _τ_ ) _...ρ_ ( _XM,_ _X,_ ∆ _τ_ ) _._ (8) As in Eq. (4), here the sampling must be performed over the _{X_ 1 _..._ _XM}_ coordinates of the path, the _X_ and _Y_ variables being eliminated by the _δ_ -functions contained in the matrix elements of _A_ <sup>ˆ</sup> and _B_ <sup>ˆ</sup> . III. A STATISTICAL APPROACH TO THE INVERSION PROBLEM Once the imaginary time correlations, denoted by _C_ ( _τ_ ) from now on, have been obtained for a set of _M_ discrete values _{τ_ 0 _...τM−_ 1 _}_ in the interval [0 _,_ _β_ ], the real time correlation functions relevant to describe the system physical response can, in principle, be obtained by inverting Eq. (2). This is common to many studies of quantum systems, and generally described as the "analytical continuation" procedure. It is, however, ill-posed, in the sense that if the spectrum _S_ ( _ω_ ) <sup>21</sup> is described by a set of parameters (such as the values of _S_ on a discrete _ω_ -grid, or the coefficients of an expansion in terms _._ (12) _C_ ˜[ _S_ ]( _τα_ ) = _Nω_ ## ∑ _p_ =1 _A_ ( _ωp_ ) - _e_ <sup>_−h_</sup> <sup>¯</sup> <sup>_ωpτα_</sup> + _e_ <sup>_−h_</sup> <sup>¯</sup> <sup>(</sup> <sup>_β_</sup> <sup>_−τα_</sup> <sup>)</sup> <sup>_ωp_</sup> In traditional maximum entropy methods, Eq. (9) is solved at the saddle point level, by minimizing the functional _F_ = <u>12</u> <sup>_χ_</sup> <sup>2[</sup> <sup>_S_</sup> <sup>]</sup> <sup>_−_</sup> <sup>_H_</sup> <sup>[</sup> <sup>_S_</sup> <sup>].</sup> <sup>Here,</sup> <sup>_H_</sup> <sup>[</sup> <sup>_S_</sup> <sup>]</sup> <sup>is</sup> <sup>an</sup> <sup>entropic</sup> <sup>functional,</sup> <sup>which</sup> assigns a penalty to irregular solutions that would lead to an overfitting of the statistical errors contained in the data. For a positive spectrum, _H_ [ _S_ ] is usually chosen as the associated Shannon entropy, with a coefficient controlling the strength of the regularisation. In this work we employ the so-called "stochastic analytical inference" or "stochastic maximum entropy" <sup>27</sup> method, where Eq. (9) is sampled by Monte-Carlo methods over _DS_, which can be constrained to positive values of _S_ through the prior probability _p_ ( _S_ ). (In the case studies described below we have employed a flat prior.)The term 2 <sup><u>1</u></sup> <sup>_χ_</sup> <sup>2[</sup> <sup>_S_</sup> <sup>]</sup> can hence be considered as an effective energy functional, and the method can be refined by introducing an additional parameter in the form of an effective inverse temperature Θ as, function, denoted by _C_ exact( _τα_ ). Indeed, by writing _M−_ 1 ## ∑ [ C ¯ Θ( τα ) −C exact( τα )+ C exact( τα ) −Cval,i ( τα )] 2, _α_ =0 _P_ <sup>_′_</sup> _χ_ <sup>2</sup> val <sup>2</sup> <sup>=</sup> <sup><u>1</u></sup> _P_ <sup>_′_</sup> _S_ ( _ω,_ Θ) _ME_ = _Z_ (Θ) <sup>_−_</sup> <sup>1</sup> - _DS S_ ( _ω_ ) _e_ <sup>_−_</sup> <u>2</u> <sup><u>1</u></sup> <sup>Θ</sup> <sup>_χ_</sup> <sup>2[</sup> <sup>_S_</sup> <sup>]</sup> _._ (13) _P_ <sup>_′_</sup> ## ∑ _i_ =1 Here the normalization _Z_ (Θ) = 1 _/_ exp _{_ Θ _F_ (Θ) _}_ is an effective partition function. Note that the traditional maximum entropy approach corresponds to a mean field version of Eq. (13), where one uses as an estimate of the spectrum the minimum of the mean field free energy _FMF_ ( _θ_ ) = 2 <sup><u>1</u></sup> <sup>_χ_</sup> <sup>2[</sup> <sup>_S_</sup> <sup>]</sup> <sup>_−_</sup> Θ <sup>_−_</sup> <sup>1</sup> _H_ [ _S_ ]. In view of the following analysis, we make the simplifying assumption of uncorrelated data points, so that the covariance matrix is diagonal. As a result, we can write the energy functional _χ_ <sup>2</sup> [ _S_ ] in the form, (16) in the limit of large _P_ <sup>_′_</sup> and assuming that the average over the validation data returns the exact correlation function, we obtain _M−_ 1 ## ∑ _α_ =0 _χ_ val <sup>2</sup> <sup>=</sup> _M−_ 1 ## ∑ [ C ¯ Θ( τα ) −C exact( τα )] 2 + _α_ =0 _σ_ val <sup>2</sup> <sup>(</sup> <sup>_τα_</sup> <sup>)</sup> <sup>_._</sup> (17) Here, the first term is the distance of the estimate to the exact data, while the second is the variance of the validation data leading to a background value _χ_ 0 <sup>2</sup> <sup>independent</sup> <sup>of</sup> <sup>Θ</sup> <sup>(or</sup> <sup>any</sup> other parameter entering the model description).The choice of Θ will therefore be eventually dictated by the behavior of the first term. IV. IMPROVED ESTIMATORS FOR CURRENT CORRELATIONS The computation of transport coefficients typically implies correlation functions involving the momentum operator, a prototypical one being _Cpp_ ( _τ_ ) = _⟨p_ ( _τ_ ) _p_ (0) _⟩_ . In the path integral approach and within the primitive approximation of Eq. (5), the momentum operator is expressed as a difference of coordinates, so that the correlation function for _τ̸_ = 0 takes the form _<u>m</u>_ <sup>2</sup> _Cpp_ ( _τk_ ) = _−_ _h_ ¯ <sup>2</sup> ∆ _τ_ <sup>2</sup> <sup>_⟨_</sup> <sup>(</sup> <sup>_xk_</sup> <sup>+1</sup> <sup>_−_</sup> <sup>_xk_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>1</sup> <sup>_−_</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_⟩_</sup> <sup>,</sup> <sup>where</sup> <sup>_xk_</sup> <sup>_≡_</sup> <sup>_x_</sup> <sup>(</sup> <sup>_τk_</sup> <sup>),</sup> _χ_ <sup>2</sup> = _M−_ 1 ## ∑ _α_ =0 <u>[</u> _<u>C</u>_ <u>(</u> _<u>τα</u>_ <u>)</u> _<u>−C</u>_ <sup>˜</sup> <u>[</u> _<u>S</u>_ <u>](</u> _<u>τα</u>_ <u>)]</u> <sup>2</sup> _,_ (14) _σ_ <sup>2</sup> ( _τα_ ) with _σ_ <sup>2</sup> ( _τα_ ) the statistical uncertainty on the data point _α_ . Several arguments <sup>27</sup> have been evoked for fixing Θ = 1. In contrast, in <sup>27</sup> it has been proposed to pick for Θ the value Θ <sup>_∗_</sup> that maximizes _Z_ (Θ), which is argued to also maximize the posterior probability _P_ ( _θ_ _|C_ ). This possibility, which corresponds to a balance between energy and entropy dominated solutions, requires however a full free energy calculation. We further note that increasing the value of Θ is effectively equivalent to rescaling the uncertainties on the data points, a procedure that may lead to overfitting. The corresponding effect on our validation procedure is discussed in Sect. V B. At variance with these proposals, we optimize the value of Θ employing the following strategy. An initial data set, _C_ ( _τα_ ), is generated with known statistical uncertainty _σ_ <sup>2</sup> ( _τα_ ) by using, for instance, a path integral simulation of the considered model. In cases were _C_ ( _τ_ ) is known analytically, synthetic data could also be generated from the exact solution, and introducing a controlled uncertainty. Starting from these data, the spectrum _SME_ (Θ), described by _P_ degrees of freedom _A_ ( _ωp_ ), is obtained through a Monte-Carlo sampling of Eq. (13) for a given value of Θ. Note that a well converged Monte-Carlo average will lead to a spectrum _SME_ (Θ) with an associated _χ_ <sup>2</sup> _∼_ _O_ ( _Mε_ ), where _ε_ is a residual error, while the average _⟨χ_ <sup>2</sup> _⟩∼_ _O_ ( _Mε_ + _P/_ Θ). We denote _C_ <sup>¯</sup> Θ( _τα_ ) the correlation function associated with this average spectrum. In order to determine the optimal choice of Θ, therefore discriminating among different models for _S_ ( _ω_ ) (e.g., different finite discretizations on an _ω_ -grid), we combine the maximum entropy approach with a validation procedure borrowed from the statistical learning theory <sup>28</sup> . We, therefore, generate _P_ <sup>_′_</sup> new sets of validation data, _C_ val _,i_ ( _τα_ ) ( _i_ = 1 _,...,_ _P_ <sup>_′_</sup> ), by using the same technique (even not necessarily with the same accuracy) that we use to produce the original data set, and determine the associated, and _τk_ = _k_ ∆ _τ_ _≡_ _k_ _M_ <sup>_<u>β</u>_</sup> and _τk_ = _k_ ∆ _τ_ _≡_ _k_ _M_ <sup>_<u>β</u>_</sup> <sup>is</sup> <sup>proportional</sup> <sup>to</sup> <sup>the</sup> <sup>discretized</sup> <sup>imag-</sup> inary time. The MC evaluation of _Cpp_ ( _τk_ ) is hampered by the fact that, when ∆ _τ_ gets small, relative fluctuations in ( _xi_ +1 _−_ _xi_ ) become large and the variance of the measured observable grows rapidly (in fact it diverges for ∆ _τ →_ 0). As the uncertainty _δMC_ of the MC estimate of an observable _A_ is related to its variance _σA_ <sup>2</sup> <sup>by</sup> <sup>_δMC_</sup> <sup>∝</sup> <sup>_σA/√τsim_</sup> <sup><u>,</u></sup> <sup>one is therefore</sup> _M−_ 1 ## ∑ [ C ¯ Θ( τα ) −C val,i ( τα )] 2 . (15) _α_ =0 uncertainty _δMC_ of the MC estimate of an observable _A_ is related to its variance _σA_ <sup>2</sup> <sup>by</sup> <sup>_δMC_</sup> <sup>∝</sup> <sup>_σA/√τsim_</sup> <sup><u>,</u></sup> <sup>one is therefore</sup> forced to increase the simulation time, _τsim_, in order to achieve a given precision. This problem was identified early in the development of PIMC, when trying to estimate the atoms kinetic energy, which is ∝ _Cpp_ ( _τ_ = 0). A solution was proposed in <sup>7</sup> : instead of directly using the above expression for _Cpp_ ( _τk_ ), the integrals entering the correlation function can be rearranged obtaining a new estimator for _Cpp_ ( _τk_ ), with identical average but smaller variance. The new expression, known in the case of the kinetic energy as the "virial estimator", does not depend explicitly on ∆ _τ_, and therefore does not suffer from the diverging variance associated with the "naive" estimator. We now show that the strategy used to obtain the virial estimator can be generalized to any correlation function involving the momentum operator <sup>29</sup> . Specifically, we consider correlation functions of the general form involved in calculation of transport coefficients, e. g., _CpF_ ( _τ_ ) = _⟨_ ( ˆ _p_ ( _τ_ ) _F_ <sup>ˆ</sup> ( _τ_ )) _s_ ( ˆ _p_ (0) _F_ <sup>ˆ</sup> (0)) _s⟩_ . Here _F_ <sup>ˆ</sup> ( _τ_ ) is a shorthand notation for a generic local function _F_ ( _X_ <sup>ˆ</sup> ( _τ_ )), which in the case of heat transport would be related to the potential energy. The subscript _s_ indicates that the operator product, which represents val <sup>2</sup> <sup>=</sup> <sup><u>1</u></sup> _P_ <sup>_′_</sup> _χ_ <sup>2</sup> _P_ <sup>_′_</sup> _P_ <sup>_′_</sup> ## ∑ _i_ =1 Interestingly, this can be interpreted as a measure of the difference between the estimate _C_ <sup>¯</sup> Θ( _τα_ ) and the exact correlation an observable quantity, is by convention made Hermitian by symmetrizing the operator, as ( ˆ _pF_ <sup>ˆ</sup> ) _s_ = <sup><u>1</u></sup> 2 <sup>( ˆ</sup> <sup>_p_</sup> <sup>ˆ</sup> <sup>_F_</sup> <sup>+</sup> <sup>_F_</sup> <sup>ˆ</sup> <sup>_p_</sup> <sup>ˆ).</sup> Within the primitive approximation and following this definition one obtains, i.e., _∂yk_ _δ_ (∑ _y_ _j_ ) = _M_ <sup><u>1</u></sup> <sup>∑</sup> <sup>_i ∂yiδ_</sup> <sup>(∑</sup> <sup>_y_</sup> <sup>_j_</sup> <sup>).</sup> <sup>A</sup> <sup>second</sup> <sup>integration</sup> <sup>by</sup> parts over each of the _yi_ variables eventually leads to _h_ ¯ <sup>2</sup> ∆ _τ_ <sup>2</sup> <sup>_⟨F_</sup> <sup>(</sup> <sup>_xk_</sup> <sup>)(</sup> <sup>_xk_</sup> <sup>+1</sup> <sup>_−_</sup> <sup>_xk_</sup> <sup>)</sup> <sup>_F_</sup> <sup>(</sup> <sup>_x_</sup> <sup>0)(</sup> <sup>_x_</sup> <sup>1</sup> <sup>_−_</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_⟩_</sup> <sup>=</sup> - _<u>m</u>_ - <u>1</u> _M−_ 1 _<u>m</u>_ <sup>2</sup> _CpF_ ( _τk_ ) = _−_ <sup>_<u>m</u>_</sup> <sup>2</sup> _h_ ¯ <sup>2</sup> ∆ _M−_ 1 ## ∑ _j_ =1 <sup>_<u>m</u>_</sup> <sup>2</sup> _h_ ¯ <sup>2</sup> ∆ _τ_ <sup>2</sup> <sup>_⟨_</sup> <sup>(</sup> <sup>_xk_</sup> <sup>+1</sup> <sup>_−_</sup> <sup>_xk_</sup> <sup>)</sup> <sup>_F_</sup> <sup>(</sup> <sup>_xk_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>1</sup> <sup>_−_</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_F_</sup> <sup>(</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_⟩_</sup> _h_ ¯ <sup>_F_</sup> <sup>(</sup> <sup>_xk_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>1</sup> <sup>_−_</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_F_</sup> <sup>(</sup> <sup>_x_</sup> <sup>0)</sup> _M−_ 1 ## ∑ _j_ = _k_ +1 <u>1</u> _M_ _jV_ <sup>_′_</sup> ( _x_ _j_ ) _−_ �� _V_ <sup>_′_</sup> ( _x_ _j_ ) _−_ _<u>m</u>_ + 2¯ _h_ ∆ _τ_ <sup>_⟨_</sup> <sup>(</sup> <sup>_xk_</sup> <sup>+1</sup> <sup>_−_</sup> <sup>_xk_</sup> <sup>)</sup> <sup>_F_</sup> <sup>(</sup> <sup>_xk_</sup> <sup>)</sup> <sup>_F_</sup> <sup>_′_</sup> <sup>(</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_⟩−_</sup> _<u>m</u>_ + 2¯ _h_ ∆ _τ_ <sup>_⟨_</sup> <sup>(</sup> <sup>_x_</sup> <sup>1</sup> <sup>_−_</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_F_</sup> <sup>(</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_F_</sup> <sup>_′_</sup> <sup>(</sup> <sup>_xk_</sup> <sup>)</sup> <sup>_⟩−_</sup> 4 <sup><u>1</u></sup> <sup>_⟨F_</sup> <sup>_′_</sup> <sup>(</sup> <sup>_xk_</sup> <sup>)</sup> <sup>_F_</sup> <sup>_′_</sup> <sup>(</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_⟩,_</sup> (18) This expression is valid for _k ≥_ 1, while the case _k_ = 0 must be treated separately, along similar lines. The MC calculation of Eq. (18) suffers from the same numerical problem as the momentum correlations, the variance of the leading term in 1 _/_ ∆ _τ_ diverging as ∆ _τ_ approaches zero. In order to improve the estimator, we have generalized the procedure originally used for the kinetic energy calculations ( _Cpp_ (0)), and obtain a new estimator with reduced variance for general correlation functions. We start from the first term in Eq. (18), which has the strongest dependence on ∆ _τ_, and can be expressed as, _<u>m</u>_ <sup>2</sup> _h_ ¯ <sup>2</sup> ∆ _τ_ <sup>2</sup> <sup>_⟨F_</sup> <sup>(</sup> <sup>_xk_</sup> <sup>)(</sup> <sup>_xk_</sup> <sup>+1</sup> <sup>_−_</sup> <sup>_xk_</sup> <sup>)</sup> <sup>_F_</sup> <sup>(</sup> <sup>_x_</sup> <sup>0)(</sup> <sup>_x_</sup> <sup>1</sup> <sup>_−_</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_⟩_</sup> <sup>=</sup> _<u>m</u>_ <sup>2</sup> = _h_ ¯ <sup>2</sup> ∆ _τ_ <sup>2</sup> _Z_ _dx_ 0 - _dx_ 1 _···_ _dxMF_ ( _xk_ )( _xk_ +1 _−xk_ ) _F_ ( _x_ 0)( _x_ 1 _−x_ 0) _M_ ## ∑ V ( xi ) _j_ =0 _ρ_ 0( _x_ 1 _−_ _x_ 0; ∆ _τ_ ) _..._ _ρ_ 0( _xM −_ _xM−_ 1; ∆ _τ_ ) exp _−_ ∆ _τ_ _,_ (19) where _ρ_ 0( _x_ _−_ _y_ ; ∆ _τ_ ) = _⟨x|e_ <sup>_−_</sup> <sup>∆</sup> <sup>_τK_</sup> <sup>ˆ</sup> _|y⟩∼_ exp _{−m_ <sup><u>(</u></sup> <sup>_<u>x−y</u>_</sup> <sup><u>)2</u></sup> 2¯ _h_ <sup>2</sup> ∆ _τ_ where _ρ_ 0( _x_ _−_ _y_ ; ∆ _τ_ ) = _⟨x|e_ <sup>_−_</sup> <sup>∆</sup> <sup>_τK_</sup> <sup>ˆ</sup> _|y⟩∼_ exp _{−m_ <sup><u>(</u></sup> <sup>_<u>x−y</u>_</sup> <sup><u>)2</u></sup> 2¯ _h_ <sup>2</sup> ∆ _τ_ <sup>_}_</sup> <sup>.We now</sup> transform the set of coordinates _{x_ 0 _,_ _xi}_ to _{x_ 0 _,_ _yi}_, such that _yi_ = _xi_ +1 _−_ _xi_ . The constraint _xM_ _≡_ _x_ 0 is accounted for by introducing a term _δ_ �∑ <sup>_M_</sup> _i_ = <sup>_−_</sup> 0 <sup>1</sup> <sup>_yi_</sup> �, leading to �∑ <sup>_M_</sup> _i_ = <sup>_−_</sup> 0 <sup>1</sup> <sup>_i_</sup> �, leading to <sup>_M_</sup> _i_ = <sup>_−_</sup> 0 <sup>1</sup> <sup>_yi_</sup> _<u>m</u>_ <sup>2</sup> _h_ ¯ <sup>2</sup> ∆ _τ_ <sup>2</sup> <sup>_⟨F_</sup> <sup>(</sup> <sup>_xk_</sup> <sup>)(</sup> <sup>_xk_</sup> <sup>+1</sup> <sup>_−_</sup> <sup>_xk_</sup> <sup>)</sup> <sup>_F_</sup> <sup>(</sup> <sup>_x_</sup> <sup>0)(</sup> <sup>_x_</sup> <sup>1</sup> <sup>_−_</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_⟩_</sup> <sup>=</sup> _<u>mk</u>_ _<u>m</u>_ _−_ ( _h_ ¯ ∆ _τM_ ) <sup>_⟨F_</sup> <sup>_′_</sup> <sup>(</sup> <sup>_xk_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>1</sup> <sup>_−x_</sup> <sup>0)</sup> <sup>_F_</sup> <sup>(</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_⟩−_</sup> ( _h_ ¯ ∆ _τM_ ) <sup>_⟨F_</sup> <sup>(</sup> <sup>_xk_</sup> <sup>)</sup> <sup>_F_</sup> <sup>(</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_⟩._</sup> (23) For the special case _F_ ( _x_ ) _≡_ 1, we can show that Eq. (23) reduces to a virial-like formula for the momenta correlations _Cpp_ ( _τk_ ) = _⟨xkV_ <sup>_′_</sup> ( _x_ 0) _⟩_ (see App. A). Repeating the procedure for the terms linear in ∆ <sup><u>1</u></sup> _τ_ <sup>, such as the second term in Eq. (23),</sup> we can write the correlation in a form that apparently does not depend on ∆ _τ_ (recall that _M_ ∆ _τ_ = _β_ is a constant). The calculations, together with the expressions appropriate for the special case _k_ = 0, are sketched in App. A. In contrast with the initial expression Eq. (18), all terms are now well-defined as ∆ _τ →_ 0. We note, however, that the number of terms involved in the first part of Eq. (23) increases linearly with _M_ = _β_ _/_ ∆ _τ_, so that the gain following our manipulation is not immediately obvious. The argument that Eq. (23) indeed leads to a variance reduction is the following: If all the _M_ contributions to the first term were independent, its variance would scale as ∆ _τ × M_, where ∆ _τ_ comes from the term _⟨|x_ 1 _−_ _x_ 0 _|⟩_, and the factor _M_ accounts for the _M_ contributions in the sum. As the segments in the path are correlated, even if this estimate is only approximate it still indicates that the variance remains finite even for ∆ _τ_ _→_ 0. We explicitly verify the variance reduction numerically for the harmonic oscillator in the following section. We conclude this Section by emphasizing that the above derivation to improve generic estimators that involve momentum operators is by no means limited to the harmonic oscillator, but remains valid in general, in particular for the case of interacting particles. Also, note that the derivation of the improved estimator can be adapted beyond the use of the primitive approximation <sup>30</sup> . Similar refinements can be expected to work when employing improved actions, as well as within improved sampling schemes, e.g., PIMD methods based on staging or normal modes <sup>9</sup>, as the variance of the estimator is entirely determined by the analytical form of the kinetic energy part of the action. V. CASE STUDY I: THE SINGLE HARMONIC OSCILLATOR A. Computing correlation functions We now apply the methods described above to our test cases. We start by considering the canonical example of a single quantum harmonic oscillator of frequency _ω_ 0 in one dimension, with potential energy _V_ = <sup><u>1</u></sup> 2 <sup>_mω_</sup> 0 <sup>2</sup> <sup>_X_</sup> <sup>2,</sup> and focus on the time correlation function of an operator _<u>m</u>_ <sup>2</sup> = _h_ ¯ <sup>2</sup> ∆ _τ_ <sup>2</sup> _Z_ _dx_ 0 - _dy_ 0 _···_ _dyM−_ 1 _δ_ - _M−_ 1 ## ∑ yi _i_ =0 _F_ - _k−_ 1 ## ∑ _i_ =0 _yi_ + _x_ 0 _ykF_ ( _x_ 0) _y_ 0 _ρ_ 0( _y_ 0; ∆ _τ_ ) _..._ _ρ_ 0( _yM−_ 1; ∆ _τ_ ) exp[ _−_ ∆ _τW_ ] _,_ (20) with _W_ = By using the identity: _M−_ 1 ## ∑ V _j_ =0 - _j_ ## ∑ _i_ =0 _yi_ + _x_ 0 _._ (21) _<u>m</u>_ _h_ ¯ ∆ _τ_ <sup>_ykρ_</sup> <sup>0(</sup> <sup>_yk_</sup> <sup>;</sup> <sup>∆</sup> <sup>_τ_</sup> <sup>) =</sup> <sup>_−∂yk_</sup> <sup>_ρ_</sup> <sup>0(</sup> <sup>_yk,_</sup> <sup>∆</sup> <sup>_τ_</sup> <sup>)</sup> <sup>_,_</sup> (22) we can integrate by parts for the integration over _yk_ . Our next step is based on the observation that the derivative of the _δ_ function w. r. t. to _y_ 0 can be distributed over all coordinates, 0 = 10 = 0 = /2 with the structure of an energy current, e. g., _CpV_ ( _τ_ ) = _⟨_ ( _p_ ( _τ_ ) _V_ ( _τ_ )) _s_ ( _p_ (0) _V_ (0)) _s⟩_ . Note that, while the case of the harmonic oscillator could be considered as oversimplified, this choice of observables already leads to a non trivial structure of the correlation functions. Additional examples involving a continuous distribution of frequencies and a strongly anharmonic system are treated in Sect. VI and App. D, respectively. The PIMC approach within the primitive approximation allows us to extract the values of the imaginary time correlation function _CpV_ ( _τk_ ), at _M_ discrete time values, _τk_ = ( _k_ _−_ 1) _β_ _/M_ . Two main sources of inaccuracy are associated to this procedure: a systematic error, associated with the use of the primitive approximation for the density matrix, and the statistical uncertainty due to finite sampling. In the following we show how to control these issues. For an harmonic oscillator, the systematic deviation due to the discretization of the imaginary time ∆ _τ_ = _β_ _/M_ can be assessed directly, by comparing the result expected from the PIMC approach (which in this case can be obtained exactly) with the analytical expression for the correlation function _CpV_ ( _τ_ ), which corresponds to the continuous limit _M_ _→_ ∞. By applying the canonical formalism for the harmonic oscillator, we indeed obtain, 0.04 0.03 0.02 0.01 0.00 0 = 3 = 0 = /2 ~~0.1~~ ~~0.2~~ ~~0.3~~ ~~0.~~ 4 0 <sup>/M</sup> FIG. 1. Relative discretization error, 1 _−C_ <sup>PI</sup> _pV_ <sup>PI</sup> _pV_ <sup>(</sup> <sup>_τ_</sup> <sup>)</sup> <sup>_/C_</sup> <sup>exact</sup> _pV_ FIG. 1. Relative discretization error, 1 _−C_ <sup>PI</sup> _pV_ <sup>(</sup> <sup>_τ_</sup> <sup>)</sup> <sup>_/C_</sup> <sup>exact</sup> _pV_ ( _τ_ ), between the path integral, _C_ <sup>PI</sup> _pV_ <sup>(</sup> <sup>_τ_</sup> <sup>),</sup> <sup>and</sup> <sup>the</sup> <sup>exact</sup> <sup>results,</sup> <sup>_C_</sup> <sup>exact</sup> _pV_ ( _τ_ ), for the energy current correlation function, as a function of _h_ ¯ _ω_ 0 _β_ _/M_ . We show the data corresponding to the imaginary times _τ_ = 0 and _τ_ = _β_ _/_ 2, and indicate with symbols and solid lines the results for ¯ _hβ_ = 3 and 10, respectively. <sup>PI</sup> _pV_ <sup>(</sup> <sup>_τ_</sup> <sup>),</sup> <sup>and</sup> <sup>the</sup> <sup>exact</sup> <sup>results,</sup> <sup>_C_</sup> <sup>exact</sup> _pV_ <u>1</u> sinh <sup>3</sup> ( _h_ ¯ _βω_ 0 _/_ 2) <sup>_×_</sup> _C_ <sup>exact</sup> _pV_ ( _τ_ ) = - _mh_ <u>¯</u> <sup>3</sup> _<u>ω</u>_ <u>0</u> <sup>3</sup> 256 - - <u>3¯</u> _<u>hβω</u>_ <u>0</u> 12cosh _−_ 3¯ _hω_ 0 _τ_ 2 Also, our case studies below are performed by employing an imaginary time discretization _τ_ = _β_ _/M_ = 0 _._ 01 _ω_ 0 <sup>_−_</sup> <sup>1,</sup> <sup>a</sup> choice primarily dictated by the need to control the error associated to the primitive approximation. It also limits, however, the resolution of the imaginary time correlation function and, consequently, that of the reconstructed spectral function, especially at high frequencies. We will comment below how this potential bias can be addressed within the verification process. In general, since the high frequency asymptotics is governed by sum rules, it is often most conveniently dealt with by computing leading terms of the short time Taylor expansion. We next focus on the second source of error affecting the PIMC calculation: limited sampling. Indeed, error bars cor �� _._ (24) - _<u>h</u>_ <u>¯</u> _<u>βω</u>_ <u>0</u> _−_ _h_ ¯ _ω_ 0 _τ_ 2 +2 �4 _e_ <sup>_−h_</sup> <sup>¯</sup> <sup>_βω_</sup> <sup>0</sup> + _e_ <sup>_−_</sup> <sup>2¯</sup> <sup>_hβω_</sup> <sup>0</sup> + 1� _e_ <sup>_h_</sup> <sup>¯</sup> <sup>_βω_</sup> <sup>0</sup> cosh In order to calculate the exact expression of the correlation function within the primitive approximation of the discretized path integral, we first note that all the integrals involved in the calculation are Gaussian. By using the discretized representation for the momentum operator, one writes _CpV_ ( _τ_ ) as a thermodynamic average of products of the variables _x_ . Wick’s theorem allows to recast such correlations _⟨x_ 1 _..._ _x_ 2 _n⟩_ into products of pair correlation functions _⟨xix_ _j⟩_ which are easily accessible as _⟨xix_ _j⟩_ = _A_ <sup>_−_</sup> _i j_ <sup>1.</sup> <sup>A</sup> <sup>is</sup> <sup>a</sup> <sup>symmetric</sup> <sup>_M × M_</sup> <sup>matrix,</sup> and we can write, _⟨xix_ _j⟩_ = - _dXxix_ _j_ e _−X_ _T_ A _X_ . We can there fore use numerical methods to calculate the matrix elements, as discussed in App. B. The relative difference between the two calculations is illustrated in Fig. 1. We observe that, for a sufficiently small value of _β_ _/M_, the deviation is virtually not affected by a change of _β_ . naive estimator improved estimator <sup>_−_</sup> _i j_ <sup>1.</sup> <sup>A</sup> <sup>is</sup> <sup>a</sup> <sup>symmetric</sup> <sup>_M × M_</sup> <sup>matrix,</sup> 0.2 0.1 0.0 0.1 0.2 and we can write, _⟨xix_ _j⟩_ = In addition to this quantitative estimate, it is important to note that, for this system, the discretization preserves the qualitative shape of the correlation functions. One can show (see App. C) that the calculation using a finite but large _M_ corresponds to the exact result ( _M →_ ∞) for slightly shifted oscillator strength and inverse temperature. The Trotter error therefore only introduces small quantitative deviations in the spectral density, but does not give rise to spurious qualitative features such as a broadening of the spectral lines. 0 ~~.0~~ ~~0.2~~ ~~0.4~~ ~~0.6~~ ~~0.8~~ ~~1.~~ 0 0 FIG. 2. Difference between the exact correlation function _C_ <sup>exact</sup> _pV_ ( _τ_ ) and the values obtained by Monte Carlo sampling, _C_ <sup>MC</sup> _pV_ <sup>(</sup> <sup>_τ_</sup> <sup>), of a path</sup> with _M_ = 100 time slices, for _h_ ¯ _ω_ 0 _β_ = 1, illustrating the variance reduction obtained by the improved estimator discussed in Sect. IV. We show with line-points the primitive estimator and with the continuous line the improved estimator, both using the same Monte Carlo data. 0.25 0.20 N = 5 N = 50 N = 200 ~~0~~ ~~50~~ ~~100~~ ~~150~~ ~~200~~ N 0.15 0.10 0.05 0.00 ~~0~~ ~~1~~ ~~2~~ ~~3~~ ~~4~~ ~~5~~ FIG. 3. Reconstruction of the spectral function associated to _CpV_ ( _τ_ ) at _β_ = 10 corresponding to the indicated values for the number of delta functions in the model, _Nω_, and effective temperature Θ = 1. The area of the filled rectangles indicate the weight of the two deltafunctions of the exact spectrum centered at _ω_ 1 = 1 and _ω_ 2 = 3, corresponding to the ∆ _ω_ = 1 discretization. As indicated in the text, we set _ω_ 0 = 1. responding to average values are obtained by estimating the variance of the observable, which decreases as _τ_ sim <sup>_−_</sup> <sup>1</sup> <sup>_/_</sup> <sup>2,</sup> <sup>with</sup> _τ_ sim the simulation time. For a given _τ_ sim, the quality of the result therefore crucially depends on the variance of the estimator. We illustrate this point in Fig.2, by comparing calculations for the energy current correlation function, _CpV_, using the naive estimator, Eq. (18), and the improved version of Eq. (23). The data of Fig. 2 clearly show that the virial estimator leads to a spectacular improvement compared to the naive one, with a statistical error that is now comparable to the systematic one resulting from the discretization. 2.2 1.8 1.4 1.0 N = 5 = 0.25 = 0.5 N = 10 = 0.1 = 0.25 FIG. 5. _Nω_ -dependence of ∆ _χ_ <sup>2</sup> val <sup>2</sup> <sup>_≡_</sup> <sup>_χ_</sup> <sup>2</sup> val <sup>2</sup> <sup>_−_</sup> <sup>_χ_</sup> 0 <sup>2</sup> FIG. 5. _Nω_ -dependence of ∆ _χ_ val <sup>2</sup> <sup>_≡_</sup> <sup>_χ_</sup> val <sup>2</sup> <sup>_−_</sup> <sup>_χ_</sup> 0 <sup>2</sup> <sup>extracted</sup> <sup>from</sup> <sup>the</sup> validation step of the reconstructed spectral functions for _CpV_ ( _τ_ ), at _β_ = 10 and with Θ = 1. Squares and triangles correspond to shifted grids, at the indicated values of _Nω_ and _δω_ . The value of _χ_ 0 <sup>2</sup> <sup>cor-</sup> responds to _χ_ val <sup>2</sup> <sup>for</sup> <sup>_Nω_</sup> <sup>= 5</sup> <sup>and</sup> <sup>Θ = 50</sup> <sup>(see</sup> <sup>Fig.</sup> <sup>6,</sup> <sup>for</sup> <sup>a</sup> <sup>better</sup> comparison all values were shifted by 10 <sup>_−_</sup> <sup>5</sup> ). B. The inversion problem We now use the reconstruction procedure outlined in Sect. III to extract the frequency spectrum for the correlation functions obtained in Sect. V A. In order to perform a reconstruction one needs both to define the set of parameters that expresses the spectral density in Eq. (12) and in the integration measure of Eq. (13), and to chose the effective inverse temperature Θ. (To simplify the notation in the considered examples, we set _ω_ 0 = _m_ = ¯ _h_ = 1.)In the following, we use a discretized model of the spectral density, which is described as a sum of N = 25 N = 50 N = 5 N = 10 1.0 0.8 = 0.4 = 1 = 40 1.15 1.10 1.05 1.00 0.6 0.4 0.2 0.0 ~~0~~ ~~1~~ ~~2~~ ~~3~~ ~~4~~ ~~5~~ FIG. 4. Reconstructed spectra for the energy current correlation function _CpV_ ( _τ_ ) at _β_ = 10, with _Nω_ = 25 and at the indicated values of Θ. The filled rectangles are centered at the positions of the two delta-functions of the exact spectrum, with an area corresponding to their respective weights. of _Nω_ . The value of _χ_ 0 <sup>2</sup> <sup>corresponds to</sup> <sup>_χ_</sup> val <sup>2</sup> <sup>for</sup> <sup>_Nω_</sup> <sup>= 5 and Θ = 50.</sup> For the purpose of a better representation, all values were shifted by 10 <sup>_−_</sup> <sup>5</sup> . 200 100 50 ~~0~~ ~~10~~ ~~20~~ ~~30~~ ~~40~~ ~~50~~ 25 5 ~~0~~ ~~10~~ ~~20~~ ~~30~~ ~~40~~ ~~50~~ FIG. 6. Main panel: Comparison of the _χ_ <sup>2</sup> FIG. 6. Main panel: Comparison of the _χ_ val <sup>2</sup> <sup>obtained from our val-</sup> idation of the reconstructed spectral function for various values of Θ and _Nω_ for _CpV_ ( _τ_ ) at _β_ = 10. The area of the circles is proportional to the corresponding value of _χ_ val <sup>2</sup> <sup>.</sup> <sup>Inset:</sup> <sup>∆</sup> <sup>_χ_</sup> val <sup>2</sup> <sup>_≡_</sup> <sup>_χ_</sup> val <sup>2</sup> <sup>_−_</sup> <sup>_χ_</sup> 0 <sup>2</sup> as a function of the effective temperature Θ, at the indicated values of _Nω_ . The value of _χ_ 0 <sup>2</sup> <sup>corresponds to</sup> <sup>_χ_</sup> val <sup>2</sup> <sup>for</sup> <sup>_Nω_</sup> <sup>= 5 and Θ = 50.</sup> val <sup>2</sup> <sup>.</sup> <sup>Inset:</sup> <sup>∆</sup> <sup>_χ_</sup> <sup>2</sup> val <sup>2</sup> <sup>_≡_</sup> <sup>_χ_</sup> <sup>2</sup> val <sup>2</sup> <sup>_−_</sup> <sup>_χ_</sup> 0 <sup>2</sup> N = 25 N = 50 1.5 1.4 1.3 1.2 N = 5 N = 10 0.2 N = 5 N = 50 N = 200 0.1 0.0 ~~0~~ ~~1~~ ~~2~~ ~~3~~ ~~4~~ FIG. 7. Spectral reconstruction for _CpV_ ( _τ_ ) at _β_ = 3, obtained at the indicated values of the discretization, _Nω_, for a fixed Θ = 1. The filled rectangles are centered at the positions of the two deltafunctions of the exact spectrum for ∆ _ω_ = 1, with an area corresponding to their respective weights. _Nω_ delta-functions in the _ω_ -space, see Eq. (9). Specifically, we consider a regular grid of _ω_ -values defined on the interval [0 _,_ 5], with a fixed spacing between points, ∆ _ω_ = 5 _/Nω_ . In addition, we will consider the possibility of a global shift of the grid by _δω_ _<_ ∆ _ω_ . Unless specified otherwise, _δω_ = 0, and we fix the origin of the grid in _ω_ = 0. The exact expression for the time correlation function, Eq. (24), implies that _CpV_ ( _τ_ ) decays exponentially with _τ_ in the interval [0 _,_ _β_ _/_ 2], with a decay rate _O_ (1). Larger values of _β_ therefore lead to a larger amplitude in the decay, with the consequence that the contribution of different frequencies can be more easily resolved for larger _β_ ’s. In short, a correlation function of the form [exp( _−τ_ ) + exp( _−_ 3 _τ_ )] will be hard to distinguish from 2exp( _−_ 2 _τ_ ) if data are only available in the interval [0 _,_ 1]. Resolving the two frequencies _ω_ 1 = 1 and 200 100 50 1.1 1.0 ~~0~~ ~~10~~ ~~20~~ ~~30~~ ~~40~~ ~~50~~ 25 5 ~~0~~ ~~10~~ ~~20~~ ~~30~~ ~~40~~ ~~50~~ FIG. 9. Main panel: _χ_ <sup>2</sup> FIG. 9. Main panel: _χ_ val <sup>2</sup> <sup>from</sup> <sup>the</sup> <sup>validation</sup> <sup>procedure</sup> <sup>of</sup> <sup>the</sup> <sup>re-</sup> constructed spectral function at the corresponding values Θ and _Nω_ for _CpV_ ( _τ_ ) at _β_ = 3. The area of the circles is proportional to the value of _χ_ val <sup>2</sup> <sup>.</sup> <sup>Inset:</sup> <sup>∆</sup> <sup>_χ_</sup> val <sup>2</sup> <sup>_≡_</sup> <sup>_χ_</sup> val <sup>2</sup> <sup>_−_</sup> <sup>_χ_</sup> 0 <sup>2</sup> <sup>as a function of the effective</sup> temperature Θ, at the indicated values of _Nω_ . The value of _χ_ 0 <sup>2</sup> <sup>cor-</sup> responds to _χ_ val <sup>2</sup> <sup>for</sup> <sup>_Nω_</sup> <sup>= 5 and Θ = 40.</sup> <sup>For the purpose of a better</sup> representation all values were shifted by 10 <sup>_−_</sup> <sup>5</sup> . val <sup>2</sup> <sup>.</sup> <sup>Inset:</sup> <sup>∆</sup> <sup>_χ_</sup> val <sup>2</sup> val <sup>2</sup> <sup>_≡_</sup> <sup>_χ_</sup> <sup>2</sup> val <sup>2</sup> <sup>_−_</sup> <sup>_χ_</sup> 0 <sup>2</sup> 0.2 =0.4 =1 =40 0.1 0.0 ~~0~~ ~~1~~ ~~2~~ ~~3~~ ~~4~~ FIG. 8. Spectral reconstructions from _CpV_ ( _τ_ ) at _β_ = 3 for _Nω_ = 5 using different values of Θ. The filled rectangles are centered at the positions of the two delta-functions of the exact spectrum, with an area corresponding to their respective weights. _ω_ 2 = 3 is therefore essentially impossible if _β_ _/_ 2 _<_ 1. In order to illustrate this point, we calculate and analyze the spectral function for the energy current correlation functions at the two inverse temperatures _β_ = 3 and 10, with an imaginary time discretization ∆ _τ_ = 0 _._ 1. With this value of ∆ _τ_, the systematic discretization error is smaller than the statistical error for our simulation time, so it can be safely neglected. The main constraint for the reconstruction comes from the imaginary time interval [0 _,_ 1]. The relative error of the MC data corresponding to these values of _τ_ is of _O_ (10 <sup>_−_</sup> <sup>2</sup> ). For larger _τ_ the relative error becomes comparable with the data due to the fact that _CpV_ ( _τ_ ) approaches 0 with _τ_ _→_ _β_ _/_ 2. We start by considering the case _β_ = 10. First, we evaluate the effect of the grid size, _Nω_, on the reconstruction. In Fig. 3 we show the spectra obtained for various values of _Nω_, keeping a fixed Θ = 1. As mentioned above, there is no _a-_ _priori_ argument guiding the most appropriate parametrization of the spectrum. In the following we analyze the accuracy of the spectral reconstruction by comparing the values of _χ_ val <sup>2</sup> defined in Eq. (15), using an independent test data set. This is obtained within an additional MC simulation of the correlation function, with the same parameters as the original one. We also consider a data set of the same size, _P_ <sup>_′_</sup>, as the one that was used to produce _CpV_ ( _τk_ ). In Fig. 5 we show _χ_ val <sup>2</sup> <sup>as a function of the number of grid</sup> points. Clearly, increasing the number of coefficients _A_ ( _ωi_ ) of Eq. (9) does not lead to a better spectral reconstruction. In contrast, by introducing more degrees of freedom, one increases the entropy, and the spectral weight is smeared out excessively. In Fig. 5 we also show the effect on _χ_ val <sup>2</sup> <sup>of a shift</sup> _δω_ . As expected, shifting the nodes away from _ω_ 1 = 1 and _ω_ 2 = 3, which are the only frequencies present in the exact spectrum determined by Eq. (24), deteriorates the accuracy of the spectrum obtained through the validation step. N = 50 N = 100 N = 10 N = 25 0.08 0.06 N = 10 N = 25 N = 50 1 ~~1~~ ~~2~~ ~~4~~ ~~6~~ ~~1~~ ~~2~~ ~~4~~ ~~6~~ 2 0.04 0.02 0.00 ~~0~~ ~~1~~ ~~2~~ ~~3~~ ~~4~~ FIG. 10. Spectral reconstruction of _C_ <sup>cont</sup> _pV_ <sup>(</sup> <sup>_τ_</sup> <sup>)</sup> <sup>for</sup> <sup>the</sup> <sup>continuous</sup> distribution of oscillator frequencies, at the indicated values of the discretization _Nω_, at fixed Θ = 1. The shaded area indicates the exact spectral function. 100 50 25 10 FIG. 12. Main panel: _χ_ <sup>2</sup> val <sup>2</sup> <sup>_≡_</sup> <sup>_χ_</sup> <sup>2</sup> val <sup>2</sup> <sup>_−_</sup> <sup>_χ_</sup> 0 <sup>2</sup> The second parameter determining the quality of the statistical maximum entropy reconstruction is the effective temperature, Θ. In Fig. 4 we show the behaviour of the spectral function for a chosen _ω_ -grid at the indicated values of Θ. As expected from Eq. (9), by increasing Θ the result approaches the most probable configuration that describes the correlation function _CpV_ ( _τ_ ), reducing entropic effects. In Fig. 6 we combine the above results for different pairs of parameters (Θ, _Nω_ ), and plot the corresponding _χ_ val <sup>2</sup> <sup>.</sup> <sup>Our</sup> <sup>valida-</sup> tion procedure therefore strongly points to using models with a smaller number of delta functions combined with large values of Θ _≫_ 1 for the spectral reconstruction. Based on the comparison with the exact spectrum, this choice is also clearly the one that leads to the description of the spectrum in closest agreement with the exact prediction. We conclude that the use of _χ_ val <sup>2</sup> <sup>indeed</sup> <sup>seems</sup> <sup>to</sup> <sup>provide</sup> <sup>an</sup> <sup>unbiased</sup> <sup>estimate</sup> <sup>of</sup> <sup>the</sup> FIG. 12. Main panel: _χ_ val <sup>2</sup> <sup>from the validation procedure of spectral</sup> function at the corresponding values Θ and _Nω_ for _C_ <sup>cont</sup> _pV_ <sup>(</sup> <sup>_τ_</sup> <sup>).</sup> <sup>The</sup> area of the circles is proportional to the value of _χ_ val <sup>2</sup> <sup>.</sup> <sup>Purple circles</sup> correspond to the results for an _ω_ -grid shifted by _δω_ = ∆ _ω/_ 2. Inset: ∆ _χ_ val <sup>2</sup> <sup>_≡_</sup> <sup>_χ_</sup> val <sup>2</sup> <sup>_−_</sup> <sup>_χ_</sup> 0 <sup>2</sup> <sup>as a function of the effective temperature Θ, at the</sup> indicated values of _Nω_ . The value of _χ_ 0 <sup>2</sup> <sup>corresponds</sup> <sup>to</sup> <sup>_χ_</sup> val <sup>2</sup> <sup>for</sup> <sup>a</sup> indicated values of _Nω_ . The value of _χ_ 0 <sup>2</sup> <sup>corresponds</sup> <sup>to</sup> <sup>_χ_</sup> val <sup>2</sup> <sup>for</sup> <sup>a</sup> shifted grid with _Nω_ = 10 and Θ = 6. For the purpose of a better representation all values were shifted by 10 <sup>_−_</sup> <sup>4</sup> . <u>= 6</u> = 0 = 0.25 0.08 0.06 <u>= 1</u> = 0 = 0.25 0.04 0.02 0.00 ~~0~~ ~~1~~ ~~2~~ ~~3~~ ~~4~~ FIG. 11. Spectral reconstruction of _C_ <sup>cont</sup> _pV_ <sup>(</sup> <sup>_τ_</sup> <sup>)</sup> <sup>for</sup> <sup>the</sup> <sup>continuous</sup> distribution of oscillators, for _Nω_ = 10 and Θ = 1 and 10, respectively. Here we compare the results pertaining to a grid shifted by _δω_ = 0 _._ 25 to those with _δω_ = 0, the usual (not shifted) case. The shaded area indicates the exact spectral function. quality of the reconstruction. We now consider the spectral reconstruction for _CpV_ ( _τ_ ) at _β_ = 3, again clarifying the influence of Θ and of the lattice discretization _Nω_ . In Figs. 7 and 8 we show selected examples of the resulting spectra. In contrast to the case _β_ = 10, we now observe in general a much stronger broadening of the peaks, which prevents us from resolving the two peak structure for Θ = 1, even for sparse _ω_ -grids. However, when combining sparse grids with sufficiently large Θ in the inversion, one improves towards the correct two peaks structure, as can be seen in Fig. 8. The data shown in Fig. 9 also indicate that this choice indeed corresponds to the lowest values of _χ_ val <sup>2</sup> <sup>,</sup> confirming the validity of this indicator. We also note that, for large Θ, the values of _χ_ val <sup>2</sup> <sup>tend to exhibit a minimum or weak</sup> oscillations, that are probably indicative of overfitting. As a consequence, considering larger values of Θ does not further improve the result. We conclude the above discussion by observing that in this Section the spectral reconstruction has been based on discretized imaginary time correlation functions. For convenience, the discretization usually coincides with the imaginary time step controlling the Trotter error of the path integral. In order to estimate the influence and potential bias of the discretization on the spectral reconstruction, one can perform the verification step involving subsets of _C_ <sup>_′_</sup> ( _τk_ ) at no additional cost. For the test case of the double well potential discussed in App. D, we have investigated this point explicitly. In particular, we have observed that the verification is not qualitatively affected by the change of data discretization for a reasonable range of ∆ _τ_, apart from a shift of the minimum in Θ. VI. CASE STUDY II: CONTINUUM DISTRIBUTION OF OSCILLATORS We now move to our second test model, and study the potential energy current correlation function of a system containing a large number of independent, non interacting harmonic oscillators. Considering the _CpV_ of Eq. (24) as a function of _ω_ 0, the correlation function for an ensemble of oscillators with a continuum of frequencies can be written as, _C_ <sup>cont</sup> _pV_ <sup>(</sup> <sup>_τ_</sup> <sup>) =</sup> - _ωcut_ _dω_ 0 _C_ <sup>exact</sup> _pV_ 0 <sup>exact</sup> _pV_ ( _τ_ ; _ω_ 0) _g_ ( _ω_ 0) _._ (25) introduced an inversion procedure based on a stochastic maximum entropy method, a Bayesian approach commonly used for such problems. The outcome of these procedures is, in general, strongly dependent on the involved parameters, as we have illustrated in the case of the harmonic oscillator spectra employing different values for the effective inverse temperature, Θ, as well as different choices for the grid discretization, _Nω_, or offset, _δω_ . Despite their apparent simplicity, the oscillator models studied here provide challenging benchmarks for the spectral reconstruction due to the sharp undamped deltafunctions they contain. Pure Bayesian approaches suggest to eliminate the parameters dependence by using a flat prior with the most general and flexible model for the spectral density, e. g., a large value for _Nω_, together with Θ = 1 to encompass all possible solutions consistent with the data. In contrast, in our case studies we have shown that the spectra corresponding to these standard choices exceedingly suffer from the usual problems of all maximum entropy reconstructions: broadening or merging of peaks, smoothing out any sharp features in the underlying exact spectrum. Indeed, in practice, path integral Monte Carlo data are strongly correlated in imaginary time, undermining a true justification of the Bayesian choice Θ = 1. Different values of Θ may therefore be considered to efficiently approximate the true, unknown likelihood function. On the other hand, the use of flexible models for the spectral function, containing a large number of parameters, possibly introduces a large amount of entropy into the Bayesian inversion, such that different parametrizations (linear or logarithmic grids in regions where spectral densities are flat, for instance) in general strongly modify the results. The representation of a model must therefore be considered itself as a "parameter", making illusory in our view a "parameter-free" Bayesian inversion. In this paper we have addressed exactly the above difficulties, and developed a validation procedure to quantitatively control any parameter dependence of the Bayesian inversion. Our proposal is based on the quantity _χ_ val <sup>2</sup> <sup>constructed</sup> <sup>from</sup> independent data not involved in the maximum entropy inversion, which provides an efficient and readily applicable method to select the optimal choice of parameters, corresponding to the lowest value of _χ_ val <sup>2</sup> <sup>.</sup> We have shown explicitly that the new validation step clearly identifies a discrete set of two delta functions in the case study of the single harmonic oscillator, and provides unambiguous indications towards the correct asymmetric sharp edges in the case of an underlying continuous frequency spectrum. In the case of the double well potential discussed in App. D, we demonstrate the utility of sparse frequency grids for describing discrete spectral functions. Furthermore, this example provides a possible recipe for reliable calculation of a general discrete spectrum - using sufficiently sparse grids and varying (non uniformly) the spacing between nodes to achieve an optimal reconstruction validated by the _χ_ val <sup>2</sup> <sup>.</sup> <sup>In</sup> <sup>all</sup> <sup>cases,</sup> our validation procedure eventually selects models containing just a limited number of parameters, which intrinsically limits the resolution of the reconstruction. Overall, combining in a consistent workflow Bayesian in The form of the density of states, _g_ ( _ω_ 0), and the value of the frequency cutoff, _ωcut_, are arbitrary. In the following we consider a Debye-like _g_ ( _ω_ 0) ∝ _ω_ 0 <sup>2, with</sup> <sup>_ωcut_</sup> <sup>= 1, and fix</sup> <sup>_β_</sup> <sup>= 10.</sup> sider a Debye-like _g_ ( _ω_ 0) ∝ _ω_ 0 <sup>2, with</sup> <sup>_ωcut_</sup> <sup>= 1, and fix</sup> <sup>_β_</sup> <sup>= 10.</sup> With this choice, the exact spectrum for the energy current correlation is a superposition of two functions with a compact support, assuming non zero values in the range [0 _,_ _ωcut_ ] and [0 _,_ 3 _ωcut_ ], respectively. As a result, it will display two sharp discontinuities, at _ωcut_ and 3 _ωcut_, respectively. Contrary to the single oscillator case, here we do not generate the data by Monte Carlo simulation, but we rather employ the exact analytical expression, subsequently adding a Gaussian random noise with a variance proportional to the data themselves, _σk_ = 10 <sup>_−_</sup> <sup>2</sup> _×_ _C_ <sup>cont</sup> _pV_ <sup>(</sup> <sup>_τk_</sup> <sup>).</sup> <sup>This</sup> <sup>variance</sup> <sup>is</sup> <sup>also</sup> <sup>used</sup> <sup>as</sup> selves, _σk_ = 10 <sup>_−_</sup> <sup>2</sup> _×_ _C_ <sup>cont</sup> _pV_ <sup>(</sup> <sup>_τk_</sup> <sup>).</sup> <sup>This</sup> <sup>variance</sup> <sup>is</sup> <sup>also</sup> <sup>used</sup> <sup>as</sup> the uncertainty to compute the _χ_ <sup>2</sup> of Eq. (14). By following the same workflow discussed above for the single oscillator, we reconstruct the spectral densities for different values of Θ and number of delta functions in the model, _Nω_ . In Fig. 10, we show the influence of the discretization _Nω_ by fixing the canonical value Θ = 1. Following the same procedure as above, we calculate again _χ_ val <sup>2</sup> <sup>for</sup> <sup>the</sup> <sup>valida-</sup> tion set by generating test correlation function from the exact result of Eq. (25), with the same variance _σk_ . The values of _χ_ val <sup>2</sup> <sup>,</sup> <sup>shown</sup> <sup>in</sup> <sup>Fig.</sup> <sup>12,</sup> <sup>indicate</sup> <sup>again</sup> <sup>a</sup> <sup>more</sup> <sup>statistically</sup> sound reconstruction corresponding to sparse grids. Unfortunately, none of the curves of Fig. 10, convincingly captures the sharp edges of the exact spectral density, which rather resemble two symmetrically broadened peaks. Considering shifted grids (Fig. 11), however, as also quantitatively supported by the validation procedure, results in contrast in more asymmetric features, clearly improving the reconstruction towards the exact spectrum. Note, however, that employing sparse _ω_ grids considerably limits frequency resolution, so that the reconstruction in the case of the continuous spectrum with its sharp discontinuities remains quite difficult. VII. DISCUSSION AND CONCLUSIONS Here, we have examined the reconstruction of spectral functions for transport coefficients, starting from imaginary time correlation functions obtained by path integral Monte Carlo simulations. In particular, we have described a general strategy for wisely expressing improved estimators with reduced statistical variance for imaginary time correlation functions involving current or momentum operators. We have next version together with an efficient validation procedure able to select model parameters and effective temperature dependence, indeed seems to offer promising perspectives for capturing qualitative and quantitative features in spectral reconstruction. We also stress that it is straightforward to integrate the proposed validation step in any existing flavor of maximum entropy reconstruction, possibly including additional prior information in the model <sup>22</sup> . In addition, the validation also provides an objective comparison of the reconstructed spectra with approximated ones, e.g., those obtained from the real-time centroid dynamics <sup>14</sup> . We conclude by noting that the Green-Kubo method, combined with the harmonic theory of solids and a numerical perturbative treatment of anharmonic effects, has recently proven to be remarkably effective for the determination of heat conductivity at low temperature in systems such as amorphous silicon <sup>31,32</sup> . Our hope is to extend those works to arbitrary temperatures and stronger anharmonic effects, on one hand employing path integrals to relax the assumptions underlying the perturbative treatment of anharmonicity, and on the other hand using the strategies for the spectral reconstruction developed in the present paper. ACKNOWLEDGMENTS This work has been supported by the project Heatflow (ANR-18-CE30-0019-01) funded by the french "Agence Nationale de la Recherche". Computations were performed using the Froggy platform of the CIMENT infrastructure, which is supported by the Rhône-Alpes region (Grant No. CPER07-13 CIRA) and the project Equip@Meso (ANR-10-EQPX-29-01) of the ANR. The Authors thank Dr. Victor Hugo Purrello for helpful technical discussions. Appendix A: Complete expression for virial-like estimators As we mention in Sect. IV, when calculating currentcurrent correlations one needs to compute products of _p_ and _F_ . As these quantities involve terms proportional to 1 _/_ ∆ _τ_ <sup>2</sup> and 1 _/_ ∆ _τ_, their variance is quite large. In the same Section, we have demonstrated how to re-express the first one in order to obtain a more accurate MC estimator. Quantities that are linear in 1 _/_ ∆ _τ_ in Eq. (18) for _CpF_ ( _τk_ ) can be re-written as, _<u>m</u>_ _h_ ¯ ∆ _τ_ <sup>_⟨F_</sup> <sup>(</sup> <sup>_xk_</sup> <sup>)(</sup> <sup>_xk_</sup> <sup>+1</sup> <sup>_−_</sup> <sup>_xk_</sup> <sup>)</sup> <sup>_F_</sup> <sup>_′_</sup> <sup>(</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_⟩_</sup> <sup>=</sup> and, _<u>m</u>_ _h_ ¯ ∆ _τ_ <sup>_⟨F_</sup> <sup>_′_</sup> <sup>(</sup> <sup>_xk_</sup> <sup>)(</sup> <sup>_x_</sup> <sup>1</sup> <sup>_−_</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_F_</sup> <sup>(</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_⟩_</sup> <sup>=</sup> _y_ 0 _F_ ( _x_ 0) _ρ_ 0( _y_ 0; ∆ _τ_ ) _..._ _ρ_ 0( _yM−_ 1; ∆ _τ_ ) exp( _−_ ∆ _τW_ ) _._ (A6) By substituting, ## ∑ _i_ =1 _M−_ 1 = ∆ _τ_ <u>1</u> ∆ _τ_ <sup>_⟨F_</sup> <sup>_′′_</sup> <sup>(</sup> <sup>_xk_</sup> <sup>)</sup> <sup>_F_</sup> <sup>(</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_⟩−_</sup> _⟨F_ <sup>_′_</sup> ( _xk_ ) _V_ <sup>_′_</sup> ( _xi_ ) _F_ ( _x_ 0) _⟩−_ _<u>k</u>_ _−_ ∆ _τM_ <sup>_⟨F_</sup> <sup>_′′_</sup> <sup>(</sup> <sup>_xk_</sup> <sup>)</sup> <sup>_F_</sup> <sup>(</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_⟩_</sup> <sup>+</sup> _M_ <sup><u>1</u></sup> <sup>_⟨F_</sup> <sup>_′_</sup> <sup>(</sup> <sup>_xk_</sup> <sup>)</sup> <sup>_F_</sup> <sup>(</sup> <sup>_x_</sup> <sup>0)</sup> _<u>k</u>_ _−_ ∆ _τM_ <sup>_⟨F_</sup> <sup>_′′_</sup> <sup>(</sup> <sup>_xk_</sup> <sup>)</sup> <sup>_F_</sup> <sup>(</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_⟩_</sup> <sup>+</sup> _M_ <sup><u>1</u></sup> _M−_ 1 ## ∑ _i_ =1 _iV_ <sup>_′_</sup> ( _xi_ ) _⟩_ _._ (A2) When computing with Eq. (23), we need to keep in mind that the expression is valid only for _τk̸_ = 0. For the case _k_ = 0, we can apply a similar trick finding the "virial" form, _<u>m</u>_ <sup>2</sup> _h_ ¯ <sup>2</sup> ∆ _τ_ <sup>2</sup> <sup>_⟨_</sup> <sup>(</sup> <sup>_x_</sup> <sup>1</sup> <sup>_−_</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_F_</sup> <sup>(</sup> <sup>_x_</sup> <sup>0)2(</sup> <sup>_x_</sup> <sup>1</sup> <sup>_−_</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_⟩_</sup> <sup>=</sup> _<u>m</u>_ = _h_ ¯ <sup>2</sup> ∆ _τ_ <sup>2</sup> _Z_ where, _dx_ 0 _dy_ 0 _···_ _dyM−_ 1 _δ_ ( _M−_ 1 ## ∑ _i_ =0 _yi_ ) _F_ ( _x_ 0) <sup>2</sup> _y_ 0 _y_ 0 _ρ_ 0( _y_ 0; ∆ _τ_ ) _..._ _ρ_ 0( _yM−_ 1; ∆ _τ_ ) exp( _−_ ∆ _τW_ ) _,_ (A3) _W_ = By using the relation _M−_ 1 ## ∑ _j_ =0 _j_ _V_ (∑ _i_ =0 _yi_ + _x_ 0) _._ (A4) _<u>m</u>_ _h_ ¯ ∆ _τ_ <sup>_y_</sup> <sup>0</sup> <sup>_ρ_</sup> <sup>(</sup> <sup>_yi_</sup> <sup>;</sup> <sup>∆</sup> <sup>_τ_</sup> <sup>) =</sup> <sup>_−∂y_</sup> <sup>0</sup> <sup>_ρ_</sup> <sup>(</sup> <sup>_y_</sup> <sup>0</sup> <sup>_,_</sup> <sup>∆</sup> <sup>_τ_</sup> <sup>)</sup> (A5) we can re-write (A3) as, _<u>m</u>_ <sup>2</sup> _h_ ¯ <sup>2</sup> ∆ _τ_ <sup>2</sup> <sup>_⟨_</sup> <sup>(</sup> <sup>_x_</sup> <sup>1</sup> <sup>_−_</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_F_</sup> <sup>(</sup> <sup>_x_</sup> <sup>0)2(</sup> <sup>_x_</sup> <sup>1</sup> <sup>_−_</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_⟩_</sup> <sup>=</sup> _<u>m</u>_ = _−_ _h_ ¯ ∆ _τZ_ _dx_ 0 _dy_ 0 _···_ _dyM−_ 1 _δ_ ( _M−_ 1 ## ∑ _i_ =0 _yi_ ) _F_ ( _x_ 0) <sup>2</sup> _y_ 0 _∂y_ 0 _ρ_ 0( _y_ 0; ∆ _τ_ ) _..._ _ρ_ 0( _yM−_ 1; ∆ _τ_ ) exp( _−_ ∆ _τW_ ) = = _−_ <sup>_<u>m</u>_</sup> _h_ ¯ _M−_ 1 ## ∑ _k_ =0 _⟨F_ ( _x_ 0) <sup>2</sup> ( _x_ 1 _−_ _x_ 0) _V_ <sup>_′_</sup> ( _xk_ ) _⟩_ + <sup><u>1</u></sup> ∆ <sup><u>1</u></sup> ∆ _τ_ <sup>_⟨F_</sup> <sup>(</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_F_</sup> <sup>(</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_⟩_</sup> _<u>m</u>_ + _h_ ¯ ∆ _τZ_ _dx_ 0 _dy_ 0 _···_ _dyM−_ 1 _∂y_ 0 _δ_ ( _M−_ 1 ## ∑ _i_ =0 _yi_ ) _F_ ( _x_ 0) _M−_ 1 _<u>k</u>_ ## ∑ ⟨F ( xk ) V ′ ( xi ) F ′ ( x 0) ⟩− _i_ = _k_ +1 ∆ _τM_ <sup>_⟨F_</sup> <sup>_′_</sup> <sup>(</sup> <sup>_xk_</sup> <sup>)</sup> <sup>_F_</sup> <sup>_′_</sup> <sup>(</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_⟩_</sup> <sup>+</sup> = ∆ _τ_ _−_ _iV_ <sup>_′_</sup> ( _xi_ ) _⟩_ + <sup><u>1</u></sup> _M_ <sup>_⟨F_</sup> <sup>(</sup> <sup>_xk_</sup> <sup>)</sup> <sup>_F_</sup> <sup>_′_</sup> <sup>(</sup> <sup>_x_</sup> <sup>0)</sup> _M−_ 1 ## ∑ _i_ =1 _M−_ 1 ## ∑ _i_ =0 _M−_ 1 ## ∑ _j_ =0 _∂y j_ _δ_ ( _,_ (A1) _M−_ 1 ## ∂y 0 δ ( ∑ _i_ =0 _yi_ ) = <sup><u>1</u></sup> _M_ _yi_ ) = <sup><u>1</u></sup> _yi_ ) _,_ (A7) we finally obtain, _<u>m</u>_ <sup>2</sup> _h_ ¯ <sup>2</sup> ∆ _τ_ <sup>2</sup> <sup>_⟨_</sup> <sup>(</sup> <sup>_x_</sup> <sup>1</sup> <sup>_−_</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_F_</sup> <sup>(</sup> <sup>_x_</sup> <sup>0)2(</sup> <sup>_x_</sup> <sup>1</sup> <sup>_−_</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_⟩_</sup> <sup>=</sup> _⟨F_ ( _x_ 0) <sup>2</sup> ( _x_ 1 _−x_ 0) _V_ <sup>_′_</sup> ( _xk_ ) _⟩_ = ( <sup>_<u>m</u>_</sup> _h_ ¯ ∆ _h_ ¯ <sup>_<u>m</u>_</sup> _<u>m</u>_ _h_ ¯ ∆ _τ_ <sup>_−_</sup> _h_ ¯ ∆ _τM_ <sup>)</sup> <sup>_⟨F_</sup> <sup>(</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_F_</sup> <sup>(</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_⟩−_</sup> <sup>_<u>m</u>_</sup> _h_ ¯ In general, the inversion of _A_ is handled by numerical methods. The diagonal terms, however, can be obtained analytically in a straightforward manner. Indeed, we can first calculates the eigenvalues _{λ_ _}_ of the matrix A by posing, _λ_ _x_ _j_ = _ax_ _j_ + _bx j−_ 1 + _bx j_ +1 _._ By looking for solutions of the form, _M−_ 1 ## ∑ _k_ =0 + <sup>_<u>m</u>_</sup> _hM_ ¯ <sup>_⟨F_</sup> <sup>(</sup> <sup>_x_</sup> <sup>0)(</sup> <sup>_x_</sup> <sup>1</sup> <sup>_−_</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_F_</sup> <sup>(</sup> <sup>_x_</sup> <sup>0)</sup> + <sup>_<u>m</u>_</sup> ¯ - _M−_ 1 ## ∑ _j_ =1 _jV_ <sup>_′_</sup> ( _x_ _j_ )+ _MV_ <sup>_′_</sup> ( _x_ 0) _⟩._ (A8) _x_ <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup> <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup> = _e_ <sup>2</sup> <sup>_iπ_</sup> <sup>_<u>k j</u>_</sup> _<u>M</u>_ _<u>M</u>_ with _k ∈_ [0 _,..._ _M −_ 1], the corresponding eigenvalues are, This expression (a similar argument applies to Eq. (23)) reduces to the usual virial formula for the kinetic energy when _F_ = 1. Indeed, using cyclic invariance along the path, one obtains (setting for simplicity _h_ ¯ and _m_ to unity): <u>1</u> ∆ _τ_ <sup>2</sup> <sup>_⟨_</sup> <sup>(</sup> <sup>_x_</sup> <sup>1</sup> <sup>_−_</sup> <sup>_x_</sup> <sup>0)(</sup> <sup>_x_</sup> <sup>1</sup> <sup>_−_</sup> <sup>_x_</sup> <sup>0)</sup> <sup>_⟩_</sup> <sup>=</sup> - <u>2</u> _<u>πk</u>_ _M_ _λ_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> = _a_ + 2 _b_ cos _,_ and the determinant is det _A_ = ∏ _k λ_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> . The terms _⟨xi_ <sup>2</sup> <sup>_⟩_</sup> <sup>are</sup> next obtained directly from <u>�</u> = _−⟨x_ 0 _V_ <sup>_′_</sup> ( _x_ 0) _⟩,_ (A9) _i_ _M−_ 1 ## ∑ _j_ =0 <sup><u>1</u></sup> ## M ⟨ ∑ i _M_ = <sup><u>1</u></sup> ∆ <sup><u>1</u></sup> <u>1</u> ∆ _τ_ <sup>_−_</sup> ∆ _τM_ <sup>+</sup> _M_ <sup><u>1</u></sup> _M_ _xi_ <sup>2</sup> _i_ <sup>2</sup> <sup>_⟩_</sup> <sup>=</sup> <sup><u>1</u></sup> _⟨xi_ <sup>2</sup> _i_ <sup>2</sup> <sup>_⟩_</sup> <sup>=</sup> <sup><u>1</u></sup> _M_ _M−_ 1 ## = ∑ _k_ =0 = _V_ <sup>_′_</sup> ( _x j_ )) ( <sup><u>1</u></sup> _M_ _M−_ 1 ## ∑ _j_ =0 _x_ _j_ )( _M/_ 2 ## ∑ _k_ = _−M/_ 2 _<u>∂</u>_ _∂_ _a_ <sup>log(det</sup> <sup>_A_</sup> <sup>) =</sup> <u>1</u> _mω_ 0 <sup>2</sup> _M_ _h_ ¯ <sup>_<u>M</u>_</sup> <sup>2</sup> _β_ <sup>2</sup> <sup>sin2 �</sup> <sup>_<u>π</u>_</sup> _M_ <sup>_<u>k</u>_</sup> By employing the classical virial theorem for the center of mass of the path, the second and third terms cancel mutually, and we are left with the usual result for the kinetic energy estimator. Appendix B: Exact computation of correlation for the harmonic oscillator with a discretized path integral Path integral calculations are usually excessively involved to evaluate them analytically, even if the naive discretized version of the density matrix is used. For the case of a single harmonic oscillator, however, one can find the result explicitly. Within this approximation, the partition function, _Zh.o._ of the harmonic oscillator is written as a Gaussian integral, _mω_ 0 <sup>2</sup> 0 <sup>2</sup> <sup>_β_</sup> <sup>+</sup> <sup>4</sup> <sup>_m_</sup> _h_ ¯ <sup>_<u>M</u>_</sup> <sup>2</sup> _β_ <sup>2</sup> 0 <sup>2</sup> <sup>_β_</sup> <sup>+</sup> <sup>4</sup> <sup>_m_</sup> _h_ ¯ <sup>_<u>M</u>_</sup> <sup>2</sup> _β_ <sup>2</sup> <u>1</u> _M_ <u>�</u> _._ (B4) _h_ ¯ <sup>_<u>M</u>_</sup> <sup>2</sup> _β_ <sup>2</sup> <sup>sin2 �</sup> <sup>_<u>π</u>_</sup> _M_ <sup>_<u>k</u>_</sup> Appendix C: Influence of the primitive approximation for the density matrix on time correlations for the harmonic oscillator In the case of the harmonic oscillator, the density matrix, _ρ_ ( _X,Y,_ _τ_ ) = _⟨X|e_ <sup>_−τH_</sup> <sup>ˆ</sup> _|Y_ _⟩_ can be computed exactly, obtaining _ρ_ ( _X,Y,_ _τ_ ) = ~~�~~ 2 _πh_ ¯ sinh _<u>mω</u>_ ( _h_ ¯ _ωτ_ ) <sup>exp</sup> - _−_ <sup>_<u>m</u>_</sup> 4¯ <sup>_<u>ω</u>_</sup> _h_ <sup>_f_</sup> <sup>(</sup> <sup>_X,Y_</sup> <sup>)</sup> - _,_ (C1) with - _<u>h</u>_ <u>¯</u> _<u>ωτ</u>_ _f_ ( _X,Y_ ) = ( _X_ + _Y_ ) <sup>2</sup> tanh 2 _Zh.o._ = - _dXe_ <sup>_−_</sup> <sup><u>1</u></sup> <u>2</u> <sup>_X_</sup> <sup>_T_</sup> <sup>A</sup> <sup>_X_</sup> _,_ (B1) - - _<u>h</u>_ <u>¯</u> _<u>ωτ</u>_ +( _X −Y_ ) <sup>2</sup> coth 2 _._ where _X_ <sup>_T_</sup> is a short-hand form for the vector _{x_ 0 _,_ _x_ 1 _,...,_ _xM−_ 1 _}_, and we have introduced the matrix, _a_ _b_ 0 _..._ _b_ _b_ _a_ _b_ _..._ 0 0 _b_ _a_ _..._ 0 ... ... ... ... ...   (B2)  (C2) Comparing this expression with Eq. (5) specialized to the harmonic oscillator, we realize that the functional dependence on _X_ and _Y_ is identical for both the exact and the approximate expressions. As a consequence, a path integral simulation of an oscillator of frequency _ω_ using the primitive approximation with an imaginary time step _τ_, will sample the same configurations as an exact calculation with a frequency _ω_ <sup>_′_</sup> and a step _τ_ <sup>_′_</sup>, provided that we meet the conditions, A =     with _a_ = _h_ ¯ <sup><u>22</u></sup> <sup>_<u>m</u>_</sup> _τ_ with _a_ = _h_ ¯ <sup><u>22</u></sup> <sup>_<u>m</u>_</sup> _τ_ <sup>+</sup> <sup>_mω_</sup> 0 <sup>2</sup> <sup>_τ_</sup> <sup>, and</sup> <sup>_b_</sup> <sup>=</sup> <sup>_−_</sup> _h_ ¯ <sup>_<u>m</u>_</sup> <sup>2</sup> _τ_ <sup>.</sup> <sup>For a Gaussian weight,</sup> the correlation function _⟨x_ ( _t_ ) _x_ (0) _⟩≡⟨xix_ 0 _⟩_ can obtained as _⟨xix_ 0 _⟩_ = ( A <sup>_−_</sup> <sup>1</sup> ) _i_ 0 _,_ (B3) where A <sup>_−_</sup> <sup>1</sup> is the inverse matrix of A . The formal expression for the partition function is therefore, _h_ ¯ <sup><u>22</u></sup> <sup>_<u>m</u>_</sup> _τ_ <sup>+</sup> <sup>_mω_</sup> 0 <sup>2</sup> _<u>h</u>_ <u>¯</u> _<u>ω</u>_ <sup>_′_</sup> _<u>ω</u>_ <sup>_′_</sup> - _<u>h</u>_ <u>¯</u> _<u>ω</u>_ _′τ_ _′_ 2 <sup>coth</sup> 2 <sup><u>1</u></sup> _τ_ <sup>(1</sup> <sup>+</sup> <sup>_<u>h</u>_</sup> <sup><u>¯</u></sup> <sup>2</sup> <sup>_<u>ω</u>_</sup> 4 <sup>2</sup> <sup>_<u>τ</u>_</sup> <sup>2</sup> ) _,_ (C3) 4 <sup>2</sup> <sup>_<u>τ</u>_</sup> <sup>2</sup> 2 - = _τ_ <sup><u>1</u></sup> and, - _<u>h</u>_ <u>¯</u> _<u>ω</u>_ _′τ_ _′_ 2 - = <sup><u>(</u></sup> <sup>_<u>h</u>_</sup> <sup><u>¯</u></sup> <sup>_<u>ω</u>_</sup> <sup><u>)2</u></sup> <sup>_<u>τ</u>_</sup> _._ (C4) 2 - = <sup><u>(</u></sup> <sup>_<u>h</u>_</sup> <sup><u>¯</u></sup> <sup>_<u>ω</u>_</sup> <sup><u>)2</u></sup> <sup>_<u>τ</u>_</sup> _h_ ¯ _ω_ <sup>_′_</sup> tanh _Z_ = (2 _π_ ) _<u>M</u>_ <u>2</u> [det A ] <sup>_−_</sup> <sup>1</sup> <sup>_/_</sup> <sup>2</sup> _._ _<u>ω</u>_ <u>1</u> <u>0.72478</u> _<u>ω</u>_ <u>2</u> <u>1.25495</u> _<u>ω</u>_ <u>3</u> <u>1.46154</u> _<u>ω</u>_ <u>4</u> <u>1.65143</u> _<u>ω</u>_ <u>5</u> <u>1.80533</u> TABLE I. Lowest excited states frequency values, _ωn_ = _En −_ _En−_ 1, of the spectrum of _Cxx_ <sup>_β_</sup> <sup>(</sup> <sup>_τ_</sup> <sup>) for the double well potential.</sup> For a given value of _h_ ¯ _ωτ_ and _h_ ¯ _ω_, these equations have a unique solution for _ω_ <sup>_′_</sup> and _h_ ¯ _ω_ <sup>_′_</sup> _τ_ <sup>_′_</sup> . As a consequence, a calculation only involving the configurations sampled by the path (and not the normalisation of the density matrix) will correspond to the exact result for the shifted frequency _ω_ <sup>_′_</sup>, and inverse temperature _β_ <sup>_′_</sup> = _Mτ_ <sup>_′_</sup>, with a relative shift of _O_ ( _h_ ¯ _ωτ_ ) <sup>2</sup> . Appendix D: Spectral function calculation for a double well potential In order to illustrate that our discussion is not intrinsically limited to harmonic oscillators, we examine an additional classical benchmark example <sup>14</sup> with strongly anharmonic features. Let us consider the Hamiltonian describing a particle trapped in a double well potential, _H_ ˆ = 2 <sup>_<u>p</u>_</sup> <sup><u>ˆ</u></sup> _m_ <sup>2</sup> <sup>_−_</sup> <sup>_α_</sup> <sup>ˆ</sup> <sup>_x_</sup> <sup>2 +</sup> <sup><u>1</u></sup> 2 <sup>_γ_</sup> <sup>ˆ</sup> <sup>_x_</sup> <sup>4</sup> <sup>_,_</sup> (D1) and we choose _α_ = 1 and _γ_ = 1. We can obtain the energy spectrum and the correlation functions of interest by numerical diagonalisation of _H_ <sup>ˆ</sup> . In the following we consider the position correlation function, _Cxx_ <sup>_β_</sup> <sup>(</sup> <sup>_τ_</sup> <sup>) =</sup> <sup>_⟨x_</sup> <sup>ˆ(</sup> <sup>_τ_</sup> <sup>)</sup> <sup>_x_</sup> <sup>ˆ(0)</sup> <sup>_⟩_</sup> <sup>.</sup> <sup>The corre-</sup> sponding spectral function can be expressed analytically as, _S_ ( _ω_ ) = <sup><u>1</u></sup> We first consider the inverse temperature _β_ = 8, and choose ∆ _τ_ = 0 _._ 1. At this low temperature, all coefficients at frequencies larger than _ω_ 1 = _E_ 1 _−_ _E_ 0 in Eq.(D2) are suppressed exponentially, and the spectrum practically consists of a single _δ_ -peak. As for any discrete spectrum, the reconstruction becomes quite sensitive to the positions of the frequencies _ωi_ if the grid is sparse. One can therefore study in detail the accuracy of the reconstruction when modifying the shift, _δω_, and the distance between the grid points. Here, however, we do not perform such a detailed analysis, and for the sake of illustration we consider only a few different models with a regular grid shifted by a constant amount. In Fig. 13 we show the resulting spectral functions at the indicated values of _Nω_ and _δω_, while Fig. 14 displays the corresponding _χ_ val <sup>2</sup> <sup>.</sup> <sup>The</sup> <sup>data</sup> <sup>for</sup> <sup>_Nω_</sup> <sup>= 10</sup> <sup>and</sup> <sup>_δω_</sup> <sup>= 0</sup> <sup>cor-</sup> respond to values of _χ_ val <sup>2</sup> <sup>approximately ten times larger than</sup> those associated with the shifted lattice case, _δω_ = 0 _._ 25, and have been thus been omitted. If we consider the inaccuracy in the alignment of the _ω_ -grid with the exact peak positions, it comes as no surprise that the model with _Nω_ = 10 and _δ_ = 0 _._ 25 provides a worse reconstruction than what we have obtained with the non-shifted _Nω_ = 25 grid, despite visually resembling more closely the exact spectrum. Reconstruction of a single peak spectrum is performed essentially with only a few coefficients _A_ ( _ωi_ ) that are closest to _ω_ 1, and because with denser grids we have more fitting parameters at our disposal, it is natural that one obtains a better validation with _Nω_ = 25. We now consider the more challenging case of the correlation function _Cxx_ <sup>_β_</sup> <sup>=1</sup> at _β_ = 1 (calculated with ∆ _τ_ = 0 _._ 02), whose spectrum displays several peaks (Fig. 15). We perform the reconstruction with the same parameters as in the case above.The use of sparse grids (even inaccurately placed) proves advantageous in this case. Both models with _Nω_ =10 perform considerably better than in the previous case, whilst the shifted lattice shows the best fit among considered models at Θ = 10 (Fig.16). This figure also clearly demonstrates the effect of the overfitting, which manifests itself in the plot as the increase of the validation _χ_ val <sup>2</sup> <sup>after</sup> <sup>some</sup> <sup>value</sup> <sup>of</sup> <sup>Θ</sup> <sup>for</sup> each configuration of parameters. Another practical issue that is interesting to address is the influence of the imaginary time discretization of the test set of correlation function. Using sparser data set for calculation of _χ_ val <sup>2</sup> <sup>we do not observe any qualitative effect on the result.</sup> Value of Θ, at which the best fit (minimum of _χ_ val <sup>2</sup> <sup>) is achieved,</sup> however, becomes smaller with less test data. 1M. Born and K. Huang, _[Dynamical Theory of Crystal Lattices](https://books.google.fr/books?id=5q9iRttaaDAC)_, International series of monographs on physics (Clarendon Press, 1988). 2A. W, N. Ashcroft, N. Mermin, N. Mermin, and B. P. Company, _[Solid State](https://books.google.fr/books?id=FRZRAAAAMAAJ)_ _[Physics](https://books.google.fr/books?id=FRZRAAAAMAAJ)_, HRW international editions (Holt, Rinehart and Winston, 1976). 3H. Mizuno, S. Mossa, and J.-L. Barrat, “Relation of vibrational excitations and thermal conductivity to elastic heterogeneities in disordered solids,” Phys. Rev. B 94 [, 144303 (2016).](http://dx.doi.org/10.1103/PhysRevB.94.144303) 4Y. Bronstein, P. Depondt, L. E. Bove, R. Gaal, A. M. Saitta, and F. Finocchi, “Quantum versus classical protons in pure and salty ice under pressure,” Phys. Rev. B 93 [, 024104 (2016).](http://dx.doi.org/10.1103/PhysRevB.93.024104) 5J. Barker, “Quantum-statistical Monte-Carlo method - path integrals with boundary conditions,” J. Chem. Phys. 70 [, 2914–2918 (1979).](http://dx.doi.org/10.1063/1.437829) 6D. Chandler and P. Wolynes, “Exploiting the isomorphism between quantum-theory and classical statistical-mechanics of polyatomic fluids,” J. Chem. Phys. 74 [, 4078–4095 (1981).](http://dx.doi.org/10.1063/1.441588) ## Z n ∑,m e <sup>_−β_</sup> <sup>_En_</sup> _|⟨n|x_ ˆ _|m⟩|_ <sup>2</sup> _δ_ ( _ω −_ _Em_ + _En_ ) _._ (D2) _n,m_ Starting from the exact correlation function, we generate an extended data set _C_ <sup>˜</sup> ( _τk_ ) with an artificial Gaussian noise of variance _σk_ = 10 <sup>_−_</sup> <sup>3</sup> _×_ _C_ <sup>˜</sup> _xx_ <sup>_β_</sup> <sup>(</sup> <sup>_τ_</sup> _k_ <sup>).</sup> <sup>We</sup> <sup>next</sup> <sup>employ</sup> <sup>the</sup> <sup>calcula-</sup> tion scheme detailed in Sect. III, and apply the _χ_ val <sup>2</sup> <sup>validation</sup> criteria in order to determine the optimal reconstruction. As discussed in the main text, we are interested in the effect of the modification of the simulation hyper-parameters on the the quality of the spectral reconstruction. As above, we focus in particular on the effective inverse temperature, Θ, the number, _Nω_, of _δ_ -functions considered in the _ω_ -interval [0 _,_ 5], and the uniform shift, _δω_ . Note that, contrary to the case of the harmonic oscillator, the spectral function is now expressed in terms of a set of _non-equally-_ _spaced δ_ -peaks (see Table I). As a consequence, none of the nodes of the uniform _ω_ -grid we consider in our calculations coincides with the _ωi_ . This is an intentionally non-optimal choice which, however, allows us to further illustrate important features of the reconstruction and associated validation, and provides hints towards possible improvements. 1.0 0.8 0.6 N =10 N =10 =0, =15 =0.25, =15 N =25 =0, =15 1.0 0.8 0.6 =0, =4 =0.25, =10 N =25 =0, =15 0.4 0.2 0.0 <u>0.0</u> <u>0.5</u> <u>1.0</u> <u>1.5</u> <u>2.0</u> FIG. 13. Spectral reconstruction of _Cxx_ <sup>_β_</sup> <sup>=8</sup> ( _τ_ ) for the double well po tential, at the indicated values of the discretization _Nω_ and Θ. Value of Θ corresponds to the minimum of _χ_ val <sup>2</sup> <sup>for</sup> <sup>_Nω_</sup> <sup>=</sup> <sup>25</sup> <sup>model</sup> <sup>as</sup> shown in the Fig. 14. Red spectral function corresponds to a _Nω_ = 10 lattice shifted by _δω_ = 0 _._ 25. The exact spectrum of _Cxx_ <sup>_β_</sup> <sup>=8</sup> ( _τ_ ) at _β_ = 8 is plotted as gray hatched area. For the purpose of illustration all delta-functions are shown with the frequency resolution ∆ _ω_ = 0 _._ 01. 0.4 0.2 ~~0.0~~ <u>0.0</u> <u>0.5</u> <u>1.0</u> <u>1.5</u> <u>2.0</u> FIG. 15. Spectral reconstruction of _Cxx_ <sup>_β_</sup> <sup>=1</sup> ( _τ_ ) for the double well potential, at the indicated Θ. Values of Θ correspond to the minima of _χ_ val <sup>2</sup> <sup>for</sup> <sup>each</sup> <sup>model</sup> <sup>respectively</sup> <sup>as</sup> <sup>shown</sup> <sup>in</sup> <sup>the</sup> <sup>Fig.</sup> <sup>16.</sup> <sup>We</sup> compare models with frequency discretization _Nω_ = 10 and _Nω_ = 25, red spectral function corresponds to a _Nω_ = 10 lattice shifted by _δω_ = 0 _._ 25. The gray hatched area indicates the exact spectral function at _β_ = 1. All delta-functions are shown with the frequency resolution ∆ _ω_ = 0 _._ 01. N =10 N =10 =0 0.15 0.10 =0 =0.25 N =25 1.0 0.5 =0.25 N =25 =0 0.0 ~~2~~ ~~5~~ ~~10~~ ~~15~~ ~~20~~ 0.05 0.00 ~~2~~ ~~5~~ ~~10~~ ~~15~~ ~~20~~ FIG. 16. Θ-dependence of ∆ _χ_ <sup>2</sup> val <sup>2</sup> <sup>_≡_</sup> <sup>_χ_</sup> <sup>2</sup> val <sup>2</sup> <sup>_−_</sup> <sup>_χ_</sup> 0 <sup>2</sup> 0 <sup>2</sup> <sup>calculated</sup> <sup>from</sup> <sup>the</sup> FIG. 14. Θ-dependence of ∆ _χ_ <sup>2</sup> val <sup>2</sup> <sup>_≡_</sup> <sup>_χ_</sup> <sup>2</sup> val <sup>2</sup> <sup>_−_</sup> <sup>_χ_</sup> 0 <sup>2</sup> 0 <sup>2</sup> <sup>calculated from the val-</sup> validation step of the reconstructed spectral functions for _Cxx_ <sup>_β_</sup> <sup>=1</sup> validation step of the reconstructed spectral functions for _Cxx_ <sup>_β_</sup> <sup>=1</sup> ( _τ_ ). The value of _χ_ 0 <sup>2</sup> <sup>corresponds</sup> <sup>to</sup> <sup>a</sup> <sup>reconstruction</sup> <sup>with</sup> <sup>_Nω_</sup> <sup>= 10</sup> <sup>and</sup> a grid shifted by _δω_ = 0 _._ 25, at Θ = 10. Here we compare shifted ( _δω_ = 0 _._ 25) and non-shifted lattices with the indicated values of _Nω_ . idation step of the reconstructed spectral functions for _Cxx_ <sup>_β_</sup> <sup>=8</sup> ( idation step of the reconstructed spectral functions for _Cxx_ <sup>_β_</sup> <sup>=8</sup> ( _τ_ ) for the frequency discretizations _Nω_ = 10 and _Nω_ = 25. The value of _χ_ 0 <sup>2</sup> is _χ_ val <sup>2</sup> <sup>corresponding to</sup> <sup>_Nω_</sup> <sup>= 25 and Θ = 15.</sup> <sup>Spectral functions for</sup> the non-shifted _Nω_ = 10 grid (shown at Θ = 15 as the blue spectrum in Fig. 13) provides considerably worse result and the corresponding _χ_ val <sup>2</sup> <sup>are not shown here.</sup> val <sup>2</sup> <sup>are not shown here.</sup> 7M. Herman, E. Bruskin, and B. Berne, “On path integral Monte-Carlo simulations,” J. Chem. Phys. 76 [, 5150–5155 (1982).](http://dx.doi.org/10.1063/1.442815) 8E. L. Pollock and D. M. Ceperley, “Simulation of quantum many-body systems by path-integral methods,” Phys. Rev. B 30 [, 2555–2568 (1984).](http://dx.doi.org/ 10.1103/PhysRevB.30.2555) 9M. Tuckerman, _Statistical_ _mechanics:_ _theory_ _and_ _molecular_ _simulation_ (Oxford university press, 2010). 10M. S. Green, “Markoff random processes and the statistical mechanics of time-dependent phenomena,” J. Chem. Phys. 20 [, 1281–1295 (1952).](http://dx.doi.org/10.1063/1.1700722) 11R. Kubo, “Statistical-mechanical theory of irreversible processes. i. general theory and simple applications to magnetic and conduction problems,” [Journal of the Physical Society of Japan](http://dx.doi.org/10.1143/JPSJ.12.570) 12, 570–586 (1957). [12J. M. Luttinger, “Theory of thermal transport coefficients,” Phys. Rev.](http://dx.doi.org/ 10.1103/PhysRev.135.A1505) 135, [A1505–A1514 (1964).](http://dx.doi.org/ 10.1103/PhysRev.135.A1505) 13D. Thirumalai and B. Berne, “On the calculation of time correlationfunctions in quantum-systems - path integral techniques,” J. [Chem.](http://dx.doi.org/10.1063/1.445597) Phys. 79 [, 5029–5033 (1983).](http://dx.doi.org/10.1063/1.445597) 14A. Perez, M. E. Tuckerman, and M. H. Muser, “A comparative study of the centroid and ring-polymer molecular dynamics methods for approximating quantum time correlation functions from path integrals,” The [Journal](http://dx.doi.org/10.1063/1.3126950) of Chemical Physics [130](http://dx.doi.org/10.1063/1.3126950), 184105 (2009). 15A. W. Sandvik, “Stochastic method for analytic continuation of quantum monte carlo data,” Phys. Rev. B 57 [, 10287–10290 (1998).](http://dx.doi.org/10.1103/PhysRevB.57.10287) 16G. Bertaina, D. E. Galli, and E. Vitali, “Statistical and computational in[telligence approach to analytic continuation in quantum monte carlo,” Ad-](http://dx.doi.org/10.1080/23746149.2017.1288585) vances in Physics: X 2, 302–323 (2017). 17R. Levy, J. LeBlanc, and E. Gull, “Implementation of the maximum entropy method for analytic continuation,” Computer [Physics](http://dx.doi.org/10.17632/rf3p4psdhs.1) Communica tions 215 [, 149–155 (2017).](http://dx.doi.org/10.17632/rf3p4psdhs.1) 18O. Goulko, A. S. Mishchenko, L. Pollet, N. Prokof’ev, and B. Svistunov, [“Numerical analytic continuation: Answers to well-posed questions,” Phys.](http://dx.doi.org/10.1103/PhysRevB.95.014102) Rev. B 95 [, 014102 (2017).](http://dx.doi.org/10.1103/PhysRevB.95.014102) 19Y. Kora and M. Boninsegni, “Dynamic structure factor of superfluid 4He from quantum monte carlo: [Maximum entropy revisited,” Phys. Rev. B](http://dx.doi.org/10.1103/PhysRevB.98.134509) 98, [134509 (2018).](http://dx.doi.org/10.1103/PhysRevB.98.134509) 20R. Feynman, _Statistical_ _[Mechanics:](https://books.google.fr/books?id=Ou4ltPYiXPgC)_ _A_ _Set_ _Of_ _Lectures_, Advanced Books Classics (Avalon Publishing, 1998). 21In this paragraph we drop the _AB_ subscripts in Eq. (2). 22M. Jarrell and J. Gubernatis, “Bayesian inference and the analytic continuation of imaginary-time quantum monte carlo data,” Physics [Reports](http://dx.doi.org/https://doi.org/10.1016/0370-1573%0x2895%0x2900074-7) 269, [133–195 (1996).](http://dx.doi.org/https://doi.org/10.1016/0370-1573%0x2895%0x2900074-7) 23M. Boninsegni and D. M. Ceperley, “Density fluctuations in liquid 4he. path [integrals and maximum entropy,” J. Low Temp. Phys.](http://dx.doi.org/10.1007/BF00751861) 104, 339 (1996). 24G. Krilov and B. J. Berne, “Real time quantum correlation functions. II. maximum entropy numerical analytic continuation of path integral monte carlo and centroid molecular dynamics data,” The Journal of Chemical Physics 111 [, 9147–9156 (1999).](http://dx.doi.org/10.1063/1.480028) 25G. Krilov, E. Sim, and B. J. Berne, “Quantum time correlation functions from complex time monte carlo simulations: A maximum entropy [approach,” The Journal of Chemical Physics](http://dx.doi.org/10.1063/1.1331613) 114, 1075–1088 (2001). 26S. Habershon, B. J. Braams, and D. E. Manolopoulos, “Quantum mechanical correlation functions, maximum entropy analytic continuation, and [ring polymer molecular dynamics,” The Journal of Chemical Physics](http://dx.doi.org/10.1063/1.2786451) 127, [174108 (2007).](http://dx.doi.org/10.1063/1.2786451) 27S. Fuchs, T. Pruschke, and M. Jarrell, “Analytic continuation of quan[tum monte carlo data by stochastic analytical inference,” Phys. Rev. E](http://dx.doi.org/10.1103/PhysRevE.81.056701) 81, [056701 (2010).](http://dx.doi.org/10.1103/PhysRevE.81.056701) 28P. Mehta, M. Bukov, C.-H. Wang, A. G. Day, C. Richardson, C. K. Fisher, and D. J. Schwab, “A high-bias, low-variance introduction to machine learning for physicists,” Physics reports [810](http://dx.doi.org/ 10.1016/j.physrep.2019.03.001), 1–124 (2019). 29G. Carleo, G. Boéris, M. Holzmann, and L. Sanchez-Palencia, “Universal superfluid transition and transport properties of two-dimensional dirty bosons,” Phys. Rev. Lett. [111](http://dx.doi.org/10.1103/PhysRevLett.111.050406), 050406 (2013). 30D. M. Ceperley, “Path integrals in the theory of condensed helium,” [Rev.](http://dx.doi.org/ 10.1103/RevModPhys.67.279) Mod. Phys. 67 [, 279–355 (1995).](http://dx.doi.org/ 10.1103/RevModPhys.67.279) 31L. Isaeva, G. Barbalinardo, D. Donadio, and S. Baroni, “Modeling heat transport in crystals and glasses from a unified lattice-dynamical approach,” [Nature communications](https://www.nature.com/articles/s41467-019-11572-4) 10, 3853 (2019). 32M. Simoncelli, N. Marzari, and F. Mauri, “Unified theory of thermal transport in crystals and glasses,” Nature Physics [15](http://dx.doi.org/ 10.1038/s41567-019-0520-x), 809 (2019).

섹션 본문

섹션 본문이 없습니다.

참고문헌

참고문헌 정보가 없습니다.