Notebooks · posts/casida-tdhf-and-tda-for-water
Excitation energies of water from the Casida equation, with and without de-excitations
Water in the 6-31G basis, from its Hartree-Fock ground state to all 40 singlet and 40 triplet excitation energies, two ways. Time-dependent Hartree-Fock (the random-phase approximation) keeps the coupling between excitations and de-excitations; the Tamm-Dancoff approximation drops it and diagonalizes alone. The lowest singlet is at 0.344074 Ha (9.363 eV) in TDHF and 0.346161 Ha in TDA, and every one of the 160 energies matches PySCF's to Ha.
A molecule absorbs light at the energies of its excited states above the ground state, its excitation energies. Hartree-Fock gives only the ground state, a single set of occupied orbitals. Linear response asks how that state responds to a weak oscillating field: the response diverges at frequencies that solve the eigenvalue problem above, the Casida equation. The unknowns are the amplitudes for moving an electron from an occupied orbital to a virtual one , and for the reverse.
For a closed-shell molecule with real orbitals, orbital energies , and two-electron integrals in the molecular-orbital basis (chemists' notation),
for singlets. For triplets the Coulomb terms drop out, since a spin flip moves no net charge. With the equation is time-dependent Hartree-Fock (TDHF), also called the random-phase approximation (RPA). With only is left, and its eigenvalues are the Tamm-Dancoff (TDA) energies, the same as configuration interaction with single excitations.
The program computes the integrals, the ground state and both spectra in
this file, with lib/hf for the integrals and the self-consistent field. The
reference is PySCF 2.5.0 (posts/refs/casida-tdhf-and-tda-for-water.py),
which shares no code with it and solves both problems by Davidson
iteration on matrix-vector products, without building or .
Look inside this program
Shift+Enter in a cell runs it and moves to the next. Running a cell runs every cell above it too, as one program.
The ground state and its orbitals
The molecule is PySCF's water, written as PySCF takes it, and the 6-31G
basis is found by its name in the table lib/basis/pople631g: 13 basis functions, 5 doubly occupied orbitals and 8
virtual ones, so occupied-virtual pairs. The RHF energy
matches PySCF's Ha. The orbitals are the eigenvectors of
the converged Fock matrix, and the integrals over them come from
four quarter-transformations of the atomic-orbital integrals.
Building and , and solving
The pair is stored at index .
TDA is one symmetric eigenvalue problem, .
For TDHF the problem is not symmetric, but it folds into a symmetric one of size . Adding and subtracting its two block rows gives and , so . When is positive definite, which holds when the Hartree-Fock state is stable against these rotations, it has a square root, and turns the product into the symmetric matrix under the title. Its eigenvalues are .
All 160 energies agree with PySCF's to Ha, about what is left of the self-consistent field's convergence; the tests allow .
What does
couples each excitation to the de-excitations, and its effect is to
pull the energies down. For the lowest root this always holds. With
, the lowest TDHF is the minimum
of over vectors with ;
the vectors with are among them, and over those the ratio is
, whose minimum is the lowest TDA energy. For water every root comes out lower in TDHF than in TDA,
by 0.07 to 63 millihartree for the singlets and 0.01 to 19 for the triplets
(posts/refs prints the same ranges from PySCF); the largest is the 25th
singlet's, 63 millihartree. The 8 roots near 20 Ha, which move an electron
out of the oxygen 1s orbital, shift by less than 0.25 millihartree.
The triplets sit below the singlets. The singlet and carry the extra term , whose diagonal is the Coulomb self-repulsion of the charge distribution and is positive. The lowest triplet is 0.3065 Ha, 1.023 eV below the lowest singlet.
The first figure shows the 32 valence excitation energies of each kind. The second shows, root by root, how far TDA lies above TDHF.