Skip to main content

Pennylane IQM

Unofficial, experimental and partially vibe-coded connector for Pennylane to submit to IQM quantum computers.

This project tries to bridge the gap between Pennylane and IQM Client when writing and submitting Pennylane quantum circuits. It skips Qiskit and IQM Qiskit entirely, differentiating itself from the typical pennylane → pennylane-qiskit → qiskit-iqm flow.

Installation

The package is not on PyPI yet. Install from a git checkout using uv:

uv pip install pennylane-iqm

Submit a circuit:

import pennylane as qml
from pennylane_iqm import IQMDevice

dev = IQMDevice(server_url="<IQM_SERVER_URL>")  # token from $IQM_TOKEN

@qml.qnode(dev, shots=1024)
def bell():
    qml.Hadamard(0)
    qml.CNOT([0, 1])
    return qml.expval(qml.Z(0) @ qml.Z(1))

print(bell())

Development

Python version 3.11 and 3.12 is supported but 3.11 is recommended to compatibility with IQM Client.

Setup

uv sync --all-groups          # main + dev + docs
uv run pre-commit install     # enable formatting/linting on commit

All checks run through tox:

uv run tox -e ruff,pyrefly    # lint, format check, type check
uv run tox -e py311,py312     # unit tests on both Python versions
uv run tox                    # everything in env_list

Release

To make a new release edit the CHANGELOG.md.

Metadata

Release files for pennylane-iqm 0.8.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 pennylane-iqm 0.8.0
File Size Uploaded Provenance Actions
pennylane_iqm-0.8.0.tar.gz 395.5 kB Without provenance Details for pennylane_iqm-0.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pennylane-iqm 0.8.0
File Interpreter ABI Platform Actions
pennylane_iqm-0.8.0-py3-none-any.whl Python 3 none any Details for pennylane_iqm-0.8.0-py3-none-any.whl

Total release size: 422.7 kB

Release files / pennylane_iqm-0.8.0.tar.gz

Download URL pennylane_iqm-0.8.0.tar.gz
Size 395.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4c5406a175e32abeafd57d3519cfabfeaf4a539007632008c3f172643a3c7520
BLAKE2b-256 checksum
How to use checksums
6bf84159cf0e01a454c2af041df99f3327fd5a8795cc1239053dca4b3897235b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / pennylane_iqm-0.8.0-py3-none-any.whl

Download URL pennylane_iqm-0.8.0-py3-none-any.whl
Size 27.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dfb1d3b73adb3aa2a7d052eecaa8536eeac6d83e0c54d737e79a9ec359ec12c9
BLAKE2b-256 checksum
How to use checksums
d0644234f8edaa5e46227ce59b639d6b08582a9ae3e5bc3766119c4222308787
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Security for pennylane-iqm 0.8.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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