ffsim.MolecularData¶
- class ffsim.MolecularData(*, core_energy, one_body_integrals, two_body_integrals, norb, nelec, atom=None, basis=None, spin=None, symmetry=None, mo_coeff=None, mo_occ=None, active_space=None, hf_energy=None, hf_mo_coeff=None, hf_mo_occ=None, mp2_energy=None, mp2_t2=None, ccsd_energy=None, ccsd_t1=None, ccsd_t2=None, cisd_energy=None, cisd_vec=None, sci_energy=None, sci_vec=None, fci_energy=None, fci_vec=None, dmrg_energy=None, dipole_integrals=None, orbital_symmetries=None)[source]¶
Bases:
objectClass for storing molecular data.
- one_body_integrals¶
The one-body integrals.
- Type:
np.ndarray
- two_body_integrals¶
The two-body integrals in compressed format.
- Type:
np.ndarray
- mo_coeff¶
Molecular orbital coefficients in the AO basis.
- Type:
np.ndarray | None
- mo_occ¶
Molecular orbital occupancies.
- Type:
np.ndarray | None
- hf_mo_coeff¶
Hartree-Fock canonical orbital coefficients in the AO basis.
- Type:
np.ndarray | None
- hf_mo_occ¶
Hartree-Fock canonical orbital occupancies.
- Type:
np.ndarray | None
- ccsd_t2¶
The CCSD t2 amplitudes.
- Type:
np.ndarray | tuple[np.ndarray, np.ndarray, np.ndarray] | None
- cisd_vec¶
The CISD state vector.
- Type:
np.ndarray | None
- sci_vec¶
The SCI state vector coefficients, spin alpha strings, and spin beta strings.
- Type:
tuple[np.ndarray, np.ndarray, np.ndarray] | None
- fci_vec¶
The FCI state vector.
- Type:
np.ndarray | None
- dipole_integrals¶
The dipole integrals.
- Type:
np.ndarray | None
Methods
from_fcidump(file)Initialize a MolecularData from an FCIDUMP file.
from_json(file[, compression])Load a MolecularData from a (possibly compressed) JSON file.
from_scf(hartree_fock[, active_space])Initialize a MolecularData object from a Hartree-Fock calculation.
run_ccsd([t1, t2, store_t1, store_t2])Run CCSD and store results.
run_cisd(*[, store_cisd_vec])Run CISD and store results.
run_fci(*[, store_fci_vec])Run FCI and store results.
run_mp2(*[, store_t2])Run MP2 and store results.
run_sci(*[, store_sci_vec])Run SCI and store results.
to_fcidump(file)Save data to disk in FCIDUMP format.
to_json(file[, compression])Serialize to JSON format, optionally compressed, and save to disk.
Attributes
dmrg_energyhamiltonianThe Hamiltonian defined by the molecular data.
moleThe PySCF Mole class for this molecular data.
scfA PySCF SCF class for this molecular data.