Skip to content
Back to skills

Openfermion

ASecurity

"Guide OpenFermion workflows for fermionic and qubit operator

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
toolspythongoapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill openfermion --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Openfermion?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Openfermion
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-openfermion/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-openfermion)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: openfermion
description: "Guide OpenFermion workflows for fermionic and qubit operator
  algebra, Hamiltonian construction, quantum-chemistry data, circuit synthesis,
  sparse analysis, measurements, and resource-oriented utilities."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# OpenFermion

Use this skill when a task names OpenFermion or asks for Python workflows around
fermionic systems, second quantization, qubit Hamiltonians, quantum chemistry,
Jordan–Wigner/Bravyi–Kitaev mappings, Trotter/UCC circuits, RDMs, measurement
grouping, or sparse operator analysis.

## Fast route

1. **Install and smoke-check.** Install the public `openfermion` distribution in
   Python >=3.10, then run `python -c "import openfermion; print(openfermion.__version__)"`.
   The package uses Cirq core, NumPy, SciPy, SymPy, HDF5, and related runtime
   dependencies. See [troubleshooting](references/troubleshooting.md) for
   optional extras and import failures.
2. **Select the owning route.** Use the focused sub-skill that matches the
   user's artifact, not the source package directory name:
   - [operators-and-transforms](sub-skills/operators-and-transforms/SKILL.md)
     for symbolic operators, normal ordering, and fermion-to-qubit mappings.
   - [hamiltonians-and-chemistry](sub-skills/hamiltonians-and-chemistry/SKILL.md)
     for Hubbard/jellium/model Hamiltonians and molecular metadata or tensors.
   - [circuits-and-simulation](sub-skills/circuits-and-simulation/SKILL.md) for
     Trotter, UCC, Slater/Gaussian preparation, Cirq circuits, and VPE circuits.
   - [analysis-and-measurements](sub-skills/analysis-and-measurements/SKILL.md)
     for sparse matrices, eigensolvers, RDMs, measurement grouping, and
     resource functionals.
3. **Record the contract before computing.** Preserve operator family, mode or
   qubit ordering, coefficient units, tensor shapes, `n_qubits`, boundary or
   particle-number choices, optional dependency state, and the expected output.
4. **Keep numerical work bounded.** Construct tiny fixtures first; validate
   dimensions and Hermiticity before matrix conversion, dense diagonalization,
   RDM contraction, or circuit expansion. Do not infer scalability from a
   smoke test.
5. **Handoff across routes explicitly.** A model builder supplies an operator
   contract to the mapping route; a mapping supplies a qubit operator to the
   circuit or analysis route; analysis returns shapes, convergence signals, and
   numerical results. Do not silently choose conventions at a boundary.

## Public package boundary

OpenFermion is primarily a Python library, not a package-specific command-line
application. Install external simulators, electronic-structure packages, or
hardware plugins separately. The optional `resources` extra adds PySCF, JAX,
JAXlib, and ASE for selected resource-estimation workflows; it is not required
for core operator, transform, Hamiltonian, circuit, or sparse-analysis usage.
PubChem lookup is network-dependent even though the base distribution includes
its client library. Never claim that `MolecularData` metadata is a completed
quantum-chemistry calculation.

For verified signatures and return-shape notes, read
[api-index.md](references/api-index.md). For cross-cutting install, optional
package, file, network, and numerical failures, read
[troubleshooting.md](references/troubleshooting.md). Run
[scripts/check_openfermion.py](scripts/check_openfermion.py) for a safe public
import and capability diagnostic; it performs no network access or file writes.
Read [repo-provenance.md](references/repo-provenance.md) before deciding whether
this skill is stale for a particular OpenFermion checkout.

## Self-contained smoke helpers

Each route owns a tiny helper that is independent of the original checkout:

- `operators-and-transforms/scripts/smoke_transform.py` maps a two-mode hopping
  term and can report a sparse shape.
- `hamiltonians-and-chemistry/scripts/build_tiny_hamiltonian.py` emits a small
  Hubbard or molecular-metadata summary without writing files.
- `circuits-and-simulation/scripts/circuit_smoke.py` reports a bounded Cirq
  circuit and optional Slater preparation.
- `analysis-and-measurements/scripts/sparse_analysis_smoke.py` converts a tiny
  qubit operator and checks a ground-state residual.

Use `--help` first and keep all input dimensions within the helper's documented
bounds. These are structural checks, not scientific benchmarks.

Files in this skill

  • SKILL.md4.4 KB
  • references/api-index.md4.6 KB
  • references/repo-provenance.md2.2 KB
  • references/repo-routing-metadata.json331 B
  • references/troubleshooting.md4.8 KB
  • scripts/check_openfermion.py1.9 KB
  • sub-skills/analysis-and-measurements/SKILL.md6 KB
  • sub-skills/analysis-and-measurements/references/api-reference.md16.1 KB
  • sub-skills/analysis-and-measurements/references/troubleshooting.md11.9 KB
  • sub-skills/analysis-and-measurements/references/workflows.md12.2 KB
  • sub-skills/analysis-and-measurements/scripts/sparse_analysis_smoke.py3.1 KB
  • sub-skills/circuits-and-simulation/SKILL.md6.4 KB
  • sub-skills/circuits-and-simulation/references/api-reference.md10.6 KB
  • sub-skills/circuits-and-simulation/references/troubleshooting.md10.8 KB
  • sub-skills/circuits-and-simulation/references/workflows.md8.6 KB
  • sub-skills/circuits-and-simulation/scripts/circuit_smoke.py3.2 KB
  • sub-skills/hamiltonians-and-chemistry/SKILL.md6.7 KB
  • sub-skills/hamiltonians-and-chemistry/references/api-reference.md11 KB
  • sub-skills/hamiltonians-and-chemistry/references/data-formats.md7.7 KB
  • sub-skills/hamiltonians-and-chemistry/references/troubleshooting.md9.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.