Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
World desk4 min

How to Install Quantum ESPRESSO and Run Your First SCF Calculation

A practical walkthrough of the official source-build workflow, finding pw.x, and running an example SCF input without mistaking its settings for universal defaults.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To run your first Quantum ESPRESSO self-consistent-field (SCF) calculation, install or build the software, locate its pw.x executable, then run an SCF input adapted from an official example. This guide covers the official source-build route and the first run; it does not prescribe material-specific pseudopotentials, cutoffs, or k-point sampling, which depend on the system and the accuracy you need.

Choose an installation route

Quantum ESPRESSO is open-source software for electronic-structure calculations, simulation, and optimization. Its core PWscf package performs plane-wave calculations, including SCF calculations. The official documentation page covers installation and use of the current stable release. The source-build guide identifies version 7.5.0, while the PWscf guide and input reference identify version 7.5; check the official site for the release and matching documentation available when you install.

As an Amazon Associate I earn from qualifying purchases.

The official guide supports both make- and CMake-based builds. The make procedure below follows its documented workflow. A package or managed environment may reduce setup work, but availability and maintenance depend on your operating system and provider; the official material here does not establish one route as best for every machine.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Linux or another Unix-like environment: a source build is a direct option if you have the required compiler and build tools.
  • Windows 10 or 11: the official guide identifies WSL 2 as its safest build route. It also describes Quantum Mobile and native Windows approaches as alternatives. See the official installation guide for current details.
  • Serial versus parallel: a basic build can produce serial executables. MPI execution requires an MPI-aware Fortran compiler and MPI libraries; OpenMP requires a compiler and libraries with OpenMP support.

Check source-build prerequisites

Before compiling, make sure your environment has the tools required by the official source-compilation guide:

  • A Unix shell and common utilities, including make, awk, and sed.
  • A Fortran compiler compliant with Fortran 2008 (F2008) and a C compiler.
  • Either CMake 3.20 or later, or the Autoconf configure command.
  • For a non-stable-release source tree, Git 2.13 or later to obtain external libraries.
  • For MPI or OpenMP support, the corresponding compiler support and libraries.

Compiler and numerical-library availability varies by system. If you are not setting up a parallel environment, do not assume that an MPI build is necessary for a first local calculation.

Build Quantum ESPRESSO from source

Download or check out the source release you intend to use, then run the official make workflow from the source tree. Replace qe-X.Y.Z with the actual source directory name.

  1. Open a shell and enter the source directory.
    cd qe-X.Y.Z/
  2. Create a separate build directory and configure the build.
    mkdir build && cd build
    ../configure
  3. Compile the suite.
    make all

The official build guide says the configuration step detects compilers and libraries. If it detects an appropriate parallel environment, the make build attempts to build parallel MPI executables; otherwise it builds serial executables. You can request parallel compilation with make -j N, replacing N with the number of jobs you want to use.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

When compilation succeeds, executable links appear in build/bin/. If configuration or linking fails, inspect configure.msg and config.log, then use the guide’s library and build troubleshooting sections to identify missing or misdetected dependencies.

Find the pw.x executable

pw.x is the PWscf program used for this calculation. The suite build above uses make all; the PWscf-specific compilation guide also documents building just that program with make pw from the main source directory, or make inside PW/. Those commands produce pw.x and a link under bin/. See the PWscf compilation instructions for details.

Use the executable path created by your build. If it is not on your shell’s PATH, invoke it by its path, such as ./bin/pw.x from the source directory if that link exists there. MPI builds may require the local MPI launcher and its configuration; follow the instructions for your compiler and installation rather than assuming every pw.x is launched the same way.

Start with an official input example

Do not invent a material setup for your first run. The PWscf guide recommends the distributed test-suite/ and PW/examples/ inputs as templates; read the accompanying README to understand the example’s files and run procedure. Input can be written by hand or generated with PWgui. The PWscf user guide describes these options.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For a single-point calculation with ions held fixed, set calculation='scf' in the &CONTROL namelist. The official pw.x input reference lists scf as the default, but making it explicit helps show what the input requests.

Use a complete example input and its required pseudopotential files rather than copying an isolated line into an otherwise incomplete file. A runnable input must specify a coherent system, including atomic species and positions, the cell, pseudopotential filenames, energy cutoffs, and k-point sampling. Those values are material- and purpose-dependent; there is no universally correct starter set for the unspecified material in this guide.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Run the SCF calculation

Once you have an example input and the required files in the locations it expects, pass the input to the executable. A common invocation is:

pw.x -in scf.in > scf.out

Here, scf.in is the input file and scf.out captures the program’s output. Run this from the directory expected by the example, or adjust its file paths and the executable path for your setup. For an MPI build, use the launcher and process settings appropriate to your MPI installation; a serial build can be invoked directly.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Read scf.out to determine whether the run completed and whether the SCF iterations converged. A successful calculation for an example only demonstrates that the executable and that example’s setup work; it does not establish that its numerical settings are converged for a different material or scientific question.

Adapt the calculation for scientific use

Before using an SCF result, identify the material and the quantity you need. Then select compatible pseudopotentials and numerical settings and check convergence for the intended use. In particular, do not treat an example’s pseudopotential, cutoff, or k-point mesh as universally transferable. The official guides explain the input syntax and provide templates, but the title alone does not define a physical system or validate a material-specific setup.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.