A Python framework for circuit-QED (cQED) experiment design, execution, and
analysis targeting Quantum Machines hardware (OPX+ + Octave, QUA API v1.2.6).
Package
Role
qubox
Runtime framework — sessions, experiments, calibration, QUA compilation, hardware control
qubox_tools
Analysis toolkit — fitting, plotting, algorithms, optimization
qubox_lab_mcp
Lab MCP server for agent and tool integration
# Runtime
from qubox import Session
session = Session .open (
sample_id = "sampleA" ,
cooldown_id = "cd_2026_03_13" ,
registry_base = "E:/qubox" ,
qop_ip = "10.157.36.68" ,
cluster_name = "Cluster_2" ,
)
# Notebook-facing imports
from qubox .notebook import QubitSpectroscopy , PowerRabi , open_shared_session
# Analysis
import qubox_tools as qt
popt , _ = qt .generalized_fit (x , y , qt .fitting .models .gaussian_model , p0 = [...])
qop_ip must be provided explicitly or persisted in hardware.json; the
runtime no longer falls back to localhost during session bootstrap.
Surface
Audience
Contents
qubox
All users
Session, Sequence, QuantumCircuit, sweep/acquisition specs, top-level data models
qubox.notebook
Notebook users
Experiment classes, session helpers, workflow primitives, waveform generators (~65 symbols)
qubox.notebook.advanced
Infrastructure
Calibration store internals, device registry, artifacts, verification (~45 symbols)
qubox_tools
Analysis
Fitting, plotting, post-processing, optimization
qubox/ Main package (public API + implementation)
qubox_tools/ Analysis, fitting, plotting, optimization
qubox_lab_mcp/ Lab MCP server
tools/ Developer & agent utilities (validation, logging, demos)
notebooks/ 28 sequential experiment notebooks
tests/ Pytest test suite
docs/ Architecture docs, changelog, design reviews
samples/ Sample & cooldown data directories
limitations/ Known QUA/hardware limitations
past_prompt/ Agent prompt logs (append-only)
Canonical (current, maintained)
Supporting (current analysis or planning)
Historical (preserved for reference, may describe removed packages)
Required Python version: 3.12.10 , using either the workspace .venv or a
global 3.12.10 interpreter.