技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
openfermion【数据与研究】Guide OpenFermion workflows for fermionic and qubit operator algebra, Hamiltonian construction, quantum-chemistry data, circuit synthesis, sparse analysis, measurements, and resource-oriented utilities.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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.
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 for
optional extras and import failures.n_qubits, boundary or
particle-number choices, optional dependency state, and the expected output.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. For cross-cutting install, optional package, file, network, and numerical failures, read troubleshooting.md. Run scripts/check_openfermion.py for a safe public import and capability diagnostic; it performs no network access or file writes. Read repo-provenance.md before deciding whether this skill is stale for a particular OpenFermion checkout.
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.