PySCF¶
The CPU selected-CI reference solver, with native spin projection, multiple roots and full RDMs. It supports real integrals and a TPB-style product basis. (Sun et al., 2020, J. Chem. Phys.); see upstream code.
Usage¶
from sci_solvers.energy_solvers.factory import create_solver
from sci_solvers.hamiltonian import HamiltonianData
ham = HamiltonianData.from_fcidump("FCIDUMP")
solver = create_solver("pyscf", hamiltonian=ham, symmetrize_spin=True, nroots=1)
results = solver.compute_energy(ci_strs_batches=[(strs_a, strs_b)])
strs_a and strs_b are independent alpha/beta string sets. spin_sq selects a
spin target per call; spin_shift controls the penalty strength.
with_rdm2=False omits the stored 2-RDM. For multiple roots, use
sci_solver_callable_eigen_states.
See the PySCFSolver API.