04. The NEGF Formalism — Green's Functions and Self-Energy
In Chapter 00 we saw that the current is determined by the transmission function . This chapter establishes the framework for computing from a first-principles Hamiltonian — the non-equilibrium Green's function (NEGF) formalism. We work out how an open quantum system is turned into a finite matrix problem, what the self-energy and broadening are, and which parts of the formalism TranSIESTA and TBtrans each handle. Since this is a theory chapter, there are no input files or run sections.
Learning objectives
- Understand the block structure of the Hamiltonian of an open quantum system partitioned into left electrode–device–right electrode.
- Explain why NEGF requires a local-orbital (LCAO) basis rather than plane waves.
- Grasp the physical meaning of the retarded Green's function , the self-energies , and the broadenings .
- Learn the Caroli/Landauer formula and the spectral function–DOS relation.
- Distinguish the division of labor between TranSIESTA (self-consistent NEGF) and TBtrans (post-processing transport).
1. Open quantum systems and spatial partitioning
The stage for the transport problem is not a closed periodic system but an open system. We divide the system into three regions.
- Left electrode (L) — a periodic conductor extending semi-infinitely along the transport direction ()
- Device (D) — the central region where scattering occurs (the scattering region). Atomic arrangements different from the electrodes, defects, molecules, etc. go here
- Right electrode (R) — the semi-infinite conductor on the opposite side
If the basis functions are spatially localized, the Hamiltonian has a block tridiagonal structure.
The key assumption is that the block directly connecting L and R is zero — the device must be long enough that the two electrodes do not overlap directly. The overlap matrix has the same block structure (LCAO bases are not orthogonal, so ).
The full matrix is infinite-dimensional, but all we want are physical quantities of the device block. The essence of NEGF is to fold the effect of the semi-infinite electrodes into a self-energy on the finite device block.

Figure 1. The L–C–R partition of an open system (schematic) — the semi-infinite electrodes are folded, via self-energies , into the finite central region (including the screening region), turning the infinite matrix problem into a finite one.
2. Why a local-orbital (LCAO) basis?
For the block partition above to hold, the basis functions must have finite range in real space. SIESTA's numerical atomic orbitals are exactly zero beyond a specified radius, so the Hamiltonian and overlap matrices are sparse, and "which atomic block interacts with which atomic block" is unambiguous. Therefore
- the L–D–R spatial partition can be mapped directly onto a matrix block partition, and
- the semi-infinite boundary condition of the electrodes can be handled through a recursion relation over periodic blocks (the surface Green's function).
In contrast, plane-wave basis functions are spread over the entire cell, so the very notion of spatial attribution — "this basis function belongs to the left electrode" — is impossible, and since periodic boundary conditions are presupposed, a semi-infinite electrode cannot be represented. This is why NEGF transport is handled by the SIESTA family (LCAO), while VASP (plane-wave) handles structure optimization and the reference electronic structure (Chapter 03). A workaround exists in which localized Wannier functions are constructed from plane-wave calculations and used in NEGF, but it is not covered in this tutorial.
3. The retarded Green's function
The retarded Green's function of the device region is defined as follows.
Here and are the Hamiltonian and overlap matrices of the device block ( enters explicitly because the LCAO basis is non-orthogonal), are the electrode self-energies defined in the next section, and is a small positive number. Compared with the closed-system Green's function , which has poles at the eigenvalues of , in the open system pushes those poles into the complex plane — the levels shift (real part of the self-energy) and acquire finite width (imaginary part). The size of is the device matrix dimension (the number of orbitals), so the infinite open-system problem has been reduced to one inversion of a finite matrix per energy.
4. Self-energy — the infinite electrode as a finite matrix
Eliminating (downfolding) the left electrode block adds the following term to the device block.
is the surface Green's function of the semi-infinite left electrode, computed recursively from the and of the electrode unit cell. Because the electrode is periodic, there is no need to actually invert an infinite matrix — the cell-by-cell recursion can be converged instead. This is why Chapter 05 performs a separate electrode calculation and stores its Hamiltonian (the TSHS file). works the same way.
The self-energy is in general an energy-dependent, non-Hermitian matrix, and its physics splits into two parts.
- Real part — the coupling to the electrode shifts the device levels (level shift).
- Imaginary part — it gives the levels a finite lifetime, because electrons do not stay in the device forever but can escape into the electrodes.
The imaginary part, taken separately, defines the broadening matrix.
is a Hermitian matrix and is the matrix generalization of the coupling strengths of the single-level model in Chapter 00. The relation between the level width and the lifetime carries over unchanged.
5. The spectral function and the DOS
The anti-Hermitian part of the Green's function is the spectral function.
The spectral function is the object containing "the states the device offers at energy ", and it splits naturally into electrode-resolved contributions.
is the spectral density of the scattering states formed in the device by injection from the left electrode. The density of states (DOS) is obtained in a non-orthogonal basis by inserting the overlap.
The device DOS and spectral DOS (ADOS) output by TBtrans are exactly these quantities (Chapter 07).
6. Transmission — the Caroli formula
The transmission function is expressed in terms of the Green's function and the two broadening matrices.
This expression is called the Caroli formula (Caroli et al. [2]). How to read it: it is the total amplitude for being injected from the left electrode (), propagating through the device (), and escaping into the right electrode (). Inserting the resulting into the Landauer integral
yields the current (Chapter 08). Diagonalizing into channel-resolved contributions is the eigenchannel analysis (Chapter 10).
7. — a numerical parameter, not a physical quantity
In the of the definition of , is an infinitesimal that selects the retarded solution (the causal branch), and in numerical calculations a finite value must inevitably be used. Let this be clear: is not a physical quantity. Physical broadening is carried by the imaginary part of the self-energy (); is merely a numerical parameter that stabilizes the calculation.
- If is too large, every spectral structure is artificially smeared by a width . 1D systems, with their many van Hove singularities and sharp resonances, are especially sensitive.
- If is small, the energy grid must be correspondingly fine. If the grid cannot resolve structures of width , the spectrum looks jagged. The standard for this tutorial is (
TBT.Contours.Etaof TBtrans), and the energy grid spacing is taken at or below .
The convergence test is covered separately in Advanced: η broadening.
8. Division of labor between TranSIESTA and TBtrans
The formulas so far assumed the Hamiltonian was given. But in DFT, is a functional of the electron density, and the density of the open system in turn comes from the Green's function.
This equation is where the "NE (non-equilibrium)" of NEGF actually operates. Under bias, states injected from the left are filled up to and states injected from the right up to — a genuinely non-equilibrium density that cannot be described with a single Fermi level. Hence a self-consistent loop must be iterated, and this is the job of TranSIESTA. In practice the integral is split into an equilibrium part (computed stably on a complex contour) and a non-equilibrium part in the bias window (computed near the real axis, numerically delicate).
Once the converged is in hand, spectral quantities such as , DOS, and PDOS can be extracted without self-consistency, just by evaluating the Green's function at each energy. This is the job of TBtrans; it is far cheaper and can be rerun freely with different energy grids, , and k-grids.
| Code | What it does | Products |
|---|---|---|
| TranSIESTA | Self-consistent SCF with open boundary conditions + (at finite bias) the non-equilibrium density | Converged (TSHS), density (TSDE) |
| TBtrans | Post-processing transport on top of the converged | , DOS, PDOS (TBT.nc) |
At 0 V, , so TranSIESTA is effectively an "open-boundary-condition SCF" (Chapter 06); only at finite bias does the non-equilibrium term switch on (Chapter 09).
Key summary
| Object | Definition | Physical meaning |
|---|---|---|
| Retarded propagator of the open device | ||
| Effect of the semi-infinite electrode (level shift + lifetime) | ||
| Broadening due to coupling to electrode | ||
| Spectral density, | ||
| Left → right transmission probability (Caroli) | ||
| Numerical parameter in | Not a physical quantity. Set jointly with the grid spacing |
Exercises
-
Single-level toy model. Let the device be a single orbital (, ) and take the wide-band approximation (energy-independent). Derive , , and . Verify that for symmetric coupling () the resonance peak gives — no matter how weak the coupling, transmission on resonance is perfect.
-
Spectral function identity. Starting from , show that holds as .
-
Effect of . Suppose the resonance width of Problem 1 is . Discuss qualitatively how the height and width of the peak are distorted when computed with , and propose an appropriate and energy grid spacing.
Ref: Datta [1]; Caroli et al. [2]; Brandbyge et al. [3]; Papior et al. [4].