Skip to main content

devqubit adapter for Pennylane

Project description

devqubit-pennylane

PyPI

PennyLane adapter for devqubit — automatic tape capture, device snapshots, and result logging for PennyLane devices and QNode workflows.

[!IMPORTANT] This is an internal adapter package. Install via pip install "devqubit[pennylane]" and use the devqubit public API.

Installation

pip install "devqubit[pennylane]"

Usage

import pennylane as qml
from devqubit import track

dev = qml.device("default.qubit", wires=2, shots=1000)

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

with track(project="pennylane-exp") as run:
    run.wrap(dev)       # in-place device patching
    counts = circuit()  # QNodes using this device are tracked automatically

Multi-Layer Stack

PennyLane can act as a frontend to other execution providers. The adapter captures the full stack:

# Braket backend through PennyLane
dev = qml.device("braket.aws.qubit", wires=2, device_arn="...")

# Qiskit backend through PennyLane
dev = qml.device("qiskit.remote", wires=2, backend="ibm_brisbane")

What's Captured

Artifact Kind Role
Tape JSON pennylane.tapes.json program
Tape diagram pennylane.tapes.txt program
Results result.pennylane.output.json result
Device properties device.pennylane.raw_properties.json device_raw
Execution envelope devqubit.envelope.json envelope

Documentation

See the Adapters guide for performance tuning (log_every_n), parameter sweeps, and multi-layer stack details.

License

Apache 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

devqubit_pennylane-0.1.12.tar.gz (45.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

devqubit_pennylane-0.1.12-py3-none-any.whl (40.6 kB view details)

Uploaded Python 3

File details

Details for the file devqubit_pennylane-0.1.12.tar.gz.

File metadata

  • Download URL: devqubit_pennylane-0.1.12.tar.gz
  • Upload date:
  • Size: 45.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for devqubit_pennylane-0.1.12.tar.gz
Algorithm Hash digest
SHA256 a0feb3e44e7284df0ac8d0b0de3558c239db892770ad1366170ddc3aa655af36
MD5 4c4baf56db607957dc3edc903e3426ca
BLAKE2b-256 ff8b4f7b79cd43a63490ce097856d3db2712d6e439797b92f9be96cd50b6d794

See more details on using hashes here.

Provenance

The following attestation bundles were made for devqubit_pennylane-0.1.12.tar.gz:

Publisher: release.yaml on devqubit-labs/devqubit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file devqubit_pennylane-0.1.12-py3-none-any.whl.

File metadata

File hashes

Hashes for devqubit_pennylane-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 d8903717284d493db7dd1e49cd30d76817c023134be23159a27e833650cf8c98
MD5 6026345db3030179dfdf32265800629f
BLAKE2b-256 182e1c6ba4df4488cbe01a75319d855c26bff6414fa90bcf957cbfb595bb989b

See more details on using hashes here.

Provenance

The following attestation bundles were made for devqubit_pennylane-0.1.12-py3-none-any.whl:

Publisher: release.yaml on devqubit-labs/devqubit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page