Skip to main content

Quantum API PennyLane Plugin

Package-ready PennyLane device plugin for executing circuits through Quantum API /v1/qasm/run.

Install

pip install quantum-api-pennylane

For local development in this repo:

python3 -m pip install -e sdk/pennylane

Usage

import pennylane as qml

# The plugin is registered under the "quantum.api" PennyLane device name.
dev = qml.device(
    "quantum.api",
    wires=2,
    shots=1000,
    base_url="https://davidjgrimsley.com/public-facing/api/quantum",
    api_key="your-runtime-api-key",
)

@qml.qnode(dev)
def bell():
    qml.Hadamard(0)
    qml.CNOT([0, 1])
    return qml.counts(wires=[0, 1])

print(bell())

Configuration

Constructor keyword arguments:

  • base_url: Quantum API base URL (with or without /v1)
  • api_key: runtime X-API-Key for protected routes
  • bearer_token: optional bearer token for advanced auth routing
  • timeout: client timeout in seconds
  • qasm_version: currently "auto", "2", or "3" (default "auto")
  • seed: optional simulator seed forwarded to /v1/qasm/run
  • client: optional preconfigured quantum_api_sdk.QuantumApiClient

Finite-shot QNodes are reconstructed from counts. Analytic QNodes (shots=None) use statevector post-processing.

Metadata

Release files for quantum-api-pennylane 0.1.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-api-pennylane 0.1.0
File Size Uploaded Provenance Actions
quantum_api_pennylane-0.1.0.tar.gz 3.7 kB With provenance Details for quantum_api_pennylane-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for quantum-api-pennylane 0.1.0
File Interpreter ABI Platform Actions
quantum_api_pennylane-0.1.0-py3-none-any.whl Python 3 none any Details for quantum_api_pennylane-0.1.0-py3-none-any.whl

Total release size: 8.3 kB

Release files / quantum_api_pennylane-0.1.0.tar.gz

Download URL quantum_api_pennylane-0.1.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
44a58db7e213e450b7a21e0869c6f52b38870a4ac96db775661da3894bb6dd61
BLAKE2b-256 checksum
How to use checksums
4163c25236cdd3bfe56b8a5184408f3ce3b917376a2949203367882a506c79df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Apr 8, 2026.

Transparency log

Release files / quantum_api_pennylane-0.1.0-py3-none-any.whl

Download URL quantum_api_pennylane-0.1.0-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5eb6be83d9e359dc9338d8a1bdfa9197c0d1bba964f58b0255a31baeec41f9e
BLAKE2b-256 checksum
How to use checksums
555976a8d47ba7538e51e44e0c5a8e675025bda0d2fd6cccfede0b1955b027ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Apr 8, 2026.

Transparency log

Security for quantum-api-pennylane 0.1.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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for quantum_api_pennylane-0.1.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 Apr 8, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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