Spherical harmonics provide a smooth, orthogonal, and symmetry-adapted basis to expand functions on a sphere, and they are used routinely in physical and theoretical chemistry as well as in different fields of science and technology, from geology and atmospheric sciences to signal processing and computer graphics. More recently, they have become a key component of rotationally equivariant models in geometric machine learning, including applications to atomic-scale modeling of molecules and materials. We present an elegant and efficient algorithm for the evaluation of the real-valued spherical harmonics. Our construction features many of the desirable properties of existing schemes and allows us to compute Cartesian derivatives in a numerically stable and computationally efficient manner. To facilitate usage, we implement this algorithm in sphericart, a fast C++ library that also provides C bindings, a Python API, and a PyTorch implementation that includes a GPU kernel.
Skip Nav Destination
Article navigation
14 August 2023
Research Article|
August 08 2023
Fast evaluation of spherical harmonics with sphericart
Special Collection:
Software for Atomistic Machine Learning
Filippo Bigi
;
Filippo Bigi
(Conceptualization, Formal analysis, Software, Writing – original draft, Writing – review & editing)
1
Laboratory of Computational Science and Modelling, Institute of Materials, École Polytechnique Fédérale de Lausanne
, Lausanne 1015, Switzerland
2
National Centre for Computational Design and Discovery of Novel Materials (MARVEL), École Polytechnique Fédérale de Lausanne
, 1015 Lausanne, Switzerland
Search for other works by this author on:
Guillaume Fraux
;
Guillaume Fraux
(Software, Writing – review & editing)
1
Laboratory of Computational Science and Modelling, Institute of Materials, École Polytechnique Fédérale de Lausanne
, Lausanne 1015, Switzerland
2
National Centre for Computational Design and Discovery of Novel Materials (MARVEL), École Polytechnique Fédérale de Lausanne
, 1015 Lausanne, Switzerland
Search for other works by this author on:
Nicholas J. Browning;
Nicholas J. Browning
(Software, Writing – review & editing)
3
Swiss National Supercomputing Centre (CSCS)
, 6900 Lugano, Switzerland
Search for other works by this author on:
Michele Ceriotti
Michele Ceriotti
a)
(Conceptualization, Formal analysis, Methodology, Resources, Software, Supervision, Writing – original draft, Writing – review & editing)
1
Laboratory of Computational Science and Modelling, Institute of Materials, École Polytechnique Fédérale de Lausanne
, Lausanne 1015, Switzerland
2
National Centre for Computational Design and Discovery of Novel Materials (MARVEL), École Polytechnique Fédérale de Lausanne
, 1015 Lausanne, Switzerland
a)Author to whom correspondence should be addressed: michele.ceriotti@epfl.ch
Search for other works by this author on:
a)Author to whom correspondence should be addressed: michele.ceriotti@epfl.ch
J. Chem. Phys. 159, 064802 (2023)
Article history
Received:
April 28 2023
Accepted:
July 12 2023
Citation
Filippo Bigi, Guillaume Fraux, Nicholas J. Browning, Michele Ceriotti; Fast evaluation of spherical harmonics with sphericart. J. Chem. Phys. 14 August 2023; 159 (6): 064802. https://doi.org/10.1063/5.0156307
Download citation file:
Sign in
Don't already have an account? Register
Sign In
You could not be signed in. Please check your credentials and make sure you have an active account and try again.
Sign in via your Institution
Sign in via your InstitutionPay-Per-View Access
$40.00