Background · Chapter 1

Qubits and what controls them

A superconducting circuit at 10 millikelvin, an ion floating above a gold chip, and an atom held in a beam of light are three very different objects. Each is a qubit only because a classical machine prepares it, rotates it, entangles it and reads it out on cue. This chapter explains, for each platform, what the qubit is, which signals act on it, how long each operation takes, and what that asks of the control system.

No physics background is assumed beyond the idea that a qubit has two states, written |0⟩ and |1⟩, and can be in a superposition of them. Dotted words have a one-sentence definition on hover; the glossary lists them all. The numbers in this chapter carry their sources. When a number belongs to the simulator, the text says which file or run it comes from.

1Four jobs, three machines

What does a qubit need from the outside world?

In this section: the operations every platform must perform, and why their timescales differ by a factor of a thousand.

Every quantum computer needs the same four things from its control system. It must prepare each qubit in a known state, usually |0⟩. It must rotate single qubits by precise angles about precise axes. It must entangle pairs of qubits with a two-qubit gate. And it must measure qubits and turn the result into a classical bit. Two of the three platforms in this course add a fifth job: moving qubits, because their two-qubit gates act only on qubits that sit next to each other.

Each job is done by a physical signal. On a superconducting chip the signal is a microwave pulse on a coaxial cable. On an ion trap it is a laser beam switched by a radio-frequency modulator, or a set of electrode voltages. In a neutral-atom array it is a laser, or a radio-frequency tone that steers a laser beam. The control system has to produce every one of those signals with the right shape, frequency and phase, and release it at the right moment.

How tight "the right moment" is depends on the platform. A transmon single-qubit gate lasts tens of nanoseconds, so a timing error of one nanosecond is a few percent of the gate. An ion gate lasts microseconds and an ion shuttle tens of microseconds, so the absolute precision needed is lower, but the number of signals is much larger: a trapped-ion machine can have hundreds of electrodes, each with its own voltage waveform. The rest of this chapter goes through the three platforms one by one. Section 5 puts them side by side.

What the simulator does with this. QuantumOS follows every classical signal from the control processor to the qubit, ion, electrode or atom it reaches. It does not compute what the qubit does in response: no quantum state is simulated, and a measurement result is an input you choose. This chapter explains the physics so that you know what each signal is for.

2Superconducting transmons

How can a piece of metal on a chip be a qubit?

In this section: the transmon, its microwave drive, the virtual Z, two-qubit gates, dispersive readout, and the cryostat with its cables.

The qubit

A transmon is an electrical circuit: a Josephson junction, a thin insulating barrier between two superconductors, in parallel with a capacitor (Koch et al., Phys. Rev. A 76, 042319 (2007), arXiv:cond-mat/0703002). Cooled far below the superconducting transition, the circuit behaves like a quantum oscillator. Because the junction is nonlinear, its energy levels are not evenly spaced. The lowest two serve as |0⟩ and |1⟩, and the gap between the first and second excited level is a few hundred megahertz smaller, so a pulse tuned to the 0–1 transition does not drive the next one by accident. That difference is the anharmonicity.

The qubit frequency is set when the chip is made, and for tunable designs adjusted with a magnetic flux. On the eight-transmon ring that this course runs, the frequencies come from RISC-Q's example calibration (validation/riscq/x6y3-calibration.json): the eight qubits sit between 5.234 and 5.914 GHz, and their measured energy-relaxation times T1 range from 24 µs to 118 µs. T1 is how long, on average, an excited qubit stays excited. Every operation has to fit well inside it.

Single-qubit gates: microwave pulses

A rotation is a microwave pulse at the qubit frequency on the qubit's drive line. The pulse is a carrier sinusoid multiplied by an envelope. The pulse's area sets the rotation angle and the carrier's phase sets the rotation axis: phase 0 rotates about X, phase 90° about Y. A plain Gaussian envelope leaks population into the second excited level when the pulse is short, so most laboratories add a derivative component on the quadrature channel, the DRAG correction (Motzoi et al., Phys. Rev. Lett. 103, 110501 (2009), arXiv:0901.0534).

The ring's calibration gives every qubit a 35 ns 90° pulse (x90) and a 70 ns 180° pulse (x), both with a FAST_DRAG envelope. Published devices are in the same range: ETH Zurich's distance-three surface code used 40 ns DRAG pulses (Krinner et al., Nature 605, 669 (2022), arXiv:2112.03708), and Google's 105-qubit processor runs all XY rotations in 25 ns (Google Quantum AI, Nature 638, 920 (2025), arXiv:2408.13687, supplement).

Rotations about Z need no pulse at all. A Z rotation changes the phase of the qubit relative to the drive, so it can be implemented by shifting the phase of every later pulse on that qubit. This is the virtual Z (McKay et al., Phys. Rev. A 96, 022330 (2017), arXiv:1612.00858). It is exact and takes zero time, and it is why a Hadamard on a transmon is one physical pulse with phase bookkeeping around it. In the simulator it is the frame hardware instruction, and lesson C1 follows one.

On the ring, one batch of the controller clock is 2 ns, and a pulse window is a whole number of batches. How many batches does the 35 ns x90 pulse window of qubit 0 last in the feed-forward run?

35 ns is 17.5 batches, and the window is rounded up to whole batches: 18 batches, 36 ns. The envelope inside the window carries the shape. The answer is read from the first pulse of the run's summary.

Two-qubit gates

Two transmons are coupled through a capacitor or a tunable coupler. Many laboratories make a controlled-Z (CZ) gate by bringing the two qubits' levels into resonance with a fast flux pulse. Krinner et al. report 68 ns net-zero flux pulses with 15 ns buffers on each side, 98 ns in all; Google's 105-qubit processor performs CZ gates in 42 ns (both sources above). The ring's calibration takes a different route: a CZ is a 400 ns tone at a pair frequency, played at the same time on both qubits' drive lines, followed by phase corrections. For the control system the difference matters: a flux-based CZ needs a baseband flux line per qubit, a microwave-activated CZ needs only the drive lines that are already there.

Readout: dispersive measurement

A transmon is read out through a microwave resonator coupled to it. The resonator's frequency shifts slightly depending on whether the qubit is in |0⟩ or |1⟩. A probe tone at the resonator frequency therefore comes back with a state-dependent amplitude and phase. This is dispersive readout (Blais et al., Rev. Mod. Phys. 93, 025005 (2021), arXiv:2005.12667). The returning tone is amplified, digitized by an ADC, multiplied by a reference tone and integrated over a window. That step, demodulation, gives one complex number per measurement, and a threshold on it gives the bit. Chapter 2 explains the arithmetic.

The ring's resonators sit between 6.555 and 6.836 GHz. Each readout tone lasts 500 to 750 ns, and each demodulation window, which opens 335 to 750 ns after the tone starts, lasts 590 to 835 ns (calibration file). Published numbers are similar: Google's 2023 surface-code experiment used a 500 ns measurement and a 160 ns reset in a 921 ns cycle (Google Quantum AI, Nature 614, 676 (2023), arXiv:2207.06431, Fig. 1), and Krinner et al. integrated for 400 ns.

The cryostat and its cables

Transmons work only at a few millikelvin, inside a dilution refrigerator. The refrigerator is a stack of plates at decreasing temperatures, and every control signal enters from room temperature through coaxial cables that are attenuated and thermally anchored at each plate. Krinner et al. list the stages of a Bluefors XLD400 and the cable length between them (Krinner et al., EPJ Quantum Technology 6, 2 (2019), arXiv:1806.07862, Table 1):

StageTemperatureCable length into the stageSource
50 K plate35 K200 mmKrinner et al. 2019, Table 1
4 K plate2.85 K290 mmsame
Still882 mK250 mmsame
Cold plate82 mK170 mmsame
Mixing chamber6 mK140 mmsame
Flange to chip1,050 mmsum, used by riscq/platforms/superconducting.mjs

The simulator uses that 1,050 mm as the path from the converters to the chip, at an assumed signal speed of 0.7 times the speed of light. Every drive pulse therefore reaches its qubit about 5 ns after it leaves the converter. Lesson D2 shows what happens when you lengthen that path.

Room temperature control processor DAC ADC Dilution refrigerator 50 K 4 K still cold pl. MXC drive: shaped microwave pulse, ~5.2–5.9 GHz Q res. readout: probe tone in, reflected tone back to the ADC, ~6.6–6.8 GHz qubit chip, ~6 mK 1,050 mm of coax, flange to chip (Krinner et al. 2019)
One transmon and its signals. A DAC at room temperature produces the drive pulse, which travels through the refrigerator stages to the qubit. The readout tone reflects off the qubit's resonator and returns to an ADC. Attenuators, filters, amplifiers and circulators that real setups put on these lines are omitted, and the simulator does not model them either. Frequencies are the ranges of the x6y3 calibration. Schematic drawing, not to scale.

What the control system must produce

Per transmon: shaped microwave pulses of tens to hundreds of nanoseconds on a drive line, with phase changes applied between pulses at the exact batch; for a flux-tuned design, baseband pulses on a flux line; a readout tone; and an acquisition window on a shared ADC, with the result available fast enough to condition later pulses. A 2 ns timing step is 6% of a 35 ns gate, so every pulse must land on its scheduled clock cycle, not near it. Chapter 4 explains how RISC-Q guarantees that.

3Trapped ions

How do you compute with single charged atoms held in vacuum?

In this section: the hyperfine qubit, laser gates and the Mølmer–Sørensen gate, the QCCD architecture and its shuttles, fluorescence detection, cooling, and the signals all of this needs.

The qubit

An ion trap holds charged atoms in vacuum with oscillating and static electric fields. In a surface-electrode trap the electrodes lie on a chip and the ions float tens of micrometres above it. The qubit is two internal states of one ion. In a hyperfine qubit both states belong to the electronic ground level and differ in how the electron and nuclear spins combine, which makes the qubit very insensitive to noise (Bruzewicz et al., Appl. Phys. Rev. 6, 021314 (2019), arXiv:1904.04178). Quantinuum's H-series machines use 171Yb+ as the qubit and 138Ba+ as a coolant ion that shares the trap (Pino et al., Nature 592, 209 (2021), arXiv:2003.01293; Moses et al., Phys. Rev. X 13, 041052 (2023), arXiv:2305.03828). The 171Yb+ hyperfine splitting is about 12.6 GHz (Olmschenk et al., Phys. Rev. A 76, 052314 (2007), arXiv:0708.0657).

Gates: lasers and shared motion

A single-qubit rotation is driven by light, most often a pair of laser beams whose frequency difference matches the qubit splitting: a Raman transition. As on a transmon, the pulse's duration and power set the angle and its phase sets the axis, and Z rotations can again be virtual. The beams are switched and shaped by acousto-optic modulators, crystals driven by a radio-frequency tone; the control system generates that tone.

Ions in the same trap repel each other and move together, so they share vibrational modes. The Mølmer–Sørensen gate uses laser beams tuned close to a motional sideband to push the shared motion out and back along a path whose enclosed phase depends on both qubits' states (Sørensen and Mølmer, Phys. Rev. Lett. 82, 1971 (1999), arXiv:quant-ph/9810039). When the motion returns, only the entangling phase remains. The gate works only if the ions are cold and in the same well, which is why ions have to be moved together before they can interact.

The QCCD: moving ions

A long chain of ions in one trap has crowded vibrational modes and slow gates. The quantum charge-coupled device keeps chains short by using many small trapping zones on one chip and moving ions between them (Kielpinski, Monroe and Wineland, Nature 417, 709 (2002)). The static electrode voltages shape the potential along the trap axis into wells. Changing the voltages moves the wells, and an ion follows its well. This is a shuttle. Splitting a pair into two wells, merging two wells into one, and swapping two ions are built from the same mechanism.

Pino et al. measured every primitive of their QCCD machine:

OperationDurationSource
Intrazone shift, 110 µm within one gate zone58 µsPino et al. 2021, Table II
Interzone shift between the two gate zones283 µsTable II
Split or combine128 µsTable II
Swap200 µsTable II
Interpolation and electronics overhead~10% on every operationTable II caption
State initialization10 µsTable III
Single-qubit π/25 µsTable III
Two-qubit gate25 µsTable III
Measurement (high fidelity / low crosstalk, mid-circuit)120 µs / 60 µsTable III
Cooling stages: Doppler, sideband, axial sideband550 / 850 / 650 µsTable III

Transport dominates. On Quantinuum's H2 racetrack, transport takes 60% of the total circuit time on average (Moses et al. 2023, Sec. II.E). For a control system this means that most of what it does on an ion machine is play voltage waveforms on electrodes, not laser pulses.

Ions moving between trap sites in the RISC-Q workspace
Shuttling in the simulator. The GHZ program of lesson C2 running on a QCCD Studio architecture. Each hop of an ion is a set of DAC waveforms on its electrode control channels, issued by a transport core. Photographed from the running workspace, one trace step per frame.

Detection and cooling

An ion is measured by shining a laser that makes one qubit state scatter many photons and leaves the other dark. For 171Yb+ this light is near 369 nm (Olmschenk et al. 2007). A photomultiplier or a similar detector turns each collected photon into an electrical pulse, and the control system counts those pulses during the detection window: many counts mean |1⟩ (bright), few mean |0⟩ (dark). In the simulator a bright ion yields 10 photons per window and more than one count reads as bright. These are a composite of two machines (Wright et al., Nat. Commun. 10, 5464 (2019) and Egan et al., Nature 598, 281 (2021)), because no H-series paper states its photon statistics; riscq/standards.mjs marks them so.

Every gate and every shuttle heats the ions' motion a little, and a hot ion gives a poor Mølmer–Sørensen gate. Cooling lasers take the motion back down. Because laser light on the qubit ion would scatter photons and destroy its state, the coolant ion is cooled instead and takes the qubit's motion with it: sympathetic cooling (Pino et al. 2021).

What the control system must produce

Many slow, precise voltage waveforms, one per electrode control channel, updated together so that wells move smoothly; RF tones for the acousto-optic modulators that switch and shape each laser beam, with the gate's phase; and photon counting on digital inputs during each detection window. In the simulator's QCCD machine (riscq/platforms/qccd.mjs), transport cores carry one DAC channel per QCCD Studio electrode control channel, each gate zone has a core with three laser-modulator channels (rotation, Mølmer–Sørensen, detection) and a photon-counter input, and one more core switches the broadcast cooling light. Its controller clock is 100 MHz, so one batch is 10 ns.

In a QCCD machine, what physically moves an ion from one zone to the next?

  1. A laser beam that pushes it along the trap axis.
  2. The radio-frequency trap drive changing its frequency.
  3. Changing the static voltages on the segmented electrodes, so the potential well moves and the ion follows.
  4. A magnetic field gradient.
The DC electrodes shape the potential along the trap axis into wells. Changing their voltages moves the wells. This is why, in the simulator, every transport cycle is a burst of DAC waveforms on electrode control channels (lesson C2).

4Neutral atoms

How can light both hold an atom and move it?

In this section: optical tweezers, static and movable traps (SLM and AOD), Rydberg gates, Raman rotations, camera readout, and the signals they need.

The qubit and the trap

A neutral atom has no charge, so it cannot be held by electric fields the way an ion is. Instead it is held in a tweezer: a laser beam focused to a spot about a micrometre wide, tuned so that the atom is attracted to the brightest point. The qubit is again a pair of hyperfine ground states; the Harvard and MIT experiments this chapter cites use 87Rb (Bluvstein et al., Nature 604, 451 (2022), arXiv:2112.03923), whose ground-state hyperfine splitting is about 6.83 GHz (D. A. Steck, "Rubidium 87 D Line Data", 2001, revised since).

Large arrays use two kinds of tweezers. A spatial light modulator (SLM) shapes one beam into a fixed pattern of hundreds of spots: static traps where atoms are stored. An acousto-optic deflector (AOD) makes movable spots. An RF tone drives a sound wave through a crystal, the sound wave diffracts the laser beam, and the deflection angle grows with the tone's frequency. Several tones at once make several beams. Two crossed AODs, one for rows and one for columns, make a grid of spots at every crossing of a row tone and a column tone. Endres et al. drove 100 tweezers with tones 0.49 MHz apart, which put the spots 2.6 µm apart (Endres et al., Science 354, 1024 (2016), arXiv:1607.03044, Fig. 2D).

laser AOD crystal sound wave from RF tones RF: f₁, f₂, f₃ atom at x(f₃)atom at x(f₂)atom at x(f₁) position x = x₀ + (f − f₀) / k, k ≈ 188 kHz per µm here
An acousto-optic deflector. Each RF tone in the crystal deflects part of the beam by an angle that grows with the tone's frequency, so each tone makes one tweezer, and stepping a tone's frequency moves its tweezer. The simulator's calibration constant k = 188,462 Hz/µm is derived from Endres et al.'s 0.49 MHz per 2.6 µm (riscq/standards.mjs). Lenses between the AOD and the atoms are omitted. Schematic drawing.

Moving atoms

To bring two atoms together, an AOD tweezer picks an atom up from its SLM trap, the tones sweep their frequencies so the spot moves, and the atom is dropped into another trap. The sweep has to be gentle. Bluvstein et al. interpolate the AOD frequencies with a cubic profile, which "enacts a constant jerk onto the atoms" and lets them move 5–10× faster than at constant velocity without heating or loss; they start to observe loss when moving 55 µm in 200 µs (Bluvstein et al. 2022, Methods). In their 2024 logical processor the typical move between gates takes about 200 µs (Bluvstein et al., Nature 626, 58 (2024), arXiv:2312.03982, Methods).

Two constraints follow directly from how an AOD works. All atoms on one row tone move together, as do all atoms on one column tone, so a single move transports a whole sub-grid. And a tone cannot pass through another tone on the same axis without the two beams overlapping, so rows and columns keep their order. Compilers such as ZAC schedule moves around these rules (Lin, Tan and Cong, HPCA 2025, arXiv:2411.11784). ZAC models a move of distance d as lasting t with d/t² = 2750 m/s², and a transfer between SLM and AOD as 15 µs (Sec. VII-B).

Gates: Rydberg interaction and Raman rotations

Two neutral atoms barely interact in their ground states. Excited to a Rydberg state, a state with the electron very far from the nucleus, they interact strongly over several micrometres: one excited atom shifts the other's Rydberg level so far that it cannot be excited too. That blockade gives a controlled phase gate (Jaksch et al., Phys. Rev. Lett. 85, 2208 (2000), arXiv:quant-ph/0004038; review: Saffman, Walker and Mølmer, Rev. Mod. Phys. 82, 2313 (2010)). The Rydberg laser usually illuminates a whole entanglement zone at once, and every pair of atoms placed close together there undergoes a CZ. Bluvstein et al. 2024 report 270 ns entangling gates with measured fidelities of 99.3–99.5%; ZAC assumes a 360 ns Rydberg pulse.

Single-qubit rotations use Raman lasers, often globally on the whole array, with local beams for addressing. ZAC assumes 1-qubit gates are executed sequentially, each built from five 8 µs pulses separated by 3 µs, 52 µs per gate (Sec. VII-B). The ZAC program this course runs, neutral-bv14, states its own one-qubit durations; its first layer lasts 8.75 µs.

Readout: a camera

Atoms are measured by imaging. A resonant beam makes atoms in one state fluoresce (atoms in the other state are first pushed out or shelved), and a camera photographs the array. Bluvstein et al. 2024 use a 500 µs imaging time with readout fidelity of about 99.8% (Fig. 1c). Imaging is slow compared with gates, which is why mid-circuit measurement and feed-forward are harder on this platform than on transmons.

Atoms moving with their AOD tones in the RISC-Q workspace
AOD moves in the simulator. The ZAC 14-qubit program on a zoned array (lesson C3). Each atom is drawn at the crossing of its row and column tones, whose positions are read back from the carrier updates in the trace through the same linear calibration that produced them. Atoms are assumed to follow their tones. Photographed from the running workspace.

What the control system must produce

Per AOD axis: a sum of RF tones, each ramping its amplitude up at pickup, stepping or sweeping its frequency during the move and ramping down at drop; laser pulses for the Rydberg and Raman beams through modulators; and camera triggers and image analysis for readout. In the simulator's atom machine (riscq/platforms/neutral.mjs) each AOD has a core with one pulse channel per row tone and per column tone, and a laser core plays the Rydberg and Raman pulses. During a move each tone's frequency steps every 2 µs. The controller clock is 100 MHz. Imaging is not modeled.

Using the calibration of Endres et al. (0.49 MHz between tones for 2.6 µm), how far does a tweezer move when its tone's frequency is raised by 1 MHz? Give the answer to two decimals.

2.6 µm / 0.49 MHz = 5.306 µm per MHz, so 1 MHz moves the spot about 5.31 µm. The simulator stores the inverse, 188,462 Hz per µm, in riscq/standards.mjs and marks it as derived.

5Side by side

In this section: one table with the timescales of all three platforms, and what they mean for the controller.

TransmonTrapped ion (QCCD)Neutral atom
QubitLowest two levels of a superconducting circuit, 5.2–5.9 GHz on the ringHyperfine states of 171Yb+, ~12.6 GHzHyperfine states of 87Rb, ~6.8 GHz
Single-qubit gate25–70 ns microwave pulse5 µs laser pulseRaman pulse; 52 µs per gate in ZAC's model
Two-qubit gate42–98 ns flux CZ; 400 ns tone on the ring25 µs Mølmer–Sørensen270–360 ns Rydberg CZ
Measurement400–835 ns window120 µs fluorescence (60 µs mid-circuit)500 µs imaging
Moving a qubitnot possible; SWAP gates instead58–283 µs shuttles, 60% of circuit time on H2~200 µs AOD moves, 15 µs transfers
Main control signalsMicrowave pulses, readout tone, ADCElectrode waveforms, modulator RF, photon countsMulti-tone AOD RF, laser pulses, camera
Simulator's controller clock500 MHz, 2 ns per batch100 MHz, 10 ns per batch100 MHz, 10 ns per batch

Sources: transmon, Krinner et al. 2022, Google Quantum AI 2025 and the x6y3 calibration; ion, Pino et al. 2021 and Moses et al. 2023; atom, Bluvstein et al. 2022 and 2024 and Lin, Tan and Cong 2025. Controller clocks: riscq/platforms/*.mjs. The ion and atom clocks are this project's choice, not a published build.

Three observations shape the rest of the course. First, transmon operations are a thousand times faster than ion and atom operations, so on a transmon machine the controller's own latencies (tens of nanoseconds to cross the board) are comparable to a gate, and on the others they are not. Second, ions and atoms spend most of their time moving, and moving is a control problem: many waveforms that must start together. Third, all three need exact timing, phase-coherent carriers and fast handling of measurement results. That shared core is why one controller design, RISC-Q, can drive all three in this simulator (lesson C4).

6What the simulator takes from the physics

The simulator keeps the physics as durations, frequencies, phases and positions, each with a source. It does not compute amplitudes of quantum states, gate fidelities, ion heating or atom loss. A pulse that reaches a qubit is recorded as an effect frame in the trace, with the time it arrives. A measurement result is an outcome you choose in the workspace or with --outcome. Electrode voltages and ion motion remain QCCD Studio's models; atom positions are read back from the tone frequencies. Chapter 6 lists every boundary, and chapter 7 every number.

What to remember

  1. Every platform needs preparation, rotations, two-qubit gates and measurement. Ions and atoms also need transport.
  2. A transmon is driven by nanosecond microwave pulses; a Z rotation is a phase shift of later pulses, the virtual Z.
  3. Transmon readout is a tone on a resonator, digitized and demodulated into one complex number and thresholded to a bit.
  4. Trapped ions are moved by changing electrode voltages. On H2, transport takes 60% of the circuit time.
  5. Neutral atoms are held in tweezers. An AOD tone's frequency sets a tweezer's position; Rydberg states give the CZ.
  6. Transmon operations are tens of nanoseconds; ion and atom operations are microseconds to hundreds of microseconds.
  7. The simulator follows the classical signals to the qubit. It never computes a quantum state.