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.
Attributes
The molecular orbitals included in the active space.
The coordinates of the atoms in the molecule.
The basis set, e.g.
"sto-6g".The CCSD energy.
The CCSD t1 amplitudes.
The CCSD t2 amplitudes.
The CISD energy.
The CISD state vector.
The dipole integrals.
The DMRG energy.
The FCI energy.
The FCI state vector.
The Hamiltonian defined by the molecular data.
The Hartree-Fock energy.
Hartree-Fock canonical orbital coefficients in the AO basis.
Hartree-Fock canonical orbital occupancies.
Molecular orbital coefficients in the AO basis.
Molecular orbital occupancies.
The PySCF Mole class for this molecular data.
The MP2 energy.
The MP2 t2 amplitudes.
The orbital symmetries.
A PySCF SCF class for this molecular data.
The SCI energy.
The SCI state vector coefficients, spin alpha strings, and spin beta strings.
The spin of the molecule.
The symmetry of the molecule.
The core energy.
The one-body integrals.
The two-body integrals in compressed format.
The number of spatial orbitals.
The numbers of alpha and beta electrons.
-
sci_vec:
tuple[ndarray,ndarray,ndarray] |None= None¶ The SCI state vector coefficients, spin alpha strings, and spin beta strings.
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.
- static from_fcidump(file)[source]¶
Initialize a MolecularData from an FCIDUMP file.
- Parameters:
- Return type:
- static from_json(file, compression=None)[source]¶
Load a MolecularData from a (possibly compressed) JSON file.
- Parameters:
- Return type:
Returns: The MolecularData object.
- static from_scf(hartree_fock, active_space=None)[source]¶
Initialize a MolecularData object from a Hartree-Fock calculation.
- Parameters:
- Return type:
- run_ccsd(t1=None, t2=None, *, store_t1=False, store_t2=False)[source]¶
Run CCSD and store results.
- Return type:
-
sci_vec: