# How do the various programs read or write integrals in FCIDUMP format?

The FCIDUMP format was created by Peter Knowles and Nick Handy circa 1989 and now allows many electronic structure software packages to interact with each other.

For example imagine we want to calculate the 1- and 2-electron integrals with OpenMOLCAS (likely the fastest and most general open-source software for calculating integrals) then run a rather special electronic structure method like FCIQMC with those integrals (FCIQMC is best done with the NECI software written mainly by the people that invented and developed FCIQMC). In this case the integrals will be calculated in OpenMOLCAS, printed to an FCIDUMP file, then the software NECI will read the integrals from that file.

The following programs are able to interact with FCIDUMP files in some way:

• MOLPRO (can read and write)
• PySCF (can read and write)
• (Open)MOLCAS (can write)
• ARROW (can read and modify)
• DALTON (can write)
• DIRAC (can write)
• GAMESS (can write, with a plug-in)
• DICE (can read and maybe modify)
• BLOCK (can read and maybe modify)
• CheMPS2 (can read and maybe modify)
• xacc (can read)
• anymore you wish to add

The following can interact with the standard FCIDUMP format of 1989, but can also support generalizations of it:

• NECI (can read, and modify standard FCIDUMP files, and can write some 3-body integrals)
• BAGEL (can write complex-valued integrals for 4-component relativistic calculations)
• HANDE (can include more 1-electron integrals, including orbital energies, can list UHF/RHF)
• Psi4 (supports the generalized format of HANDE)

For some of these programs, like MOLPRO, FCIDUMP format is supported natively and it’s quite straightforward to figure out how to read/write FCIDUMP files, by browsing the software’s manual. However other programs need an extra plug-in, and/or have some caveats, and/or require slightly non-trivial work to grease the wheels to support FCIDUMP formatted integrals, and/or the support is not explained in the manual. In these cases, how does one read or write integrals in FCIDUMP format?

(Please write only one answer per software package).

Matter Modeling Asked on December 20, 2021

# Psi4

Psi4 provides functions for reading and writing FCIDUMP files from wavefunction objects. Using Psi4 as a Python module, these look something like:

import psi4

#Writing (default fname is "INTDUMP")
E, wfn = psi4.energy('scf', return_wfn=True)
psi4.fcidump(wfn)

##Returns dict of numerous properties including 1e ("hcore") and 2e ("eri") integrals
values=psi4.fcidump_from_file("INTDUMP")


Answered by Tyberius on December 20, 2021

## Related Questions

### LAMMPS code that I wrote not behaving as expected. Some issue with the group & region commands

1  Asked on December 7, 2021 by saismaran-s-b-pes1201701189pes

### Standard values for level of convergence

1  Asked on December 7, 2021

### What are some codes available for Dynamical Mean Field Theory (DMFT)?

3  Asked on December 4, 2021

### What are the types of Quantum Molecular Dynamics (QMD)?

1  Asked on December 4, 2021

### More matter modeling codes or better codes?

2  Asked on December 2, 2021

### Property related with Berry curvature: $Omega_{n,munu}=-Omega_{n,numu}$

1  Asked on December 2, 2021

### Are there properties that can only be calculated with a given set-up?

1  Asked on November 24, 2021

### What thermodynamic data is collected in order to build a CALPHAD model?

3  Asked on November 18, 2021

### Is there a way to obtain solution-phase dielectric constants?

1  Asked on November 18, 2021 by nathanielng

### What measured quantity can be associated to the value of the J parameter in the Heisenberg/Ising hamiltonians?

1  Asked on November 15, 2021

### How can I calculate the Poisson ratio of an amorphous material with LAMMPS?

1  Asked on November 12, 2021

### Examples of matter modeling in fiction

1  Asked on November 10, 2021

### How is SIESTA and TranSIESTA different from plane wave DFT codes?

1  Asked on November 10, 2021

### Supercomputers around the world, which allow access for researchers outside the country

1  Asked on November 10, 2021

### What ab initio methods are better suited to modelling disorder in materials?

3  Asked on November 7, 2021

### How to interpret molden AO/MO coefficients?

1  Asked on November 7, 2021

### How do I extract a molecular structure from a CIF file?

7  Asked on November 7, 2021

### Frameworks for materials modeling at the mesoscopic scale

2  Asked on November 4, 2021

### How to understand the time-reversal symmetry in graphene?

1  Asked on November 4, 2021

### How big should a supercell be in phonon calculations?

3  Asked on August 19, 2021

### Ask a Question

Get help from others!