Install & Compatibility
Where this runs
tested against v1.3.1 · 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
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.326s · 273.6MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 17.6s · import 1.360s · 268MB
304MB installed
● package 304MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
QuantumMachine
✓ from qm import QuantumMachine
✗ from qm.QuantumMachine import QuantumMachine
QuantumMachine is not a module; it's in qm namespace.
Program
✓ from qm.qua import Program
✗ from qm.Program import Program
Program is a QUA class, not a top-level module.
ConfigBuilder
✓ from qm import SimulationConfig
ConfigBuilder was deprecated in 1.0; use SimulationConfig.
Create a QUA program, simulate it with a QuantumMachine.
from qm import QuantumMachine, SimulationConfig
from qm.qua import Program, play, amp
import numpy as np
# Minimal program
with Program() as prog:
play('pulse', amp(0.5) * np.array([1+j for j in range(1024)]))
# Simulate
config = SimulationConfig(duration=1000)
qm = QuantumMachine(config=config, simulate=True)
job = qm.execute(prog)
res = job.get_results()
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'qm'
Installed wrong package 'qm' instead of 'qm-qua'.
fixRun: pip uninstall qm && pip install qm-qua
AttributeError: module 'qm' has no attribute 'QuantumMachine'
Import path is wrong; QuantumMachine is not a submodule.
fixUse: from qm import QuantumMachine
ImportError: cannot import name 'Program' from 'qm'
Program is in the QUA subpackage, not top-level qm.
fixUse: from qm.qua import Program
Upgrade
Version history
1.3.1latest on PyPI · released Jun 18, 2026
Audit
Dependencies
qmmoptionalRequired for simulation; distinguish from qm-qua
qm-open-apioptionalRequires license file for hardware connection