Skip to main content

devqubit adapter for Pennylane

Project description

devqubit-pennylane

PennyLane adapter for devqubit. Automatically captures circuits and results from PennyLane devices.

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)
    counts = circuit()

What's Captured

  • Circuits — PennyLane tape, OpenQASM 3
  • Results — Counts, expectation values, samples
  • Device info — Device name, wires, shots

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.0.tar.gz (41.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.0-py3-none-any.whl (31.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for devqubit_pennylane-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6ce020acf5a628fe8f601eaa7d3f88549a33e54d0f7f785604ffb923217616d3
MD5 ecbcafb23e4650ac024bc2b0a2175aed
BLAKE2b-256 c6d3be2a8af43714d8056029559af93efb51c0f94d93d74f24bdef2dc85410d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for devqubit_pennylane-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af6e7171eca18f6623345b2f17953dea04dc58728065729dd6094edc802041fb
MD5 85602d8250ba7a1e28944c8691f3a715
BLAKE2b-256 a8959c6100b86d9e9847da215e516fb09b0fa421f45cfcc2bf8371b65485b7ac

See more details on using hashes here.

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