openfermion
Package to compile and analyze quantum algorithms for simulating fermionic systems.
What it is and what it does
OpenFermion is a Python package for quantum chemistry and fermionic system simulation on quantum computers. It provides data structures and algorithms to compile quantum circuits and analyze fermionic Hamiltonians, with built-in support for converting between fermionic and qubit representations. The package depends on cirq-core for quantum circuit operations, numpy and scipy for numerical computation, sympy for symbolic algebra, networkx for graph operations, and h5py for data I/O, plus pubchempy and requests for chemistry data retrieval.
The package is designed for researchers and developers working on quantum algorithms for electronic structure problems. It integrates with external plugins for high-performance simulation (OpenFermion-FQE), circuit compilation (Forest-OpenFermion, SFOpenBoson), and classical electronic structure packages (Psi4, PySCF, DIRAC, Q-Chem). Installation is straightforward via pip, though some plugins require Mac or Linux.
Use it for:
- Compile quantum circuits for simulating molecular electronic structure on quantum computers
- Convert fermionic Hamiltonians to qubit representations for NISQ devices
- Analyze and manipulate fermionic operators for quantum chemistry research
- Integrate quantum simulations with classical electronic structure packages via plugins
- Develop and test quantum algorithms for chemistry applications
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
OpenFermion compiles and analyzes quantum algorithms to simulate fermionic systems, providing data structures and tools for manipulating fermionic and qubit Hamiltonians for quantum chemistry applications.
Yes. OpenFermion is actively maintained, has low install friction, carries no known vulnerabilities, and is licensed permissively. Install it if you are developing quantum algorithms for chemistry or fermionic systems. The main constraint is Python version (≥3.10) and platform support for certain plugins (Mac/Linux preferred for electronic structure integration).
Install
openfermion on PyPI
pip
pip install openfermionuv
uv add openfermionpoetry
poetry add openfermionInstalling openfermion
Before you install
Low install friction with a pure-Python wheel distribution. Active maintenance with a release within 28 days. Supports current Python versions (3.10–3.13) and runs on Mac, Windows, and Linux.
License in practice
Licensed under Apache-2.0 (permissive). You may use, modify, and distribute the package freely in commercial and private projects, provided you retain the license notice.
Quickstart
pip install openfermion
import openfermion
# Create and manipulate fermionic operators
operator = openfermion.FermionOperator('0^ 1')
Requires Python >= 3.10.0. Electronic structure plugins are only compatible on Mac and Linux; Windows users may use Docker.
Verify before relying
- Whether the package's quantum simulation capabilities are suitable for your specific fermionic system or chemistry problem scale
- Performance characteristics and memory requirements for large Hamiltonian representations
- Integration requirements with specific quantum hardware or simulators beyond those mentioned in the description
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10.0) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 9 — cirq-core, deprecation, h5py, networkx, numpy, pubchempy, requests, scipy, sympy |
| Maintenance | actively maintained — 28 days since the last release |
| First released | |
| Downloads | 210,247/month — #9,499 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: openfermion-1.8.1-py3-none-any.whl
Keywords: algorithms, api, application programming interface, chemistry, cirq, electronic structure, fermion, fermionic systems, google quantum, google, hamiltonians, high performance, nisq, noisy intermediate-scale quantum, python, quantum algorithms, quantum chemistry, quantum circuit simulator, quantum circuit, quantum computer simulator, quantum computing, quantum development kit, quantum programming language, quantum programming, quantum simulation, quantum, qubit hamiltonians, qubit, sdk, simulation, software development kit
Tags
More Chemistry packages
PubChemPy is a Python wrapper around the…
permissive · top 5,000 on PyPI
simsimdSimSIMD provides SIMD-optimized kernels for…
permissive · top 5,000 on PyPI
vtkVTK is a 3D graphics, image processing, and…
permissive · top 5,000 on PyPI
measurementProvides unit-aware measurement objects for…
permissive · top 5,000 on PyPI
gemmiGemmi is a C++ library with Python bindings for…
copyleft · top 5,000 on PyPI
pymatgenPymatgen provides Python classes and analysis…
permissive · top 5,000 on PyPI
openfermionpyscfBridges OpenFermion quantum algorithm library…
permissive · top 15,000 on PyPI
qutipQuTiP simulates the dynamics of closed and open…
permissive · top 15,000 on PyPI
cirq-coreCirq-core provides the foundational framework…
permissive · top 15,000 on PyPI
cirqCirq is a Python framework for writing,…
permissive · top 15,000 on PyPI
pyscfPySCF is a Python framework for quantum…
permissive · top 15,000 on PyPI
pennylanePennyLane is a quantum computing framework that…
permissive · top 15,000 on PyPI
cirq-ionqIntegrates Cirq quantum circuits with IonQ…
permissive · top 15,000 on PyPI
qiskitQiskit is an open-source SDK for building and…
permissive · top 5,000 on PyPI
qiskit-experimentsQiskit Experiments provides tools for building,…
permissive · top 15,000 on PyPI
cirq-webProvides browser-based 3D visualization tools…
permissive · top 15,000 on PyPI