A graph-based algorithm for computing matrix elements of arbitrary operators between configuration state functions

12 November 2025, Version 1
This content is an early or alternative research output and has not been peer-reviewed by Cambridge University Press at the time of posting.

Abstract

We present a graph-based algorithm for computing matrix elements of arbitrary second-quantized operators between configuration state functions (CSFs) defined in a genealogical scheme. Unlike Slater determinants, CSFs are spin-adapted and offer a more compact representation of many-electron wave functions, but their use in quantum chemical methods is often hindered by the complexity of evaluating matrix elements. Our approach leverages a graphical representation to efficiently encode the expansion of CSFs in terms of Slater determinants without explicitly constructing the full expansion. The algorithm applies operator sequences directly to the graph and computes overlaps via graph traversal, yielding matrix elements, and is completely general for any operator sequence. Numerical tests demonstrate that the method achieves machine-level precision and outperforms explicit determinant expansion by several orders of magnitude. This framework opens new possibilities for CSF-based implementations in selected and stochastic configuration interaction methods.

Supplementary materials

Title
Description
Actions
Title
Implementation and test data
Description
Python implementation of the algorithm and lists of matrix elements tested.
Actions

Comments

Comments are not moderated before they are posted, but they can be removed by the site moderators if they are found to be in contravention of our Commenting and Discussion Policy [opens in a new tab] - please read this policy before you post. Comments should be used for scholarly discussion of the content in question. You can find more information about how to use the commenting feature here [opens in a new tab] .
This site is protected by reCAPTCHA and the Google Privacy Policy [opens in a new tab] and Terms of Service [opens in a new tab] apply.