Skip to content

SBD

RIKEN's selected-basis diagonalizer, called through the in-process sbd-eigensolver Python package. It supports real TPB and GDB inputs and returns the ground-state energy, CI amplitudes and occupancies. It does not provide full RDMs or spin projection. (Doi et al., 2026, arXiv); see code and Python bindings.

Installation

SBD compiles against local MPI and BLAS libraries. Prepare the toolchain:

bash scripts/energy_solvers/build_sbd.sh
source build/energy_solvers/sbd_env.sh
uv sync --extra sbd

On an NVIDIA GPU node, use uv sync --extra sbd-gpu. This selects a CUDA-12 PyTorch runtime compatible with the SBD GPU backend; loading CUDA-13 PyTorch first can produce incorrect zero energies. GPU compilation requires the NVIDIA HPC SDK.

Usage

from sci_solvers.energy_solvers.factory import create_solver
from sci_solvers.hamiltonian import HamiltonianData

ham = HamiltonianData.from_fcidump("FCIDUMP")
solver = create_solver("sbd", symmetrize_spin=False, hamiltonian=ham, mode="tpb", device="gpu")
results = solver.compute_energy(ci_strs_batches=[(strs_a, strs_b)])

TPB reads independent alpha/beta sets; GDB reads parallel determinant pairs. device="cpu" is the default; "gpu" selects Thrust. sbd_config supplies native solver settings, such as {"eps": 1e-8, "max_it": 100}. spin_sq must be None; only one root is supported.

A plain Python launch uses single-process MPI. Multi-node execution uses mpirun or srun, with shared input files and CUDA-aware MPI for GPU runs. See the runnable GPU example for launch commands, and the API for all options.