Home / Blog / Speeding up Quantum Espresso by 36x using Claude Fable 5.2
Tech News

Speeding up Quantum Espresso by 36x using Claude Fable 5.2

Discovered Materials used Claude Fable 5.2 to patch Quantum ESPRESSO, cutting DFPT phonon runs by 36x and hybrid-functional DFT by about 9x on GPUs.

By Dillip Chowdary • Nov 09, 2026 • Source: discoveredmaterials.com

Speeding up Quantum Espresso by 36x using Claude Fable 5.2

Discovered Materials used Claude Fable 5.2 and a set of test suites to patch Quantum ESPRESSO, speeding DFPT phonon calculations by 36x and hybrid-functional DFT by 9x, according to discoveredmaterials.com's report. The open-source patch is the GitHub repository discovered-materials/dm_qe. Quantum ESPRESSO, roughly 600,000 lines of Fortran, is the most widely used open-source DFT code, and DFT is consistently among the largest consumers of time on national supercomputers.

This piece covers both speedups, the GPU kernel changes, the benchmark timings, and a nitrogen-vacancy run in diamond. It is for researchers who use Quantum ESPRESSO on semiconductors, batteries, catalysts, solar absorbers, aerospace alloys, or drug-discovery energetics, and who skip hybrids or phonons because stock runs are too slow.

01Band gaps, defects, and phonons

Density functional theory is the workhorse of computational material science and the most widely used method for simulating matter at the atomic scale. It is used for semiconductors, battery cathodes and solid electrolytes, catalysts for fertilizer and hydrogen production, solar absorbers, and aerospace alloys. In drug discovery the same method supplies binding energies, charge distributions, and reaction pathways that classical force fields cannot capture.

Conventional DFT is comparatively cheap, but it systematically underestimates band gaps and misplaces defect levels, which matters enormously for semiconductors. Hybrid functionals account more accurately for the Pauli exclusion principle and offer a promising remedy. They are much slower, which limits them to certain smaller toy systems rather than realistic large scale simulations.

Quantum ESPRESSO also computes how atoms vibrate, through density functional perturbation theory. Those phonons support crystal stability, heat capacity, thermal conductivity, dielectric response, and conventional superconductivity. DFPT costs an order of magnitude more than DFT, phonon data cover only a subset of the Materials Project, and screens often skip dynamic stability checks.

02Kernel rewrites and hidden tests

Discovered Materials gave Claude Fable 5.2 two tasks: speed up the phonon code, and speed up the hybrid-functional algorithms on GPUs. Fable 5.2 rewrites Quantum ESPRESSO kernels for the GPU with mixed precision, batching, and symmetry, then iterates on every failure. Timings, failures, and regressions go back into the next patch.

The loop checks standard benchmark suites and hidden test sets that span representative systems, so a speedup is not overfit to publicly known tests. The Discovered Materials test suite holds reference results from stock Quantum ESPRESSO and scores speed and correctness. Only changes that are faster and match those references are released, and any leftover mismatches fall within the measurement errors of experimental characterization.

Speeding up Quantum Espresso by 36x using Claude Fable 5.2
Illustration · Pexels

03Hybrid functionals nine times faster

On the hybrid task, Fable 5.2 sped Quantum ESPRESSO up by roughly 9x as a geometric mean and, without being asked, added a multi-GPU version that spreads the work across devices and larger cells. MgO PBE0 vc-relax, Si-216 PBE0, 64 H2O PBE0 MD, and C60 B3LYP cannot run on the stock four-GPU path. Optimized four-GPU timings for those four are 6.1, 26.5, 118.7, and 22.7.

Advertisement

Tech Pulse Daily

Get tomorrow's pulse first

Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.

The orbital buffer stays on the GPU between applications of the exchange operator. Stock Quantum ESPRESSO copied it from the host on every application, which created large PCIe traffic latencies. Band pairs, handled one at a time with many small GPU launches, are grouped into blocks sized to the GPU's L2 cache and run with batched FFTs and a few fused kernels.

Building the real-space orbitals at each exchange initialization, FFTs and symmetry rotations included, now runs on the GPU instead of the CPU. That removes a serial bottleneck and a large host-to-GPU transfer, and the exchange contribution to the stress uses the same batched machinery. Small subspace diagonalizations in the Davidson solver stay on the CPU, because launch and synchronization overhead outweighs the computation at that size.

CaseStockOptimized, same pathOptimized, defaultStock, 4 GPUsOptimized, 4 GPUs
Si HSE54.83.3 (16.5x)2.8 (19x)21.31.1
GaAs HSE539.226.3 (20.5x)19.6 (28x)186.55.6
MgO PBE0 vc-relax450.418.9 (24x)19.2 (23x)cannot run6.1
NiO AFM HSE4015124.7 (32x)60.8 (66x)123717.1
CsPbI3 HSE+SOC601.261.2 (9.8x)31.6 (19x)298.112.7
MoS2 HSE425.126.8 (16x)15.2 (28x)168.75.3
Si-63 vacancy relax720.8183.8 (3.9x)98.0 (7.4x)311.842.6
Si-216 PBE0281.497.4 (2.9x)45.7 (6.2x)cannot run26.5
64 H2O PBE0 MD1103.8316.8 (3.5x)201.8 (5.5x)cannot run118.7
C60 B3LYP93.537.5 (2.5x)24.4 (3.8x)cannot run22.7

04Phonon runs thirty-six times faster

Fable 5.2's DFPT phonon code is roughly 36x faster than stock Quantum ESPRESSO on the same GPU, a geometric mean across 13 cases. Against stock CPU the geometric mean is 14x, on the 12 cases that have a CPU reference. Wall-clock time for the benchmark suite fell from 3.3 hours to under 4 minutes.

The four changes preserve backward compatibility with existing Quantum ESPRESSO inputs and workflows. Mixed precision runs the bulk of the linear-response solves in lower precision where accuracy permits, and promotes to double precision only where it matters. Crystal symmetry avoids recomputing equivalent perturbations, and a better preconditioner improves convergence so fewer iterations are needed per perturbation.

Setup work that previously ran on the CPU now runs on the GPU, removing a serial bottleneck and host-device transfers. Discovered Materials says the changes require electronic structure physics, GPU kernels, and Fortran, "a combination of skills that is rare to find amongst experts in the field." The largest versus-GPU factor in the table is 108x, on diamond PAW with an 11×11×11 k-mesh and a low-symmetry q.

CaseWhat is computedStock CPUStock GPUOptimizedvs stock GPUvs stock CPU
aln_paw_epsAlN (4 atoms, PAW), ε∞ and Z* at Γ, the κ-pipeline call39.067.74.116.5x9.5x
aln_paw_gammaAlN PAW, ε∞, Z*, and phonons at Γ142.2204.86.333x23x
aln_paw_qAlN PAW, low-symmetry q719.81842.925.473x28x
c_paw_qdiamond PAW, 11×11×11 k, low-symmetry q113.91270.711.8108x9.7x
si_us_dispSi ultrasoft, 4×4×4 q dispersion498.8794.625.631x19.5x
si_nc_dispSi norm-conserving, 4×4×4 q dispersion64.0531.07.571x8.5x
mgo_nc_dispMgO, ε∞, Z*, 4×4×4 q dispersion209.2877.913.963x15.1x
mos2_nc_2d_mMoS2 monolayer, q = M352.3234.313.617.2x26x
al_paw_metal_xAl metal PAW, 16×16×16 k, q = X6.558.52.424x2.7x
al_paw_metal_qAl metal PAW, 4096 k-points46.41060.214.971x3.1x
si54_us_gamma54-atom Si, ultrasoft, 6 of 162 modesnot run438057.876x–
nv64_nc_lsda_gammaNV− in 63-atom diamond, LSDA, 4 modes178.977.26.112.7x29x
si216_nc_gamma216-atom Si, 2 modes1806384.032.211.9x56x
geometric mean13 cases (12 with a CPU reference)36x14x

05NV centers on four H100s

Discovered Materials put both speedups on the nitrogen-vacancy center in diamond, an NV-defect quantum sensor and a leading candidate for room-temperature qubits. Defect level positions need hybrid functionals, and electron-phonon coupling needs DFPT. The patched code that passed the test suite is discovered-materials/dm_qe, and the phonon path still accepts existing Quantum ESPRESSO inputs.

In the benchmark, the phonon calculation for a negatively charged NV center in a 63-atom diamond supercell went from 77 seconds on stock GPU Quantum ESPRESSO to 6 seconds, called 13x faster. The row nv64_nc_lsda_gamma, an LSDA run of 4 modes, lists stock CPU 178.9, stock GPU 77.2, and optimized 6.1, or 12.7x versus the stock GPU and 29x versus the stock CPU. With the multi-GPU hybrid implementation, the same system can be treated at hybrid accuracy on four H100s.

Work that took several days now finishes in a few hours and can screen hundreds of defect-host combinations. Perdew's Jacob's ladder runs from (semi-)local LDA and GGA through meta-GGAs and hybrids to double hybrids and RPA, each rung closer to the heaven of chemical accuracy and an order of magnitude or more costlier. Discovered Materials calls that a grand challenge, after decades of picking a rung and living with its errors, and is optimistic LLMs can rapidly collapse it and bring hybrid, double-hybrid, and RPA-level accuracy to today's GGA speed.

Speeding up Quantum Espresso by 36x using FAQ

How much faster are DFPT phonons in the patched Quantum ESPRESSO?

Claude Fable 5.2's phonon code is roughly 36x faster than stock Quantum ESPRESSO on the same GPU, a geometric mean over 13 cases, and 14x faster than stock CPU on the 12 cases with a CPU reference. Wall-clock time for that benchmark suite fell from 3.3 hours to under 4 minutes.

What hybrid-functional speedup did Fable 5.2 record?

The geometric mean is roughly 9x. Same-path speedups in the hybrid table run from 2.5x on C60 B3LYP (93.5 to 37.5) to 32x on NiO AFM HSE (4015 to 124.7), and the optimized default on that NiO case reaches 66x (60.8). Multi-GPU support was added even though it had not been requested.

Which hybrid cases cannot run on stock four-GPU Quantum ESPRESSO?

The stock four-GPU column says "cannot run" for MgO PBE0 vc-relax, Si-216 PBE0, 64 H2O PBE0 MD, and C60 B3LYP. The optimized four-GPU path lists 6.1, 26.5, 118.7, and 22.7 for those cases. Other rows do report stock four-GPU times, including Si HSE at 21.3, GaAs HSE at 186.5, and NiO AFM HSE at 1237.

How fast is the NV-center phonon calculation in diamond?

For a negatively charged nitrogen-vacancy center in a 63-atom supercell, the phonon run fell from 77 seconds on stock GPU Quantum ESPRESSO to 6 seconds, about 13x. Row nv64_nc_lsda_gamma lists 77.2 and 6.1 (12.7x versus stock GPU) against a stock CPU time of 178.9 (29x), for 4 LSDA modes. The same system can run at hybrid accuracy on four H100s, which turns a multi-day workflow into a few hours.

Where is the patched Quantum ESPRESSO, and do old inputs still work?

Discovered Materials published the open-source patch as the GitHub repository discovered-materials/dm_qe. The release keeps only changes that are faster and that match reference results from stock Quantum ESPRESSO. The phonon changes preserve backward compatibility with existing QE inputs and workflows.

Sources

Dillip Chowdary

Author

Dillip Chowdary

Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.

Related on Tech Bytes

Advertisement

5-min tech signal

Weekday briefing for engineers who skip the noise.

No spam · Unsubscribe anytime

Advertisement

✈️ CareerPilot

Your AI job-search copilot

Match your resume against live Ashby, Greenhouse & Lever openings — fit scores, job-specific resume optimization and email alerts.

Find matching jobs →

Free Tools

Browse all tools →