This release is a pre-release and may not be stable for production use.
qcinf
Cheminformatics algorithms and structure utilities for qcdata structures.
The QC Suite
These packages work together to make quantum chemistry fast, structured, and interoperable.
- qcref - Reference data for computational chemistry: CODATA physical constants, conversion factors, a periodic table, and solvent properties, each value with its source.
- qcdata - Data structures for quantum chemistry inputs and results, with Jupyter visualizations. Documentation
- qcinf - Cheminformatics algorithms and structure utilities for qcdata structures.
- qccompute - Runs programs on qcdata inputs, one calculation or many, in this process or in workers, with an optional store, and returns structured results. Documentation
- qccodec - The optional add-on for external programs (ORCA, Psi4, xtb, CREST, ...): writes their native inputs, runs them and parses their outputs, registering each as a program qccompute runs. Documentation
- qcstore - Keeps results under their calculation key: immutable runs, tags, and an optional index.
- BigChem - Distributed execution of qccompute calculations across clusters of computers or the cloud.
- ChemCloud - A web application and Python client that expose a BigChem cluster securely over the internet.
Installation
python -m pip install qcinf
installs the stable release, which works with qcdata 0.23. This README describes the
next release, which is in alpha and works with qcdata's alpha; install them pinned
(--prerelease=allow lets the resolver take pre-releases):
uv pip install --prerelease=allow "qcdata==0.24.0a6" "qcinf==0.6.0a1"
The extras below go on the pinned requirement the same way ("qcinf[fast]==0.6.0a1").
qcinf has no documentation site of its own; the qcdata structures it works on are
documented at qcdata.docs.afh.org/next for the alpha.
To install with numba-accelerated kernels:
python -m pip install 'qcinf[fast]'
Additional backends can be added for conversion and compatibility features, including
rdkit, openbabel, or install the whole suite with all:
python -m pip install 'qcinf[rdkit,openbabel]'
Or
python -m pip install 'qcinf[all]'
snapRMSD
snapRMSD is the native qcinf algorithm for symmetry-aware molecular RMSD. It
uses bonded connectivity to find a connectivity-preserving atom assignment between
two isomorphic structures, optionally aligns the structures, and returns the RMSD
for the best assignment.
from qcdata import Structure
from qcinf import snap_rmsd
reference = Structure(
symbols=["C", "H", "H", "H", "H"],
geometry=[
[0.0, 0.0, 0.0],
[1.0, 1.0, 1.0],
[-1.0, -1.0, 1.0],
[-1.0, 1.0, -1.0],
[1.0, -1.0, -1.0],
],
connectivity=[(0, 1, 1.0), (0, 2, 1.0), (0, 3, 1.0), (0, 4, 1.0)],
)
candidate = Structure(
symbols=["C", "H", "H", "H", "H"],
geometry=[
[0.0, 0.0, 0.0],
[-1.0, 1.0, -1.0],
[1.0, -1.0, -1.0],
[1.0, 1.0, 1.0],
[-1.0, -1.0, 1.0],
],
connectivity=[(0, 1, 1.0), (0, 2, 1.0), (0, 3, 1.0), (0, 4, 1.0)],
)
rmsd = snap_rmsd(reference, candidate)
For the full result, use snap_rmsd_align_assign:
from qcinf import snap_rmsd_align_assign
rmsd, aligned_reference, assignment = snap_rmsd_align_assign(reference, candidate)
assignment[i] is the atom index in candidate matched to atom i in
reference. The returned aligned_reference is a copy of reference with its
geometry aligned to candidate.
Common options:
from qcinf import snap_align, snap_assign, snap_rmsd
# Compare structures without rotational/translational alignment.
rmsd = snap_rmsd(reference, candidate, align=False)
# Increase factoring depth for larger repeated peripheral groups.
rmsd = snap_rmsd(reference, candidate, factor_depth=2)
# Use the QCP alignment backend. Install with `qcinf[fast]` for numba acceleration.
rmsd = snap_rmsd(reference, candidate, alignment_backend="qcp")
# Return only the aligned structure or atom assignment.
aligned = snap_align(reference, candidate)
assignment = snap_assign(reference, candidate)
If a Structure does not include bonded connectivity, snapRMSD will infer it
from covalent radii. For production workflows, pass validated connectivity on the
structures or through a_connectivity= and b_connectivity= so the graph used for
assignment is explicit and reproducible.
Molden files
qcinf.molden writes a qcdata Wavefunction as a Molden file, for orbital viewers
(Molden, Jmol, Avogadro, IboView, Multiwfn) and programs that read the format, and reads
Molden files back. The wavefunction needs its orbital coefficients and basis set, which
programs return on request (the output orbitals).
from qcinf import molden
text = molden.write(output.results.wavefunction, output.input_data.structure)
structure, wavefunction = molden.read(text)
Files are in atomic units ([Atoms] AU, energies in hartree) and qcdata's
MOLDEN_CONVENTION: spherical functions as [5D]/[7F]/[9G] when the basis set
has them (cartesian=True writes every shell as Cartesian functions), restricted
closed-shell orbitals as one set with occupations 0 to 2, and open shells as alpha and
beta sets with occupations 0 to 1. The electrons the orbitals leave out (an ECP's core,
Orbitals.core_electrons) go in a [core] section, as PySCF writes and reads it. read
returns the orbitals in the file's convention;
wavefunction.with_convention(...) converts them. Files from xtb, tblite and the g-xTB
program, which write the contraction coefficients of bare primitives, read with
molden.read(text, normalized_primitives=False). The
module documentation lists every convention.
Contributing
See CONTRIBUTING.md for development setup, the pre-commit workflow, running tests, and the release process.
Support
If you have any issues with qcinf or would like to request a feature, please open an issue.
Metadata
Release files for qcinf 0.6.0a2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| qcinf-0.6.0a2.tar.gz | 577.3 kB | With provenance | Details for qcinf-0.6.0a2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qcinf-0.6.0a2-py3-none-any.whl | Python 3 | none | any | Details for qcinf-0.6.0a2-py3-none-any.whl |
Total release size: 628.3 kB
Release files / qcinf-0.6.0a2.tar.gz
| Download URL | qcinf-0.6.0a2.tar.gz |
|---|---|
| Size | 577.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
73bc100adbd632b386f2d7a9b71fca51278c1aba244266c2e85eaac9582f3665
|
|
BLAKE2b-256 checksum How to use checksums |
f01846d7cf99e178f0bd72af6a87a4df2c0ed0cfce13edb00e8b857e7d3ba2ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 17, 2026.
Transparency logRelease files / qcinf-0.6.0a2-py3-none-any.whl
| Download URL | qcinf-0.6.0a2-py3-none-any.whl |
|---|---|
| Size | 51.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2a2177e99f614b67e6f3efac88728b48fd9fdcf1c5b361237632420483f67f6d
|
|
BLAKE2b-256 checksum How to use checksums |
15bf4c82c4472ba0599d84c9063c8a01227358620ea8e67aa833cf4232b9e3c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 17, 2026.
Transparency logSecurity for qcinf 0.6.0a2
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for qcinf-0.6.0a2.tar.gz
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 Nov 17, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.