openmaterials.ai / codes / Quantum ESPRESSO
Quantum ESPRESSO: plane-wave DFT and lattice dynamics by perturbation theory
An open-source suite of plane-wave pseudopotential codes whose ph.x was, to its authors' knowledge, the first implementation of density-functional perturbation theory.
What it is and how it works
Linear response at any wavevector
ph.x computes the response to a lattice distortion of any wavelength at a cost proportional to that of the unperturbed system. Long-wavelength responses are inexpensive (Giannozzi 2009).
Ground state with pw.x
Iterative diagonalization and Broyden mixing with norm-conserving, ultrasoft or PAW pseudopotentials. LDA, GGA, DFT+U, meta-GGA and hybrid functionals (Giannozzi 2009).
Five parallelization levels
Images, k-point pools, plane waves, task groups and linear algebra, each an MPI communicator. PWscf scaled to 4800 processors on 587 atoms (Giannozzi 2009).
pw.x on NVIDIA GPUs
QE-GPU v6.5 ports pw.x in CUDA Fortran. The speedup on one V100 is 1.4x for a 98-atom cell and exceeds 3x as the basis set grows (Giannozzi 2020).
File-based interfaces
Inputs are Fortran namelists. Output goes to a data directory with an XML-tagged head file (Giannozzi 2009). Interfaces reach LAMMPS and i-PI (Giannozzi 2017).
Verified pseudopotentials
The SSSP protocol tests pseudopotentials with pw.x and ph.x on 85 elements. SSSP precision averages a Delta of 0.33 meV, rare-earth nitrides excluded (Prandini 2018).
What people do with it
- 4800processors in the PWscf scaling test, 587 atomsGiannozzi 2009
- 2e-8 Rylargest CPU vs GPU total energy differenceGiannozzi 2020
- 0.3 meVDelta per atom, QE against CASTEP, GBRV 1.4 setLejaeghere 2016
Graphene and graphite heat conduction
Exact Boltzmann solutions with DFPT inputs give 3600 W/m/K for infinite natural graphene and 2000 W/m/K for graphite at room temperature. The single-mode result for graphite is 10x lower. Fugallo 2014
Second sound in two-dimensional crystals
In graphene, boron nitride and graphane normal scattering dominates over Umklapp up to room temperature. In graphene at room temperature second sound travels of the order of 1 mm. Cepellotti 2015
Resonant bonding in PbTe and SnTe
QE force constants for PbTe and SnTe are long-ranged along <100>. Fourth neighbours 6 Å apart couple as strongly as first neighbours 3 Å apart. Eighth neighbours act as anti-springs. Lee 2014
How it is used
Write the pw.x input
Namelists plus CELL_PARAMETERS, ATOMIC_POSITIONS and ATOMIC_SPECIES with UPF files.
Run pw.x
Self-consistent ground state. The output holds the total energy in Ry, forces and stress.
Run ph.x
DFPT at the chosen q points. fildyn files hold dynamical matrices, Born charges, epsilon.
Run q2r.x and matdyn.x
Fourier transform to real-space force constants, then frequencies and DOS on any mesh.
Hand off
The outputs feed Wannier90, EPW, thermal2, AiiDA workflows or the i-PI driver.
What Quantum ESPRESSO is
Quantum ESPRESSO is a suite for electronic structure calculations with plane waves and pseudopotentials. pw.x computes total energies, forces and stresses. ph.x computes phonons by density-functional perturbation theory. Further packages cover molecular dynamics, spectroscopy and transport. On the map it serves the ground-state and harmonic quantities.
WebsiteOn the mapAll codesLicense: GPL-2.0
In more detail
Ground state and linear response
The codes solve the Kohn-Sham equations in a plane-wave basis with norm-conserving, ultrasoft or PAW pseudopotentials. pw.x reaches self-consistency by iterative diagonalization and Broyden mixing, relaxes atoms and cells with BFGS and runs Born-Oppenheimer MD. cp.x performs Car-Parrinello dynamics. ph.x implements density-functional perturbation theory for second and third derivatives of the energy in displacements and electric fields. It gives phonon dispersions, dielectric tensors, Born charges, Raman tensors and electron-phonon coefficients (Giannozzi 2009). Frozen phonons need supercells larger than the force-constant range, at a cost scaling as its ninth power (Baroni 2001).
Numerics and scale
Version 4.1 held about 310,000 lines of Fortran-90 and more than 100 tests (Giannozzi 2009). Parallelism is a hierarchy of MPI communicators over NEB images, k-point pools, plane waves, task groups and dense linear algebra through ScaLAPACK. PWscf scaled to 4800 processors on a gold surface with thiols and water (587 atoms, 2552 electrons), and mixed MPI and OpenMP tests reached 65536 cores (Giannozzi 2009). The GPU port uses CUDA Fortran, cuFFT and cuSOLVER. On a V100 next to an 18-core Xeon the speedup is 1.4x for a 98-atom cell and exceeds 3x as the basis grows, with total energies matching the CPU to 2e-8 Ry and forces to 3e-5 Ry/bohr (Giannozzi 2020).
Interfaces and companion codes
Quantum ESPRESSO is a distribution of separate codes. Its components share the GPL and must be fully interoperable (Giannozzi 2009). XML outputs come with XSD schemas and pseudopotentials use the UPF format (Giannozzi 2020). LAMMPS supplies the classical part of QM-MM. thermo_pw, 3.q and thermal2 add quasi-harmonic and transport properties (Giannozzi 2017). The distribution acts as the quantum engine for i-PI and AiiDA and produces the input of Wannier90, EPW, Yambo, BerkeleyGW, WEST and QMCPack (Giannozzi 2020).
Validation
In the Delta benchmark of 15 solid-state codes with 40 potential or basis set types on 71 elemental crystals, Quantum ESPRESSO agrees with CASTEP to 0.3 meV per atom when both use the Schlipf-Gygi ONCVPSP or the GBRV 1.4 pseudopotentials. Differences between all-electron codes are at most 1 meV per atom (Lejaeghere 2016). The SSSP protocol runs pw.x and ph.x on 85 elements and checks the Delta factor, phonon frequencies, cohesive energies, pressure and band structures. The SSSP efficiency and precision libraries average Delta factors of 0.44 and 0.33 meV, rare-earth nitrides excluded, at average wavefunction cutoffs of 44 and 56 Ry (Prandini 2018).
What it computes on the map
14 quantities, drawn by tier with the data flow between them. Dashed boxes are intermediate quantities. Select one for its formula and the other codes that compute it.
Embed this submap
<iframe src="https://openmaterials.ai/m/c56731602651/afc00040000001e040?embed=1" title="Quantum ESPRESSO on the OpenMaterials map" width="100%" height="480" loading="lazy" style="border:1px solid #EBEBEB;border-radius:6px"></iframe>
Each quantity with the interface the representation records.
- BareDynamicalMatrixph.x fildyn{N} (text) / fildyn{N}.xml
- BornChargesph.x q=0 fildyn 'Effective Charges E-U' (epsil=.true.)dimensionless
- BulkModulusev.x <BULK_MODULUS_KBAR> (XML output of the E(V) fit of pw.x energies), kbarkbar
- DielectricTensorph.x q=0 fildyn 'Dielectric Tensor' (epsil=.true.)dimensionless
- DynamicalMatrixmatdyn.x fldyn (off by default)
- Eigenvectorsmatdyn.x fleig (orthonormal; off by default)dimensionless
- ForceConstants[order=2]q2r.x flfrc (text or .xml)Ry_per_bohr2
- Forcespw.x stdout 'Forces acting on atoms (cartesian axes, Ry/au):' block (tprnfor=.true.)Ry_per_bohr
- Frequencymatdyn.x flfrq (matdyn.freq); ph.x fildyn tailinverse_cm
- PhononDOSmatdyn.x fldos (matdyn.dos), dos=.true.
- Potential&SYSTEM input_dft + ATOMIC_SPECIES pseudopotentials
- Stresspw.x stdout 'total stress (Ry/bohr**3) ... (kbar) P=' block (tstress=.true.)kbar
- Structurepw.x input cards CELL_PARAMETERS / ATOMIC_POSITIONS / ATOMIC_SPECIES
- TotalEnergypw.x stdout '! total energy = ... Ry'; XML total_energy elementry
Releases on record
Versions on record for this code, with the license read from the release itself.
| Version | Released | License |
|---|---|---|
| qe-7.5 | 2025-08-19 | GPL-2.0-or-later |
References
The code
The papers that describe the code; cite them when you use it.
- P. Giannozzi, S. Baroni, N. Bonini et al., QUANTUM ESPRESSO: a modular and open-source software project for quantum simulations of materials, Journal of Physics: Condensed Matter, 2009. doi.org/10.1088/0953-8984/21/39/395502
- P. Giannozzi, O. Andreussi, T. Brumme et al., Advanced capabilities for materials modelling with Q uantum ESPRESSO, Journal of Physics: Condensed Matter, 2017. doi.org/10.1088/1361-648X/aa8f79
- P. Giannozzi, O. Baseggio, P. Bonfà et al., Q uantum ESPRESSO toward the exascale, The Journal of Chemical Physics, 2020. doi.org/10.1063/5.0005082
Methods and inputs it builds on
The methods the code implements and the inputs it relies on, as published.
- S. Baroni, S. de Gironcoli, A. Dal Corso et al., Phonons and related crystal properties from density-functional perturbation theory, Reviews of Modern Physics, 2001. doi.org/10.1103/RevModPhys.73.515
- K. Lejaeghere, G. Bihlmayer, T. Björkman et al., Reproducibility in density functional theory calculations of solids, Science, 2016. doi.org/10.1126/science.aad3000
- G. Prandini, A. Marrazzo, I. E. Castelli et al., Precision and efficiency in solid-state pseudopotential calculations, npj Computational Materials, 2018. doi.org/10.1038/s41524-018-0127-2
- M. van Setten, M. Giantomassi, E. Bousquet et al., The PseudoDojo: Training and grading a 85 element optimized norm-conserving pseudopotential table, Computer Physics Communications, 2018. doi.org/10.1016/j.cpc.2018.01.012
Applications
Highly cited studies that cite the code, with a few picked by hand.
- M. N. Luckyanova, J. Garg, K. Esfarjani et al., Coherent Phonon Heat Conduction in Superlattices, Science, 2012. doi.org/10.1126/science.1225549
- S. Lee, K. Esfarjani, T. Luo et al., Resonant bonding leads to low lattice thermal conductivity, Nature Communications, 2014. doi.org/10.1038/ncomms4525
- G. Fugallo, A. Cepellotti, L. Paulatto et al., Thermal Conductivity of Graphene and Graphite: Collective Excitations and Mean Free Paths, Nano Letters, 2014. doi.org/10.1021/nl502059f
- A. Cepellotti, G. Fugallo, L. Paulatto et al., Phonon hydrodynamics in two-dimensional materials, Nature Communications, 2015. doi.org/10.1038/ncomms7400
- J. S. Kang, M. Li, H. Wu et al., Experimental observation of high thermal conductivity in boron arsenide, Science, 2018. doi.org/10.1126/science.aat5522
How to cite
P. Giannozzi, S. Baroni, N. Bonini, et al., QUANTUM ESPRESSO: a modular and open-source software project for quantum simulations of materials, J. Phys. Condens. Matter 21, 395502 (2009)