iodata.formats.fcidump module¶
Molpro 2012 FCIDUMP file format.
Notes
This function works only for restricted wave-functions.
One- and two-electron integrals are stored in chemists’ notation in an FCIDUMP file, while IOData internally uses Physicist’s notation.
Keep in mind that the FCIDUMP format changed in MOLPRO 2012, so files generated with older versions are not supported.
-
dump_one
(f, data)[source]¶ Dump a single frame into a Molpro 2012 FCIDUMP file.
- Parameters
f (
Textio
) – A writeable file object.data (
IOData
) – An IOData instance which must have the following attributes initialized:one_ints
,two_ints
. If the following attributes are present, they are also dumped into the file:core_energy
,nelec
,spinpol
.
Notes
The dictionary
one_ints
must contain a fieldcore_mo
. Similarly,two_ints
must containtwo_mo
.
-
load_one
(lit)[source]¶ Load a single frame from a Molpro 2012 FCIDUMP file.
- Parameters
lit (
LineIterator
) – The line iterator to read the data from.- Returns
A dictionary with IOData attributes. The following attributes are guaranteed to be loaded:
core_energy
,one_ints
,nelec
,spinpol
,two_ints
.- Return type
data
Notes