Registry / ai-ml / qualang-tools

qualang-tools

JSON →
library0.22.0pypypi✓ verified 88d ago

A Python package providing tools and utilities for QUA quantum control programs, developed by the QUA platform team. It includes functionality for wiring, configuration, data handling, and integration with QOP (Quantum Orchestration Platform). Current version 0.22.0, requires Python 3.9-3.13, with regular releases on GitHub.

pip install qualang-tools
INSTALL
IMPORT
SIG · QUALANG-TOOLS
Q
qualang-tools
ai-mlpythonv0.22.0
Install
30.8s avg
Import
1388ms
Disk
596MB
Pass rate
4/ 10
Env Coverage4 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v0.22.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✕ build_error
✓ 28.4s
py 3.11
✕ build_error
✓ 26.2s
py 3.12
✕ build_error
✓ 27.5s
py 3.13
✕ build_error
✕ build_error
py 3.9
✕ build_error
✓ 41.2s
596MB installed
● package 596MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

qmm
✓ from qm import QuantumMachinesManager as qmm
qmm is from qm package, not qualang-tools; often confused.
simulate
✓ from qm.qua import simulate
✗ from qualang_tools import simulate
simulate function is part of qm-qua library.
Program
✓ from qm.qua import Program
✗ from qualang_tools.qua import Program
Program class is in qm-qua, not qualang-tools.

Import and basic usage with QuantumMachinesManager and QUA simulation.

from qualang_tools.wirer import ConnectivityQuantumDotQubits from qm import QuantumMachinesManager from qm.qua import Program, simulate import os qop_ip = os.environ.get('QOP_IP', 'localhost') qmm = QuantumMachinesManager(host=qop_ip) # Example: create a simple QUA program with Program() as prog: pass # Simulate simulate(qmm, prog)
Debug
Known issues
deprecatedUse of 'fetch_all' has been replaced by 'fetch_results' since qm-qua>=1.2.3.
fix
Replace fetch_all with fetch_results.
affects: >=0.21.1
breakingBreaking change in v0.21.0: qm-qua requirement bumped to >=1.2.3; callable_from_qua may break with older qm-qua.
fix
Upgrade qm-qua to 1.2.3 or later.
affects: >=0.21.0
breakingBreaking change in v0.20.0: callable_from_qua not compatible with qm-qua <= 1.2.0.
fix
Upgrade qm-qua to >=1.2.2 or later.
affects: >=0.20.0
gotchaBe careful with the import: 'from qm.qua import Program', not from qualang_tools.
fix
Use correct import path from qm-qua library.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'qualang_tools'
Package not installed or typo in package name (underscore vs hyphen).
fix
Install using 'pip install qualang-tools' and import with 'import qualang_tools'.
AttributeError: module 'qualang_tools' has no attribute 'Program'
Importing Program from qualang_tools instead of from qm.qua.
fix
Use 'from qm.qua import Program'.
qm_qua version mismatch: qualang-tools requires qm-qua >= 1.2.3
Installed qm-qua version is too old.
fix
Upgrade qm-qua: pip install --upgrade qm-qua.
Upgrade
Version history
0.22.0latest on PyPI · released Apr 1, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
OpenAI (training)
1
Resources
qualang-tools — pip install qualang-tools · libregistry