Status: Phase 2 (Integration & Testing) In Progress — Phase 1 Complete
GitHub: github.com/rylanmalarchick/qubit-os
Overview
QubitOS is an open-source real-time kernel for quantum pulse optimization and hardware control. The project provides a production-grade infrastructure layer for quantum experiments, bridging the gap between high-level circuit descriptions and hardware-specific pulse sequences.
Key Design Goals:
- Deterministic, reproducible pulse optimization
- Backend independence (simulators and real hardware)
- Strict protocol contracts via Protocol Buffers
- Science-aware validation via AgentBible integration
Current Implementation Status
| Component | Status | Details |
|---|---|---|
| Protocol Buffers | Complete | 7 proto files, full API contract |
| Rust HAL Server | Complete | gRPC + REST, QuTiP backend working |
| Python Library | Complete | GRAPE optimizer, HAL client, calibration |
| Documentation | In Progress | MkDocs structure, guides started |
| Test Coverage | In Progress | 1,321 tests (Python: 1,046, Rust: 275) |
Key Results
| Metric | Value |
|---|---|
| GRAPE X-gate Fidelity | 99.9% |
| Total Tests | 1,321 |
| Python Source Files | 48 |
| Rust Source Files | 17 |
| Proto Files | 7 |
Architecture
User Layer
CLI (qubit-os) | Jupyter Notebooks | Python Scripts
|
+---------------+---------------+
| |
v v
+-------------------------+ +-------------------------+
| Pulse Optimization | | Calibration Management |
| (qubitos.pulsegen) | | (qubitos.calibrator) |
| - GRAPE optimizer | | - T1/T2 fitting |
| - DRAG pulses | | - Fingerprinting |
| - Validation | | - Policy enforcement |
+------------+------------+ +------------+------------+
| |
+---------------+---------------+
| gRPC
v
+-------------------------+
| Hardware Abstraction |
| Layer (HAL) |
| - Rust + tonic |
| - Backend registry |
| - Request validation |
+------------+------------+
|
+---------------+---------------+
| | |
v v v
+----------+ +----------+ +----------+
| QuTiP | | IQM | | Future |
| Backend | | Backend | | Backends |
+----------+ +----------+ +----------+
Implementation Highlights
Protocol Buffers (qubit-os-proto)
- 7 proto files defining the complete API contract
- Message types:
PulseShape,GateType,HamiltonianSpec,ExecutePulseRequest/Response QuantumBackendServicegRPC service with 5 RPCs- Python and Rust code generation via
buf.gen.yaml
Rust HAL Server (qubit-os-hardware)
- 17 source files implementing the hardware abstraction layer
- gRPC server using
tonic 0.12 - REST API facade using
axum 0.7 - QuTiP Backend: Full implementation with PyO3 integration
mesolve()time evolution- Proper tensor product dimension handling
- State vector extraction
- Backend registry with health checks
- Input validation and security (error message sanitization)
Python Library (qubit-os-core)
- 48 source files (including generated protos)
- GRAPE Optimizer (568 lines): Full gradient ascent pulse engineering with Adam-style adaptive learning rate
- HAL Client: Async + sync wrappers for gRPC
- Calibration System: YAML schema with fingerprinting, drift detection
- Validation Framework: Hermitian/unitary matrix validation, fidelity range checking
- CLI:
qubit-oscommand with subcommands
Supported Operations (v0.1-alpha target)
| Gate Type | Gates |
|---|---|
| Single-qubit | X, Y, Z, SX, H, Rx, Ry, Rz |
| Two-qubit | CZ, CNOT, iSWAP |
Backends
- QuTiP Simulator: Default offline backend using Lindblad master equation
- IQM Garnet: Cloud hardware backend (20-qubit superconducting processor) — Phase 3
Roadmap
| Phase | Timeline | Focus | Status |
|---|---|---|---|
| Phase 0 | Jan 2026 | Design specification | Complete |
| Phase 1 | Jan-Feb 2026 | Core implementation | Complete |
| Phase 2 | Feb-Mar 2026 | Integration testing, docs, coverage | In Progress |
| Phase 3 | Mar-Apr 2026 | IQM hardware integration | Planned |
| Phase 4 | Apr-May 2026 | v0.1.0 release | Planned |
Design Principles
- Single Responsibility - Each module has one well-defined job
- Strict Contracts - All inter-module communication uses versioned protos
- Backend Independence - Backends implement a common trait; no special-casing
- Reproducibility First - Every result traces to code version, seed, and calibration
- Fail Loud - Clear error semantics; no silent failures
- Science-Aware Validation - Domain validators catch physics errors early
Technology Stack
| Category | Technology |
|---|---|
| Languages | Rust 1.83+ (HAL), Python 3.11+ (core), Protocol Buffers v3 |
| Communication | gRPC (tonic), REST API facade (axum/OpenAPI) |
| Simulation | QuTiP 5.0+, NumPy, SciPy |
| Validation | AgentBible quantum validators |
| Build | Cargo, pip, buf (proto generation) |
| CI/CD | GitHub Actions, Docker |
Integration with Existing Work
QubitOS builds on my previous quantum projects:
- QubitPulseOpt: GRAPE optimization algorithms
- quantum-circuit-optimizer: Circuit compilation
- qco-integration: End-to-end fidelity analysis
- AgentBible: Scientific validation framework
Links
License
Apache 2.0 - Keeping fundamental quantum experimentation open and non-proprietary.