Track D: Advanced Spectroscopy and Response Properties
Status in 2.0. All three phases below shipped: UV-Vis via sTDA-xTB (algorithm/uvvis-spectroscopy), IR via the numerical Hessian (algorithm/ir-spectroscopy), and NMR shifts plus J-coupling (algorithm/nmr-spectroscopy). This page is kept as the original design record, not as pending work.
Building on the existing electronic structure (Track B) and ML (Track C) foundations, Track D expands the library into response properties and experimental observable simulation.
Overview Diagram
graph TD
A[Semiempirical Core: EHT/xTB] --> B(Vertical Excitations)
A --> C(Numerical Hessian)
B --> B1[sTDA-xTB Module]
B1 --> B2[Oscillator Strengths]
B2 --> B3[UV-Vis Spectrum]
C --> C1[Mass-Weighted Hessian]
C --> C2[Dipole Derivatives]
C1 --> C3[Normal Modes / Freqs]
C2 --> C4[IR Intensities]
C3 & C4 --> C5[IR Spectrum]
D[Local Topology / GNN] --> E1[1H-NMR Shifts]
D --> E2[13C-NMR Shifts]
E1 & E2 --> E3[NMR Spectrum Visualization]
B3 & C5 & E3 --> F[Web Platform Export]
Phase D1: UV-Vis Spectroscopy (Speed & Accuracy)
The goal is to provide "ultrafast" UV-Vis predictions suitable for large-scale screening and real-time WASM visualization.
1.1 Vertical Excitations (sTDA-xTB)
- Methodology: Implement the Simplified Tamm-Dancoff Approximation (sTDA) coupled with GFN-xTB (specifically the sTDA-xTB variant).
- Why sTDA? Full CIS or TD-DFT is too computationally expensive for WASM; sTDA captures the essential physics of excitations at a fraction of the cost.
- Components:
- Vertical excitation energy calculation (
) from HOMO/LUMO and surrounding MOs. - Transition dipole moment
evaluation using transition density. - Oscillator strength (
) derived from transition dipoles.
- Vertical excitation energy calculation (
1.2 Spectral Broadening
- Logic: Reuse the Gaussian smearing infrastructure from
src/dos/dos.rs. - Customization: Add support for Lorentzian line shapes or mixed Voigt profiles to simulate experimental broadening.
- Output: Continuous spectral data (Absorbance vs. wavelength in nm or energy in eV).
Phase D2: IR Spectroscopy (Hessian Infrastructure)
Implementation of vibrational analysis through numerical differentiation of the energy gradients.
2.1 Numerical Hessian & Frequencies
- Approach:
displacements ( along x, y, z for each of the atoms) to construct the Hessian matrix . - Parallelization: Utilize
rayonto parallelize the gradient evaluations. Since semiempirical gradients are fast, theoverhead remains micro-to-milli second for typical small molecules. - Diagonalization: Solve the mass-weighted eigenvalue problem to obtain vibrational frequencies (
) and normal mode vectors (displacements).
2.2 IR Intensities
- Logic: Calculate the derivative of the molecular dipole moment
with respect to the normal coordinates. - Implementation:
, where is the normal mode matrix. - Outcome: Synthetic IR spectrum with peak intensities reflecting charge flux during vibrations.
Phase D3: NMR Spectroscopy (ML & Empirical Route)
Pure quantum-mechanical NMR (via GIAO) is theoretically dense and computationally expensive. We implement a pragmatic, ultra-fast ML/Topological approach. For a deep dive into the 4-phase NMR strategy, see the Detailed NMR Implementation Roadmap.
3.1 NMR Shift Prediction (1H & 13C)
- Strategy: Integrated Graph Neural Network (GNN) model or a topological HOSE-code (Hierarchically Ordered Spherical description of Environment) lookup.
- Features: Utilize local environment descriptors (electronegativity, hybridization, ring current effects) to predict chemical shifts in ppm.
- Target: Proton (1H) and Carbon (13C) chemical shifts with microsecond latency.
3.2 Coupling & Splitting
- J-Coupling: Use topological rules (e.g., Karplus equation for torsions) to estimate spin-spin coupling constants.
- Integration: Combine shifts and couplings to generate high-fidelity synthetic 1D NMR spectra.
Verification & Testing Plan
Automated Tests
- UV-Vis: Validate excitation energies for benchmark systems (Ethylene, Benzene, Formaldehyde) against reported sTDA values.
- IR:
- Verify Hessian symmetry (
) and rotational/translational invariance (non-zero frequencies > 6 counts). - Compare H2O/CO2 frequencies against experimental standards.
- Verify Hessian symmetry (
- NMR: Cross-validate predicted shifts against the BMRB or other curated NMR datasets.
Performance Benchmarks
- Measure time scaling with system size for numerical Hessian (expected
). - Verify WASM execution time for the sTDA matrix diagonalization.