Part C · Lesson 4
The same controller everywhere
A transmon ring, an ion trap and an atom array differ in almost every physical number. Their control systems, here, are the same design. This lesson puts the three runs side by side, measures what each costs the controller, and separates what the controller decides from what the physics imposes.
This lesson compares the runs of lessons C1, C2 and C3. Read those first. Lesson E1 takes the feedback measurement of section 5 further.
1What does not change
In this section: the parts of the pipeline every platform shares.
Each platform has its own front end: OpenQASM for the transmon ring, QCCD Studio's TSIR for the ion trap, a ZAC program for the atom array. Each front end produces hardware instructions and lowers them to channel actions: a list of timed fires, carrier updates, result reads and photon counts, each on one core and one channel. From there on, nothing knows the platform:
assemble(riscq/compile.mjs) splits the actions into segments, finds the preroll of each, and asksriscq/firmware.mjsfor one RV32I program per core.- Each program issues every timed write one lead of 96 batches before its start time, through the same table loop or the same inline code.
- The Lean model of the controller (
QControl/RiscQ/Soc.lean) executes all cores, links, timed queues, channels and the hub, and writes the trace.
The theorems about that model therefore hold on all three machines. For example land_exact in
QControl/RiscQ/Timing.lean states that a write ready no later than its lead before the start time lands
exactly when the batch-time register reads the start time. That is a property of the model, proved in Lean. It is not
a measurement of hardware.
What the front end chooses is the build: the clock, and how many cores with which channels.
| Transmon ring | Ion trap (QCCD) | Atom array | |
|---|---|---|---|
| Control clock, batch | 500 MHz, 2 ns | 100 MHz, 10 ns | 100 MHz, 10 ns |
| Cores | one per qubit | transport cores, one per gate zone, one for light | one per AOD, one for the lasers |
| Pulse channels drive | microwave drive and readout tones | electrode waveforms, laser modulators | RF tones of the deflectors, laser modulators |
| Measurement | demodulation window on an ADC | photon edges on a digital input | none in this program |
| Source of durations | RISC-Q's calibration file | Pino et al. 2021 (standard values) | the ZAC program |
2Three runs side by side
The table below is built in your browser from three runs of the simulator: superconducting-feedforward
with c = 1, qccd-ghz3 with q0 and q2 bright, and neutral-bv14. Every cell is read from the
run bundles. "Timed writes" counts the fires and carrier updates the firmware issues during the program
(firmware[].writes).
Compare the three runs
Runs the three examples on the server (the atom program takes a few seconds) and fills the table.
| Transmon ring | Ion trap | Atom array |
|---|
How many times longer is the atom run than the transmon run, from first event to last
(summary.elapsedPs)? Round to a whole number.
How many timed writes do the cores of the atom run issue in all?
3What dominates the time
Sum the durations of each kind of hardware instruction and compare them with the span of the program. On the transmon ring the measurement (1.06 µs of tone and window) is longer than all gates together. On the ion trap the initial cooling (550 µs) and the shuttles (446.6 µs) dwarf the gates (95 µs). On the atom array at least one rearrangement job is under way during 1,623.7 µs of the 1,634.1 µs span; the Rydberg pulses add up to less than 5 µs. Open the Hardware instructions layer of each run in the workspace and read the durations there.
Which line names what takes most of the time in each run?
- Transmon: readout. Ions: cooling and shuttling. Atoms: moving atoms.
- Transmon: two-qubit gates. Ions: two-qubit gates. Atoms: Rydberg pulses.
- In all three, the controller's firmware.
- Transmon: coax delay. Ions: photon counting. Atoms: acoustic delay.
4Measuring a system call: route
In this section: how a run gives the latency of moving qubits, and why one number per call is costly.
The fault-tolerant virtual machine this project serves describes each service of a quantum computer by one latency
and one capacity. A system call such as route, which
brings qubits together, is charged that latency every time. riscq/syscalls.mjs reads what the
controller model actually spends. Its report(run) takes one route sample per transport:
- Atoms: one sample per rearrangement job, from the start of its pickup to the end of its drop.
- Ions: one sample per Studio transport cycle.
- Transmons: none. The couplings of the ring are fixed, so
routehas no realization there.
A single declared latency must cover the slowest route. On the ZAC program the 26 jobs take from 90.45 µs to
145.05 µs. Declaring 145.05 µs charges the typical route much more than it costs. The test
tests/riscq-syscalls.test.mjs pins these values. On qccd-rotation every cycle takes 5 µs,
so one number fits all of them; its cost appears elsewhere, as the 2.24 µs preroll of lesson C2.
What is the median latency of a rearrangement job in the atom run? Use the definition of
syscalls.mjs: sort the 26 latencies and take the element at index ⌊0.5 × 26⌋.
If the virtual machine declares the slowest job's latency for every route, by how many percent does
it overcharge the median job?
5What the controller itself costs
report() also measures the controller. Three numbers matter across platforms:
- Issue rate. At 100 MHz a core's table loop issues at most about 29 posted writes per µs, two per timed write. Every core of the ion and atom runs stays at or under that peak. At 500 MHz the transmon cores reach higher peaks over short stretches.
- Burst width and preroll. The widest set of pulses opening on one batch, and how much later the segment
starts because of it: 2 pulses and 7 batches (14 ns) on the transmon ring, 24 pulses and 2.24 µs on
qccd-rotation, and no preroll on the GHZ and ZAC runs. - Feedback. On the transmon ring, the time from the close of a readout window to the bit at the measuring core, at the hub, at every core, and to the conditioned pulse. This is the only platform here whose program conditions a gate on a measurement.
In the transmon run, how many nanoseconds after qubit 0's acquisition window closes does the pulse conditioned on its bit open?
6What differs physically
The controller ends at a converter. Between the converter and the qubit, each machine has its own physical path,
and the model gives each its own delay. Each is visible as arrivesPs − atPs on the effect
frames of a run.
| Machine | Path | Delay in the model | Basis |
|---|---|---|---|
| Transmon ring | 1,050 mm of coax into the cryostat | 5.003 ns | Krinner et al. 2019, Table 1, at an assumed 0.7 c |
| Ion trap | DAC to electrodes, modulators to the zone | 0 | not modeled |
| Atom array | sound crossing the beam in the deflector | 6.154 µs | derived: 4 mm at 650 m/s |
The timescales differ just as much. A transmon gate lasts tens of nanoseconds, an ion gate microseconds, a cooling stage or an atom move a hundred microseconds or more. That is why one controller design can serve all three with different clocks: what has to be exact is the start of each pulse relative to the others, and the timed queues provide that on every build.
Order the modeled converter-to-qubit delays from shortest to longest.
- Atom array, transmon ring, ion trap.
- Transmon ring, atom array, ion trap.
- All three are about 5 ns.
- Ion trap (not modeled, 0), transmon ring (5.003 ns), atom array (6.154 µs).
What to remember
- The front ends differ; firmware generation, the Lean model and the trace are shared, and so are their proofs.
- A build is a clock plus cores and channels. The physics sets the durations: ns for transmons, µs to ms for ions and atoms.
- In every run the controller mostly waits. Readout, cooling, shuttling and atom moves dominate.
report()turns runs into system-call costs: route latency, issue rate, burst preroll, feedback.- One declared route latency overcharges the median atom job by 43%: measurement is evidence for the virtual machine's design.