Skip to content
Mehdi Hassanbeigi
Scientific ComputingVerified

NUFFT for Two-Electron Repulsion Integrals

Computing a core quantum-chemistry bottleneck with non-uniform FFTs on adaptive grids — far more accurate with far fewer points.

NUFFT for Two-Electron Repulsion Integrals

Problem

Two-electron repulsion integrals scale as O(N⁴) and contain a Coulomb singularity that breaks direct numerical integration.

Technical solution

A modular Python framework: Gaussian-type orbital evaluation, Becke grid generation, orbital products, NUFFT-based Fourier transforms and integral evaluation in Fourier space, where the singular kernel becomes the well-behaved 4π/k². Every component is validated against analytical references computed with the Boys function.

My contribution

Sole author: problem definition, implementation, experiments, evaluation and documentation.

Challenges

Handling the Coulomb singularity, designing the grids and validating each numerical stage independently.

Results

  • NUFFT on Becke grids: relative error 4.54 × 10⁻⁶ with 7,760 grid points.
  • Uniform-grid FFT: relative error 1.05 × 10⁻¹ with 884,736 points — 114 times more points for a far worse result.
  • Direct real-space integration fails because of the singularity.
Adaptive Becke-type integration grid around a water molecule, dense near the nuclei
Adaptive Becke-type integration grid around a water molecule, dense near the nuclei
Measured accuracy versus number of grid points: NUFFT on Becke grids compared with a uniform-grid FFT
Measured accuracy versus number of grid points: NUFFT on Becke grids compared with a uniform-grid FFT
Why the integral is computed in Fourier space: the singular kernel becomes a smooth integrand
Why the integral is computed in Fourier space: the singular kernel becomes a smooth integrand

More projects

Finite Element Heat Transfer Solver

Scientific Computing2025

Finite Element Heat Transfer Solver

A C++20 finite element solver for 2D steady and transient heat conduction with nonlinear materials, parallel assembly and an interactive Qt interface.

4.2× faster assembly with OpenMP on a quad-core machine for meshes above 5,000 nodes.

View details
LPBF Melt Pool Simulation and ML Surrogate

Scientific Computing2025

LPBF Melt Pool Simulation and ML Surrogate

COMSOL models of laser powder bed fusion for Inconel 718, plus a machine-learning surrogate for fast exploration — with its limits stated plainly.

The 3D model predicts a peak temperature of 3,452 K — keyhole regime; the 2D model underestimates it by about 30% and misclassifies the regime.

View details
Data Assimilation, Climate and Ecological Dynamics

Scientific Computing

Data Assimilation, Climate and Ecological Dynamics

Three MATLAB studies of nonlinear dynamical systems: data assimilation for the chaotic Lorenz system, bistability in an energy-balance climate model, and integrator accuracy for predator–prey dynamics.

Data assimilation tracks the Lorenz system with over 99% correlation despite chaos.

View details

Let’s scope your project

Share what you need. You will receive questions, an approach and a quote — no obligation.