Introduction
The Green Software Package provides tools for the numerical simulation of realistic quantum systems of interacting electrons with finite-temperature Green’s function techniques. The methods implemented in the weak-coupling part of the package, in particular self-consistent GF2 and self-consistent GW, start from the same information that is used in most ab initio electronic-structure calculations: atom positions, nuclear charges or pseudopotentials, a finite one-particle basis, one-electron matrix elements, and two-electron Coulomb integrals.1, 2
This page introduces that starting point. The goal is not yet to define Green’s functions, self-energies, or Feynman diagrams. Instead, we first explain the Hamiltonian and the matrices and tensors that represent it. This is the layer where electronic-structure notation often becomes confusing: physicists may think in terms of fields and lattice sites, quantum chemists in terms of Gaussian orbitals and electron-repulsion integrals, and solid-state calculations in terms of Bloch functions and -points. Green’s function calculations use all of these languages, but the underlying objects are the same.
From electrons in space to a finite basis
In the Born-Oppenheimer approximation the nuclei are fixed during the electronic calculation. The electronic Hamiltonian contains a one-electron part and the Coulomb repulsion between pairs of electrons,
In atomic units, a common non-relativistic form of the one-electron operator is
where the first term is the kinetic energy and is the external potential produced by nuclei, pseudopotentials, and possibly other one-body fields. For an all-electron molecular Hamiltonian, . With pseudopotentials or relativistic one-electron approximations, the detailed expression changes, but it is still represented as a one-body matrix in the chosen basis.1, 3
Computers cannot store a wave function as an arbitrary function of continuous coordinates. We therefore choose a finite set of one-particle basis functions
The index labels orbitals inside a unit cell or molecule. The momentum label is used for periodic solids; for molecules it is omitted. In Gaussian-orbital calculations for solids, the basis functions are Gaussian Bloch orbitals, constructed by summing localized Gaussian functions over lattice translations with phase factors .1
The basis functions need not be orthonormal. Their overlap matrix is
where is the molecular integration domain or, for periodic systems, the unit-cell volume. If the basis is orthonormal, . Gaussian atomic orbitals are usually non-orthogonal, so the overlap matrix is an essential part of the problem. It appears explicitly in the matrix form of the non-interacting propagator and in generalized eigenvalue problems. Alternatively, one can transform to an orthogonal basis, for example by a Lowdin symmetric orthogonalization, but Green’s function implementations often keep explicitly.1, 2
One-electron matrix elements
Once a basis is chosen, the one-electron operator becomes a matrix. In the notation used in recent Green’s function implementations,
For a non-relativistic Hamiltonian without magnetic fields or spin-orbit coupling, spin is conserved and this reduces to
with
If spin-orbit coupling or an external magnetic field is included, can contain off-diagonal spin blocks. Recent relativistic self-consistent GW work in the Zgid group uses exact-two-component one-electron Hamiltonians, where this spin structure is part of the one-electron matrix rather than an afterthought.3
The symbol is sometimes replaced by , , or in the literature. In older molecular GF2 and SEET papers, the compact second-quantized Hamiltonian is often written with for the one-body term and for the Coulomb integral.4, 5 In the Green documentation we use or for the one-body matrix and for the two-body Coulomb tensor.
Two-electron Coulomb integrals
The electron-electron interaction is represented by four-index Coulomb integrals. Let collect the momentum labels. In the chemists’ convention used by many ab initio packages and by the Green weak-coupling interface, the integral is , where the pair density is .
For molecules the labels are absent. For crystals, the integral is nonzero only when crystal momentum is conserved,
where is a reciprocal lattice vector.1
The tensor is the bare Coulomb interaction in the finite basis. “Bare” means that the interaction has not yet been screened by electronic polarization. GF2 is expanded in powers of these bare Coulomb integrals. GW instead builds a screened interaction from the same bare Coulomb input. The distinction between and becomes important later; at the Hamiltonian level, the fundamental two-electron input is .2
Different communities place the indices in different orders. The expression above corresponds to the chemists’ integral . Some diagrammatic formulas instead use antisymmetrized integrals, for example , or use a different ordering of creation and annihilation operators. These are notation choices, not different Hamiltonians, provided the same convention is used consistently.
The second-quantized Hamiltonian
The finite-basis Hamiltonian is most compactly written with creation and annihilation operators. Let create an electron in orbital , spin , and momentum , and let destroy one. A general periodic Hamiltonian used in self-consistent GW calculations is1
Here is the number of sampled -points in the Brillouin zone. The factor avoids double counting electron pairs. The factor is the normalization associated with the reciprocal-space sampling convention.
For a molecule, the momentum labels are omitted. The one-body part is , and the two-body part is .
If spin is not mixed by , the one-body term becomes diagonal in spin. Older molecular SEET and GF2 papers often suppress the spin indices and write the same structure as , where the precise factor of and the ordering of are absorbed into the author’s convention.5 When comparing equations across papers, always check whether the two-electron integrals are bare or antisymmetrized and whether spin orbitals or spatial orbitals are being used.
Integral decompositions
The four-index tensor is expensive to store and manipulate. If there are orbitals, the molecular tensor has elements, and periodic calculations add momentum indices. Modern GF2 and GW calculations therefore rarely work directly with the full tensor. Instead, they use decompositions such as density fitting, Cholesky decomposition, resolution of the identity, or tensor hypercontraction.1, 2
A common low-rank form is , where is an auxiliary index. The matrices encode the same Coulomb interaction in a factorized form. This decomposition is not just a storage trick: it changes the practical scaling of GW and GF2 algorithms and is one of the reasons fully self-consistent calculations on realistic molecules and solids have become feasible.1, 2
What the Hamiltonian data mean physically
The one-electron matrix tells us how a single electron moves through the external potential and between basis functions. Its diagonal elements are roughly orbital energies in the chosen basis, while its off-diagonal elements describe hopping, hybridization, and spin mixing. The overlap matrix tells us that the basis functions themselves are not necessarily independent unit vectors. The Coulomb tensor tells us how the charge distribution associated with one pair of basis functions interacts with the charge distribution associated with another pair.
These objects are not yet a many-electron solution. They are the finite-basis definition of the problem. Hartree-Fock, density functional theory, GF2, GW, coupled cluster, configuration interaction, and embedding theories can all start from essentially the same , , and , then make different approximations to solve the interacting-electron problem.6
Green’s function methods proceed by replacing a direct many-electron wave function with one-particle propagation and interaction effects encoded in frequency- or time-dependent quantities. The next theory pages introduce the imaginary-time and Matsubara-frequency Green’s functions, the Dyson equation, and the self-energy approximations used in GF2 and GW.
Chia-Nan Yeh, Sergei Iskakov, Dominika Zgid, and Emanuel Gull, “Fully self-consistent finite-temperature GW in Gaussian Bloch orbitals for solids,” Phys. Rev. B 106, 235104 (2022). ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎
Pavel Pokhilko, Chia-Nan Yeh, Miguel A. Morales, and Dominika Zgid, “Tensor hypercontraction for fully self-consistent imaginary-time GF2 and GWSOX methods: Theory, implementation, and role of the Green’s function second-order exchange for intermolecular interactions,” J. Chem. Phys. 161, 084108 (2024). ↩︎ ↩︎ ↩︎ ↩︎ ↩︎
Chia-Nan Yeh, Avijit Shee, Qiming Sun, Emanuel Gull, and Dominika Zgid, “Relativistic self-consistent GW: Exact two-component formalism with one-electron approximation for solids,” Phys. Rev. B 106, 085121 (2022). ↩︎ ↩︎
Jordan J. Phillips and Dominika Zgid, “Communication: The description of strong correlation within self-consistent Green’s function second-order perturbation theory,” J. Chem. Phys. 140, 241101 (2014). ↩︎
Tran Nguyen Lan, Avijit Shee, Jia Li, Emanuel Gull, and Dominika Zgid, “Testing self-energy embedding theory in combination with GW,” Phys. Rev. B 96, 155106 (2017). ↩︎ ↩︎
Mario Motta et al., “Towards the solution of the many-electron problem in real materials: Equation of state of the hydrogen chain with state-of-the-art many-body methods,” Phys. Rev. X 7, 031059 (2017). ↩︎