Skip to main content

Quantum Pipeline

Documentation · Quick Start · Examples

PyPI version PyPI Total Downloads PyPI - Downloads Docker Pulls ghcr.io

Ground-state energies of molecules with the Variational Quantum Eigensolver - and the infrastructure to keep every iteration it takes to get there.

Architecture

graph LR
    M[molecules.json] --> HF

    subgraph sim["quantum-pipeline (pip install)"]
        HF[PySCF<br/>Hartree-Fock reference] --> VQE[VQE loop<br/>Qiskit ansatz, scipy optimizer<br/>Aer on CPU or GPU]
    end

    VQE --> Out[PDF report +<br/>convergence plots]

    subgraph platform["data platform (docker compose, optional)"]
        K[Kafka<br/>one Avro message per finished run] --> S[Spark jobs<br/>scheduled by Airflow] --> I[(Iceberg tables<br/>on Garage)]
        I --> ML["ML module<br/>predict convergence from the first K steps"]
    end

    VQE -->|result with all iterations| K
    VQE -->|metrics| G[Prometheus + Grafana]

Point quantum-pipeline at a JSON file of molecules and it runs VQE for each one. PySCF supplies the Hartree-Fock starting point, Qiskit builds the ansatz, a scipy optimizer drives it, and Aer simulates the circuit on CPU or on an NVIDIA GPU. A run ends with a PDF report and a convergence plot per molecule.

Everything to the right of the solver is optional. With Kafka on, the finished result of each molecule, with every iteration in it, leaves the solver as one Avro message, and Spark jobs scheduled by Airflow land those messages in Iceberg tables.

Prometheus metrics and a Grafana dashboard with alert rules watch the run. The ML module, which reads the tables to predict from the first iterations whether a run will converge, is in progress and not part of a normal run.

What it does

  • Runs VQE for every molecule in a JSON file, in sto3g, 6-31g or cc-pvdz
  • Simulates with Qiskit Aer on CPU, or on a GPU through the CUDA Thrust backend with the :gpu image (Docker Hub · GHCR)
  • Lets you pick the classical optimizer (L-BFGS-B, COBYLA, SLSQP, Nelder-Mead, Powell, BFGS, CG, TNC, Newton-CG, trust-constr), the ansatz depth, the iteration cap and the convergence threshold
  • Writes a PDF report and PNG convergence plots to gen/
  • Streams each finished run, with all its iterations, to Kafka as Avro, with a schema registry
  • Turns the stream into Iceberg tables with Spark and Airflow
  • Exports Prometheus metrics and ships a Grafana dashboard
  • Work in progress: models that predict convergence and final energy from the first iterations of a run

Quick Start

pip install quantum-pipeline
quantum-pipeline -f data/molecules.json -b sto3g --max-iterations 100 --optimizer L-BFGS-B --report

Or with Docker:

docker pull straightchlorine/quantum-pipeline:cpu
docker run --rm straightchlorine/quantum-pipeline:cpu -f data/molecules.json -b sto3g --max-iterations 100

Both images are on Docker Hub as straightchlorine/quantum-pipeline:cpu and :gpu, and on GHCR as ghcr.io/straightchlorine/quantum-pipeline with the same tags.

The GPU image is built for compute capabilities 6.1, 7.0, 8.0 and 9.0 (plus PTX), so it targets NVIDIA GPUs with compute capability 6.1 or newer. To build for one GPU only, rebuild it with the CUDA_ARCH build argument - see the GPU acceleration page.

The installation guide covers GPU acceleration; the deployment guide brings up the full platform with docker compose.

Documentation

Docs at https://docs.qp.piotrkrzysztof.dev. Build them locally with:

pdm install -G docs
pdm run mkdocs serve

Started as an engineering thesis, continued through a master's. Source on GitHub, mirrored on Codeberg.

License

MIT License. See LICENSE for details.


To the only God, be honour and glory for ever and ever.

Metadata

Release files for quantum-pipeline 2.5.1

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

Source distribution (sdist)

Source distribution for quantum-pipeline 2.5.1
File Size Uploaded Provenance Actions
quantum_pipeline-2.5.1.tar.gz 215.1 kB With provenance Details for quantum_pipeline-2.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for quantum-pipeline 2.5.1
File Interpreter ABI Platform Actions
quantum_pipeline-2.5.1-py3-none-any.whl Python 3 none any Details for quantum_pipeline-2.5.1-py3-none-any.whl

Total release size: 341.9 kB

Release files / quantum_pipeline-2.5.1.tar.gz

Download URL quantum_pipeline-2.5.1.tar.gz
Size 215.1 kB
Tags Source
SHA-256 checksum
How to use checksums
26d57845f582659dbc0492b7cfeb73b71191717bf3bd72ca3e1f5e09b11bdb8c
BLAKE2b-256 checksum
How to use checksums
bce31b22e1de30bb2f8f24e27e3c83bd5b89a90c0ecf91d23c960f5571ad1843
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 22, 2026.

Transparency log

Release files / quantum_pipeline-2.5.1-py3-none-any.whl

Download URL quantum_pipeline-2.5.1-py3-none-any.whl
Size 126.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c062429c3b4233b5f806e73588b9f7ad3285060e9250bbe160da2b813103ff73
BLAKE2b-256 checksum
How to use checksums
eeb8607b4539d3eac60b6943d169bc734fae14f7c6c31b841313f390ba3d9f53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 22, 2026.

Transparency log

Security for quantum-pipeline 2.5.1

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 quantum_pipeline-2.5.1.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 Oct 22, 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