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.7.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.7.0
File Size Uploaded
pennylane_iqm-0.7.0.tar.gz 394.5 kB Details

Built distribution (wheel)

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

Total release size: 421.5 kB

Release files / pennylane_iqm-0.7.0.tar.gz

Download URL pennylane_iqm-0.7.0.tar.gz
Size 394.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b39b533bbb1b31bdc848cad37288f12ff0e217e653f56923a8d1d5233c477fc0
BLAKE2b-256 checksum
How to use checksums
5efc7bec787ac0df20a5d3bcf778f19f0ec11234b00b6427e393d28455528719
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL pennylane_iqm-0.7.0-py3-none-any.whl
Size 27.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69b49976b209086e238cc740b7270bbdaeddb71c562f1c70c64de441e8541dab
BLAKE2b-256 checksum
How to use checksums
eb886e96e924bbfaec161a116bf70536336b47ded5363780ad8196bbf1f4b8fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

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