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:

  1. assemble (riscq/compile.mjs) splits the actions into segments, finds the preroll of each, and asks riscq/firmware.mjs for one RV32I program per core.
  2. 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.
  3. 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 ringIon trap (QCCD)Atom array
Control clock, batch500 MHz, 2 ns100 MHz, 10 ns100 MHz, 10 ns
Coresone per qubittransport cores, one per gate zone, one for lightone per AOD, one for the lasers
Pulse channels drivemicrowave drive and readout toneselectrode waveforms, laser modulatorsRF tones of the deflectors, laser modulators
Measurementdemodulation window on an ADCphoton edges on a digital inputnone in this program
Source of durationsRISC-Q's calibration filePino 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 ringIon trapAtom 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.

About 1,640 µs against 2.55 µs: some 640 times. Neither number is a speed of the controller. Both are set by the physical operations the controller waits for.

How many timed writes do the cores of the atom run issue in all?

Almost two thousand, against eight on the transmon ring. Nearly all of them are the frequency steps of the moves: one carrier update every 2 µs per moving tone. A neutral-atom controller is a stream of small updates; a transmon controller fires few, precisely placed pulses.

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?

  1. Transmon: readout. Ions: cooling and shuttling. Atoms: moving atoms.
  2. Transmon: two-qubit gates. Ions: two-qubit gates. Atoms: Rydberg pulses.
  3. In all three, the controller's firmware.
  4. Transmon: coax delay. Ions: photon counting. Atoms: acoustic delay.
In every run the controller spends most of its time waiting with its next writes already queued. What it waits for is physics: a resonator to ring up and down, ions to cool and move, atoms to be carried.

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:

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⌋.

101.17 µs. Each job is two 15 µs transfers and a move whose duration grows with the square root of the distance, so the spread comes from the moves.

If the virtual machine declares the slowest job's latency for every route, by how many percent does it overcharge the median job?

145.05 / 101.17 = 1.434, an overcharge of 43.4%. A declaration per distance class, or a latency that depends on the distance, would charge closer to the cost. That is a design question for the virtual machine, and this measurement is the evidence for it.

5What the controller itself costs

report() also measures the controller. Three numbers matter across platforms:

In the transmon run, how many nanoseconds after qubit 0's acquisition window closes does the pulse conditioned on its bit open?

344 ns. The result is at the measuring core after 34 ns, published through the hub after 70 ns and at every core after 86 ns. The rest is the second barrier and the 96-batch lead of the conditioned fire. Lesson E1 accounts for every batch, and lesson D3 removes the hub from the path.

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.

MachinePathDelay in the modelBasis
Transmon ring1,050 mm of coax into the cryostat5.003 nsKrinner et al. 2019, Table 1, at an assumed 0.7 c
Ion trapDAC to electrodes, modulators to the zone0not modeled
Atom arraysound crossing the beam in the deflector6.154 µsderived: 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.

  1. Atom array, transmon ring, ion trap.
  2. Transmon ring, atom array, ion trap.
  3. All three are about 5 ns.
  4. Ion trap (not modeled, 0), transmon ring (5.003 ns), atom array (6.154 µs).
The ion path is not modeled, so its bindings carry no delay. A real trap has filters on its electrode lines that shape and delay the waveforms; that is QCCD Studio's domain.

What to remember

  1. The front ends differ; firmware generation, the Lean model and the trace are shared, and so are their proofs.
  2. A build is a clock plus cores and channels. The physics sets the durations: ns for transmons, µs to ms for ions and atoms.
  3. In every run the controller mostly waits. Readout, cooling, shuttling and atom moves dominate.
  4. report() turns runs into system-call costs: route latency, issue rate, burst preroll, feedback.
  5. One declared route latency overcharges the median atom job by 43%: measurement is evidence for the virtual machine's design.