Repository navigation
Plugin Quantum ESPRESSO Input Generator
Quantum ESPRESSO Input Generator generates input files for the pw.x program of the Quantum ESPRESSO suite from molecules or crystal structures, featuring live input file preview, automatic pseudopotential filename resolution, and comprehensive calculation controls.
| Repository | moleditpy_quantum_espresso_input_generator |
| Author | HiroYokoyama |
| Supported OS | Windows, macOS, Linux, WSL |
| Supported Python | >=3.9, <3.15 |
| Supported MoleditPy | >=5.0.0, <6.0.0 |
| First-party plugin license | LGPL-3.0-or-later |
| Menu location | File ▸ Export ▸ Quantum ESPRESSO Input (pw.x)... |
| Extra dependencies | None (uses NumPy, PyVista, RDKit from the MoleditPy environment) |
See Official Plugins for the full catalogue.
The plugin supports three structural inputs:
-
Current Molecule: The molecule currently drawn in MoleditPy, wrapped in an orthorhombic cell with customizable vacuum padding. Ghost and dummy atoms (
Bq,H:NICS probes,*) are left out and counted in a warning: the plane-wave codes have no ghost atoms, and writing them would add real atoms. Reading the charge from the molecule applies only to this source; a crystal from a CIF is written neutral. -
CIF File: Load crystal structures directly from
.ciffiles with full space-group symmetry expansion. - CIF Viewer Panel: Seamlessly import crystal geometry from the active CIF Viewer panel without reopening files.
Surface slabs created with the Slab Builder plugin can be imported directly for heterogeneous catalysis and surface science calculations.
Supports all primary pw.x run types (calculation parameter in &CONTROL):
-
scf: Self-consistent field single-point energy calculation. -
nscf: Non-self-consistent calculation with fixed potential (for DOS calculations). -
bands: Band structure calculation along specified k-paths. -
relax: Ionic position optimization (&IONSnamelist included). -
vc-relax: Variable-cell relaxation optimizing both cell parameters and atomic coordinates (&IONSand&CELLnamelists included). -
md: Born-Oppenheimer molecular dynamics. -
vc-md: Variable-cell molecular dynamics. It is written withion_dynamics = 'beeman', the only choice pw.x accepts for it.
Namelists &IONS and &CELL are dynamically included only when required by the chosen calculation type.
-
Plane-wave cutoffs: Set kinetic energy cutoff for wavefunctions (
ecutwfc) with an automatic recommendation for charge density cutoff (ecutrho = 8 × ecutwfcfor ultrasoft/PAW or4 × ecutwfcfor norm-conserving). -
Occupations and smearing: Fixed occupations for insulators/molecules, or smearing (
smearing = 'gaussian','marzari-vanderbilt','methfessel-paxton','fermi-dirac') with user-specifieddegauss. -
Spin and magnetization: Support for spin-polarized calculations (
nspin = 2) with per-speciesstarting_magnetization. -
DFT functional override: Specify
input_dftto override functional definitions in pseudopotentials. -
Dispersion correction (
vdw_corr): Grimme-D2 ('grimme-d2'), Grimme-D3 zero damping ('dft-d3'), Grimme-D3(BJ) ('dft-d3bj'), XDM ('xdm'), or Tkatchenko-Scheffler ('ts').
-
Convergence criteria: Self-consistency threshold
conv_thr. -
Mixing: Charge density mixing factor
mixing_betaand mixing mode (mixing_mode = 'plain','TF','local-TF'). -
Iteration limit:
electron_maxstep. - Diagonalization method: Davidson or conjugate gradient.
-
Free keywords per namelist: one editor each for
&CONTROL,&SYSTEM,&ELECTRONS,&IONSand&CELLtakeskeyword = valuelines (commas also separate pairs,!starts a comment). Values are written exactly as typed, so quote strings:mixing_mode = 'local-TF',Hubbard_U(1) = 4.0. -
No duplicates: a keyword the other tabs already write (for example
conv_thr) is replaced in place, since pw.x stops when a keyword appears twice. Case and spaces in indices do not matter. -
Extra cards:
HUBBARD,CONSTRAINTS,OCCUPATIONS,ADDITIONAL_K_POINTS,SOLVENTSand the rest are appended after the generated cards. A card the plugin writes itself is replaced: aK_POINTS crystal_bpath typed here takes the place of the mesh, which is what abandsrun needs. -
Checks: unreadable lines,
&IONSor&CELLkeywords for a run type that has no such namelist, text outside any card, and a replaced structure card are all flagged in the warning strip.
The plugin provides smart pseudopotential handling:
- Local directory scanning: Point the plugin to your local UPF pseudopotential repository (e.g. SSSP or PseudoDojo); it automatically scans the directory and matches filenames to each element present.
-
Pattern fallback: If a matching file is not found locally, uses an editable template pattern (e.g.
{El}.pbe-n-kjpaw_psl.1.0.0.UPF). - Atomic masses: Automatically populated with standard IUPAC atomic weights.
-
Automatic grid: Calculates a uniform Monkhorst-Pack grid with user-defined coordinate shifts (
0or1). -
Reciprocal spacing target: Automatically computes grid divisions based on a desired spacing (in
$\mathrm{\AA}^{-1}$ ). The spacing is given without the$2\pi$ factor,$n_i = \lceil |\mathbf{b}_i| / \Delta k \rceil$ ; VASP'sKSPACINGand pymatgen include$2\pi$ , so their 0.2 corresponds to about 0.032 here. -
Gamma-point: Generates
K_POINTS gammafor isolated molecular calculations or large supercells. - Slab adaptation: Automatically constrains k-points along the vacuum dimension to 1.
Additional namelist/card text is validated before export. Tetrahedron occupations require an automatic uniform k-point mesh. Diagonalization choices are david, cg, paro, rmm-davidson and rmm-paro.
With Job Manager installed, Submit to Cluster... appears beside Save. It saves the input file (asking for a name only when it has not been saved yet or the settings have changed since), hands it to Job Manager under the file's name, then closes the dialog. Without Job Manager the button is not shown.
- Official Plugins — the full plugin catalogue
- Plugin: VASP Input Generator — VASP input generator
- Plugin: CP2K Input Generator — Quickstep CP2K input generator
- Plugin: Slab Builder — construct surface slabs from bulk crystals
- Plugin: CIF Viewer — crystallographic structure viewer
This page documents Quantum ESPRESSO Input Generator v0.14.0, and was last updated on 2026-11-14. See REGISTRY/plugins.json for the current version.