OpenFermion

Compiles chemistry problems for quantum computers: fermion-to-qubit mappings and Hamiltonians.

Tool 084 of 100 in the MolForge directory of open-source tools. Every fact below was read from the repository's host on 2026-11-28.

OpenFermion, open-source tool for quantum computing for chemistry: Compiles chemistry problems for quantum computers: fermion-to-qubit mappings and Hamiltonians.

What OpenFermion is

OpenFermion is a Python library for turning electronic structure problems into a form a quantum computer can process. Chemistry describes electrons with second-quantised operators (creation and annihilation operators acting on orbitals); a quantum computer works with qubits. OpenFermion represents fermionic operators symbolically, builds molecular Hamiltonians from one- and two-electron integrals, and maps them to sums of Pauli operators with the Jordan-Wigner, Bravyi-Kitaev or related transforms.

The library does not compute integrals itself. Plugins to PySCF and Psi4 run the classical calculation and store integrals and reference energies in a MolecularData object saved as HDF5. From there, users obtain FermionOperator and QubitOperator objects, build Trotter steps or basis-change circuits for Cirq, or hand the Hamiltonian to Qiskit Nature or PennyLane through their converters. Model Hamiltonians such as Fermi-Hubbard and jellium are included for algorithm studies.

OpenFermion is a toolbox for operators and transformations rather than an end-to-end solver; circuit execution and most variational algorithms live in the quantum frameworks it feeds.

Features

What it is for

Verified facts

FamilyQuantum computing for chemistry
Language or basisPython
Repositoryhttps://github.com/quantumlib/OpenFermion (GitHub)
LicenceApache-2.0 (SPDX identifier as declared in the repository)
Main language on GitHubPython
Last commit2026-11-22
Latest releasev1.8.1 (2026-07-17)
Stars1,752 on 2026-11-28
Open issues and pull requests25 on 2026-11-28
Repository created2017-09-21
Verified2026-11-28 by MolForge's checking script, against the host's API

Where OpenFermion fits

Solve electronic structure on, or in simulation of, quantum computers.

Our comments on OpenFermion

MolForge does not run OpenFermion in production. This page is a verified pointer, not a review: the facts above come from the repository on the date shown, the description is ours, and we make no claim about accuracy or speed that we have not measured. If you maintain OpenFermion and something here is wrong or out of date, write to hello@molforge.ai and we will correct the source file.

Test status

Not tested by MolForge. To check OpenFermion yourself: clone the repository, follow the installation section of its README, and run the test suite the project ships before trusting a result; the last-commit date and the open issue count above tell you how alive the project is.

Questions people ask

Does OpenFermion compute molecular integrals itself?
No. It relies on plugins, OpenFermion-PySCF and OpenFermion-Psi4, to run Hartree-Fock and correlated reference calculations and return the integrals. OpenFermion then handles the operator algebra and qubit mapping. A few small example molecules with precomputed data ship with the package for testing without a quantum chemistry code.
Which quantum frameworks work with OpenFermion?
Cirq is the native target: the circuit utilities produce Cirq gates and the former OpenFermion-Cirq package was folded into the main library. Qiskit Nature and PennyLane each provide converters that accept OpenFermion's QubitOperator, so OpenFermion commonly serves as the Hamiltonian source for those ecosystems as well.
How is OpenFermion different from Qiskit Nature?
OpenFermion is a library focused on operators and transformations, independent of any algorithm, with Cirq as its circuit target. Qiskit Nature is a structured pipeline inside Qiskit that goes from problem drivers through mappers to algorithm wrappers such as VQE. They can be combined: Qiskit Nature can import an OpenFermion operator.
Can OpenFermion simulate the quantum circuit?
Not as such. It can build a sparse matrix of a Hamiltonian and diagonalise it exactly for small systems, which gives reference energies. Simulating or running the circuits that prepare and measure states is done in Cirq or another quantum framework.
Is OpenFermion open source?
Yes. The repository declares the Apache-2.0 licence (SPDX identifier read from the host on 2026-11-28). Read the licence text in the repository before redistributing or embedding it.
Where is the OpenFermion source code?
At https://github.com/quantumlib/OpenFermion (GitHub). This is the address the host reported on the day of verification; renamed repositories are followed to their new home.
Is OpenFermion still maintained?
The last commit was pushed on 2026-11-22 and the latest tagged release is v1.8.1 from 2026-07-17; the repository had 25 open issues and pull requests on 2026-11-28.
Does MolForge use OpenFermion?
No. MolForge runs nine of the hundred tools in this directory (RDKit, OpenMM, AutoDock Vina, Open Babel, MDTraj, pymbar and NGL, plus PySCF and xTB in MFsig); OpenFermion is listed because of its place in quantum computing for chemistry, not because we run it.

Other tools in quantum computing for chemistry