# A Graph-Based Algorithm for Computing Matrix Elements of Arbitrary Operators between Configuration State Functions

**Authors:** Ignacio Fdez. Galván, Mitra Rooein, Roland Lindh

PMC · DOI: 10.1021/acs.jpca.5c08310 · The Journal of Physical Chemistry. a · 2026-02-18

## TL;DR

A new graph-based algorithm efficiently computes matrix elements for quantum chemistry calculations using configuration state functions.

## Contribution

A general and efficient graph-based algorithm for computing matrix elements between configuration state functions.

## Key findings

- The algorithm achieves machine-level precision in numerical tests.
- It outperforms explicit determinant expansion by several orders of magnitude.
- The method enables new possibilities for CSF-based quantum chemistry implementations.

## 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.

## Full-text entities

- **Genes:** CSF2 (colony stimulating factor 2) [NCBI Gene 1437] {aka CSF, GMCSF}, MAPT (microtubule associated protein tau) [NCBI Gene 4137] {aka DDPAC, FTD1, FTDP-17, MAPTL, MSTD, MTBT1}
- **Chemicals:** 1beta   a 7beta (-), S (MESH:D013455), N (MESH:D009584), O (MESH:D010100)

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12969370/full.md

## Figures

3 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12969370/full.md

## References

31 references — full list in the complete paper: https://tomesphere.com/paper/PMC12969370/full.md

---
Source: https://tomesphere.com/paper/PMC12969370