Skip to main content
QUICK REVIEW

[Paper Review] cuGUGA: Operator-Direct Graphical Unitary Group Approach Accelerated with CUDA

Zihan Pengmei|arXiv (Cornell University)|Jan 25, 2026
Parallel Computing and Optimization TechniquesComputer Science0 citations
TL;DR

cuGUGA implements an operator-direct GUGA CI solver in a CSF basis and accelerates it on CUDA GPUs, achieving near-exact energies and substantial speedups for CASCI/CASSCF workloads, especially at smaller active spaces.

ABSTRACT

We present cuGUGA, an operator-direct graphical unitary group approach (GUGA) configuration interaction (CI) solver in a spin-adapted configuration state function (CSF) basis. Dynamic-programming walk counts provide constant-time CSF ranking/unranking, and pretabulated segment factors enable constant-time evaluation of coupling coefficients. Two-electron contributions are organized through an intermediate-weight formulation that separates sparse generator enumeration from integral contraction and supports both dense and density-fitted/Cholesky backends. We further map the same primitives to GPUs by implementing the irregular DRT traversal and accumulation in custom CUDA kernels while delegating contractions to CUDA libraries. The implementation reproduces reference energies at the 10^{-11} Eh level and matches CPU/GPU sigma-vectors to 10^{-14}. On an RTX 4090, the GPU backend provides up to ~10x speedup over the CPU backend for smaller active spaces and multifold speedups on representative CASCI kernels. Speedup decreases as the active space grows because the workload becomes increasingly dominated by FP64 GEMM, which is not strongly accelerated on consumer GPUs. In addition, the cuGUGA CPU backend generally delivers >2x speedup over PySCF's determinant backend and >4x speedup over PySCF CSF backend.

Motivation & Objective

  • Motivate accurate multireference electronic structure methods for strongly correlated systems.
  • Develop a spin-adapted CSF-based CI solver that leverages a CSF-direct, graph-sparse formulation.
  • Enable efficient GPU implementation by separating CSF-coupling enumeration from integral contractions and mapping to CUDA.

Proposed method

  • Represent CSFs as root-to-leaf walks on the DRT/Shavitt graph and use dynamic programming to compute suffix walk counts W(v) for CSF ranking/unranking.
  • Use a two-level LUT to evaluate local segment factors S in constant time during segment-walks for E_pq actions.
  • Construct the operator-direct σ = Hc by enumerating sparse CSF couplings via the segment-walk neighbor oracle and contracting with integrals (dense or density-fitted/Cholesky).
  • Express the two-electron part using an intermediate-weight decomposition with C^(rs)_(μj) and g^(μj)_(pq) to separate generator enumeration from integral contraction.
  • Implement GPU mapping with flattened DRT tables, table-driven segment factors, batched Davidson iterations, and a count-scan-write strategy to handle irregular outputs.
  • Provide dense and DF/Cholesky backends for contractions and accumulate results on-device with double precision.
Figure 7: CASCI kernel timings for three representative systems (fixed Davidson budget; mean over three repeats). The GPU bar corresponds to the cuGUGA backend on an RTX 4090.
Figure 7: CASCI kernel timings for three representative systems (fixed Davidson budget; mean over three repeats). The GPU bar corresponds to the cuGUGA backend on an RTX 4090.

Experimental results

Research questions

  • RQ1Can the operator-direct GUGA formulation in a CSF basis reproduce reference energies with high accuracy?
  • RQ2What are the performance characteristics and speedups of the cuGUGA GPU backend relative to CPU backends and PySCF implementations across varying active spaces?
  • RQ3How do dense versus density-fitted/Cholesky backends compare in end-to-end CASCI/CASSCF workflows on GPUs?
  • RQ4To what extent can DAG-based CSF ranking/unranking and LUT-based segment factors enable scalable GPU execution for irregular graph traversals?
  • RQ5How close are GPU-generated σ-vectors to CPU references in terms of absolute and relative errors?

Key findings

  • CuGUGA reproduces reference energies at the 1e-11 Eh level and matches σ-vectors to 1e-14 (relative).
  • On an RTX 4090, the GPU backend achieves up to ~10× speedup over the CPU backend for smaller active spaces and substantial multipliers for CASCI kernels when feasible.
  • CPU backend of cuGUGA generally delivers ≳2× speedup over PySCF’s determinant backend and ≳4× speedup over PySCF’s CSF backend.
  • For larger active spaces, DF/Cholesky backends enhance performance by enabling efficient matrix-matrix contractions, reducing the dominance of GEMM bottlenecks.
  • The approach yields correct CASCI/CASSCF energies across benchmark cases (e.g., O3 in CAS(12,12) and ethylene CAS(2,2)) with cross-code consistency within the reported tolerances.
  • The irregular DRT traversal and segment-walk enumeration are implemented with count-scan-write on GPUs to handle variable output sizes efficiently.
Figure 8: Matvec (hop) timing breakdown for O 3 CAS(12,12) in the fixed-budget benchmark, comparing the cuGUGA CPU contract backend and the cuGUGA GPU backend. Bars are stacked by major phases.
Figure 8: Matvec (hop) timing breakdown for O 3 CAS(12,12) in the fixed-budget benchmark, comparing the cuGUGA CPU contract backend and the cuGUGA GPU backend. Bars are stacked by major phases.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.