Skip to main content

OpenQML

OpenQML is a Python library for building quantum circuits, using them in PyTorch and JAX models, and solving portfolio allocation and risk problems.

Install

OpenQML requires Python 3.10 or later.

python -m pip install openqml
import openqml as oq

The core package includes CPU simulation and OpenQASM import and export. Install openqml[torch], openqml[jax], or openqml[flax] for training. Add openqml[qiskit], openqml[cirq], or openqml[pennylane] to work with objects from those SDKs. On Linux x86-64, openqml[gpu] adds CUDA execution with Triton.

What you can do

  • Build circuits with oq.Circuit, measure them with oq.sample, or calculate Pauli expectation values with oq.expectation. Use oq.convert to move circuits between supported formats. Circuit conversion
  • Fit a model with oq.Model or use an OpenQML layer in your own training loop. Training · Model architectures
  • Use oq.finance for portfolio allocation, scenario risk, and option pricing. Finance API

API reference · Backends and platform support · Changelog · Contributing · Apache-2.0

Metadata

Release files for openqml 0.43.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 openqml 0.43.0
File Size Uploaded Provenance Actions
openqml-0.43.0.tar.gz 536.2 kB With provenance Details for openqml-0.43.0.tar.gz

Built distribution (wheel)

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

Total release size: 1.2 MB

Release files / openqml-0.43.0.tar.gz

Download URL openqml-0.43.0.tar.gz
Size 536.2 kB
Tags Source
SHA-256 checksum
How to use checksums
58fb9a013c5db186621416eb25974c847010942c30581d561aef3388ad439b5a
BLAKE2b-256 checksum
How to use checksums
ead5826517b1cc748c3d3ea30995b9b3bd0a3cd0542aacf42b30fa5c1298a3fe
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 29, 2026.

Transparency log

Release files / openqml-0.43.0-py3-none-any.whl

Download URL openqml-0.43.0-py3-none-any.whl
Size 639.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7551d913b53070b950bf23943888b95492a6b21e007fb42b30fcf3bc98f23338
BLAKE2b-256 checksum
How to use checksums
64d9f5f66a08db28958a6c3ac20ff57bf7a794cac68eb5a780ade4aa6ecbeb54
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 29, 2026.

Transparency log

Security for openqml 0.43.0

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 openqml-0.43.0.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 29, 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