Skip to main content

Quantum Pipeline

Documentation · Quick Start · Examples

PyPI version 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

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

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

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.4.0
File Size Uploaded
quantum_pipeline-2.4.0.tar.gz 210.7 kB Details

Built distribution (wheel)

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

Total release size: 335.9 kB

Release files / quantum_pipeline-2.4.0.tar.gz

Download URL quantum_pipeline-2.4.0.tar.gz
Size 210.7 kB
Tags Source
SHA-256 checksum
How to use checksums
64c2dded399be600d33c4c60819c00669dc66e5acc6643f132e6626ae588dfc7
BLAKE2b-256 checksum
How to use checksums
97939b566a037e02de022f2526119fd19ae3bcaff080d4faf219e3b9ef89d955
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 13, 2026.

Transparency log

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

Download URL quantum_pipeline-2.4.0-py3-none-any.whl
Size 125.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
58e39f60b0e2768889e3057f15d459b9b347d6e35323f0998b4f58b9f9ae1ef6
BLAKE2b-256 checksum
How to use checksums
527c4d666ea55e1f549516b198789eb3611efbff1508694b861c67219c3d9ac5
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 13, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.4.0 This release

2 release files

2.3.1

2 release files

2.3.0

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.4.4

2 release files

1.4.3

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.2.5

2 release files

1.2.1

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

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