The dielectric response function is a central concept in the understanding and calculation of many phenomena in condensed matter systems. It is essential in understanding the response of a material to electromagnetic probes. In fact, in performing GW calculations, we need dielectric function as an input to calculate the screening Coulomb interaction. Moreover, constructing exciton kernels in Bethe-Salpeter equation (BSE) calculations also involves the dielectric function. In BerkeleyGW, we explicitly calculate the dielectric function in random-phase approximation (RPA) with the binary
epsilon.flavor.x (The binaries
sigma_real.x is for systems with inversion symmetry and
sigma_cplx.x for systems without inversion symmetry). Dynamical screening effects can be included either from the generalized plasmon-pole (GPP) model or explicit finite-frequency calculations.
Random-phase Approximation (RPA)
Random-phase approximation (RPA) to the polarizability means the summation of ring-like Feynman diagrams in calculating the polarizability. [1,2] As a first-order approximation to the dielectric screening effects, RPA is famous for describing the plasmon excitation and correlation energy in homogeneous interacting electron gas, also known as Lindhard function there. [1,2] We calculate the RPA dielectric function using the famous Adler-Wiser equation of polarizability, 
where is the occupation of each quasi-particle states .
The dielectric function is then given by,
where is the matrix elements of bare Coulomb interaction and is the identity matrix.
epsilon is a standalone executable that computes either the static or dynamic RPA polarizability and corresponding inverse dielectric function from input electronic eigenvalues and eigenvectors computed in a suitable meanfield code. In the code, we define the matrix elements as,
There is a clear problem in directly computing due to the fact that the Fourier-transformed Coulomb potential diverges as except in the case of box-type truncation schemes. For semiconducting systems, due to orthogonality, the matrix elements themselves go to with the form . Thus contains a non-trivial limit. The epsilon code has implemented a simpler scheme, however, in which we numerically take the limit as by evaluating at a small but finite usually taken as approximately th of the Brillouin zone, in one of the periodic directions. For semiconducting systems, where , it is sufficient to construct a separate k-grid for the conduction and valence bands shifted by the small vector in order to compute , where is a valence and a conduction band, and to evaluate the correct limiting ratio. For metals, however, intra-band transitions have , yielding . In this case, the two-k-grid treatment is insufficient, because the proportionality coefficient depends sensitively on the density of states (DOS) at the Fermi energy. Therefore a k-grid sampling of the same spacing as is required, although fewer conduction bands are necessary in the sum since is dominated by intra-band transitions. Thus we typically calculate using a single fine wavefunction grid by using the smallest consistent with the grid.
The resultant dielectric functions are stored in
eps0mat.h5 () and
To extend the dielectric matrix to finite frequencies, we propose a generalized plasmon-pole (GPP) model to include dynamical dielectric screening effects. Since the evaluation of the self-energy operator generally involves a sum over frequencies in the screened Coulomb interaction, the fine details of the frequency dependence of the dielectric function should not be important. Thus for the present purposes, the GPP model is valid if it represents the average features of for all the important elements of the dielectric matrix. The form of the dynamical dielectric function is given by, 
And the effective bare plasma frequency is defined as,
where is the conventional plasma frequency proportional to the average electron density.
The mode frequency and the amplitude A are determined by the Kramer-Kronig relation and a generalized f-sum rule relating the imaginary part of the many-body dielectric matrix to the plasma frequency and the crystalline charge density. Please refer to Eqn. 28&29 in Ref. 3.
 A. L. Fetter, and J. D. Walecka. Quantum theory of many-particle systems. Courier Corporation, 2012.
 G. D. Mahan, Many-particle physics. Springer Science & Business Media, 2013.
 M. S. Hybertsen and S. G. Louie, Phys. Rev. B 34, 5390 (1986).
 J. Deslippe, G. Samsonidze, D. A. Strubbe, M. Jain, M. L. Cohen, and S. G. Louie, Comput. Phys. Commun. 183, 1269 (2012), 1111.4429.