Skip to content

Dice

The Dice heat-bath CI implementation, used here to diagonalize a fixed sampled subspace without selecting further determinants. It supports real integrals, multiple roots, CI amplitudes and occupancies; full RDMs are not returned. (Holmes et al., 2016; Sharma et al., 2017, J. Chem. Theory Comput.); see code and Qiskit wrapper.

Usage

Build the Dice binary first using the build scripts. It must be on PATH; MPI execution also requires mpirun.

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

ham = HamiltonianData.from_fcidump("FCIDUMP")
solver = create_solver(
    "dice", symmetrize_spin=False, hamiltonian=ham, nroots=1, mpirun_options="-n 16"
)
results = solver.compute_energy(ci_strs_batches=[(strs_a, strs_b)])

The input arrays specify the sampled subspace. spin_sq accepts only None or 0.0. temp_dir selects scratch storage and clean_temp_dir controls cleanup. For multiple roots, use sci_solver_callable_eigen_states.

See the DICESolver API.