Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

qccompute

image image image CI

Runs quantum chemistry programs on qcdata inputs: one input or many, in this process or in worker processes, with an optional calculation store. Every program, whether written in Python for the protocol or an external program brought in by qccodec, runs the same way.

Documentation of the alpha: qccompute.docs.afh.org/next (the site root documents the stable release)

Install

The new runner is in alpha. Install the alpha line with minimum versions of its matching packages (--prerelease=allow lets the resolver take pre-releases; a plain pip install qccompute resolves the previous stable release):

uv pip install --prerelease=allow "qcdata>=0.24.0a8" "qccompute[qccodec]>=0.23.0rc1" "qccodec>=0.22.0rc1" "qcstore>=0.1.0a4"

qccompute alone is the runner, for programs that implement its protocol (uv pip install --prerelease=allow "qcdata>=0.24.0a8" "qccompute>=0.23.0rc1"); the qccodec extra adds external programs (xtb, ORCA, Psi4, CREST, ...) and qcstore is the calculation store. Coming from 0.22? See the migration guide.

One way to run things

import qccompute
from qcdata import CalcType, Model, ProgramInput, Structure

water = Structure(
    symbols=["O", "H", "H"],
    geometry=[[0.0, 0.0, 0.0], [0.524, 1.687, 0.48], [1.146, -0.45, -1.354]],  # bohr
)
inp = ProgramInput(
    program="xtb", calctype=CalcType.gradient, structure=water, model=Model(method="gfn2")
)

out = qccompute.compute(inp)                 # one input -> ProgramOutput
outs = qccompute.compute([inp] * 8)          # a list runs side by side -> list
future = qccompute.submit(inp)               # start one -> Future of its output
with qccompute.session(inp) as s:            # one molecule at many geometries
    frame = s.compute(water.geometry * 1.01)
  • Failures raise. A failed calculation raises qcdata.ProgramError; its output is the failed ProgramOutput, with partial results and logs. A list runs everything first, then raises one qcdata.ProgramErrors group whose results holds every output in order. raise_exc=False returns failures in place.
  • A store, if you want one. compute(inputs, store=store, tags=[...]) looks each input up first and stores what it ran, with the identities of the programs that made it; a run is reused only when those are the programs that would run now.
  • One thread count per calculation. Its threads keyword, else the runner's whole count; a list shares it, and nothing ever runs more threads than its runner has. For many calculations at once, set threads (usually 1) on each. See Threads.
  • A share of the machine. qccompute.compute and qccompute.session belong to the default runner: every core and GPU this process may use (or OMP_NUM_THREADS cores). A Runner of your own takes a share and closes its worker processes when done:
with qccompute.Runner(threads=16, gpus=["0"], isolation="process") as runner:
    outputs = runner.compute(inputs, timeout=3600)

Programs

A program is any object with name, version(), capabilities(), settings_schema(), record_schema(), plan(inp) and compute(inp, ctx=None), registered under the qccompute.programs entry points (or with qccompute.register_program in a script). The protocol is structural, so a program without subprograms imports only qcdata. qccompute.program.FunctionProgram turns Python functions of the positions into a program, and qccompute.testing.check_program checks one against the contract.

from qccompute.program import FunctionProgram

def harmonic(x):  # positions (bohr) -> energy (Eh), gradient (Eh/bohr)
    return float((x**2).sum()), 2 * x

qccompute.register_program(FunctionProgram("harmonic", harmonic))

The QC Suite

  • qcref - Reference data: physical constants, conversion factors, a periodic table, solvents, each value with its source.
  • qcdata - Data structures for quantum chemistry inputs and results. Documentation
  • qcinf - Cheminformatics algorithms and structure utilities for qcdata structures.
  • qccodec - External programs as programs qccompute runs: their input files, output parsers, and execution. Documentation
  • qccompute - Runs programs on qcdata inputs. Documentation

Support

Questions and bug reports: GitHub issues.

Metadata

Release files for qccompute 0.23.0rc1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qccompute 0.23.0rc1
File Size Uploaded Provenance Actions
qccompute-0.23.0rc1.tar.gz 675.3 kB With provenance Details for qccompute-0.23.0rc1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qccompute 0.23.0rc1
File Interpreter ABI Platform Actions
qccompute-0.23.0rc1-py3-none-any.whl Python 3 none any Details for qccompute-0.23.0rc1-py3-none-any.whl

Total release size: 768.7 kB

Release files / qccompute-0.23.0rc1.tar.gz

Download URL qccompute-0.23.0rc1.tar.gz
Size 675.3 kB
Tags Source
SHA-256 checksum
How to use checksums
faca94133d9f846461ba81f62854754dc4a6d892f57f5e3b4aed839af00f262a
BLAKE2b-256 checksum
How to use checksums
d8d9ab57c17c683ba3ca996831d8d598ca0928183d3f8db7d2985d7ef6289a5a
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 18, 2026.

Transparency log

Release files / qccompute-0.23.0rc1-py3-none-any.whl

Download URL qccompute-0.23.0rc1-py3-none-any.whl
Size 93.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
08f3916e2df4538c544a8f0c0717adfd4afcdd49b5108e6fc80d3ef8ad46d0d5
BLAKE2b-256 checksum
How to use checksums
b7b571bebea13aa995c0d77e3aaf728f8cff6f9bc97e7802a3dc700f9ed44ce9
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 18, 2026.

Transparency log

Security for qccompute 0.23.0rc1

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.

Select from 2 files

Attestation for qccompute-0.23.0rc1.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 18, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page