Skip to main content

openWFN

Wavefunction analysis, made reproducible.

A unified post-processing toolkit for turning quantum-chemistry calculations into traceable, reproducible, review-ready results.

PyPI Python Tests Documentation License: MIT

Get started · CLI reference · Validation · Citation


openWFN connects scientific analysis, automation, validation evidence, and research output through one typed calculation model. It works locally through the command line or Python, from individual calculations and high-throughput collections.

Analyze · Automate · Validate · Publish

  • Analyze molecular structure, orbitals, electron density, atomic populations, electrostatic potential, and derived properties.
  • Automate with stable CLI commands, a typed Python API, structured results, resumable batches, and JSON/CSV exports.
  • Validate using explicit capability status, parser provenance, transformations, numerical controls, and fixture-backed evidence.
  • Publish durable reports, figures, cube files, structures, and batch manifests.

Stable release 0.10.1

openWFN 0.10.1 hardens the 0.10 everyday-QC release around reproducible validation evidence and published-package verification without changing the scientific numerical kernels. Install the exact release with python -m pip install "openwfn[interop,resources]==0.10.1". See the release notes.

The release includes 11 real molecular examples, packages the same corpus with the wheel, and retains the Experimental coverage audit. The audit retains convergence failures and unsupported legacy entry points. Validated methods remain scoped to their documented reference evidence; package stability does not change individual scientific validation labels.

Capability Scientific controls
Signed MO cubes, arbitrary MO/HOMO/LUMO, alpha/beta AO/grid norm diagnostics, bounded chunks, input-hash cube comments
Mulliken/Löwdin MO composition Named convention, atom/shell/angular partitions, raw norm and overlap conditioning
Spin-corrected Mayer bond orders Total/spin conservation, density provenance, full matrix and filtered pairs
Orbital-energy DOS/PDOS Gaussian sigma/range controls, spin channels, projection sum rules, CSV/JSON/PNG/SVG

See the design and roadmap, validation and limitations, and method documentation. Native Hirshfeld and later spectroscopy/real-space phases are not implemented; the validation document records their scientific gates. Existing CLI/API/result schemas are retained.

Install

openWFN supports Python 3.10–3.13.

Install the stable release:

python -m pip install --upgrade openwfn
openwfn --version

Install the exact release when reproducing research:

python -m pip install openwfn==0.10.1

First analysis

openwfn examples install ./openwfn-examples
openwfn ./openwfn-examples/water.fchk doctor
openwfn ./openwfn-examples/water.fchk summary
openwfn ./openwfn-examples/water.fchk orbitals frontier

The same install command also places the versioned 11-molecule release corpus in ./openwfn-examples/everyday-qc/ for reproducible workflow checks.

For your own calculation, replace the example path:

openwfn molecule.fchk summary

Run a collection of calculations with resumable, structured output:

openwfn batch ./calculations \
  --analyses summary,frontier \
  --output-dir ./results \
  --resume

Use JSON when another program will consume the result:

openwfn --format json --output summary.json molecule.fchk summary

Scientific correctness safeguards

openWFN uses source-faithful electronic metadata wherever Gaussian FCHK provides it. ECP and ghost centers use the file's effective nuclear charges instead of blindly substituting atomic numbers, and density validation prefers the source electron-count records. Population and density conservation failures return partial results with warnings rather than presenting inconsistent numbers as clean successes.

For unrestricted calculations, request the spin-complete frontier view with openwfn FILE orbitals frontier --spin all; batch workflows support the same spin selection. Post-HF files explicitly report when the available SCF density is being analyzed rather than implying that a correlated density was used.

The default density spacing of 0.15 bohr is an accuracy/performance tradeoff, not a universal convergence guarantee. Check the returned conservation status and converge spacing/padding for the system and property being reported.

Capability map

Area Current capability Status
Parsing and structure FCHK records, molecular state, geometry, topology Stable
Orbitals Alpha/beta and spin-complete frontier energies and HOMO–LUMO information Stable interface; fixture-backed regressions
Population Mulliken and symmetric Löwdin populations and charges Stable interface; conservation checked and fixture-scoped
Density Total, alpha, beta, and spin integration and cube export Validated only for the named active validation fixtures and tolerances
Electrostatic potential Nuclear and charge-model point ESP Stable interface; special-case regressions included
Gaussian-integral electronic/total ESP AO-density Coulomb integrals with independent references Validated for the eleven-case set
Grid electronic/total ESP Numerical Coulomb evaluation Experimental
Automation Versioned results, batch manifests, discovery, resume, JSON and CSV Stable
Research reports HTML/Markdown reports, tables, figures, and structures Stable
Interactive workbench Offline workspaces, surfaces and signed geometry readouts Stable interface; eleven-molecule Chromium evidence; field diagnostics retained
Additional input formats Optional IOData ingestion and file-specific capabilities Stable fixture contract; requires the interop extra
QC output properties Source-reported extraction with optional cclib Experimental; not a complete wavefunction
Local MCP Read-only stdio tools for selected registered analyses Stable local interface; real CLI/API/batch/report parity; no remote service

“Validated” is deliberately scoped. Review the validation evidence and limitations before research use.

Input support

Version 0.10.1 includes optional interoperability support and resource/export safety fixes. See the 0.10.1 release notes. Install python -m pip install "openwfn[interop]==0.10.1" for additional formats. The optional reader is pinned to IOData 1.0.1 and has a 25-format ingestion matrix with capability discovery. Format ingestion does not imply that every file has orbitals, density, or an applicable analysis. The cross-format validation compares five water representations from one originating calculation; it is not broad independent scientific validation.

Gaussian formatted-checkpoint (.fchk) remains the preferred full-wavefunction path. Gaussian .chk is a proprietary binary format; openWFN calls Gaussian's separately installed formchk utility and does not decode it directly.

XYZ, MOL/SDF, and PDB inputs provide structure-only records. The optional backend also reads structure, periodic, grid, and integral-only formats; use openwfn FILE capabilities to check the actual data before analysis.

In openWFN 0.10.1, use --input-format FORMAT_ID when a filename is ambiguous (for example, a GAMESS .dat). A structure without a complete wavefunction gets a partial summary; it does not get inferred orbitals, density, or electron counts. Mixed batches can use --format-map and record unsupported files with reasons in the manifest. A batch exits nonzero if any input fails or is unsupported. See the batch guide for the exact contract.

openwfn calculation.chk formchk calculation.fchk
openwfn calculation.fchk convert --to sdf --output molecule.sdf
openwfn calculation.fchk density cube density.cube

Documentation

Output properties preview

Version 0.10.1 can extract source-reported properties from QC text output through the optional cclib reader:

python -m pip install "openwfn[outputs]==0.10.1"
python -m openwfn.cli --format json calculation.out properties

Python exposes the same result through openwfn.read_output(path). See the output properties preview for units, provenance, missing-data behavior and the current Experimental validation boundary.

Security and privacy

Computations are local, but input and generated artifacts can contain unpublished research. Never post private checkpoint files, credentials, personal filesystem paths, or license details in public issues. Read the security and data-privacy guide.

Development

python -m pip install -e ".[test,docs]"
python -m pytest
python -m ruff check .
python scripts/run_validation.py
python scripts/check_docs.py --root .
python -m mkdocs build --strict

Contributions should include tests, documented units and assumptions, and validation evidence appropriate to the claim. See Contributing.

Project policies: Code of Conduct · Security · Maintainers · Contributors · Roadmap

Citation and license

Cite the exact version used and the project repository; see the citation guide. openWFN is released under the MIT License.

Author: Muhammed Shah Shaji

Development resource checks and their measured scope are documented in Runtime and resource validation.

Metadata

Release files for openwfn 0.10.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openwfn 0.10.1
File Size Uploaded
openwfn-0.10.1.tar.gz 419.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for openwfn 0.10.1
File Interpreter ABI Platform
openwfn-0.10.1-py3-none-any.whl Python 3 none any Details

Total release size: 846.0 kB

Release files / openwfn-0.10.1.tar.gz

Download URL openwfn-0.10.1.tar.gz
Size 419.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a2f35561ad28439260e1ab48f2661e1ae08b73fb15f709a6de8e62caf2a39494
BLAKE2b-256 checksum
How to use checksums
82843a1572a7af303f59a3870199823285549a87a21dff8c3cba7cf0833433be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Release files / openwfn-0.10.1-py3-none-any.whl

Download URL openwfn-0.10.1-py3-none-any.whl
Size 426.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01349e38ebd32a387a0a4de83a713feff1f59af56c534e43c01284b4812e16bd
BLAKE2b-256 checksum
How to use checksums
6ab60918c17a186286ccaebeabe208e1171f3b7a3af0f6216053be5ff1c24e69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page