SHarmonic: A fast and accurate implementation of spherical harmonics for electronic-structure calculations

X Xavier Andrade (Quantum Simulations Group, Lawrence Livermore National Laboratory 1 , Livermore, California 94550,) J Jacopo Simoni (Department of Materials Science and Engineering, University of Wisconsin 2 , Madison, Wisconsin 53706,) Y Yuan Ping T Tadashi Ogitsu (Quantum Simulations Group, Lawrence Livermore National Laboratory 1 , Livermore, California 94550,) A Alfredo A. Correa (Quantum Simulations Group, Lawrence Livermore National Laboratory 1 , Livermore, California 94550,)

Abstract

The authors present SHarmonic, a new implementation of the spherical harmonics targeted for electronic-structure calculations. Their approach is to use explicit formulas for the harmonics written in terms of normalized Cartesian coordinates. This approach results in a code that is as precise as other implementations while being at least one order of magnitude more computationally efficient. The library can run on graphics processing units as well, achieving an additional order of magnitude in execution speed. This new implementation is simple to use and is provided under an open-source license; it can be readily used by other codes to avoid the error-prone and cumbersome implementation of the spherical harmonics.

Article Details

Volume / Issue Vol. 164, Issue 8
Published February 28, 2026
ISSN 0021-9606
Publisher American Institute of Physics

Journal Info

The Journal of Chemical Physics

American Institute of Physics

ISSN: 0021-9606 Physical Sciences

Authors (5)

X

Xavier Andrade

Quantum Simulations Group, Lawrence Livermore National Laboratory 1 , Livermore, California 94550,

J

Jacopo Simoni

Department of Materials Science and Engineering, University of Wisconsin 2 , Madison, Wisconsin 53706,

Y

Yuan Ping

T

Tadashi Ogitsu

Quantum Simulations Group, Lawrence Livermore National Laboratory 1 , Livermore, California 94550,

A

Alfredo A. Correa

Quantum Simulations Group, Lawrence Livermore National Laboratory 1 , Livermore, California 94550,