← Back to section · Hardware & Chips

Layers of the Control Software Stack: Five Translations Between a Quantum Circuit and Waveform Samples

A line of quantum circuit code submitted by a user must pass through five layers of translation — compilation, pulse scheduling, waveform synthesis, hardware abstraction and firmware execution — before it becomes an actual waveform at a qubit port. This article maps each layer's responsibilities and interfaces, the portability benefits of layering, and where errors most easily leak between layers.

Published 22 November 2026 · 5 min read · PQ Frontier

Layers of the Control Software Stack: Five Translations Between a Quantum Circuit and Waveform Samples
AI-generated site artwork
Video explainer · Quantum control systems: how signals reach the qubits

In the software world of quantum computing, users write circuits line by line: which gate on which qubit, which qubit to measure. Between that line of code and the microwave waveform that actually appears at a qubit port sits an entire translation machine — the control software stack. Its structure is strikingly similar to the classical software stack: the higher the layer, the more abstract and closer to human intent; the lower, the more concrete and closer to the hardware’s temperament. Understanding this layering is key to understanding how quantum control systems grow from laboratory craft into maintainable engineering.

The five layers, one by one

Layer 1: the circuit layer. Users and algorithm frameworks (the various quantum SDKs) work here, producing hardware-independent quantum circuits: gate sequences, measurements and classical control flow. Optimisation at this layer is logical — reducing gate counts, reordering to cut depth — with no concern for any particular machine.

Layer 2: the compilation layer (transpilation). This translates the logical circuit into the target machine’s “instruction set”: decomposing arbitrary single-qubit gates into combinations of the hardware’s native gate set, mapping logical qubits onto the physical qubit topology (which qubits are adjacent and can interact directly), and inserting SWAP chains for non-adjacent pairs. Mapping quality directly determines the circuit’s actual depth and error, and is the main battlefield of compiler optimisation. This layer’s inputs also include the hardware’s live state: which qubits are temporarily unavailable, which gates currently have smaller calibrated errors — a good compiler routes around ailing qubits.

Layer 3: the pulse layer. Each native gate is expanded into concrete waveforms and timing: the calibration database is consulted for that qubit’s and that gate’s latest waveform parameters (amplitude, duration, DRAG coefficient, frequency), the playback schedule for all channels is laid out, and alignment and parallelism constraints are resolved. This layer is the seam between software and physics: it is here that a gate first becomes “a function of voltage over time”. Pulse-level programming interfaces (specifications in the spirit of OpenPulse) live at this layer, letting researchers bypass the gate abstraction to design new gates and calibration experiments directly.

Layer 4: the hardware abstraction layer (HAL). This translates the pulse schedule into instructions the specific control hardware can execute: waveform data downloaded into each channel’s memory, sequencer programs loaded, triggers configured. This layer shields hardware differences — swap the control electronics and, in principle, the upper software does not change. The storage format of calibration data and the channel mapping tables also belong to this layer.

Layer 5: the firmware and driver layer. FPGA firmware and device drivers, responsible for actually playing waveforms on the clock beat, acquiring readout data and executing conditional branches. It grows together with the hardware and pursues determinism and throughput: waveform playback timing precision and data-return bandwidth are delivered here.

The calibration database: the stack’s invisible core

Beyond the five layers sits one cross-cutting component: the calibration database. Every qubit’s frequency, every gate’s waveform parameters, every readout chain’s discrimination thresholds are numbers measured by calibration experiments, carrying timestamps and confidence indicators. The pulse layer consults it every time it expands a gate; the error data the compiler uses for routing decisions also comes from it.

How well the calibration database is managed determines experimental reproducibility: when parameters were updated, which calibration experiment produced them, and which historical results are affected by an update all need versioned records. A common practice is to manage calibration data like code — version control, change review, automatic linkage to experiment logs. Teams that neglect this layer tend to stumble on “last week’s result cannot be reproduced this week”.

Where the real-time loop sits in the stack

One class of logic does not take the slow top-down path above: error-correction feedback. Measurement results must become the next operation within microseconds — there is no time for layer-by-layer translation from circuit to pulse. The software stack therefore keeps a fast lane at the firmware layer: before an experiment starts, the feedback strategy is compiled into state machines and lookup tables inside the FPGA, and at run time the data never leaves the bottom layer before a decision is made; the slow path “sets the stage”, the fast lane “reacts on the spot”. The boundary between the two paths — which decisions can be precompiled and which must be computed in real time — is the single cut in control-software architecture that demands the most thought. Cut too high and feedback latency blows the budget; cut too low and the strategy loses flexibility, with every protocol change requiring a firmware reflash.

The same division of labour appears in calibration: calibration experiments are upper-layer applications on the slow path, but the parameter tables they produce must be delivered in a form the firmware can look up directly. The maturity of a software stack shows half in the elegance of the slow path’s abstractions, and half in whether this fast lane’s boundary is drawn in the right place.

The benefits and costs of layering

The benefits are the classic software-engineering logic: portability (the same circuit runs on different backends, with cross-validated results), testability (each layer can be unit-verified separately, so compilation errors need not wait for machine time to surface), and evolvability (a better compilation algorithm or a new generation of control hardware touches only one layer).

The costs also sit at the interfaces. Every translation can lose information or introduce approximation: a gate at the circuit layer is implemented at the pulse layer by an approximate waveform, and someone must account for the approximation error; the SWAPs the compiler inserts for executability add error that must align with the upper-level algorithm’s error budget. Mature software stacks therefore equip each layer with observability tools: circuit-depth statistics, pulse-schedule visualisation, waveform capture-and-compare — making errors visible at every layer. The engineering maturity of quantum control software is, to a large extent, exactly this capacity to “make things visible”.

Tags: Control Software StackQuantum CompilationPulse Scheduling