TD-SCHA Documentation¶
Time-Dependent Self-Consistent Harmonic Approximation (TD-SCHA) is a Python library for simulating quantum nuclear motion in materials with strong anharmonicity. It performs dynamical linear response calculations on top of equilibrium results from python-sscha.
Part of the SSCHA ecosystem: cellconstructor → python-sscha → tdscha.
Documentation Structure¶
-
Installation - Complete installation guide following the official SSCHA.eu instructions, with emphasis on Julia for performance.
-
Quick Start - Working example showing calculation and analysis via CLI commands.
-
In-Depth Usage - Choosing perturbations, parallel execution, gamma-only trick, Wigner vs normal representation.
-
StaticHessian - Computing free energy Hessian of large systems via sparse linear algebra.
-
CLI Tools - Command-line interface for analysis and visualization.
-
API Reference - Automatically generated documentation:
- DynamicalLanczos - Core Lanczos algorithm
- StaticHessian - Free energy Hessian calculations
Key Features¶
- Simulating the vibrational anharmonic spectra: IR absorption, Raman scattering, Nuclear inelastic scattering, and phonon spectral functions.
- Full quantum treatment of atomic nuclei
- Parallel execution with MPI
- Symmetry-aware calculations for efficiency
Theoretical Foundation¶
TD-SCHA extends the Self-Consistent Harmonic Approximation (SCHA) to time-dependent perturbations, enabling computation of the response of nuclei to dynamical external fields. This code explores the linear response regime, where the response is proportional to the perturbation, allowing for efficient calculations of susceptibilities and spectral functions. If we prepare at time \(t=0\) a system in equilibrium, and apply an external perturbation proportional to \(\hat V_\text{ext}(t) = \hat B f_B(t)\) for \(t > 0\), the expectation value of an observable \(\hat A\) at time \(t\) is given by:
or, in frequency space,
The target of the TD-SCHA code is to compute the susceptibility \(\chi_{AB}(\omega)\), which encodes the response of the system to the perturbation. This quantity is related to many experimentally measurable properties, such as IR absorption spectra (where \(\hat A\) is the dipole moment and \(\hat B\) is the coupling between the electric fields and IR-active modes), Raman spectra (where \(\hat A\) is the polarizability and \(\hat B\) is the coupling of the electric field to Raman-active phonons), and phonon spectral functions (where \(\hat A\) and \(\hat B\) are the mass-rescaled atomic displacements).
The standard code computes the diagonal linear response, where \(\hat A = \hat B\), for which a very efficient Lanczos algorithm has been developed.
You can prepare the system in the quantum/thermal equilibrium state by running a SSCHA calculation using the python-sscha package,
then use the tdscha code to compute the suscieptibility \(\chi_{AA}(\omega)\) for the desired observable \(\hat A\).
Related Papers - How to cite¶
If you use the TDSCHA code, please cite the following papers:
- L Monacelli and F Mauri, Physical Review B 103, 104305 (2021) - Core TD-SCHA theory and Lanczos algorithm for linear response of anharmonic systems.
- Siciliano et al., Physical Review B 107, 174307 (2023) - Wigner formulation of the TD-SCHA equations and application to phonon spectral functions - IR and Raman.
Getting Help¶
- Check the quick start guide for working templates
- See the SSCHA website for tutorials