Observables¶
This section describes the theoretical framework for computing observables in cavity-coupled molecular dynamics, including ensemble averages, time-correlation functions, and material time for aging experiments.
Overview¶
In molecular dynamics simulations, we compute ensemble averages and time-correlation functions to characterize system behavior. For non-equilibrium cavity-coupled systems, special care is needed to properly average over stochastic trajectories and handle time-dependent distributions.
Key Concepts:
Phase space: \(\Gamma = (\mathbf{R}, \mathbf{P}, \mathbf{q}, \mathbf{p})\) for positions, momenta, cavity coordinates, and cavity momenta
Distribution: \(\rho^{(\lambda)}(\Gamma, t)\) evolves according to Fokker-Planck equation
Ensemble average: Integral over phase space weighted by \(\rho\)
Time-correlation: Relates observable at two different times
Ensemble Averages¶
Schrodinger vs Heisenberg Picture¶
Schrodinger Picture:
Time dependence is in the phase-space distribution. For an observable \(A(\Gamma)\), the ensemble average at time \(t\) is:
Heisenberg Picture:
Time dependence is in the observable. Given initial condition \(\Gamma\), evolve the observable averaged over all realizations of noise:
The ensemble average becomes:
Both pictures are equivalent but offer different computational advantages.
Fokker-Planck Equation¶
The phase-space distribution \(\rho^{(\lambda)}(\Gamma, t)\) evolves according to:
where the Liouvillian operator is:
Components:
Bare Liouvillian \(\mathcal{L}_0\): Hamiltonian dynamics at zero coupling
Interaction Liouvillian \(\mathcal{L}_\mathrm{int}(\lambda)\): Light-matter coupling
Bath Liouvillian \(\mathcal{L}_\mathrm{b}\): Noise and dissipation from molecular and cavity baths
Initial Condition:
For nonthermal aging protocols starting at \(t = t_0\):
where the equilibrium distribution at zero coupling is:
Practical Computation¶
Sample Mean Over Trajectories:
In simulations, we approximate ensemble averages by averaging over \(N_\mathrm{T}\) independent trajectories:
where \(A^{(n)}(t; \lambda) = A(\Gamma^{(n)}(t; \lambda))\) is the observable evaluated on the \(n\)-th trajectory.
Equilibrium Averages:
At equilibrium, we can use both ensemble and time averaging (ergodic hypothesis):
In practice:
where we subsample at times \(t_p = p\Delta t\).
Static Structure Factor Example¶
For density-mode fluctuations at wavevector \(\mathbf{k}\):
The static structure factor is:
At equilibrium, this becomes time-independent:
Time-Correlation Functions¶
General Non-Equilibrium Case¶
For an observable \(A(t)\), the time-correlation function in a non-equilibrium aging experiment is:
where \(t_\mathrm{w}\) is the waiting time after initiating the protocol and \(t\) is the correlation time.
Interpretation:
Depends on both \(t\) (time difference) and \(t_\mathrm{w}\) (absolute time)
Reflects non-equilibrium, aging dynamics
Converges to equilibrium correlation as \(t_\mathrm{w} \to \infty\)
Ensemble Average Form:
In terms of the conditionally averaged observable and phase-space distribution:
Trajectory Sampling:
We approximate by generating \(N_\mathrm{T}\) trajectories from equilibrium at zero coupling, simulating directly to \(t + t_\mathrm{w}\):
Intermediate Scattering Function¶
The time-correlation function of density modes is the intermediate scattering function (ISF):
Practical Implementation:
Average over \(N_{\mathbf{k}}\) wavevectors of equal magnitude distributed on a sphere:
Normalized ISF:
Structural Relaxation Time:
Define \(\tau_\mathrm{s}(t_\mathrm{w}, \lambda)\) as the time when ISF decays to threshold \(a\) (typically 0.1):
Located by linear interpolation between adjacent data points.
Equilibrium Case¶
In equilibrium (large \(t_\mathrm{w}\)), time-correlation functions obey time-translational invariance:
depending only on time difference \(t\).
Proof:
At equilibrium, \(\rho^{(\lambda)}(\Gamma, t_\mathrm{w}) = \rho_\mathrm{eq}^{(\lambda)}(\Gamma)\) which satisfies \(\mathcal{L}_\lambda \rho_\mathrm{eq}^{(\lambda)} = 0\). Since the dynamics are time-translationally invariant, \(A_{t+t_\mathrm{w}}(\Gamma) = A_t(\Gamma)\) with initial condition at \(t=0\).
Ergodic Hypothesis:
At equilibrium, ensemble average equals long-time average:
Discrete Estimator:
Sample at times \(t_p = p\Delta t\), compute autocorrelation at lag \(\tau_k = k\Delta t\):
This is the standard “sliding time-origin” implementation.
Dipole Autocorrelation and IR Spectrum¶
Centered DACF:
For dipole moment, subtract mean to remove bias:
IR Absorption Spectrum:
From the fluctuation-dissipation theorem:
Using time-reversibility, \(\bar{C}_{\mu\mu}(t) = \bar{C}_{\mu\mu}(-t)\):
Discrete Cosine Transform:
Sample \(C_n = C_\mu(n\Delta t)\) uniformly with \(N\) points. Define frequencies:
Compute DCT:
Trapezoidal rule yields:
Material Time¶
Material-Time Translational Invariance¶
In aging systems, time-correlation functions across different protocols can be reparameterized using material time \(h_\lambda(t)\):
MTTI Hypothesis:
All correlation functions collapse to a universal curve when plotted against material-time differences:
Physical Interpretation:
Material time measures the “internal age” of the system. Equal material-time differences correspond to equal structural evolution, regardless of absolute time or coupling strength.
Reconstruction from Relaxation Times¶
Structural Relaxation Constraint:
For each waiting time \(t_\mathrm{w}^{(r)}\), measure \(\tau_\mathrm{s}^{(r)}\) where \(\phi_k(\tau_\mathrm{s}^{(r)}; t_\mathrm{w}^{(r)}) = 0.1\). MTTI implies:
Least-Squares Formulation:
Discretize time on a grid \(t_m = m\Delta t\) for \(m = 0, \ldots, M_\mathrm{grid}-1\). Parameterize:
where \(\theta_m(t)\) are piecewise linear basis functions:
Constraint Matrix:
Define \(N_\mathrm{w} \times M_\mathrm{grid}\) matrix:
so the constraints become linear system \(\mathbf{A}\mathbf{h}_\lambda = \mathbf{b}\) where \(\mathbf{b} = [1, \ldots, 1]^\mathsf{T}\).
Regularized Fitting¶
Smoothness Penalty:
To avoid overfitting, add curvature penalty. Define second-derivative matrix \(\mathbf{D}\) (finite differences):
Regularized Objective:
where \(\alpha > 0\) controls smoothness-constraint tradeoff.
Solution:
Taking gradient and setting to zero:
Solve using sparse linear solvers (conjugate gradient or Cholesky decomposition).
Physical Applications¶
Effective Aging Rate:
The derivative of material time gives the local aging rate:
\(\dot{h} > 1\): System ages faster than real time (accelerated dynamics)
\(\dot{h} = 1\): System ages at normal rate (equilibrium)
\(\dot{h} < 1\): System ages slower than real time (slowed dynamics)
Cavity Effects on Aging:
Comparing \(h_\lambda(t)\) for different coupling strengths \(\lambda\) reveals how cavity coupling modifies the aging process.
Best Practices¶
Statistical Convergence¶
Trajectory Number:
Equilibrium properties: \(N_\mathrm{T} \geq 10-50\) typically sufficient
Non-equilibrium dynamics: \(N_\mathrm{T} \geq 100-500\) recommended
Correlations: More trajectories improve statistical quality
Time Sampling:
Save frequently enough to resolve fastest timescale of interest
For correlation functions: \(\Delta t \ll\) shortest correlation time
Balance storage vs resolution
Correlation Function Tips¶
Window Size:
Too short: Poor statistics, noisy correlations
Too long: Misses decorrelation, wastes computation
Rule of thumb: Window should span 5-10 correlation times
k-Averaging:
For structure factor and ISF, average over many \(\mathbf{k}\) vectors:
Fibonacci sphere distribution for uniform coverage
\(N_{\mathbf{k}} \geq 50\) typically sufficient
Balance isotropy vs computational cost
Material Time Reconstruction¶
Grid Resolution:
\(M_\mathrm{grid} = 500-1000\) for smooth curves
Finer grid near protocol changes
Regularization \(\alpha \sim 10^{-3}\) to \(10^{-1}\) depending on noise
Validation:
Check that reconstructed \(h_\lambda(t)\) is monotonically increasing
Verify constraints are satisfied within tolerance
Compare aging rates \(\dot{h}_\lambda\) across conditions
Next Sections¶
Continue to:
Integration Schemes for numerical implementation
Correlation Analysis for practical correlation analysis
FDR Temperature for FDR-based observables
Analysis Tools for analysis workflows
Related Theory:
Introduction for fundamental concepts
Thermostats for understanding bath effects on observables
Strong Coupling for polariton effects on dynamics