pennylane-maestro
Run your PennyLane code on the Maestro quantum simulator, on your machine or in the Qoro cloud, by changing the device name.
- Drop-in for
default.qubit: the same QNodes, measurements, mid-circuit measurements and broadcasting, with adjoint gradients by default. - Beyond statevector: matrix product state (MPS) for hundreds of qubits, with shot sampling, plus stabilizer, tensor network and Pauli propagation.
- Fast: 5–6× faster than
lightning.qubiton 20–26-qubit statevector circuits, and 10–18× faster thandefault.tensoron MPS circuits up to 1,000 qubits (benchmarks). - CPU, GPU or cloud: run locally, on your own GPU, or in the Qoro cloud with no simulator of your own.
Install
pip install pennylane-maestro # local simulation, Python 3.10+
pip install "pennylane-maestro[cloud]" # adds the Qoro cloud, Python 3.11+
Quick start
import pennylane as qp
from pennylane import numpy as pnp
dev = qp.device("maestro.qubit", wires=2) # was: qp.device("default.qubit", wires=2)
@qp.qnode(dev)
def circuit(theta):
qp.RX(theta, wires=0)
qp.CNOT(wires=[0, 1])
return qp.expval(qp.Z(1))
theta = pnp.array(0.4, requires_grad=True)
print(circuit(theta), qp.grad(circuit)(theta)) # the gradient uses the adjoint method
Run on the Qoro cloud
-
Sign up at dash.qoroquantum.net to get an API key. New accounts get 1,000 free tokens, with no credit card.
-
Install the cloud extra and set your key:
pip install "pennylane-maestro[cloud]" export QORO_API_KEY=... # or put it in a .env file
-
Add
backend="qoro"to the device. Nothing else changes:dev = qp.device("maestro.qubit", wires=2, backend="qoro")
The quick start above then runs in the cloud, adjoint gradient included. Each
optimizer step usually goes as a single job, results come back as they do
locally, and options such as simulation_type="MatrixProductState" travel with
the job.
examples/qoro_cloud.py
trains a circuit and samples a 50-qubit state in the cloud. A few features, such
as qp.state(), run locally only for now: see the
guide.
Pick a simulation method
dev = qp.device("maestro.qubit", wires=100,
simulation_type="MatrixProductState", max_bond_dimension=64)
simulation_type |
Use it for |
|---|---|
"Statevector" (default) |
exact results; memory doubles with each qubit |
"MatrixProductState" |
many qubits with limited entanglement, including shot sampling |
"Stabilizer" |
Clifford circuits, any size |
"PauliPropagator" |
expectation values on many qubits, with Pauli-string truncation |
Add simulator_type="Gpu" for your own GPU
(get GPU access).
The guide
lists every method and option.
Learn more
- Guide:
every option, gradients, the cloud in detail, time evolution with
qp.Snapshot, what's supported, and benchmarks. - Examples: the cloud, VQE, QAOA, a data re-uploading classifier, a 100-qubit Ising quench with MPS sampling, Trotter time evolution, and the benchmark suite.
- Maestro docs.
- Changelog.
Citation
@misc{pennylane_maestro,
author = {{Qoro Quantum}},
title = {PennyLane-Maestro: High-Performance C++ Backend for PennyLane},
year = {2026},
publisher = {GitHub},
howpublished = {\url{https://github.com/QoroQuantum/pennylane-maestro}}
}
License
GPL-3.0. See LICENSE.
Metadata
Release files for pennylane-maestro 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pennylane_maestro-0.7.0.tar.gz | 78.7 kB | With provenance | Details for pennylane_maestro-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pennylane_maestro-0.7.0-py3-none-any.whl | Python 3 | none | any | Details for pennylane_maestro-0.7.0-py3-none-any.whl |
Total release size: 132.9 kB
Release files / pennylane_maestro-0.7.0.tar.gz
| Download URL | pennylane_maestro-0.7.0.tar.gz |
|---|---|
| Size | 78.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
766d3d4e1633c913bb3ed08405a6c2068dc3f7ac0b149ebb6eda18ac8176ebb0
|
|
BLAKE2b-256 checksum How to use checksums |
67e7bbcc2b00298af7e2d51dd59c8ed9915ced4613e2ac1aa1e26f28cb47eda1
|
| 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 12, 2026.
Transparency logRelease files / pennylane_maestro-0.7.0-py3-none-any.whl
| Download URL | pennylane_maestro-0.7.0-py3-none-any.whl |
|---|---|
| Size | 54.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
24be04525c5a1495d2cec45e3ba19f0bdbc0c2126a50b14dd354939f91dce431
|
|
BLAKE2b-256 checksum How to use checksums |
c698cd3b3cbf537b5bd20d98df3aa3a0284dec0ff56af491179002d1b997305a
|
| 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 12, 2026.
Transparency logSecurity for pennylane-maestro 0.7.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.
Attestation for pennylane_maestro-0.7.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 12, 2026.
Transparency logA 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.