betaFeedback

WorksPhysics and Astronomy

Low-variance estimators for nuclear quantum mean forces

Abstract

Quantum nuclear effects on the statistical properties of position-dependent operators can be rigorously captured by molecular dynamics on the learnt potential of mean force of a single path-integral replica. However, the primitive mean-force averages obtained from path integral molecular dynamics with that replica held fixed are noisy. We derive a "scaled gradient" estimator with zero variance for a one-dimensional harmonic oscillator. On our molecular benchmark systems, the Zundel cation at 100 K and 300 K and bulk water at 300 K we observe nearly 5 to 50 times reduction in sampling time. The resulting potentials can be trained on these forces like standard machine learning interatomic potentials and yield stable production simulations from which quantum expectation values of position-dependent observables are obtained as classical ensemble averages.

Introduction

Path integral molecular dynamics (PIMD) yields systematically converged quantum Boltzmann statistics, however, at the overhead of simulating many classical replicas of a system.[1, 2, 3] Existing acceleration strategies address several distinct sources of computational cost. Higher-order factorizations of the Boltzmann operator[4, 5, 6, 7, 8, 9, 10], truncated cumulant expansions of the Boltzmann trace[11, 12] and non-equilibrium colored-noise thermostats that mimic quantum fluctuations[13, 14, 15, 16, 17] reduce the number of replicas in the PIMD Hamiltonian. Approaches such as ring polymer contraction[18] and multiple-time-stepping[19, 20, 21] reduce how frequently total energy and gradients are evaluated.

An alternate acceleration strategy is coarse-graining i.e. to integrate out the replicas of the system that are strictly not necessary for estimating observables and evaluating the resulting effective potential[22, 23, 24, 25, 26, 27, 28]. Integrating out all but the centroid of the replicas underlies centroid molecular dynamics[29], which approximates dynamical properties. In what follows, we will refer to this approach as “centroid” coarse-graining. Integrating out all but one arbitrary replica has been shown to provide a rigorous route to equilibrium structural properties[27] and equivalent to coarse graining with respect to the starting point of imaginary-time paths[30]. In what follows, we will refer to this approach as “starting point” coarse-graining.

Centroid coarse-graining has been shown to be tractable using bottom-up force-matching. With the effective potential represented by an empirical force field, the approach was referred to as fast centroid molecular dynamics[31, 32]. More recently, with the effective potential represented a machine learning interatomic potential (MLIP), the approach has been referred to as path-integral coarse-graining simulations (PIGS)[25, 26, 27, 28]. Centroid coarse-graining has proven successful as its potential of mean force is often a small correction to the physical potential, with force corrections vanishing at high temperatures and for stiff harmonic modes at all temperatures.[1] Moreover, the primitive estimator of the centroid mean force has a low variance.

The same is not true for starting point coarse-graining. The primitive estimator calculating the mean force contains a spring-force contribution that is absent from the centroid estimator[27], and its variance can therefore be much higher with an explicit temperature dependence. Moreover, at high temperatures, the corresponding potential of mean force approaches the physical potential more slowly than its centroid counterpart and remains significantly different from the physical potential even in the harmonic regime[30]. The difficulty of learning this effective potential using the PIGS approach was noted in Ref. 27. They demonstrated successful generalization for a water molecule, while the larger Zundel system required more training data and simulations of bulk water observed stability issues. These difficulties also motivate alternative routes to quantum statistical sampling, such as generative Gibbs sampling[33] which can be trained using classical molecular dynamics data.

In this work, we derive a low-variance “scaled gradient” estimator for the mean forces acting on a replica. This estimator yields zero variance for a one-dimensional harmonic oscillator and reduces the estimated constrained-sampling time by factors ≈5\approx5 to 50 for the systems reported here. The reduced variance of the effective-force estimators enables the training of machine-learned effective potentials that yield substantially more stable production simulations than previous approaches based on the primitive estimator. This opens a promising route towards accurate and scalable simulations incorporating quantum nuclear effects using classical molecular dynamics.

Theory and methods

Fixed-replica constrained ensemble

The expression for the effective potential governing quantum statistics for a Hamiltonian H^\hat{H} is

UQM(q;β)=−β−1log⁡⟨q∣e−βH^∣q⟩+β−1log⁡Z(β)(1)U_{\mathrm{QM}}(\mathbf{q};\beta)=-\beta^{-1}\log\langle\mathbf{q}|e^{-\beta\hat{H}}|\mathbf{q}\rangle+\beta^{-1}\log Z(\beta) \tag*{(1)}

where q\mathbf{q} is the position vector of the system, β\beta is the inverse temperature, and Z(β)Z(\beta) is the canonical quantum partition function. The corresponding imaginary-time discretized path-integral expression is

UQM,P(q;β)=−β−1log⁡[∫∏j=1Pdq(j) δ(3N)(q−q(1))e−βPUP({q(j)})]+const.(2)U_{\mathrm{QM},P}(\mathbf{q};\beta)=-\beta^{-1}\log\left[\int\prod_{j=1}^{P}\mathrm{d}\mathbf{q}^{(j)}\,\delta^{(3N)}\left(\mathbf{q}-\mathbf{q}^{(1)}\right)e^{-\beta_P U_P(\{\mathbf{q}^{(j)}\})}\right]+\mathrm{const}. \tag*{(2)}

where PP is the number of replicas, βP≡β/P\beta_P\equiv\beta/P, q(j)\mathbf{q}^{(j)} is the position vector of the jj-th replica, and we choose to constrain the arbitrarily selected first replica at q\mathbf{q}. The potential term

UP({q(j)})=∑j=1P[U(q(j))+∑i=1Nmi∣qi(j)−qi(j+1)∣22βP2ℏ2]U_P\left(\{\mathbf{q}^{(j)}\}\right)=\sum_{j=1}^{P}\left[U(\mathbf{q}^{(j)})+\sum_{i=1}^{N}\frac{m_i\left|\mathbf{q}_i^{(j)}-\mathbf{q}_i^{(j+1)}\right|^2}{2\beta_P^2\hbar^2}\right]

includes the sum of the physical potentials on all replicas and a spring term. Implementation of Eq. (2) requires PIMD with the first replica constrained at q\mathbf{q}.

Primitive estimator for the mean force

The mean force acting on the first replica can be evaluated using the primitive estimator

fQM,P(q)=P−1⟨f(1)+fspring,(1)⟩q(3)\mathbf{f}_{\mathrm{QM},P}(\mathbf{q})=P^{-1}\left\langle\mathbf{f}^{(1)}+\mathbf{f}^{\mathrm{spring},(1)}\right\rangle_{\mathbf{q}} \tag*{(3)}

where f(1)\mathbf{f}^{(1)} and fspring,(1)\mathbf{f}^{\mathrm{spring},(1)} are respectively the physical and spring forces acting on the first replica, and ⟨⋅⟩q\langle\cdot\rangle_{\mathbf{q}} denotes the canonical ensemble with the first replica constrained at q\mathbf{q}. A schematic representation of the primitive estimator is shown in Figure 1(a). Unfortunately, the primitive estimator exhibits poor statistical behaviour for certain systems and temperatures because its variance depends strongly on temperature through the spring frequency ωP=P/(βℏ)\omega_P=P/(\beta\hbar).

Figure 1. (a) A schematic for the primitive and the scaled gradient estimators. The cross marks the constrained replica while ff and f+fspringf+f^{\mathrm{spring}} denote physical and total ring-polymer forces. Weights are fixed while each estimator is evaluated; (b) Standard deviation of the mean force divided by the root-mean-square force, for a harmonic oscillator with m=ℏ=ω=1m=\hbar=\omega=1, evaluated at selected integer PP setting β−1=4/P\beta^{-1}=4/P for convergence. Lines are guides to the eye.

As shown in Figure 1(b) and derived in Appendix § 3.8.2.1, we quantify this behaviour for a one-dimensional harmonic oscillator with unit mass and unit frequency using the noise-to-signal ratio of the force estimator. This ratio is defined as the standard deviation of the estimator divided by the root-mean-square mean force and for a harmonic oscillator it is independent of the replica’s absolute position. For the convergence rule used in Figure 1(b), P=4βℏωP=4\beta\hbar\omega, this ratio approaches 1.76 as βℏω→∞\beta\hbar\omega\to\infty and increases as βℏω\beta\hbar\omega decreases over the range shown. The primitive estimator can therefore require long constrained PIMD simulations for systems containing both high- and low-frequency modes, due to the poor statistical properties of the effective forces associated with the low-frequency modes. Since only a fraction of the modes in a typical system are strongly quantized, much of the computational cost of the primitive estimator arises from modes for which nuclear quantum effects are small.

Scaled gradient estimator for the mean force

A more efficient estimator can be derived by noting that the average total force on each unconstrained replica vanishes in the ensemble defined in Eq. (3) (see Appendix § 3.8.2.2). Consequently, the estimator

fQM,Pscaled gradient=P−1∑j=1Pw(j)[f(j)+fspring,(j)](4)f^{\mathrm{scaled\ gradient}}_{\mathrm{QM},P}=P^{-1}\sum_{j=1}^{P}w^{(j)}\left[f^{(j)}+f^{\mathrm{spring},(j)}\right] \tag*{(4)}

has the same expectation value as the primitive estimator for any set of fixed weights satisfying w(1)=1w^{(1)}=1. The remaining P−1P-1 weights can therefore be chosen to minimize the variance of the estimator,

wopt=argmin⁡w:w(1)=1Var⁡[fQM,Pscaled gradient].(5)\mathbf{w}_{\mathrm{opt}}=\underset{\mathbf{w}:w^{(1)}=1}{\operatorname{argmin}}\operatorname{Var}\left[f^{\mathrm{scaled\ gradient}}_{\mathrm{QM},P}\right]. \tag*{(5)}

Here Var denotes the mean variance over 3N3N Cartesian force components. We refer to Eq. (4) as the “scaled gradient” estimator, following a related estimator based on the same idea that we previously developed for open paths[34], and present its schematic diagram in Figure 1(a).

For a one-dimensional harmonic oscillator, the weights that minimize the variance can be obtained analytically, yielding a zero-variance estimator, as shown in Appendix § 2.2.2. For a harmonic oscillator with mass mm and frequency ω\omega, the optimal weights are

wopt(j)=cosh⁡[(P/2−j+1)κ]cosh⁡(Pκ/2).(6)w_{\mathrm{opt}}^{(j)}=\frac{\cosh\left[(P/2-j+1)\kappa\right]}{\cosh(P\kappa/2)}. \tag*{(6)}

where κ=arcosh⁡[1+12(βPℏω)2]\kappa=\operatorname{arcosh}\left[1+\frac{1}{2}(\beta_P\hbar\omega)^2\right]. Figure 1(b) compares the noise-to-signal ratio of this estimator with that of the primitive estimator for the harmonic oscillator. For realistic systems and finite simulation lengths, however, the optimal weights must be estimated from sampled force correlations, and the achievable variance reduction therefore depends on the quality of configurational sampling.

PIGS + the scaled gradient force estimator

For any system for which an analytical treatment is not possible, the mean QM force for a given configuration q\mathbf{q} must be estimated from constrained PIMD simulations with one replica constrained at q\mathbf{q}. The total forces on all replicas are sampled along the MD trajectory and averaged over non-overlapping trajectory blocks. For block rr, we write this average as

Fr(j)=⟨f(j)+fspring,(j)⟩r,j=1,…,P,(7)\mathbf{F}_{r}^{(j)}=\left\langle f^{(j)}+f^{\mathrm{spring},(j)}\right\rangle_r,\qquad j=1,\ldots,P, \tag*{(7)}

where ⟨⋅⟩r\langle\cdot\rangle_r denotes the time average within that block. The blocks are divided equally into two sets. The first set is used to fit the weights and determine the regularization parameter, while the second set is reserved for evaluating the resulting estimator. To determine the regularization parameter, the fitting set is further divided into two equal training and validation subsets. The training subset is used to fit w(λ)\mathbf{w}(\lambda) by minimizing Eq. (5) with an additional L2L_2 regularization term, which leads to the closed-form solution

w(λ)=−(C+λI)−1b,(8)\mathbf{w}(\lambda)=-(\mathbf{C}+\lambda\mathbf{I})^{-1}\mathbf{b}, \tag*{(8)}

where λ\lambda is a regularization hyperparameter. For any set B\mathcal{B} of fitting blocks, let F‾B(j)=∣B∣−1∑r∈BFr(j)\overline{\mathbf{F}}_{\mathcal{B}}^{(j)}=|\mathcal{B}|^{-1}\sum_{r\in\mathcal{B}}\mathbf{F}_{r}^{(j)}. The covariance matrix C\mathbf{C} of the unconstrained-replica forces and their covariance vector b\mathbf{b} with the constrained-replica force are

Cij=∑r∈B(Fr(i)−F‾B(i))⋅(Fr(j)−F‾B(j))3N(∣B∣−1),C_{ij}=\frac{\sum_{r\in\mathcal{B}}\left(\mathbf{F}_{r}^{(i)}-\overline{\mathbf{F}}_{\mathcal{B}}^{(i)}\right)\cdot\left(\mathbf{F}_{r}^{(j)}-\overline{\mathbf{F}}_{\mathcal{B}}^{(j)}\right)}{3N(|\mathcal{B}|-1)},
bi=∑r∈B(Fr(i)−F‾B(i))⋅(Fr(1)−F‾B(1))3N(∣B∣−1).(9)b_i=\frac{\sum_{r\in\mathcal{B}}\left(\mathbf{F}_{r}^{(i)}-\overline{\mathbf{F}}_{\mathcal{B}}^{(i)}\right)\cdot\left(\mathbf{F}_{r}^{(1)}-\overline{\mathbf{F}}_{\mathcal{B}}^{(1)}\right)}{3N(|\mathcal{B}|-1)}. \tag*{(9)}

Here i,j=2,…,Pi,j=2,\ldots,P. Candidate values of λ\lambda are evaluated by applying the corresponding weights to the validation blocks and computing the variance across those blocks, as defined in Appendix C. The roles of the training and validation subsets are then exchanged and the procedure is repeated. The value of λ\lambda is selected from the combined validation results. Using the selected value of λ\lambda, C\mathbf{C} and b\mathbf{b} are recomputed using all blocks in the fitting set and the resulting weights are applied to the second, previously unused set of blocks. Finally, the two original sets are exchanged: the second set is used to select λ\lambda and fit the weights following the same procedure, and the resulting weights are applied to the first set. This procedure yields one force estimate for every trajectory block using weights determined without using that block either to select the regularization parameter or to fit the weights.

The procedure described above is applied independently to a set of configurations {q}\{\mathbf{q}\} to yield a set of quantum mean forces {fQM,P(q)}\{f_{\mathrm{QM},P}(\mathbf{q})\}. The resulting configuration-force pairs form the dataset used to learn the effective potential at a given inverse temperature. The dataset is divided into training and validation sets, and a conservative MACE potential35 UθU_\theta is fitted to the training configurations using a forces loss

L(θ)=1Ntrain∑q∈Dtrain∣−∇qUθ(q)−fQM,P(q)∣2.(10)\mathcal{L}(\theta)=\frac{1}{N_{\mathrm{train}}}\sum_{\mathbf{q}\in\mathcal{D}_{\mathrm{train}}}\left|-\nabla_{\mathbf{q}}U_\theta(\mathbf{q})-f_{\mathrm{QM},P}(\mathbf{q})\right|^2. \tag*{(10)}

The model that minimizes the corresponding force loss on the validation set is selected for production simulations. We learn the effective potential directly from the quantum mean-force labels and do not use a differential-learning scheme with respect to the underlying physical potential energy surface. Classical sampling of the resulting UθU_\theta then approximates the target single-replica quantum distribution. We will refer to these simulations as PIGS.

Results

Zundel cation

We first implement a replica-level constraint in the i-PI code36. All PIMD simulations for calculating the quantum mean force and all standard molecular dynamics and PIMD simulations were performed with the i-PI code.

We start by considering the case of the Zundel cation at 100 and 300 K which exhibits proton delocalization between two oxygen atoms. Initial configurations are sampled from a 100 ps long unconstrained PIMD simulation at 300 K. For 64 configurations randomly sampled from the replica trajectories, bead-constrained PIMD simulations are performed at each temperature for 7 ps, with 2 ps equilibration and 5 ps production. Total forces are sampled every 10 fs, and each production trajectory is split into 20 blocks of 0.25 ps, which are used to estimate the mean force with the scaled gradient estimator, as outlined earlier, and with the primitive estimator as a control. The resulting dataset for each temperature comprises 48 training, eight validation, and eight test configurations.

As shown in Figure 2(b) and (c), the scaled gradient estimator substantially reduces the standard error associated with the quantum mean force. The median standard error decreases from 14.4 to 6.6 meV Å−1^{-1} at 100 K and from 57.7 to 9.7 meV Å−1^{-1} at 300 K. To quantify what this improvement in statistical efficiency corresponds to in terms of PIMD simulation time, we consider a target force uncertainty of ≈10\approx10 meV Å−1^{-1}, comparable to the typical force error of MLIPs trained on density-functional-theory data, and estimate the required simulation time tt assuming a t−1/2t^{-1/2} convergence of the standard error. The corresponding median sampling times required to reach 10 meV Å−1^{-1} are 10.3 and 2.2 ps at 100 K, and 166.3 and 4.7 ps at 300 K, for the primitive and scaled gradient estimators, respectively. This corresponds to reductions in the required sampling time by factors of approximately 4.7 and 35 at 100 and 300 K, respectively. The absolute computational savings at 100 K are further amplified by the higher cost per PIMD step, as these simulations require three times as many replicas as those at 300 K.

Figure 2. Panel (a) overlays all 96 replicas of a representative 100 K PIMD configuration. Panels (b) and (c) compare the standard error for the mean forces associated with the primitive and scaled gradient estimators at 100 and 300 K, respectively; boxes show the interquartile range, white lines show the median, and points show individual configurations. The logarithmic right axes give the estimated thermostatted time for which a constrained path integral molecular dynamics needs to be run for a 10 meV Å−1^{-1} force error estimated from a t−1/2t^{-1/2} dependence of the standard error. Panels (d) and (e) show the O–O distributions at 100 and 300 K, respectively, while panels (f) and (g) show the distributions associated with the proton transfer coordinate. Black, blue, and red denote PIMD, PIGS, and classical MD, respectively. All structural distributions use the full 0≤t<1000 \leq t < 100 ps interval; shading shows the standard error from fifty 2 ps blocks.

For validation on equilibrium properties, independent 100 ps PIMD trajectories at 100 and 300 K serve as references. Within the PIGS approach, the MLIPs fitted to the scaled gradient mean forces are used to perform standard MD simulations of the same duration as the reference PIMD simulations. We compare two structural distributions: the histogram of the O–O distance, dO−Od_{\mathrm{O-O}}, and the histogram of the proton-transfer coordinate, δ\delta. We also perform classical MD simulations of the same duration as the reference PIMD simulations to quantify quantum nuclear effects.

quantum nuclear effects. As shown in Figure 2(d) and (f), at 100 K both distributions are broadened in PIMD relative to classical MD, while the PIGS distributions are in quantitative agreement with PIMD. In addition, quantum nuclear effects elongate the O–O distance and the PIGS approach is able to quantitatively determine it. As shown in Figure 2(e) and (g), at 300 K the differences between the PIMD and classical MD distributions (width and mean values) are smaller than at 100 K; nevertheless, the PIGS distributions remain in quantitative agreement with PIMD.

Liquid water

We next consider liquid water described by the q-TIP4P/F potential37 at 300 K. The system contains 64 water molecules in a cubic cell of side 12.4138 Å and is simulated using 32 replicas. The labeling set contains 128 configurations, of which 112 are used for training, eight for validation, and eight for testing. Each constrained calculation uses the same 2 ps equilibration, 5 ps production, force-sampling interval, and block construction as the Zundel calculations. As shown in Figure 3(b), the scaled gradient estimator reduces the median RMS standard error associated with the quantum mean force from 61.3 to 8.1 meV Å−1^{-1}. Assuming t−1/2t^{-1/2} convergence of the standard error, the corresponding median sampling time required to reach 10 meV Å−1^{-1} decreases from 188.1 to 3.3 ps. This corresponds to a reduction in the required sampling time by a factor of approximately 57.5.

Figure 3. Panel (a) overlays all 32 replicas of a representative configuration from the 64-molecule PIMD reference. Panel (b) compares the standard error for the mean forces associated with the primitive and scaled gradient estimators; boxes show the interquartile range, white lines show the median, and points show individual configurations. The logarithmic right axes give the estimated thermostatted time for which a constrained path integral molecular dynamics needs to be run for a 10 meV Å−1^{-1} force error estimated from a t−1/2t^{-1/2} dependence of the standard error. Panels (c) and (d) show the intramolecular O–H distance and θH–O–H, while panels (e) and (f) show the intermolecular H–H and O–O radial distributions. Black, blue, and red denote 32-replica PIMD using replica 0, PIGS using the ridge-trained epoch-80 model with 128 configurations, and classical q-TIP4P/F MD, respectively. All curves use the full 0≤t<200 \le t < 20 ps interval. Shading shows the standard error of the histograms estimated from twenty 1 ps blocks.

Within the PIGS approach, the MLIP fitted to the scaled gradient mean forces is used to perform a standard MD simulation, and its structural distributions are compared with the PIMD reference. As shown in Figure 3(c) and (d), PIGS reproduces the broad intramolecular O–H and θH–O–H distributions, while classical MD produces substantially narrower distributions. The PIGS intermolecular H–H radial distribution is closer to PIMD than classical MD, whereas its O–O discrepancy is comparable to that of classical MD, as shown in Figure 3(e) and (f). Finally, the model also produces a stable 100 ps trajectory, circumventing stability issues as noted in Ref. 27.

Conclusions

Starting-point coarse graining offers a way to obtain quantum equilibrium structure without carrying a full ring polymer through every production step, but the primitive mean-force estimator makes the required force labels expensive to obtain. We have shown that the zero-mean total forces on the unconstrained replicas can be combined to reduce this statistical noise. The scaled gradient estimator has zero sampling variance for a onedimensional harmonic oscillator and reduces the estimated constrained-labeling time by nearly 5 to 50 times in the Zundel and liquid-water tests. The estimator uses forces already available in a constrained PIMD simulation and does not depend on a particular physical potential or learning architecture, making it simple and broadly applicable. It provides a route to building larger datasets of quantum mean forces at lower labeling cost and reusing the learned potential in long or large-scale PIGS production simulations. If the learned potential remains accurate over the configurations encountered in production, the computational cost of PIMD labeling can be amortized across these simulations. Just as foundation MLIPs38,39 have extended first-principles-based simulations to larger systems and longer times, we believe our work could be a step towards a foundation PIGS models for equilibrium nuclear quantum effects accessible at those scales at the same computational cost.

Acknowledgments

The author acknowledges support from University College London startup funds.

Data Availability Statement

The datasets and trained models supporting the findings of this work are publicly available at https://github.com/venkatkapil24/data-low-variance-starting-point-pigs.

Code Availability Statement

A pull request (#592) adding the replica constraints required for these calculations has been opened in i-PI, and we expect it to be merged. The scripts for calculating the scaled gradient mean forces and reproducing the workflow are available in the repository linked above.

Contributions and AI Use

The author conceived the scaled gradient estimator and directed the research. GPT-5.6-Sol-High + Codex harness, carried out the derivations, implemented the method in i-PI, ran the simulations, wrote the analysis scripts, generated the figures, and prepared the first draft of the manuscript. The author manually verified the derivations, revised the manuscript, and takes responsibility for the final work.

References

Primitive estimator: harmonic oscillator analytic exercise

In this section we derive the mean force and its root mean square, followed by the variance of the primitive force estimator (Eq. (3)) for a one-dimensional harmonic oscillator in the replica-constrained ensemble. We then compare the estimator’s standard deviation with the root-mean-square mean force.

The mean force

Definition

For an oscillator of mass mm and frequency ω\omega, the Hamiltonian is H^=p^2/(2m)+mω2q^2/2\hat{H}=\hat{p}^{2}/(2m)+m\omega^{2}\hat{q}^{2}/2. Substituting its physical potential into the ring-polymer potential gives

UP=∑j=1P[mω2(q(j))2/2+mωP2(q(j)−q(j+1))2/2],(11)U_{P}=\sum_{j=1}^{P}\left[m\omega^{2}(q^{(j)})^{2}/2+m\omega_{P}^{2}(q^{(j)}-q^{(j+1)})^{2}/2\right], \tag*{(11)}

with the constraint q(1)=qq^{(1)}=q. The primitive force estimator is

fQM,Pprim(q,{q(j)})=−m[ω2q+ωP2(2q−q(2)−q(P))]/P.(12)f_{\mathrm{QM},P}^{\mathrm{prim}}(q,\{q^{(j)}\})=-m\left[\omega^{2}q+\omega_{P}^{2}(2q-q^{(2)}-q^{(P)})\right]/P. \tag*{(12)}

The mean force is the ensemble average of this estimator:

fQM,P(q)=∫∏j=2Pdq(j)  −m[ω2q+ωP2(2q−q(2)−q(P))]/P  e−βP∑j=1P[mω2(q(j))2/2+mωP2(q(j)−q(j+1))2/2]∫∏j=2Pdq(j)  e−βP∑j=1P[mω2(q(j))2/2+mωP2(q(j)−q(j+1))2/2].(13)f_{\mathrm{QM},P}(q)=\frac{\int\prod_{j=2}^{P}\mathrm{d}q^{(j)}\;-m\left[\omega^{2}q+\omega_{P}^{2}(2q-q^{(2)}-q^{(P)})\right]/P\;e^{-\beta_{P}\sum_{j=1}^{P}\left[m\omega^{2}(q^{(j)})^{2}/2+m\omega_{P}^{2}(q^{(j)}-q^{(j+1)})^{2}/2\right]}}{\int\prod_{j=2}^{P}\mathrm{d}q^{(j)}\;e^{-\beta_{P}\sum_{j=1}^{P}\left[m\omega^{2}(q^{(j)})^{2}/2+m\omega_{P}^{2}(q^{(j)}-q^{(j+1)})^{2}/2\right]}}. \tag*{(13)}
Change of variables

We rewrite the ring-polymer potential as

UP=m2[xTHx−2ωP2q eTx+(ω2+2ωP2)q2],(14)U_{P}=\frac{m}{2}\left[\mathbf{x}^{T}H\mathbf{x}-2\omega_{P}^{2}q\,\mathbf{e}^{T}\mathbf{x}+(\omega^{2}+2\omega_{P}^{2})q^{2}\right], \tag*{(14)}

where x≡(q(2),…,q(P))T\mathbf{x}\equiv(q^{(2)},\ldots,q^{(P)})^{T} is the position vector associated with the unconstrained replicas and

Hij=(ω2+2ωP2)δij−ωP2(δi,j+1+δi,j−1),ei=δi1+δi,P−1,i,j=1,…,P−1.(15)H_{ij}=(\omega^{2}+2\omega_{P}^{2})\delta_{ij}-\omega_{P}^{2}(\delta_{i,j+1}+\delta_{i,j-1}),\qquad e_i=\delta_{i1}+\delta_{i,P-1},\qquad i,j=1,\ldots,P-1. \tag*{(15)}

We shift the integration variable (with a transformation with a unit Jacobian) to complete the square and rewrite the potential term and primitive force estimator terms

y=x−ωP2H−1e q,\mathbf{y}=\mathbf{x}-\omega_{P}^{2}H^{-1}\mathbf{e}\,q,
UP=m2[yTHy+(ω2+2ωP2−ωP4eTH−1e)q2].U_P = \frac{m}{2}\left[\mathbf{y}^{T}\mathbf{H}\mathbf{y}+\left(\omega^2+2\omega_P^2-\omega_P^4\mathbf{e}^{T}\mathbf{H}^{-1}\mathbf{e}\right)q^2\right].
fQM,Pprim(q,y)=−mP[(ω2+2ωP2−ωP4eTH−1e)q−ωP2eTy].f_{\mathrm{QM},P}^{\mathrm{prim}}(q,\mathbf{y})=-\frac{m}{P}\left[\left(\omega^2+2\omega_P^2-\omega_P^4\mathbf{e}^{T}\mathbf{H}^{-1}\mathbf{e}\right)q-\omega_P^2\mathbf{e}^{T}\mathbf{y}\right].

Its ensemble average of the primitive force estimator is

fQM,P(q)=−mP[(ω2+2ωP2−ωP4eTH−1e)q]+∫dy mωP2eTyPe−βP(m/2)[yTHy+(ω2+2ωP2−ωP4eTH−1e)q2]∫dy e−βP(m/2)[yTHy+(ω2+2ωP2−ωP4eTH−1e)q2].(16)f_{\mathrm{QM},P}(q)=-\frac{m}{P}\left[\left(\omega^2+2\omega_P^2-\omega_P^4\mathbf{e}^{T}\mathbf{H}^{-1}\mathbf{e}\right)q\right]+\frac{\int d\mathbf{y}\,\frac{m\omega_P^2\mathbf{e}^{T}\mathbf{y}}{P}e^{-\beta_P(m/2)[\mathbf{y}^{T}\mathbf{H}\mathbf{y}+(\omega^2+2\omega_P^2-\omega_P^4\mathbf{e}^{T}\mathbf{H}^{-1}\mathbf{e})q^2]}}{\int d\mathbf{y}\,e^{-\beta_P(m/2)[\mathbf{y}^{T}\mathbf{H}\mathbf{y}+(\omega^2+2\omega_P^2-\omega_P^4\mathbf{e}^{T}\mathbf{H}^{-1}\mathbf{e})q^2]}}. \tag*{(16)}
Evaluation of the Gaussian integrals

The denominator of Eq. (16) evaluates to

[2πβPm](P−1)/2(det⁡H)−1/2e−βP(m/2)(ω2+2ωP2−ωP4eTH−1e)q2.(17)\left[\frac{2\pi}{\beta_Pm}\right]^{(P-1)/2}(\det\mathbf{H})^{-1/2}e^{-\beta_P(m/2)(\omega^2+2\omega_P^2-\omega_P^4\mathbf{e}^{T}\mathbf{H}^{-1}\mathbf{e})q^2}. \tag*{(17)}

Its explicit value is unnecessary for the mean-force result as the term in the primitive estimator proportional to eTy\mathbf{e}^{T}\mathbf{y} is odd in y\mathbf{y} and integrates to zero. We use the denominator below to calculate the root-mean-square mean force. The mean force is therefore

fQM,P(q)=−mP(ω2+2ωP2−ωP4eTH−1e)q.(18)f_{\mathrm{QM},P}(q)=-\frac{m}{P}\left(\omega^2+2\omega_P^2-\omega_P^4\mathbf{e}^{T}\mathbf{H}^{-1}\mathbf{e}\right)q. \tag*{(18)}

The root-mean-square mean force

Definition

The root-mean-square mean force averages the square of fQM,P(q)f_{\mathrm{QM},P}(q) over the position qq of the first replica is

fQM,PRMS=[∫dq [fQM,P(q)]2∫∏j=2Pdq(j) e−βP∑j=1P[mω2q(j)2/2+mωP2(q(j)−q(j+1))2/2]∫dq∫∏j=2Pdq(j) e−βP∑j=1P[mω2q(j)2/2+mωP2(q(j)−q(j+1))2/2]]1/2.(19)f_{\mathrm{QM},P}^{\mathrm{RMS}}=\left[\frac{\int dq\,[f_{\mathrm{QM},P}(q)]^2\int\prod_{j=2}^{P}dq^{(j)}\,e^{-\beta_P\sum_{j=1}^{P}[m\omega^2q^{(j)2}/2+m\omega_P^2(q^{(j)}-q^{(j+1)})^2/2]}}{\int dq\int\prod_{j=2}^{P}dq^{(j)}\,e^{-\beta_P\sum_{j=1}^{P}[m\omega^2q^{(j)2}/2+m\omega_P^2(q^{(j)}-q^{(j+1)})^2/2]}}\right]^{1/2}. \tag*{(19)}
Change of variables

At each value of qq, we use the same change of variables y=x−ωP2H−1e q\mathbf{y}=\mathbf{x}-\omega_P^2\mathbf{H}^{-1}\mathbf{e}\,q as before. Eq. (19) becomes

fQM,PRMS=[∫dq [fQM,P(q)]2∫dy e−βP(m/2)[yTHy+(ω2+2ωP2−ωP4eTH−1e)q2]∫dq∫dy e−βP(m/2)[yTHy+(ω2+2ωP2−ωP4eTH−1e)q2]]1/2.(20)f_{\mathrm{QM},P}^{\mathrm{RMS}}=\left[\frac{\int dq\,[f_{\mathrm{QM},P}(q)]^2\int d\mathbf{y}\,e^{-\beta_P(m/2)[\mathbf{y}^{T}\mathbf{H}\mathbf{y}+(\omega^2+2\omega_P^2-\omega_P^4\mathbf{e}^{T}\mathbf{H}^{-1}\mathbf{e})q^2]}}{\int dq\int d\mathbf{y}\,e^{-\beta_P(m/2)[\mathbf{y}^{T}\mathbf{H}\mathbf{y}+(\omega^2+2\omega_P^2-\omega_P^4\mathbf{e}^{T}\mathbf{H}^{-1}\mathbf{e})q^2]}}\right]^{1/2}. \tag*{(20)}
Evaluation of the Gaussian integrals

The integral over y\mathbf{y} is the same in the numerator and denominator of Eq. (20). Its value is independent of qq apart from the exponential factor shown in Eq. (17), so the remaining average is

(fQM,PRMS)2=∫dq [fQM,P(q)]2e−βP(m/2)(ω2+2ωP2−ωP4eTH−1e)q2∫dq e−βP(m/2)(ω2+2ωP2−ωP4eTH−1e)q2.(21)\left(f^{\mathrm{RMS}}_{\mathrm{QM},P}\right)^2 = \frac{ \int\mathrm{d}q\,\left[f_{\mathrm{QM},P}(q)\right]^2 e^{-\beta_P(m/2)(\omega^2+2\omega_P^2-\omega_P^4\mathbf{e}^{T}\mathbf{H}^{-1}\mathbf{e})q^2}} { \int\mathrm{d}q\,e^{-\beta_P(m/2)(\omega^2+2\omega_P^2-\omega_P^4\mathbf{e}^{T}\mathbf{H}^{-1}\mathbf{e})q^2}}. \tag*{(21)}

Substituting the mean force from Eq. (18) requires the Gaussian integral

∫dq q2e−βP(m/2)(ω2+2ωP2−ωP4eTH−1e)q2∫dq e−βP(m/2)(ω2+2ωP2−ωP4eTH−1e)q2=1βPm(ω2+2ωP2−ωP4eTH−1e).(22)\frac{ \int\mathrm{d}q\,q^2e^{-\beta_P(m/2)(\omega^2+2\omega_P^2-\omega_P^4\mathbf{e}^{T}\mathbf{H}^{-1}\mathbf{e})q^2}} { \int\mathrm{d}q\,e^{-\beta_P(m/2)(\omega^2+2\omega_P^2-\omega_P^4\mathbf{e}^{T}\mathbf{H}^{-1}\mathbf{e})q^2}} = \frac{1}{\beta_Pm(\omega^2+2\omega_P^2-\omega_P^4\mathbf{e}^{T}\mathbf{H}^{-1}\mathbf{e})}. \tag*{(22)}

Using βP=β/P\beta_P=\beta/P, the root-mean-square mean force is therefore

fQM,PRMS=[mβP(ω2+2ωP2−ωP4eTH−1e)]1/2.(23)f^{\mathrm{RMS}}_{\mathrm{QM},P} = \left[ \frac{m}{\beta P}\left(\omega^2+2\omega_P^2-\omega_P^4\mathbf{e}^{T}\mathbf{H}^{-1}\mathbf{e}\right) \right]^{1/2}. \tag*{(23)}

The variance of the primitive estimator

Definition

At fixed qq, the variance of the primitive force estimator is the ensemble average of the squared difference between the estimator and its ensemble average

[σQM,Pf(q)]2=∫∏j=2Pdq(j)[fQM,Pprim(q,{q(j)})−fQM,P(q)]2e−βP∑j=1P[mω2(q(j))2/2+mωP2(q(j)−q(j+1))2/2]∫∏j=2Pdq(j)e−βP∑j=1P[mω2(q(j))2/2+mωP2(q(j)−q(j+1))2/2].(24)\left[\sigma^{f}_{\mathrm{QM},P}(q)\right]^2 = \frac{ \int\prod_{j=2}^{P}\mathrm{d}q^{(j)} \left[f^{\mathrm{prim}}_{\mathrm{QM},P}\left(q,\{q^{(j)}\}\right)-f_{\mathrm{QM},P}(q)\right]^2 e^{-\beta_P\sum_{j=1}^{P}\left[m\omega^2(q^{(j)})^2/2+m\omega_P^2(q^{(j)}-q^{(j+1)})^2/2\right]}} { \int\prod_{j=2}^{P}\mathrm{d}q^{(j)} e^{-\beta_P\sum_{j=1}^{P}\left[m\omega^2(q^{(j)})^2/2+m\omega_P^2(q^{(j)}-q^{(j+1)})^2/2\right]}}. \tag*{(24)}
Change of variables

At fixed qq, we use the same change of variables y=x−ωP2H−1e q\mathbf{y}=\mathbf{x}-\omega_P^2\mathbf{H}^{-1}\mathbf{e}\,q as before. Equation (A14) becomes

[σQM,Pf(q)]2=∫dy [fQM,Pprim(q,y)−fQM,P(q)]2e−βP(m/2)[yTHy+(ω2+2ωP2−ωP4eTH−1e)q2]∫dy e−βP(m/2)[yTHy+(ω2+2ωP2−ωP4eTH−1e)q2].(25)\left[\sigma^{f}_{\mathrm{QM},P}(q)\right]^2 = \frac{ \int\mathrm{d}\mathbf{y}\, \left[f^{\mathrm{prim}}_{\mathrm{QM},P}(q,\mathbf{y})-f_{\mathrm{QM},P}(q)\right]^2 e^{-\beta_P(m/2)\left[\mathbf{y}^{T}\mathbf{H}\mathbf{y}+(\omega^2+2\omega_P^2-\omega_P^4\mathbf{e}^{T}\mathbf{H}^{-1}\mathbf{e})q^2\right]}} { \int\mathrm{d}\mathbf{y}\, e^{-\beta_P(m/2)\left[\mathbf{y}^{T}\mathbf{H}\mathbf{y}+(\omega^2+2\omega_P^2-\omega_P^4\mathbf{e}^{T}\mathbf{H}^{-1}\mathbf{e})q^2\right]}}. \tag*{(25)}
Evaluation of the Gaussian integrals

Subtracting the mean force in Eq. (18) from the transformed primitive estimator gives

fQM,Pprim(q,y)−fQM,P(q)=mωP2PeTy.(26)f^{\mathrm{prim}}_{\mathrm{QM},P}(q,\mathbf{y})-f_{\mathrm{QM},P}(q) = \frac{m\omega_P^2}{P}\mathbf{e}^{T}\mathbf{y}. \tag*{(26)}

The factor depending on qq is identical in the numerator and denominator of Eq. (25) and cancels. The variance is therefore

[σQM,Pf(q)]2=mωP4P2∫dy (eTy)2e−βPmyTHy/2∫dy e−βPmyTHy/2.(27)\left[\sigma_{\mathrm{QM},P}^{f}(q)\right]^2 = \frac{m\omega_P^4}{P^2}\frac{\int d\mathbf{y}\,(\mathbf{e}^{T}\mathbf{y})^2 e^{-\beta_Pm\mathbf{y}^{T}H\mathbf{y}/2}}{\int d\mathbf{y}\,e^{-\beta_Pm\mathbf{y}^{T}H\mathbf{y}/2}}. \tag*{(27)}

The remaining integral evaluates to

∫dy (eTy)2e−βPmyTHy/2∫dy e−βPmyTHy/2=1βPmeTH−1e.(28)\frac{\int d\mathbf{y}\,(\mathbf{e}^{T}\mathbf{y})^2e^{-\beta_Pm\mathbf{y}^{T}H\mathbf{y}/2}}{\int d\mathbf{y}\,e^{-\beta_Pm\mathbf{y}^{T}H\mathbf{y}/2}}=\frac{1}{\beta_Pm}\mathbf{e}^{T}H^{-1}\mathbf{e}. \tag*{(28)}

Substituting this result into Eq. (27) and using βP=β/P\beta_P=\beta/P gives

[σQM,Pf(q)]2=mωP4βPeTH−1e.(29)\left[\sigma_{\mathrm{QM},P}^{f}(q)\right]^2=\frac{m\omega_P^4}{\beta P}\mathbf{e}^{T}H^{-1}\mathbf{e}. \tag*{(29)}

Interestingly, the variance is independent of qq for the harmonic oscillator.

The noise-to-signal ratio

We define the noise-to-signal ratio as the standard deviation of the ratio

NSRprim,P(q)=σQM,Pf(q)fQM,PRMS.(30)\mathrm{NSR}_{\mathrm{prim},P}(q)=\frac{\sigma_{\mathrm{QM},P}^{f}(q)}{f_{\mathrm{QM},P}^{\mathrm{RMS}}}. \tag*{(30)}

Substituting Eqs. (29) and (23) gives

NSRprim,P(q)=[ωP4eTH−1eω2+2ωP2−ωP4eTH−1e]1/2.(31)\mathrm{NSR}_{\mathrm{prim},P}(q)=\left[\frac{\omega_P^4\mathbf{e}^{T}H^{-1}\mathbf{e}}{\omega^2+2\omega_P^2-\omega_P^4\mathbf{e}^{T}H^{-1}\mathbf{e}}\right]^{1/2}. \tag*{(31)}

Unsurprisingly, the ratio is independent of qq.

Evaluation of the remaining matrix element

To evaluate eTH−1e\mathbf{e}^{T}H^{-1}\mathbf{e}, let z=H−1e\mathbf{z}=H^{-1}\mathbf{e}. The tridiagonal matrix in Eq. (15) makes Hz=eH\mathbf{z}=\mathbf{e} a second-order difference equation. For i=1,…,P−1i=1,\ldots,P-1, it can be written as

(ω2+2ωP2)zi−ωP2zi−1−ωP2zi+1=0,z0=zP=1/ωP2.(32)(\omega^2+2\omega_P^2)z_i-\omega_P^2z_{i-1}-\omega_P^2z_{i+1}=0,\qquad z_0=z_P=1/\omega_P^2. \tag*{(32)}

The boundary values supply the nonzero entries of e\mathbf{e} in the first and last equations.

To find the general solution, substitute zi=riz_i=r^i into Eq. (32). This gives

r2−(2+ω2/ωP2)r+1=0.(33)r^2-(2+\omega^2/\omega_P^2)r+1=0. \tag*{(33)}

The two roots have product one. Writing the larger root as

r=1+ω22ωP2+ωωP1+ω24ωP2,(34)r=1+\frac{\omega^2}{2\omega_P^2}+\frac{\omega}{\omega_P}\sqrt{1+\frac{\omega^2}{4\omega_P^2}}, \tag*{(34)}

the other root is r−1r^{-1}, and the general solution is zi=Cri+Dr−iz_i=Cr^i+Dr^{-i}.

The boundary values in Eq. (32) require

C+D=1/ωP2,CrP+Dr−P=1/ωP2.(35)C+D=1/\omega_P^2,\qquad Cr^P+Dr^{-P}=1/\omega_P^2. \tag*{(35)}

Solving these equations gives

C=1ωP2(1+rP),D=rPωP2(1+rP).(36)C = \frac{1}{\omega_P^2(1+r^P)}, \qquad D = \frac{r^P}{\omega_P^2(1+r^P)}. \tag*{(36)}

and therefore

zi=(H−1e)i=ri+rP−iωP2(1+rP).(37)z_i = (H^{-1}e)_i = \frac{r^i+r^{P-i}}{\omega_P^2(1+r^P)}. \tag*{(37)}

Finally, the definition of ee selects the first and last components of zz. Expressing their sum in terms of ω\omega and ωP\omega_P gives

eTH−1e=2ωP2cosh⁡[(P−2)arsinh⁡(ω/(2ωP))]cosh⁡[Parsinh⁡(ω/(2ωP))].(38)e^T H^{-1}e = \frac{2}{\omega_P^2}\frac{\cosh[(P-2)\operatorname{arsinh}(\omega/(2\omega_P))]}{\cosh[P\operatorname{arsinh}(\omega/(2\omega_P))]}. \tag*{(38)}

For brevity, define κ=arcosh⁡[1+(βPℏω)2/2]\kappa=\operatorname{arcosh}[1+(\beta_P\hbar\omega)^2/2]. The root in Eq. (34) is then r=eκr=e^\kappa. Using this in Eq. (37) gives

eTH−1e=z1+zP−1=2ωP2cosh⁡[(P−2)κ/2]cosh⁡(Pκ/2).(39)e^T H^{-1}e=z_1+z_{P-1}=\frac{2}{\omega_P^2}\frac{\cosh[(P-2)\kappa/2]}{\cosh(P\kappa/2)}. \tag*{(39)}

Summary of the finite-PP expressions

Substituting Eq. (39) into the expressions derived above gives

fQM,P(q)=−mP[ω2+2ωP2−2ωP2cosh⁡[(P−2)κ/2]cosh⁡(Pκ/2)]q,f_{\mathrm{QM},P}(q)=-\frac{m}{P}\left[\omega^2+2\omega_P^2-\frac{2\omega_P^2\cosh[(P-2)\kappa/2]}{\cosh(P\kappa/2)}\right]q,
fQM,PRMS={mβP[ω2+2ωP2−2ωP2cosh⁡[(P−2)κ/2]cosh⁡(Pκ/2)]}1/2,f^{\mathrm{RMS}}_{\mathrm{QM},P}=\left\{\frac{m}{\beta P}\left[\omega^2+2\omega_P^2-\frac{2\omega_P^2\cosh[(P-2)\kappa/2]}{\cosh(P\kappa/2)}\right]\right\}^{1/2},
[σQM,Pf(q)]2=2mωP2βPcosh⁡[(P−2)κ/2]cosh⁡(Pκ/2),\left[\sigma^f_{\mathrm{QM},P}(q)\right]^2=\frac{2m\omega_P^2}{\beta P}\frac{\cosh[(P-2)\kappa/2]}{\cosh(P\kappa/2)},
NSRprim,P(q)=[2ωP2cosh⁡[(P−2)κ/2](ω2+2ωP2)cosh⁡(Pκ/2)−2ωP2cosh⁡[(P−2)κ/2]]1/2.\mathrm{NSR}_{\mathrm{prim},P}(q)=\left[\frac{2\omega_P^2\cosh[(P-2)\kappa/2]}{(\omega^2+2\omega_P^2)\cosh(P\kappa/2)-2\omega_P^2\cosh[(P-2)\kappa/2]}\right]^{1/2}.

Zero-mean total force on unconstrained replicas

With the first replica fixed at q(1)=qq^{(1)}=q, the total force on replica jj is f(j)+fspring,(j)=−∇q(j)UPf^{(j)}+f^{\mathrm{spring},(j)}=-\nabla_{q^{(j)}}U_P. For any unconstrained replica, j=2,…,Pj=2,\ldots,P, its conditional mean is

⟨f(j)+fspring,(j)⟩q=∫∏k=2Pdq(k)[−∇q(j)UP]e−βPUP∫∏k=2Pdq(k)e−βPUP=1βP∫∏k=2Pdq(k)∇q(j)e−βPUP∫∏k=2Pdq(k)e−βPUP=0.(40)\left\langle f^{(j)}+f^{\mathrm{spring},(j)}\right\rangle_q = \frac{\int\prod_{k=2}^{P}\mathrm{d}q^{(k)}\left[-\nabla_{q^{(j)}}U_P\right]e^{-\beta_P U_P}} {\int\prod_{k=2}^{P}\mathrm{d}q^{(k)}e^{-\beta_P U_P}} = \frac{1}{\beta_P} \frac{\int\prod_{k=2}^{P}\mathrm{d}q^{(k)}\nabla_{q^{(j)}}e^{-\beta_P U_P}} {\int\prod_{k=2}^{P}\mathrm{d}q^{(k)}e^{-\beta_P U_P}} =0. \tag*{(40)}

The final equality follows by integrating over q(j)q^{(j)}, provided the boundary contribution vanishes or is periodic.

Optimal weights for the scaled-grad estimator

We start from the estimator defined in Eq. (4):

fQM,Pscaled-grad=P−1∑j=1Pw(j)[f(j)+fspring,(j)],w(1)=1.f^{\mathrm{scaled\text{-}grad}}_{\mathrm{QM},P} = P^{-1}\sum_{j=1}^{P}w^{(j)}\left[f^{(j)}+f^{\mathrm{spring},(j)}\right], \qquad w^{(1)}=1.

The weights are fixed during a conditional average at q\mathbf{q}. Equation (40) shows that the mean total force on each replica j=2,…,Pj=2,\ldots,P is zero. Therefore

⟨fQM,Pscaled−grad⟩q=P−1⟨f(1)+fspring,(1)⟩q=fQM,P(q).(41)\left\langle\mathbf{f}_{\mathrm{QM},P}^{\mathrm{scaled-grad}}\right\rangle_{\mathbf{q}}=P^{-1}\left\langle\mathbf{f}^{(1)}+\mathbf{f}^{\mathrm{spring},(1)}\right\rangle_{\mathbf{q}}=\mathbf{f}_{\mathrm{QM},P}(\mathbf{q}). \tag*{(41)}

Changing the remaining weights changes the variance of the estimator without changing its mean.

For any set BB of trajectory blocks, the sample variance of the block-averaged estimator in Eq. (4), averaged over the 3N3N Cartesian force components, is

Var⁡B[fQM,Pscaled−grad]=13N(∣B∣−1)∑r∈B∣P−1∑j=1Pw(j)(Fr(j)−F‾B(j))∣2.(42)\operatorname{Var}_{B}\left[\mathbf{f}_{\mathrm{QM},P}^{\mathrm{scaled-grad}}\right]=\frac{1}{3N(|B|-1)}\sum_{r\in B}\left\lvert P^{-1}\sum_{j=1}^{P}w^{(j)}\left(\mathbf{F}_{r}^{(j)}-\overline{\mathbf{F}}_{B}^{(j)}\right)\right\rvert^{2}. \tag*{(42)}

Equation (C2) is applied to the validation blocks to select λ\lambda. To derive the fitted weights, we take BB to be the fitting blocks in both Eqs. (9) and (42).

Expanding Eq. (42) gives

P2Var⁡B[fQM,Pscaled−grad]=Var⁡B[Fr(1)]+2∑i=2Pbiw(i)P^{2}\operatorname{Var}_{B}\left[\mathbf{f}_{\mathrm{QM},P}^{\mathrm{scaled-grad}}\right]=\operatorname{Var}_{B}\left[\mathbf{F}_{r}^{(1)}\right]+2\sum_{i=2}^{P}b_iw^{(i)}
+∑i,j=2PCijw(i)w(j).(43)\qquad+\sum_{i,j=2}^{P}C_{ij}w^{(i)}w^{(j)}. \tag*{(43)}

The first term does not depend on the weights. Because C\mathbf{C} is symmetric, differentiating the remaining terms with respect to each free weight gives

∂∂w(i)[2∑j=2Pbjw(j)+∑j,k=2PCjkw(j)w(k)]=2bi+2∑j=2PCijw(j),i=2,…,P.(44)\frac{\partial}{\partial w^{(i)}}\left[2\sum_{j=2}^{P}b_jw^{(j)}+\sum_{j,k=2}^{P}C_{jk}w^{(j)}w^{(k)}\right]=2b_i+2\sum_{j=2}^{P}C_{ij}w^{(j)},\qquad i=2,\ldots,P. \tag*{(44)}

Setting these derivatives to zero gives the unregularized minimum-variance condition

∑j=2PCijw(j)=−bi,i=2,…,P.(45)\sum_{j=2}^{P}C_{ij}w^{(j)}=-b_i,\qquad i=2,\ldots,P. \tag*{(45)}

To fit the weights from finite data, we add the regularization term used for Eq. (8). After removing the weight-independent term and the common factor P−2P^{-2}, the quantity minimized is

2∑i=2Pbiw(i)+∑i,j=2PCijw(i)w(j)+λ∑i=2P[w(i)]2.(46)2\sum_{i=2}^{P}b_iw^{(i)}+\sum_{i,j=2}^{P}C_{ij}w^{(i)}w^{(j)}+\lambda\sum_{i=2}^{P}\left[w^{(i)}\right]^2. \tag*{(46)}

Differentiating with respect to w(i)w^{(i)} and setting the result to zero gives

∑j=2P(Cij+λδij)w(j)=−bi,i=2,…,P.(47)\sum_{j=2}^{P}\left(C_{ij}+\lambda\delta_{ij}\right)w^{(j)}=-b_i,\qquad i=2,\ldots,P. \tag*{(47)}

The vector w(λ)\mathbf{w}(\lambda) in Eq. (8) contains precisely these P−1P-1 free weights; w(1)=1w^{(1)}=1 is fixed and is not part of the matrix inversion. Thus Eq. (47) gives

w(λ)=−(C+λI)−1b.(48)\mathbf{w}(\lambda)=-(\mathbf{C}+\lambda\mathbf{I})^{-1}\mathbf{b}. \tag*{(48)}

Zero variance for a harmonic oscillator

We use the harmonic definitions in Appendix § 3.8.2.1 and write δx=x−⟨x⟩q\delta\mathbf{x}=\mathbf{x}-\langle\mathbf{x}\rangle_q. For the free-weight vector w=(w(2),…,w(P))T\mathbf{w}=(w^{(2)},\ldots,w^{(P)})^{T}, the fluctuating part of the scaled-grad estimator is

δfQM,Pscaled−grad=mP(ωP2e−Hw)Tδx.(49)\delta f_{\mathrm{QM},P}^{\mathrm{scaled-grad}}=\frac{m}{P}\left(\omega_P^2\mathbf{e}-\mathbf{H}\mathbf{w}\right)^{T}\delta\mathbf{x}. \tag*{(49)}

The shifted quadratic potential in Appendix § 3.8.2.1 gives ⟨δxδxT⟩q=(βPm)−1H−1\langle\delta\mathbf{x}\delta\mathbf{x}^{T}\rangle_q=(\beta_Pm)^{-1}\mathbf{H}^{-1}. Thus the exact conditional variance is

Vscaled−grad=mβP(ωP2e−Hw)TH−1(ωP2e−Hw).(50)V_{\mathrm{scaled-grad}}=\frac{m}{\beta_P}\left(\omega_P^2\mathbf{e}-\mathbf{H}\mathbf{w}\right)^{T}\mathbf{H}^{-1}\left(\omega_P^2\mathbf{e}-\mathbf{H}\mathbf{w}\right). \tag*{(50)}

The positive-definite quadratic form in Eq. (50) vanishes if and only if

w=ωP2H−1e.(51)\mathbf{w}=\omega_P^2\mathbf{H}^{-1}\mathbf{e}. \tag*{(51)}

Evaluating this inverse gives Eq. (6), including wopt(1)=1w_{\mathrm{opt}}^{(1)}=1. With these weights, the estimator equals fQM,P(q)f_{\mathrm{QM},P}(q) in Eq. (18) for every conditional sample.

References

  1. [1]R. P. Feynman and A. R. Hibbs, Quantum Mechanics and Path Integrals (McGraw-Hill, 1965) google-Books-ID: 14ApAQAAAMAAJ.
  2. [2]D. Chandler and P. G. Wolynes, The Journal of Chemical Physics 74, 4078 (1981).
  3. [3]M. Parrinello and A. Rahman, The Journal of Chemical Physics 80, 860 (1984).
  4. [4]M. Takahashi and M. Imada, Journal of the Physical Society of Japan 53, 3765 (1984).
  5. [5]M. Suzuki, Physics Letters A 201, 425 (1995).
  6. [6]S. A. Chin, Physics Letters A 226, 344 (1997).
  7. [7]S. Jang, S. Jang, and G. A. Voth, The Journal of Chemical Physics 115, 7832 (2001).
  8. [8]A. Pérez and M. E. Tuckerman, The Journal of Chemical Physics 135, 064104 (2011).
  9. [9]V. Kapil, J. Behler, and M. Ceriotti, The Journal of Chemical Physics 145, 234103 (2016).
  10. [10]V. Kapil, J. Wieme, S. Vandenbrande, A. Lamaire, V. Van Speybroeck, and M. Ceriotti, Journal of Chemical Theory and Computation 15, 3237 (2019).
  11. [11]I. Poltavsky, V. Kapil, M. Ceriotti, K. S. Kim, and A. Tkatchenko, Journal of Chemical Theory and Computation (2020), 10.1021/acs.jctc.9b00881.
  12. [12]I. Poltavsky and A. Tkatchenko, Chemical Science 7, 1368 (2016).
  13. [13]M. Ceriotti, G. Bussi, and M. Parrinello, Physical Review Letters 103, 030603 (2009).
  14. [14]H. Dammak, Y. Chalopin, M. Laroche, M. Hayoun, and J.-J. Greffet, Physical Review Letters 103, 190601 (2009).
  15. [15]M. Ceriotti, D. E. Manolopoulos, and M. Parrinello, The Journal of Chemical Physics 134, 084104 (2011).
  16. [16]M. Ceriotti and D. E. Manolopoulos, Physical Review Letters 109, 10060 (2012).
  17. [17]F. Brieuc, H. Dammak, and M. Hayoun, Journal of Chemical Theory and Computation 12, 1351 (2016).
  18. [18]T. E. Markland and D. E. Manolopoulos, The Journal of Chemical Physics 129, 024105 (2008).
  19. [19]M. Tuckerman, B. J. Berne, and G. J. Martyna, The Journal of Chemical Physics 97, 1990 (1992).
  20. [20]V. Kapil, J. Van deVondele, and M. Ceriotti, The Journal of Chemical Physics 144, 054111 (2016).
  21. [21]O. Morsalek and T. E. Markland, The Journal of Physical Chemistry Letters 8, 1545 (2017).
  22. [22]J. Cao and G. A. Voth, The Journal of Chemical Physics 99, 10070 (1993).
  23. [23]A. V. Sinitskiy and G. A. Voth, The Journal of Chemical Physics 143, 094104 (2015).
  24. [24]W. H. Ryu and G. A. Voth, The Journal of Physical Chemistry A 126, 6004 (2022).
  25. [25]T. D. Loose, P. G. Sahrmann, and G. A. Voth, “Centroid Molecular Dynamics Can Be Greatly Accelerated Through Neural Network Learned Centroid Forces Derived From Path Integral Molecular Dynamics,” (2022), arXiv:2208.07973 [physics].arxiv.org/abs/2208.07973
  26. [26]F. Musil, I. Zaporozhets, F. Noé, C. Clementi, and V. Kapil, The Journal of Chemical Physics (2022), 10.1063/5.0120386, publisher: American Institute of Physics.
  27. [27]F. Zaporozhets, F. Musil, V. Kapil, and C. Clementi, “Accurate nuclear quantum statistics on machine-learned classical effective potentials,” (2024), arXiv:2407.03448 [physics].arxiv.org/abs/2407.03448
  28. [28]J. Shen, Z. Ye, M.-Z. Du, S.-Y. He, D. H. Zhang, J.-X. Zeng, V. Kapil, and W. Fang, “Rigorous Quantum Thermodynamics from Entropic Path Integral Coarse-Graining,” (2026).arxiv.org/abs/2602.18821
  29. [29]J. Cao and G. A. Voth, The Journal of Chemical Physics 100, 5106 (1994).
  30. [30]V. G. Sadhashivam, S. C. Althorpe, and V. Kapil, Physical Review E 114, 024126 (2026).
  31. [31]T. D. Hone, S. Izvekov, and G. A. Voth, The Journal of Chemical Physics 122, 054105 (2005).
  32. [32]T. Fletcher, A. Zhu, J. E. Lawrence, and D. E. Manolopoulos, The Journal of Chemical Physics 155, 231101 (2021).
  33. [33]W. Wang, X. Zhang, J. Weare, and A. R. Dinner, “Quantum statistics from classical simulations via generative Gibbs sampling,” (2026), arXiv:2601.20228 [physics.chem-ph].arxiv.org/abs/2601.20228
  34. [34]V. Kapil, A. Cuzzocrea, and M. Ceriotti, The Journal of Physical Chemistry B 122, 6048 (2018).

Paper details

vlnc:W_x29zzd5m
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 10

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

Not recorded for this paper

View statement
Looking for related papers…
Contents