Lihui Gao's Technical Notes

A small place for numerical methods, quantum dynamics, programming practice, and technical study notes. I try to keep the writing reproducible, concrete, and honest about tradeoffs.

Latest Articles

PIMD VIII: Anharmonic Spectra and Partial Repair

Use a one-dimensional quartic well to separate vibrational transition weights, RPMD dephasing, physical equilibrium coupling, and partial TRPMD repair.

PIMDRPMDTRPMDAnharmonicityKubo Correlations

PIMD VII: TRPMD and Spurious Spectral Lines

Predict every false line in a harmonic quadratic-observable spectrum, quantify TRPMD damping, and explain conserved area and missing physical-line intensity.

PIMDRPMDTRPMDKubo CorrelationsHarmonic Benchmark

HefeiNAMD IV: Quantum Nuclear Fluctuations

Separate CPA, zero-point fluctuations, quantum absorption and emission, and fixed-amplitude versus Wigner sampling through source inspection and analytic checks.

HefeiNAMDNuclear Quantum EffectsElectron-Phonon CouplingWigner SamplingAnalytic Diagnostic

Agent 0: Models, Harnesses, and Tools

Read a Codex architecture map, distinguish skills, tools, plugins and MCP, and follow context, memory and control through a scientific workflow.

CodexAgent WorkflowsMCPContext ManagementConceptual Guide

LangGraph: State, Context, and Task Decomposition

Understand state, nodes, and context through a 500-requirement experiment, then identify useful boundaries for scientific and writing workflows.

LangGraphAgent WorkflowsInstruction FollowingBenchmarkModel Calculation

Molecular Excited States III: The DP-GEN Learning Cycle

Follow committee uncertainty, exploration, reference labeling, and retraining from a familiar VASP workflow to a multistate HamGNN–NaF molecular application.

Molecular Excited StatesDP-GENActive LearningHamGNNReal-System Calculation

Molecular Excited States I: From VASP to SA-CASSCF

Follow one actual molecular-motor geometry from a VASP-style single point to SA-CASSCF energies, state forces, and nonadiabatic coupling.

Molecular Excited StatesElectronic StructureCASSCFPySCFReal-System Calculation

MQC VIII: Diabatic and Adiabatic CPS Dynamics

Derive both CPS equations from their Hamiltonians, track canonical and physical nuclear momentum, and compare paired Tully trajectories with a converged quantum reference.

MQCCPSHamiltonian DynamicsNonadiabatic DynamicsModel Calculation

MD Supercells: Temperature, k Points, and Nuclear Modes

Compare existing TiO₂ NVT and NVE results, then examine observable-dependent supercell effects through published silicon and perovskite figures.

Molecular DynamicsSupercellsStatistical MechanicsPhononsLiterature Study

HefeiNAMD III: The EPC Route to Carrier Dynamics

Build the EPC Hamiltonian, follow the official graphene tutorial, and consult the FAQ on methods, hopping, and finite-temperature phonons.

HefeiNAMDNonadiabatic DynamicsElectron-Phonon CouplingCrystal MomentumReal-System Calculation

HefeiNAMD II: Supercells, NAC, and Surface Hopping

Follow supercell folding, nuclear trajectories, NAC, and surface hopping through the authors' official MoS2/WS2 tutorial results.

HefeiNAMDNonadiabatic DynamicsSupercellsFSSHReal-System Calculation

HefeiNAMD I: When Does Inter-k NAC Vanish?

Why orthogonality alone does not imply zero NAC, when translation symmetry makes the zero exact, and what primitive-cell MD excludes.

HefeiNAMDNonadiabatic DynamicsTranslation SymmetryCrystal MomentumModel Calculation

Open Quantum Systems II: TCL2 and NZ2

Derive two second-order master equations, predict their resonant behavior, and interpret twelve harmonic and anharmonic population benchmarks.

Open Quantum SystemsTCL2NZ2Master EquationsModel Calculation

Ordered and Kubo Correlations

Thermal splitting, imaginary time, exact spectral conversion, harmonic-oscillator comparisons, and the correlation required by electronic transitions.

Quantum DynamicsKuboCorrelation FunctionsRPMDModel Calculation

MQC VII: CPS Trajectories and Classical Feedback

Electronic Poisson brackets, an interactive coupled-generator counterexample, nuclear feedback, and CPS, MMST, spin-mapping, and Ehrenfest trajectory workflows.

MQCCPSMMSTSpin MappingEhrenfestModel Calculation

MQC VI: CPS Foundations and Dual Kernels

From MMST to CPS kernels and dual reconstruction, with interactive SU(2) rotations, density-to-sphere mapping, and inverse integration.

MQCCPSMMSTSpin MappingStratonovich-WeylModel Calculation

CMD III: Learning Centroid Forces

The centroid mean-force derivation, direct and delta learning in a quartic well, and two routes to molecular PIMD datasets.

CMDMachine LearningPIMCPIMDKuboModel Calculation

Open Quantum Systems I: HEOM

From bath memory to the Gaussian hierarchy: its limits for original Tully SAC, a harmonic-bath DVR validation, and an explicit nuclear-basis comparison.

HEOMOpen Quantum SystemsDVRNonadiabatic Dynamics

Reaction Computation VIII: Instantons and RPMD

Connecting stationary paths with trajectory-based rates: constrained statistical weight, signed recrossing, and a same-barrier DVR comparison.

Chemical ReactionsRPMDInstantonsReaction Rates

Hydrogen Transfer II: From a Barrier to a Rate

A derivation-led route from Arrhenius and transition-state theory to a reproducible one-dimensional sinc-DVR rate benchmark.

Hydrogen Transfer Transition-State Theory DVR Reaction Rates

Hydrogen Transfer I: What Can We Actually Observe?

Why this series begins with experiment, what hydrogen-transfer measurements can actually observe, and how microscopic calculations should meet those observables.

Hydrogen Transfer Kinetic Isotope Effects Reaction Rates Model Validation

Learning the Generator: PINN-MMST Dynamics

A generator-learning view of MLPES and physics-informed MMST dynamics, with a reproducible small-N spin-boson benchmark and an accuracy-adjusted acceleration framework.

MMST PINN Machine Learning Potentials Nonadiabatic Dynamics Reproduction

Codex Skills as Workflow Engineering

A controlled FSSH flowchart case study on turning successful Codex conversations into semantic contracts, deterministic tools, and evidence-based acceptance loops.

Codex Skills Workflow Engineering Automatic Layout Reproducibility

GPT-5.6 Reasoning for Scientific Engineering

A practical policy for choosing GPT-5.6 models, reasoning effort, subagent orchestration, and Fast processing across scientific engineering workflows.

GPT-5.6 Codex Research Engineering Reproducibility

Electronic Nearsightedness, Linear Scaling, and Local ML Potentials

A derivation-focused account of electronic nearsightedness, its consequences for linear-scaling electronic structure, and the scope and limits of locality in machine-learning interatomic potentials.

Electronic Structure Nearsightedness Linear Scaling Machine Learning Potentials

MES-PIMD and the Geometric Phase

A close reading of the MES-PI/MES-PIMD geometric-phase thermodynamics paper, with the logic chain from Jahn-Teller topology to overlap matrices, winding numbers, heat capacity, and single-state limits.

MES-PIMD Geometric Phase Path Integrals Conical Intersection Thermodynamics

Geometric Phase: Key Theory Reproductions

Key theoretical and computational papers on molecular geometric phase effects near conical intersections, with small reproducible models for pseudorotor quantization, two-path interference, and localization.

Geometric Phase Conical Intersection Jahn-Teller Effect Quantum Dynamics Reproduction

Geometric Phase in Jahn-Teller Thermodynamics

A compact derivation of how the geometric phase changes the kinetic operator, boundary condition, degeneracy, spectrum, and heat capacity in the two-state Jahn-Teller E times e model.

Geometric Phase Jahn-Teller Effect Conical Intersection Thermodynamics Model Calculation

HefeiNAMD 0: How to Prepare a HefeiNAMD Training

A practical note on preparing a complete HefeiNAMD workshop with slides, server environment, precomputed outputs, Slurm scripts, pseudo jobs, and an end-to-end rehearsal path.

HefeiNAMD Nonadiabatic Dynamics Training Slurm Workflow

Jahn-Teller Instability in Li3 and Na3

A compact theoretical note on Jahn-Teller symmetry breaking, group-theoretical selection rules, conical intersections, and the triangular Li3/Na3 examples.

Jahn-Teller Effect Conical Intersection Vibronic Coupling Model Calculation

CMD II: Curvature Red Shift in a 2D Morse Bottle

A 2D champagne-bottle Morse benchmark showing how centroid-constrained path integrals can create an artificial-instanton basin, flatten the CMD PMF, and red-shift the radial stretch spectrum relative to direct-density-matrix DVR, RPMD, and TRPMD controls.

CMD DVR RPMD Curvature Problem Model Calculation

CMD Effective Surfaces for Tully SAC

State-resolved CMD potentials of mean force from constrained PIMC, Hermite-consistent energy-force interpolation, and SAC dynamics against DVR, Ehrenfest, FSSH, and CMD-MQC variants.

CMD PIMC MQC Model Calculation

H2O Electronic Absorption with ABACUS RT-TDDFT

A fixed-nucleus H2O electronic absorption benchmark with ABACUS real-time TDDFT, aligned against the Ren, Kaxiras, and Meng molecular RT-TDDFT reference.

RT-TDDFT ABACUS Electronic Absorption Real-System Calculation

Perovskite Softness from Controlled NVT Spectra

Controlled 330 K NVT trajectories for MAPbI3, CsPbI3, and TiO2, analyzed through bond and angle fluctuations, displacement PCA, and MD-derived phonon density of states.

Perovskites TiO2 Phonon DOS Real-System Calculation

MQC V: Spin Mapping and Spin-MInt

From MMST oscillator mapping to finite-state SU(N) spin mapping, direct Spin-MInt propagation, and Tully SAC plus three-state Morse benchmarks against FSSH, Ehrenfest, and exact DVR.

MQC Spin Mapping Spin-MInt MMST Model Calculation

HamGNN OpenMX Workflow for TiO2 Hamiltonians

OpenMX LCAO data generation, HamGNN Hamiltonian training, band validation, and a 500 fs NVE nonadiabatic-coupling proxy check for TiO2.

HamGNN OpenMX TiO2 Real-System Calculation

Spin Mapping Mathematical Foundations

SU(N) generators, the quadratic Casimir invariant, physical versus algebraic degrees of freedom, and why Stratonovich-Weyl is the finite-state analogue of Wigner mapping.

Spin Mapping SU(N) Stratonovich-Weyl Model Calculation

MQC IV: MMST Mapping and ZPE Leakage

MMST oscillator mapping, electronic phase sampling, ZPE leakage, gamma choices, SQC-style corrections, and SAC diagnostics against FSSH, Ehrenfest, and DVR.

MQC MMST Zero-Point Energy Model Calculation

MQC III: P-Matrix Decoherence and Detailed Balance

Directed density-matrix dynamics with pairwise decoherence and Boltzmann detailed balance, tested against FSSH, Ehrenfest, and DVR toy-model diagnostics.

MQC P-Matrix Density Matrix Model Calculation

MQC II: Ehrenfest Mean-Field Dynamics

Mean-field electronic dynamics on Tully's simple avoided crossing, compared with a finite-grid DVR quantum reference.

MQC Ehrenfest Tully Model Model Calculation

MQC I: Fewest-Switches Surface Hopping

Active surfaces, hop probabilities, velocity rescaling, and a Tully simple avoided crossing benchmark with a DVR exact reference.

MQC FSSH Nonadiabatic Dynamics Model Calculation

MQC 0: Background and Working Assumptions

A concise setup for mixed quantum-classical dynamics: BO approximation, Born-Huang couplings, NAC/HST formulas, closures, and limitations.

MQC Nonadiabatic Dynamics Model Calculation

PIMD VI: Normal-Mode Free Propagation

Normal-mode and bead-coordinate free ring-polymer propagation compared through stability, subcycling convergence, and runtime benchmarks.

PIMD Normal Modes Stability Model Calculation

PIMD V: From PIMD to RPMD

PIMC-initialized RPMD trajectories for the harmonic-oscillator q-q Kubo correlation, with analytic limits and failure modes.

PIMD RPMD Kubo Model Calculation

TRPMD Water IR Spectrum with q-TIP4P/F

A detailed reproduction of the q-TIP4P/F water RPMD/TRPMD infrared comparison, including PILE damping, internal-mode resonance analysis, and experimental n(alpha) overlay.

TRPMD RPMD Infrared Spectrum Real-System Calculation

PIMD IV: Path-Integral Monte Carlo

Local Metropolis bead moves, constrained-PIMC context, and a harmonic-oscillator observable mean benchmark.

PIMD PIMC Metropolis Model Calculation

PIMD I: Ring-Polymer Basics

Path-integral isomorphism, ring-polymer equations of motion, normal modes, static estimators, and a harmonic-oscillator ensemble benchmark.

PIMD Path Integrals Model Calculation

PIMD II: NVT Thermostats and GLE

PILE, GLE, PIGLET-style covariance shaping, and compact sampling diagnostics for a harmonic ring polymer.

PIMD GLE PIGLET Model Calculation

PIMD III: Cayley Stability

Why exact normal-mode propagation can trigger resonance instabilities in ring-polymer simulations, and how the Cayley step stabilizes the free substep.

PIMD RPMD Cayley Transform Model Calculation

Matsubara I: From Kubo to LSC-IVR

Phase-space representation of Kubo correlations, the LSC-IVR truncation, and a harmonic/quartic benchmark.

Matsubara LSC-IVR Model Calculation

RPMD Water IR Spectrum with SPC/F

A reproducible SPC/F fallback for the RPMD water infrared spectrum workflow, including the dipole-derivative autocorrelation estimator and drift diagnostics.

RPMD Infrared Spectrum Water Real-System Calculation

Allegro MLPES Workflow for MAPbI3

A compact MAPbI3 Allegro workflow covering data generation, extxyz packaging, training, ASE/LAMMPS deployment, and NVE validation.

Allegro MLPES LAMMPS Real-System Calculation

DVR I: Wavepacket Dynamics Methods

Why DVR and finite-difference methods discretize the same wavepacket problem differently, with a harmonic-oscillator benchmark.

DVR Quantum Dynamics Model Calculation

DVR III: Wavepacket Dynamics with DVR

Building a multi-state DVR Hamiltonian, diagonalizing once, and evaluating exact finite-dimensional wavepacket dynamics.

DVR Wavepacket Model Calculation

DVR VI: Flux-Side Kubo Correlation

Side projectors, commutator-defined flux operators, CAP handling, and flux-flux integration for rate-like diagnostics.

Kubo Flux-Side Model Calculation

Browse

我的歌单 →

Archive

PIMD IX: When Bead–Fourier Saves Force Evaluations PIMD VIII: Anharmonic Spectra and Partial Repair PIMD VII: TRPMD and Spurious Spectral Lines HefeiNAMD IV: Quantum Nuclear Fluctuations Agent 0: Models, Harnesses, and Tools LangGraph: State, Context, and Task Decomposition Molecular Excited States III: The DP-GEN Learning Cycle Molecular Excited States II: From Hessians to Wigner Initial Conditions Molecular Excited States I: From VASP to SA-CASSCF MD Supercells: Temperature, k Points, and Nuclear Modes HefeiNAMD III: The EPC Route to Carrier Dynamics HefeiNAMD II: Supercells, NAC, and Surface Hopping HefeiNAMD I: When Does Inter-k NAC Vanish? Open Quantum Systems II: TCL2 and NZ2 Ordered and Kubo Correlations MQC VII: CPS Trajectories and Classical Feedback MQC VI: CPS Foundations and Dual Kernels CMD III: Learning Centroid Forces Matsubara IV: 绝热与非绝热 Matsubara 实时动力学推导 Open Quantum Systems I: HEOM Reaction Computation VIII: Instantons and RPMD Reaction Computation VII: Multidimensional Instantons Reaction Computation VI: Instanton Rates Across Crossover Reaction Computation V: From Barrier Penetration to Imaginary-Time Instantons Reaction Computation IV: Free Energy and the Events We Rarely See Reaction Computation III: When One Electronic State Is Not Enough Hydrogen Transfer II: From a Barrier to a Rate Hydrogen Transfer I: What Can We Actually Observe? Learning the Generator: PINN-MMST Dynamics From Reactants or the Dividing Surface? An N=1 Equivalence Test Comparing Trajectory Dynamics with Kubo Flux-Side Correlations Electronic Nearsightedness, Linear Scaling, and Local ML Potentials MES-PIMD and the Geometric Phase Geometric Phase: Key Theory Reproductions Geometric Phase in Jahn-Teller Thermodynamics HefeiNAMD 0: How to Prepare a HefeiNAMD Training Jahn-Teller Instability in Li3 and Na3 CMD II: Curvature Red Shift in a 2D Morse Bottle CMD Effective Surfaces for Tully SAC H2O Electronic Absorption with ABACUS RT-TDDFT Perovskite Softness from Controlled NVT Spectra MQC V: Spin Mapping and Spin-MInt HamGNN OpenMX Workflow for TiO2 Hamiltonians Spin Mapping Mathematical Foundations MQC IV: MMST Mapping and ZPE Leakage MQC III: P-Matrix Decoherence and Detailed Balance MQC II: Ehrenfest Mean-Field Dynamics MQC I: Fewest-Switches Surface Hopping MQC 0: Background and Working Assumptions PIMD VI: Normal-Mode Free Propagation PIMD V: From PIMD to RPMD TRPMD Water IR Spectrum with q-TIP4P/F PIMD IV: Path-Integral Monte Carlo PIMD I: Ring-Polymer Basics PIMD II: NVT Thermostats and GLE PIMD III: Cayley Stability Matsubara I: From Kubo to LSC-IVR Matsubara II: Low Modes and the Matsubara Phase Matsubara III: Quartic Benchmark and Phase Reweighting RPMD Water IR Spectrum with SPC/F Allegro MLPES Workflow for MAPbI3 DVR I: Wavepacket Dynamics Methods DVR II: Operator Matrices in the DVR Basis DVR III: Wavepacket Dynamics with DVR DVR IV: Density-Matrix Ensemble Evolution DVR V: Kubo-Transformed Position Correlation DVR VI: Flux-Side Kubo Correlation DVR VII: Excited-Ground Kubo Population Correlation