pyscf / pyscf-forge

pyscf-forge is a staging ground for code that may be suitable for pyscf-core
Apache License 2.0
27 stars 23 forks source link

MC-PDFT Hybrid Energy Decomposition #76

Closed matthew-hennefarth closed 1 month ago

matthew-hennefarth commented 1 month ago

Address #65.

Now get_energy_decomposition returns e_nuc, e_1e, e_coul, e_otx/e_otxc, e_otc, e_ncwfn, but if the energy is computed with a hybrid functional, it returns the properly scaled e_otx/e_otxc, e_otc, e_ncwfn terms such that the energy of each state is the sum of all elements returned.

Note that get_energy_decomposition for non-hybrid functional returns the full e_ncwfn and the energy of each state is equal to the sum of elements except e_ncwfn (prior behavior).