Skip to main content Switch to mobile version openqml 0.46.1 Quantum-classical hybrid AI, quantitative research and cross-framework quantum programming
pip install openqml==0.46.1 Copy PIP instructions
OpenQML runs quantum circuits on CPU and NVIDIA GPUs. It provides differentiable circuit layers for PyTorch and JAX, converters for quantum SDKs, and a finance module for allocation and risk.
OpenQML requires Python 3.10 or later.
python -m pip install openqml 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.
Install a CUDA-enabled PyTorch build and openqml[gpu]. CUDA inputs keep circuit results and gradients on the same device. The Triton kernels use NVIDIA GPUs with compute capability 8.0 or newer.
import openqml as oq import torch theta = oq.Parameter("theta") circuit = oq.Circuit(4).ry(theta, 0).cx(0, 3) angles = torch.tensor([0.2, 0.5], device="cuda:0", requires_grad=True) values = oq.expectation(circuit, oq.PauliString("ZIII"), {"theta": angles}, backend="torch") values.sum().backward() For a fitted model, use model.predict(inputs, as_numpy=False) to keep the predictions on the model device.
Run a circuit on CPU
import openqml as oq bell = oq.Circuit(2).h(0).cx(0, 1) counts = oq.sample(bell, shots=100, seed=17, backend="numpy") print(counts) Guides
Convert circuits between Qiskit, Cirq, PennyLane and OpenQASM
Train a hybrid model
Allocate portfolios and estimate risk
API reference · Backends and platform support · Changelog · Contributing · Apache-2.0
Released: Dec 3, 2026
Author: OpenQML contributors
All 12 files in this release have provenance metadata.
View provenance details
Apache-2.0 View SPDX License List
torch jax qiskit aer gpu qasm flax symbolic compute pennylane cirq all dev
quantum machine-learning quantitative-finance pytorch jax interoperability
Development Status 3 - Alpha
Intended Audience Developers
Programming Language Python :: 3
Topic Scientific/Engineering :: Artificial Intelligence
Scientific/Engineering :: Physics
Release files for openqml 0.46.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distributions (wheels)
Total release size: 8.1 MB
Release files / openqml-0.46.1.tar.gz
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 Dec 3, 2026.
Release files / openqml-0.46.1-py3-none-any.whl
Release files / openqml-0.46.1-cp311-abi3-win_amd64.whl
Release files / openqml-0.46.1-cp310-cp310-win_amd64.whl
Security for openqml 0.46.1
All 12 files in this release have been uploaded with provenance metadata.
With provenance openqml-0.46.1.tar.gz Dec 3, 2026
With provenance openqml-0.46.1-py3-none-any.whl Dec 3, 2026
With provenance openqml-0.46.1-cp311-abi3-win_amd64.whl Dec 3, 2026
With provenance openqml-0.46.1-cp310-cp310-win_amd64.whl Dec 3, 2026
Attestation for openqml-0.46.1.tar.gz
Attestation for openqml-0.46.1-py3-none-any.whl
Attestation for openqml-0.46.1-cp311-abi3-win_amd64.whl
Attestation for openqml-0.46.1-cp310-cp310-win_amd64.whl
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.
Release history Release notifications | RSS feed
Dec 3, 2026 12 release files Full provenance
Dec 2, 2026 12 release files Full provenance
Nov 29, 2026 12 release files Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from 6571ef3











