Skip to main content

pennylane-maestro

PyPI version Tests License: GPL v3

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.qubit on 20–26-qubit statevector circuits, and 10–18× faster than default.tensor on MPS circuits up to 1,000 qubits (benchmarks).
  • CPU, GPU or cloud: run locally, on your own GPU, or on Qoro's CPUs and GPUs in the cloud with no hardware 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

  1. Sign up at dash.qoroquantum.net to get an API key. New accounts get 1,000 free tokens, with no credit card.

  2. Install the cloud extra and set your key:

    pip install "pennylane-maestro[cloud]"
    export QORO_API_KEY=...   # or put it in a .env file
    
  3. 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. Add simulator_type="Gpu" to run on Qoro's GPU cluster. 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.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 pennylane-maestro 0.7.1
File Size Uploaded Provenance Actions
pennylane_maestro-0.7.1.tar.gz 79.5 kB With provenance Details for pennylane_maestro-0.7.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pennylane-maestro 0.7.1
File Interpreter ABI Platform Actions
pennylane_maestro-0.7.1-py3-none-any.whl Python 3 none any Details for pennylane_maestro-0.7.1-py3-none-any.whl

Total release size: 134.3 kB

Release files / pennylane_maestro-0.7.1.tar.gz

Download URL pennylane_maestro-0.7.1.tar.gz
Size 79.5 kB
Tags Source
SHA-256 checksum
How to use checksums
694948b06e8754bb2c49843aa29003c7bd2ff2ed6682639e1b64f29121c78564
BLAKE2b-256 checksum
How to use checksums
6e40f878fe45d63403d8fdc3c90b5181293d7b8c91377cea0ea7c7f4082db267
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 log

Release files / pennylane_maestro-0.7.1-py3-none-any.whl

Download URL pennylane_maestro-0.7.1-py3-none-any.whl
Size 54.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ddba4fa46a1a336acdf3e6166d57bbcded4af5e90fe7fbb2e5c09140de123c8c
BLAKE2b-256 checksum
How to use checksums
218c777d68141a805a1a860f3dd9b7b569351b820846782916189a43915e4594
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 log

Security for pennylane-maestro 0.7.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 pennylane_maestro-0.7.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 Nov 12, 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