Quantum Espresso Basics
Quantum Espresso is an open‑source suite of codes for electronic‑structure calculations and materials modeling at the level of density‑functional theory (DFT). Mastery of its terminology is essential for efficient use of the package and for…
Quantum Espresso is an open‑source suite of codes for electronic‑structure calculations and materials modeling at the level of density‑functional theory (DFT). Mastery of its terminology is essential for efficient use of the package and for interpreting the results it produces. The following glossary presents the most frequently encountered terms, organized thematically, and provides examples, practical applications, and common challenges that learners face when working with Quantum Espresso.
Density‑functional theory (DFT) is the theoretical framework that underlies all calculations performed by Quantum Espresso. In DFT the many‑electron problem is mapped onto a set of non‑interacting particles moving in an effective potential that depends on the electron density. The central equation is the Kohn‑Sham equation, which must be solved self‑consistently.
Kohn‑Sham equations are a set of one‑electron Schrödinger‑like equations:
\[ \Left[-\frac{\hbar^{2}}{2m}\nabla^{2}+V_{\text{ext}}(\mathbf{r})+V_{\text{H}}(\mathbf{r})+V_{\text{XC}}(\mathbf{r})\right]\psi_{i}(\mathbf{r})=\varepsilon_{i}\psi_{i}(\mathbf{r}) \]
Where \(V_{\text{ext}}\) is the external potential due to the nuclei, \(V_{\text{H}}\) is the Hartree (electrostatic) potential, and \(V_{\text{XC}}\) is the exchange‑correlation potential. The solutions \(\psi_{i}\) are called Kohn‑Sham orbitals.
Self‑consistent field (SCF) refers to the iterative process that updates the electron density until the input and output densities agree within a predefined tolerance. An SCF cycle typically proceeds as follows:
1. Start with an initial guess for the charge density (often a superposition of atomic densities). 2. Construct the effective potential \(V_{\text{eff}} = V_{\text{ext}} + V_{\text{H}} + V_{\text{XC}}\). 3. Solve the Kohn‑Sham equations to obtain new orbitals and eigenvalues. 4. Compute a new charge density from the occupied orbitals. 5. Compare the new density to the old one; if the difference is larger than the convergence threshold, mix the densities and repeat.
The mixing scheme (e.G., Pulay, Broyden) and the convergence thresholds are critical parameters that affect both speed and reliability of the SCF.
Plane‑wave basis set is the default representation of the Kohn‑Sham orbitals in Quantum Espresso. In this approach, the wavefunctions are expanded as a sum of plane waves:
\[ \Psi_{i}(\mathbf{r}) = \sum_{\mathbf{G}} c_{i,\mathbf{G}} e^{i(\mathbf{k}+\mathbf{G})\cdot\mathbf{r}} \]
Where \(\mathbf{G}\) are reciprocal‑lattice vectors and \(\mathbf{k}\) is the Bloch wavevector. The set is truncated by a kinetic‑energy cutoff \(E_{\text{cut}}\); only plane waves with \(\frac{\hbar^{2}}{2m}|\mathbf{k}+\mathbf{G}|^{2} \le E_{\text{cut}}\) are retained.
The choice of \(E_{\text{cut}}\) is a trade‑off: Larger values increase accuracy but also raise computational cost. A typical workflow involves performing a cutoff convergence test, where the total energy is plotted as a function of \(E_{\text{cut}}\) until changes fall below a target threshold (e.G., 1 MeV per atom).
Pseudopotentials replace the all‑electron Coulomb potential of the nuclei and core electrons with a smoother effective potential that reproduces the scattering properties of the valence electrons. This enables a lower plane‑wave cutoff and reduces the number of explicit electrons that must be treated.
There are several families of pseudopotentials:
- Norm‑conserving pseudopotentials enforce that the integrated charge inside a chosen radius is the same for the pseudo and all‑electron wavefunctions. They are generally transferable but may require higher cutoffs. - Ultrasoft pseudopotentials relax the norm‑conservation condition, allowing a much lower cutoff at the expense of a more complex formalism (augmentation charges). - Projector‑augmented wave (PAW) methods combine aspects of both approaches and often deliver all‑electron accuracy with modest cutoffs.
Quantum Espresso supports the UPF (Unified Pseudopotential Format) and can read pseudopotentials generated by external codes such as PSlibrary, SSSP, and ONCVPSP. Selecting a pseudopotential set that matches the exchange‑correlation functional used in the calculation is essential; mixing mismatched functionals can lead to systematic errors.
Exchange‑correlation functional (XC) approximates the many‑body effects of electron exchange and correlation. The most common families are:
- Local density approximation (LDA) assumes that the XC energy density at a point depends only on the local electron density. It works well for systems with slowly varying densities, such as simple metals. - Generalized gradient approximation (GGA) includes the gradient of the density, improving accuracy for molecules and transition‑metal oxides. Popular GGA functionals include PBE and PBEsol. - Hybrid functionals mix a fraction of exact Hartree–Fock exchange with GGA exchange, offering better band‑gap predictions for semiconductors. Examples are PBE0 and HSE06.
In Quantum Espresso the functional is selected via the input_dft variable, e.G., input_dft='PBE'.
Brillouin zone sampling concerns the discretization of reciprocal space. Since the Kohn‑Sham equations are solved for each \(\mathbf{k}\)‑point, an appropriate mesh must be chosen to capture the electronic structure.
Monkhorst‑Pack grid is the default scheme; it generates a uniform grid defined by integers \((n_{1}, n_{2}, n_{3})\) along the three reciprocal directions. The density of the grid is often expressed in terms of the k‑point spacing or the total number of points per reciprocal‑atom.
A k‑point convergence test mirrors the cutoff test: One increases the density of the grid until the total energy, forces, or other observables change by less than a prescribed amount. For metallic systems, a finer grid is typically required because of the Fermi‑surface discontinuity.
Smearing methods alleviate the convergence difficulties associated with partially occupied states in metals. Common schemes include:
- Gaussian smearing, where the occupation numbers are broadened by a Gaussian of width \(\sigma\). - Marzari‑Vanderbilt (cold) smearing, which minimizes the free‑energy error for a given \(\sigma\). - Methfessel‑Paxton smearing, which can improve convergence for certain metallic systems but may introduce negative occupations at large \(\sigma\).
The smearing width must be chosen carefully: Too small values lead to SCF oscillations, while too large values can artificially affect total energies and derived quantities.
Band structure calculations plot the eigenvalues \(\varepsilon_{i}(\mathbf{k})\) along high‑symmetry directions in the Brillouin zone. In Quantum Espresso, one first performs a self‑consistent calculation on a dense \(\mathbf{k}\)‑grid, then a non‑self‑consistent run (often called a nscf calculation) along the desired path, using the converged charge density. The resulting eigenvalues are processed with external tools (e.G., bands.X, gnuplot, or pymatgen) to generate the visual band diagram.
Practical challenges include:
- Aligning the Fermi level across different calculations to compare band edges. - Ensuring that the number of bands included in the nscf run exceeds the highest occupied state plus a safety margin; otherwise, the conduction‑band region may be truncated.
Density of states (DOS) provides the number of electronic states per energy interval. The dos.X utility computes the DOS from a set of eigenvalues. A projected DOS (PDOS) decomposes the total DOS onto atomic orbitals or angular‑momentum channels, enabling identification of the chemical character of specific bands.
When constructing a DOS, one must choose a smearing width (often different from the SCF smearing) and a sufficient number of energy points. A too‑large smearing obscures fine features, while a too‑small smearing can produce noisy spectra.
Total energy is the primary observable in DFT calculations. It comprises kinetic, Hartree, exchange‑correlation, and ion‑electron contributions. In practice, the total energy is used to assess relative stability of structures, to drive geometry optimizations, and to compute formation energies.
Because DFT energies are not absolute, they are most reliable when used as differences between two comparable systems. Systematic errors (e.G., Due to the XC functional) often cancel out, but care must be taken when comparing systems with different chemical environments or charge states.
Forces are the negative gradient of the total energy with respect to atomic positions. In Quantum Espresso they are obtained via the forces output of an SCF or relaxation run. The forces are used by the vc‑relax algorithm to drive the atoms toward equilibrium positions.
A typical geometry optimization proceeds as follows:
1. Perform an SCF calculation to obtain forces and stress. 2. Update atomic positions according to a chosen optimizer (e.G., Conjugate‑gradient or BFGS). 3. Repeat until forces fall below a predefined threshold (commonly 10\(^{-3}\) Ry/Bohr) and the stress tensor meets the pressure criteria.
Challenges include:
- Convergence stalls due to poor initial structures; adding a small displacement or using a more robust optimizer can help. - Large forces from inadequate cutoffs or inappropriate pseudopotentials; increasing \(E_{\text{cut}}\) or switching to a more accurate PAW set often resolves the issue.
Stress tensor is the derivative of the total energy with respect to the lattice vectors. It is essential for variable‑cell relaxations (vc‑relax) and for determining elastic properties. The diagonal components correspond to pressure, while off‑diagonal components represent shear stresses.
In practice, one specifies a target pressure (e.G., 0 Kbar for ambient conditions) and lets Quantum Espresso adjust the cell dimensions. Convergence of the stress may be slower than that of the forces, requiring tighter SCF thresholds and higher cutoffs.
Variable‑cell relaxation (vc‑relax) simultaneously optimizes atomic positions and lattice parameters. It is widely used for predicting equilibrium crystal structures, exploring phase transitions, and generating input geometries for phonon calculations.
Key parameters for a successful vc‑relax include:
- cell_dofree to control which lattice degrees of freedom are allowed (e.G., all, shape, volume). - press to set the external pressure. - A robust optimizer such as the BFGS algorithm, which often converges faster than the default conjugate‑gradient scheme.
Phonons describe lattice vibrations and are central to many material properties, including thermal conductivity, superconductivity, and Raman spectra. Quantum Espresso implements phonon calculations via density‑functional perturbation theory (DFPT).
The DFPT workflow typically involves:
1. A ground‑state SCF calculation to obtain the converged charge density. 2. A series of linear‑response calculations (ph.X) at selected \(\mathbf{q}\)‑points, which compute the dynamical matrix, Born effective charges, and dielectric tensors. 3. Post‑processing with q2r.X to transform the dynamical matrices to real‑space interatomic force constants. 4. Interpolation of the force constants across the Brillouin zone using matdyn.X to obtain phonon dispersion curves.
Practical considerations:
- The choice of q‑grid density influences the smoothness of the interpolated dispersion; a denser grid yields more accurate results but increases computational cost. - For polar materials, non‑analytic corrections (LO‑TO splitting) must be included, requiring the calculation of Born effective charges and dielectric constants. - Convergence with respect to the plane‑wave cutoff and the electronic smearing is often more stringent for phonons than for total‑energy calculations.
Electron‑phonon coupling (EPC) quantifies the interaction between electrons and lattice vibrations. In superconductivity studies, the EPC constant \(\lambda\) and the Eliashberg spectral function \(\alpha^{2}F(\omega)\) are central quantities. Quantum Espresso can compute these via the ph.X module with the elph flag.
A typical EPC calculation proceeds as follows:
- Perform SCF and phonon calculations on a dense \(\mathbf{k}\)‑mesh and a compatible \(\mathbf{q}\)‑mesh. - Use elph.X to evaluate matrix elements \(\langle\psi_{nk}| \delta V_{\mathbf{q}\nu} |\psi_{mk+q}\rangle\), where \(\delta V_{\mathbf{q}\nu}\) is the perturbing potential associated with phonon mode \(\nu\) at wavevector \(\mathbf{q}\). - Integrate the results to obtain \(\lambda\) and \(\alpha^{2}F(\omega)\).
Challenges include the need for extremely fine \(\mathbf{k}\)‑point meshes (often exceeding 10\(^{4}\) points) to achieve convergence of \(\lambda\). Efficient sampling strategies, such as the double‑grid technique, can alleviate the computational burden.
Magnetism and spin‑polarization are treated by allowing separate occupations for spin‑up and spin‑down electrons. In Quantum Espresso one activates spin‑polarization by setting nspin=2 and specifying an initial magnetization for each atomic species with the starting_magnetization variable.
For antiferromagnetic or non‑collinear configurations, more elaborate setups are required:
- noncolin=.True. enables a full spinor treatment, allowing the magnetization direction to vary in space. - lspinorb=.True. adds spin‑orbit coupling, which is essential for heavy elements and for phenomena such as Rashba splitting or topological surface states.
A common challenge is the convergence of magnetic moments. Poor initial guesses or insufficient \(\mathbf{k}\)-point density can lead to metastable solutions. One strategy is to perform a constrained calculation that forces a target moment, then release the constraint in a subsequent run.
Hybrid functional calculations involve a fraction of exact exchange, which requires the evaluation of the Hartree–Fock exchange integral. This is computationally demanding because the exchange term scales as \(N^{2}\) in the number of plane waves. Quantum Espresso implements hybrids using the exx module, which employs techniques such as the adaptively compressed exchange (ACE) algorithm to reduce cost.
Key practical tips:
- Hybrid calculations typically need a much higher plane‑wave cutoff (often 1.5–2 Times the cutoff used for GGA). - The use of a coarse \(\mathbf{k}\)‑grid may introduce significant errors; dense \(\mathbf{k}\)‑meshes are advisable. - For large supercells, consider the screened hybrid functionals (e.G., HSE) that limit the range of exact exchange, thereby reducing computational effort.
Charge analysis methods extract chemically meaningful information from the electron density. Quantum Espresso provides several post‑processing tools:
- bader analysis computes atomic basins based on zero‑flux surfaces in the charge density gradient. It requires a fine real‑space grid, often generated by the pp.X utility with the plot_num=0 option. - projwfc.X performs a projection of the Kohn‑Sham states onto atomic‑like orbitals, yielding orbital occupations and PDOS. - pp.X can also generate the electron localization function (ELF) and the charge density difference (e.G., Between a molecule and its constituent atoms) for visual inspection.
Challenges in charge analysis stem from the dependence on the chosen grid spacing and the pseudopotential type; for example, ultrasoft pseudopotentials may require additional augmentation charge reconstruction to obtain accurate densities.
Hybridization with VASP is a frequent requirement in multi‑code workflows. While VASP uses a projector‑augmented wave (PAW) method, Quantum Espresso relies on pseudopotentials. To combine results, one must ensure that the same exchange‑correlation functional and comparable cutoffs are used. Converting structures between the two codes can be done with tools such as pymatgen or ASE, which read and write the standard POSCAR or cif formats.
NEB (Nudged Elastic Band) calculations locate minimum‑energy pathways and transition states. Quantum Espresso implements NEB via the neb.X driver, which requires a series of images (intermediate structures) between the initial and final states.
The workflow includes:
1. Generate a set of interpolated images using the nebmake.Pl script or a custom script. 2. Perform a series of constrained SCF calculations for each image, keeping the endpoints fixed. 3. Run neb.X to relax the images while maintaining the elastic band constraints.
Key parameters:
- string_method='neb' selects the NEB algorithm. - climbing_image=.True. activates the climbing image technique, which refines the highest‑energy image toward the true saddle point.
Typical difficulties include image “slipping” (where images drift toward minima) and insufficient spring constants leading to uneven spacing. Adjusting the spring constant (spring_constant) and increasing the number of images often mitigates these issues.
Ab initio molecular dynamics (AIMD) simulates atomic motion based on forces derived from DFT. Quantum Espresso offers the cp.X (Car‑Parrinello) and md.X (Born‑Oppenheimer) modules.
In Car‑Parrinello dynamics, electronic degrees of freedom are propagated alongside ionic coordinates using a fictitious mass parameter. This method conserves a combined energy and can be efficient for long trajectories, but requires careful tuning of the fictitious mass and time step to avoid “electronic heating.”
Born‑Oppenheimer dynamics, on the other hand, performs a full SCF at each MD step, offering better control of the electronic ground state at the expense of higher computational cost.
Practical guidelines:
- Choose a time step small enough to resolve the highest vibrational frequencies (typically 0.5–1 Fs). - For temperature control, use a thermostat (e.G., Nosé‑Hoover or Langevin) to maintain a desired ensemble. - Periodically monitor the total energy drift; a significant drift indicates insufficient SCF convergence or an overly large time step.
Convergence criteria are central to all calculations. Quantum Espresso allows separate thresholds for SCF energy (conv_thr), forces (force_thr), and stress (press_conv_thr). A typical set of values for high‑precision work might be:
- conv_thr = 1.0D-8 Ry for the SCF energy. - force_thr = 1.0D-4 Ry/Bohr for geometry optimizations. - press_conv_thr = 0.5 kbar for variable‑cell relaxations.
Stricter thresholds increase reliability but also lengthen computation time. It is advisable to start with moderate values, achieve a reasonable geometry, and then tighten the thresholds for final energy evaluations.
Parallelization is essential for scaling calculations to modern multi‑core architectures. Quantum Espresso distributes the workload across MPI processes and, optionally, OpenMP threads.
Key parallelization levels:
- k‑point parallelism distributes different \(\mathbf{k}\)‑points among MPI ranks. It is most effective when many \(\mathbf{k}\)‑points are present. - plane‑wave parallelism splits the plane‑wave basis among processors, useful for large cells with few \(\mathbf{k}\)‑points. - band parallelism distributes occupied and empty bands, beneficial for hybrid functional calculations that involve many unoccupied states.
Choosing the optimal distribution depends on the problem size and the architecture. A common strategy is to first allocate MPI processes for \(\mathbf{k}\)‑point parallelism, then enable plane‑wave parallelism if the memory per core becomes limiting.
Input file structure follows a simple namelist format. The main sections are:
- &control (overall settings, e.G., Calculation type, output directory). - &system (cell parameters, number of electrons, cutoff). - &electrons (SCF convergence, mixing). - &ions (ionic relaxation options). - &cell (cell relaxation options, if applicable).
Each namelist contains key‑value pairs; for example, ecutwfc = 50 sets the wavefunction cutoff to 50 Ry.
A frequent source of errors is a mismatch between the number of electrons implied by the pseudopotentials and the nelec variable; if nelec is omitted, Quantum Espresso automatically counts electrons from the pseudopotentials, but manual overrides must be consistent.
Post‑processing utilities extend the functionality of the core codes. Important tools include:
- pp.X for charge density, potential, and ELF visualizations. - projwfc.X for PDOS and orbital character analysis. - dos.X for total and projected DOS. - bands.X for band‑structure data preparation. - q2r.X and matdyn.X for phonon interpolation. - wannier90.X (through an interface) for constructing maximally localized Wannier functions, enabling interpolation of band structures and transport properties.
The output of these utilities is typically a plain‑text file that can be plotted with external programs (e.G., gnuplot, matplotlib, or Grace).
Typical challenges and troubleshooting
1. SCF convergence failures – Often caused by an inadequate initial guess, too aggressive mixing, or a poor choice of smearing. Remedies include:
- Switching to a more robust mixing scheme (e.G., mixing_mode='local-TF'). - Reducing the mixing beta parameter. - Adding a small amount of electronic temperature.
2. Imaginary phonon frequencies – Appear when the structure is not at a true minimum or when the q‑grid is too coarse. Verify that forces are converged to <10\(^{-4}\) Ry/Bohr and that the cell is fully relaxed.
3. Spurious magnetization – May arise from an inappropriate initial magnetization or from insufficient \(\mathbf{k}\)-point sampling. Reset the starting magnetization to zero or increase the k‑mesh.
4. Charge leakage in charged supercells – When simulating defects with net charge, a uniform background charge is added automatically, but the resulting electrostatic energy diverges with cell size. Apply finite‑size corrections (e.G., Makov–Payne) and test convergence with respect to supercell dimensions.
5. Memory exhaustion – Common in hybrid functional or large‑cell calculations. Strategies include:
- Reducing the number of empty bands (nbnd) while ensuring that the highest occupied state is well covered. - Employing the distributed parallelization mode to spread plane‑wave data across more nodes. - Switching to a lower‑memory pseudopotential (e.G., Norm‑conserving instead of ultrasoft) if accuracy permits.
Best practices for reproducibility
- Keep a log of all input parameters, including pseudopotential files, cutoff values, k‑point meshes, and convergence thresholds. - Archive the exact version of Quantum Espresso used, as minor updates can alter default algorithms (e.G., Mixing). - Store the output files (.Out, .Save directory) alongside the input files; they contain the final charge density, wavefunctions, and provenance information. - Use scripts to automate convergence tests, ensuring systematic variation of one parameter while holding others fixed.
Example: Simple silicon calculation
Below is a representative input for a ground‑state SCF calculation of silicon in the diamond structure. The example illustrates the essential keywords and their typical values.
``` &Control Calculation = 'scf' Prefix = 'si' Outdir = './Tmp/' Pseudo_dir = './Pseudos/' / &System Ibrav = 2 Celldm(1) = 10.20 ! Lattice constant in Bohr Nat = 2 Ntyp = 1 Ecutwfc = 40 Ecutrho = 320 Occupations = 'smearing' Smearing = 'mp' Degauss = 0.02 Input_dft = 'PBE' / &Electrons Conv_thr = 1.0D-8 Mixing_beta = 0.7 / ATOMIC_SPECIES Si 28.0855 Si.Pbe-n-rrkjus.UPF ATOMIC_POSITIONS crystal Si 0.00 0.00 0.00 Si 0.25 0.25 0.25 K_POINTS automatic 6 6 6 0 0 0 ```
Key observations:
- The lattice parameter is provided via celldm(1), which is the length in Bohr. - A modest plane‑wave cutoff of 40 Ry is sufficient for a norm‑conserving PBE silicon pseudopotential, but a convergence test would verify this. - The mp smearing with a width of 0.02 Ry helps the SCF converge for the semiconducting system, even though a semiconductor does not strictly require smearing; it merely assists numerical stability.
After running pw.X with this input, one can extract the band structure using an nscf calculation along the high‑symmetry path \(\Gamma\)–X–W–K–\(\Gamma\)–L. The resulting eigenvalues are processed by bands.X and plotted.
Example: Phonon dispersion for silicon
A typical phonon workflow for the same silicon cell would involve:
1. Perform the SCF calculation (as above) and retain the charge density. 2. Create a phonon input for the \(\Gamma\) point:
``` &Inputph Tr2_ph = 1.0D-14 Prefix = 'si' Outdir = './Tmp/' Fildyn = 'si.DynG' Ldisp = .True. Nq1 = 2, nq2 = 2, nq3 = 2 / ```
3. Run ph.X to obtain dynamical matrices at the 2×2×2 q‑grid. 4. Use q2r.X to transform to real‑space force constants, then matdyn.X to interpolate along the desired path.
The resulting phonon frequencies should be positive throughout the Brillouin zone, confirming dynamical stability. Any negative (imaginary) frequencies would indicate that the initial geometry is not at a true minimum, prompting a finer relaxation.
Example: Geometry optimization of a water molecule
A simple molecular optimization illustrates the use of the relax calculation mode.
``` &Control Calculation = 'relax' Prefix = 'h2o' Outdir = './Tmp/' Pseudo_dir = './Pseudos/' / &System Ibrav = 1 Celldm(1) = 20.0 Nat = 3 Ntyp = 2 Ecutwfc = 60 Ecutrho = 480 Input_dft = 'BLYP' / &Electrons Conv_thr = 1.0D-8 / &Ions Ion_dynamics = 'bfgs' Ion_thr = 1.0D-3 / ATOMIC_SPECIES O 15.999 O.Pbe-n-rrkjus.UPF H 1.008 H.Pbe-n-rrkjus.UPF ATOMIC_POSITIONS angstrom O 0.0000 0.0000 0.0000 H 0.7586 0.0000 0.5043 H -0.7586 0.0000 0.5043 K_POINTS automatic 1 1 1 0 0 0 ```
Key points:
- A large cell (20 Bohr) eliminates spurious interactions between periodic images of the molecule. - The BLYP functional is a GGA variant suitable for hydrogen‑bonded systems. - The BFGS optimizer efficiently drives the forces below 10\(^{-3}\) Ry/Bohr.
After convergence, the final O–H bond lengths and H–O–H angle can be extracted from the output and compared to experimental values (≈0.96 Å and 104.5°).
Advanced topic: Wannier functions for transport
Maximally localized Wannier functions (MLWFs) provide an efficient route to compute electronic transport coefficients, such as the Seebeck coefficient or electrical conductivity, using the Boltzmann transport equation. Quantum Espresso interfaces with the Wannier90 code through a two‑step process:
1. Generate the amn and mmn matrices with pw2wannier90.X, which contain the overlap between Bloch states at neighboring \(\mathbf{k}\)‑points. 2. Run wannier90.X to perform the iterative minimization of the spread functional, yielding the MLWFs.
The resulting Wannier Hamiltonian can be evaluated on an arbitrarily fine \(\mathbf{k}\)‑grid, enabling high‑resolution interpolation of the band structure and the calculation of transport integrals.
- The number of bands included in the pw2wannier90.X step must cover all bands of interest plus a buffer of empty states to avoid disentanglement errors. - The choice of initial projections (e.G., Atomic‑like s, p, d orbitals) strongly influences the convergence of the spread minimization. - For metallic systems, a dense \(\mathbf{k}\)‑mesh is essential to capture the Fermi surface accurately; the Wannier interpolation dramatically reduces the cost of evaluating the velocity matrix elements needed for transport.
Example: NEB reaction path for H2 dissociation on Cu(111)
A realistic NEB setup consists of:
- A slab model of Cu(111) with several atomic layers and a vacuum region. - Four images interpolating between the physisorbed H2 molecule and the dissociated configuration.
The input for each image is similar to a standard SCF calculation, with the calculation='scf' flag. The NEB driver neb.X reads the list of image directories, applies spring forces, and iteratively relaxes the images.
Key parameters:
- nstep = 200 limits the maximum number of NEB iterations. - spring_constant = 0.5 (in Ry/Bohr\(^2\)) determines the stiffness of the elastic band. - climbing_image = .True. refines the highest‑energy image to the true saddle point.
After convergence, the activation barrier is obtained from the energy profile along the reaction coordinate. Comparing this barrier with experimental activation energies validates the choice of functional and slab thickness.
Common pitfalls in large‑scale calculations
- **Insufficient vacuum**: For surface or 2‑D systems, a vacuum thickness smaller than ~15 Å can cause spurious interactions between periodic images, leading to artificial band folding or erroneous dipole moments. - **Incorrect charge state**: When modeling charged defects, neglecting the compensating background charge or failing to apply finite‑size corrections yields misleading formation energies. - **Neglecting dipole corrections**: Slabs with asymmetric terminations develop a net dipole moment; enabling the dipfield correction in the &system namelist removes the artificial electric field across the vacuum. - **Over‑relaxation of cell parameters**: Allowing full cell relaxation for low‑symmetry systems without constraints can lead to unrealistic distortions; specify cell_dofree appropriately.
Tips for efficient use of resources
- Pre‑compute the charge density on a coarse grid, then reuse it for multiple property calculations (e.G., Band structure, DOS) to avoid redundant SCF cycles. - Use the restart capability: The .Save directory stores the wavefunctions and charge density, enabling fast restarts for geometry optimizations or NEB runs.
Key takeaways
- The following glossary presents the most frequently encountered terms, organized thematically, and provides examples, practical applications, and common challenges that learners face when working with Quantum Espresso.
- In DFT the many‑electron problem is mapped onto a set of non‑interacting particles moving in an effective potential that depends on the electron density.
- Where \(V_{\text{ext}}\) is the external potential due to the nuclei, \(V_{\text{H}}\) is the Hartree (electrostatic) potential, and \(V_{\text{XC}}\) is the exchange‑correlation potential.
- Self‑consistent field (SCF) refers to the iterative process that updates the electron density until the input and output densities agree within a predefined tolerance.
- Compare the new density to the old one; if the difference is larger than the convergence threshold, mix the densities and repeat.
- , Pulay, Broyden) and the convergence thresholds are critical parameters that affect both speed and reliability of the SCF.
- Plane‑wave basis set is the default representation of the Kohn‑Sham orbitals in Quantum Espresso.