Fcidump Module
FCIDUMP file parser and coefficient factory builder.
Reads molecular integrals in the standard FCIDUMP format (Knowles & Handy, 1989)
used by MOLPRO, PySCF, Psi4, and other quantum chemistry packages. Produces a
coefficientFactory function compatible with computeHamiltonianWith.
Index convention: FCIDUMP files use 1-based indices with zero as a sentinel.
Two-electron integrals are stored in chemist's notation (ij|kl).
The parser converts to 0-based indices internally.
Integral notation: The chemist's integral (ij|kl) relates to the
physicist's integral ⟨pq|rs⟩ by ⟨pq|rs⟩ = (pr|qs).
The coefficient factory performs this conversion so that the Hamiltonian
module assembles the correct second-quantized Hamiltonian.
Types
| Type | Description |
|
Parsed FCIDUMP data containing molecular integrals and metadata. |
Functions and values
| Function or value |
Description
|
Full Usage:
parse content
Parameters:
string
-
The full text content of an FCIDUMP file.
Returns: FcidumpData
A FcidumpData record with parsed integrals and metadata.
|
Parse an FCIDUMP file from its text content.
Handles both Indices are converted from 1-based (FCIDUMP) to 0-based internally. Two-electron integrals are fully symmetrized (8-fold permutation symmetry). One-electron integrals are symmetrized: h[i,j] = h[j,i].
|
Full Usage:
parseToFactory content
Parameters:
string
-
The full text content of an FCIDUMP file.
Returns: (string -> Complex option) * float * int
A tuple of (coefficientFactory, coreEnergy, norb) where norb is the
number of spatial orbitals (use as the n parameter to
computeHamiltonianWith).
|
Parse an FCIDUMP file and return a ready-to-use coefficient factory.
|
Full Usage:
parseToSpinOrbitalFactory content
Parameters:
string
-
FCIDUMP file content (spatial orbitals).
Returns: (string -> Complex option) * float * int
A tuple of (factory, coreEnergy, numSpinOrbitals).
Use numSpinOrbitals as the n parameter to
computeHamiltonianWith.
|
Parse a spatial-orbital FCIDUMP and return a spin-orbital coefficient factory.
|
Full Usage:
toCoefficientFactory data
Parameters:
FcidumpData
-
Parsed FCIDUMP data.
Returns: string -> Complex option
A coefficient factory function string → Complex option.
|
Build a coefficient factory from parsed FCIDUMP data.
The returned function is compatible with computeHamiltonianWith and the Skeleton API. Convention mapping: The Hamiltonian module assembles
The nuclear repulsion energy is not included in the factory output. Add it separately as an identity-weighted term if needed.
|
Full Usage:
toSpinOrbitalFactory data
Parameters:
FcidumpData
-
Parsed spatial-orbital FCIDUMP data.
Returns: (string -> Complex option) * int
A coefficient factory for spin-orbital indices, and the number of spin-orbitals.
|
Build a spin-orbital coefficient factory from spatial-orbital FCIDUMP data.
Standard FCIDUMP files from RHF/ROHF calculations contain spatial-orbital integrals. Fermion-to-qubit encodings operate on spin-orbitals, where each spatial orbital p maps to spin-orbitals 2p (α) and 2p+1 (β). Spin-orbital mapping:
The returned factory is indexed by spin-orbital indices and should be used
with
|