Background

The reference behind the simulator, like a physics appendix: how each platform's qubits are driven, the optics of lasers and tweezers, the control stack and what is proved or assumed about it, where each platform's hardware is designed, and how to run everything from a script. To learn by doing, with exercises in the workspace, take the course. Wherever a topic is one of its lessons, this page links to it instead of teaching it twice.

Part A

The three platforms

What the classical side of a quantum computer must do, platform by platform.

A1What a control system does

Qubits are acted on by physical signals: microwave pulses, laser pulses, electrode voltages. A gate is a pulse of the right frequency, amplitude, phase and duration that arrives at the right qubit at the right time. The control system is the classical hardware that produces those signals. It has four jobs:

  1. Generate. Digital-to-analog converters (DACs) synthesize waveforms. A pulse is a carrier frequency, an amplitude, a phase and an envelope.
  2. Time. Pulses on different channels must start on the scheduled clock cycle. A gate that is late by a few nanoseconds is a different gate.
  3. Measure. Analog-to-digital converters (ADCs) or photon counters turn the qubit's response into a bit.
  4. Decide. A measured bit can choose a later pulse (feed-forward), or many bits can go to a decoder that finds an error correction. This must finish within the qubits' coherence time.

In this project the control system is a set of RISC-Q control cores: small RISC-V processors, each next to a group of DAC and ADC channels. They run firmware compiled from your program. What is simulated is that classical machine, cycle by cycle. No quantum state is simulated. A measurement's outcome is an input you choose.

In the course: A1 The stack in one picture

A2Superconducting transmons

DAC (drive) DAC (tone) ADC coax · ≈ 200 mm/ns chip at ≈ 10 mK transmon resonator
A drive pulse reaches the qubit through coax. A readout tone reflects off the qubit's resonator, whose frequency depends on the qubit's state, and returns to an ADC.

A transmon is a superconducting circuit with a Josephson junction, operated at about 10 mK. Its two lowest levels form the qubit, separated by a microwave frequency of a few GHz. Control is electrical:

  • One-qubit gates are microwave pulses at the qubit frequency, tens of ns long. Here the RISC-Q example calibration gives 35 ns for x90 and 70 ns for x. A Z rotation is a frame update: a phase change of later pulses, with no pulse played.
  • Two-qubit gates. The ring here plays a 400 ns CZ as one tone on each qubit's drive line.
  • Readout is dispersive. A tone into the qubit's readout resonator returns with a phase that depends on the qubit's state. The ADC samples it and a demodulation window integrates it into one bit. A readout is about 500 ns (Google Quantum AI, Nature 614, 676 (2023), Fig. 1).
  • Wiring. Every signal crosses metres of coax at about 200 mm/ns, so it reaches the chip several ns after it leaves the DAC. The ring here assumes 1050 mm of coax (Krinner et al. 2019, Table 1) at 0.7 c.

The machine in the examples is the eight-transmon ring of RISC-Q's example calibration on the RISC-Q x6y3 build: 500 MHz controller clock, 8 GS/s DACs and 2 GS/s ADCs. You can redraw it, or build your own, in the design editor (E2).

In the course: C1 Superconducting: from OpenQASM to microwaves

A3Trapped ions in a QCCD machine

gate laser PMT storagegate zoneload electrodes along the rail · voltages move the ions
Drawn in QCCD Studio's style: a rail with electrodes, sites coloured by zone, ions as dark discs. A gate laser addresses the gate zone; fluorescence from a detected ion is collected into a photon counter.

An ion's qubit is two of its internal levels. Ions are held above a surface trap by RF and DC electrode voltages. In a QCCD (quantum charge-coupled device) machine the trap has many zones, and ions are moved between them:

  • Transport. DAC waveforms on the DC electrodes move an ion along a segment, split or merge chains, and pass junctions. Pino et al. (Nature 592, 209 (2021), Table II) report 58 µs for an intrazone shift of 110 µm, 283 µs between zones, 128 µs to split or combine, 200 µs to swap, plus about 10% for interpolation and electronics. An X junction costs 120 µs (Murali et al., ISCA 2020).
  • Gates. Laser pulses on ions in a gate zone. A one-qubit rotation is about 5 µs and a two-qubit Mølmer–Sørensen (MS) gate about 25 µs (Pino et al., Table III). MS uses the shared motion of the ions in one zone.
  • Cooling. Transport heats the ions' motion. A Doppler cooling stage takes about 550 µs (Pino et al., Table III).
  • Detection. A resonant beam makes a bright ion fluoresce; a dark ion stays dark. Photons collected by an objective are counted by a photomultiplier (PMT). Detection takes about 120 µs. Here a bright ion gives 10 photons per window on average and counts as bright above 1 (a composite of Wright et al. 2019 and Egan et al. 2021).

The trap geometry and the program come from QCCD Studio, which states for every cycle which ions move over which edges and which electrode channels act. This project replays that, one DAC channel per Studio electrode control channel, one core per gate zone with laser modulators and a photon counter, and one core for light shared by the whole trap.

In the course: C2 Trapped ions: shuttling is a waveform

A4Neutral atoms in optical tweezers

storage zone entanglement zone Rydberg beams 420 nm + 1013 nm AOD tweezer carries an atom
Static traps hold atoms in storage. A moving tweezer, steered by AOD tones, carries atoms into the entanglement zone, where Rydberg beams entangle neighbouring pairs.

Each qubit is one neutral atom, such as rubidium-87, held at the focus of a laser beam: an optical tweezer. Two kinds of tweezer are combined:

  • Static traps, often from a spatial light modulator (SLM): a fixed grid of foci where atoms are stored.
  • Moving tweezers from crossed acousto-optic deflectors (AODs). Each RF tone on an AOD deflects the beam by an angle proportional to its frequency (D3), so a column tone and a row tone place a tweezer at their crossing. Changing a tone's frequency moves every tweezer on that column or row. An atom is picked up by ramping the tone's power up, carried, and dropped by ramping it down.

Gates use light, too. Two-qubit gates excite neighbouring atoms to Rydberg states, whose strong interaction blocks double excitation (the Rydberg blockade). In rubidium experiments this is a two-photon transition with 420 nm and 1013 nm lasers (Evered et al., Nature 622, 268 (2023)), applied globally to an entanglement zone, so every close pair in that zone is gated at once. One-qubit gates use a Raman laser. The architecture here has a storage zone and an entanglement zone. Its file states a Rydberg pulse of 0.36 µs, a one-qubit gate of 52 µs and an atom transfer of 15 µs.

Programs come from the ZAC compiler (Lin, Tan, Cong, HPCA 2025), which schedules gates and rearrangement jobs for a zoned architecture. Moves follow ZAC's constant-acceleration law with 2750 m/s². The controller here has one core per AOD with one RF tone channel per row and column, and one laser core.

ZAC does not say which beams address single atoms, so a one-qubit instruction is played as one global pulse. Atoms are assumed to follow their tones. Loss, heating and imaging are not modeled.
Open the ZAC program →

In the course: C3 Neutral atoms: tones carry atoms

A5Measurement, feed-forward and decoding

Many programs act on a measured bit before the qubits decohere: teleportation, state injection, error correction. In feed-forward one bit chooses a later gate. In error correction many syndrome bits go to a decoder, which infers the likely error; the correction is often applied by updating a Pauli frame, a classical record of pending X and Z flips, instead of playing a pulse.

Both are races against the clock. In the ring here (one measured bit conditioning an X on another core):

Event after the readout window closesTime in the model
Result at the measuring core34 ns
Bit at the board hub70 ns
Bit at every core86 ns
Conditioned pulse opens344 ns

Decoders can run on the control cores. The C program of the Helios union-find decoder is compiled here for a RISC-Q core and matches Helios's own test vectors. As firmware on a soft core it takes 17 µs to 58 µs at distance 3 in the model. The same algorithm in FPGA logic is reported at 56 ns (Liu et al., arXiv:2603.16203). That gap is the point of the comparison: it shows what decoding in control-core software costs.

In the course: E1 Feedback latency · E2 System calls · E3 A real decoder on a control core

A6Time scales, side by side

The three platforms differ by about three orders of magnitude in operation time. These are the values the models here use, with their sources.

OperationTransmonsTrapped ionsNeutral atoms
One-qubit gate35 ns (x90), 70 ns (x)5 µs52 µs (architecture file)
Two-qubit gate400 ns (CZ)25 µs (MS)0.36 µs Rydberg pulse
Measurement≈ 500 ns readout120 µs detectionnot modeled
Moving a qubit—58 µs per shift, 283 µs between zones15 µs transfer, moves of tens of µs
Controller clock (one batch)500 MHz (2 ns)100 MHz (10 ns)100 MHz (10 ns)

Sources: RISC-Q example calibration (transmons); Pino et al., Nature 592, 209 (2021) (ions); the ZAC architecture file and Lin, Tan, Cong, HPCA 2025 (atoms). All are listed in riscq/standards.mjs or the run's machine.provenance.

In the course: C4 The same controller everywhere

Part B

The control stack

How a program becomes timed register writes, and how this project executes them.

B1Five levels from a program to a pulse

SourceQASM · ZAC · calls Hardwaretimed operations FirmwareRV32I per core ExecutionLean model → trace Debugger3D · layers every picture in the debugger is derived from the trace frames
  1. Source. OpenQASM, a QCCD Studio program or design, a compiled ZAC program, or a list of fault-tolerance system calls (gate, measure, decode_syndrome, pauli_frame_update).
  2. Hardware instructions. One physical operation each, with a start time and a duration: x90, cz, transport, ms, move, rydberg…
  3. Firmware. The RV32I program of each control core. It issues timed register writes to its channels.
  4. Execution. A Lean 4 model of the RISC-Q controller runs the firmware and emits a trace.
  5. Debugger. The browser steps through the trace. The 3D scene, the program layers and the inspector are rebuilt from the frames and nothing else.
See the four layers side by side →

In the course: A1 The stack in one picture · A3 Following one pulse

B2Hardware instructions per platform

PlatformSourceHardware instructionsWhat a control core drives
TransmonsOpenQASM 3, system callsx90, x, frame (virtual Z), cz, measure, scheduled as soon as their qubits are freeOne core per qubit: a drive channel, one drive channel per CZ partner, a readout tone and a demodulation window
Trapped ionsOpenQASM via QCCD Studio's compiler, Studio programs or designsThe cycles of Studio's replay: transport, rotate, ms, measure, cool, frameTransport cores with one DAC channel per electrode control channel; one core per gate zone with laser modulators and a photon counter; one core for broadcast light
Neutral atomsA compiled ZAC programpickup, move, drop, raman, rydberg, at ZAC's timesOne core per AOD with one RF tone channel per row and column; one laser core

Standard gates are decomposed into native ones; for transmons into x90, x and frame updates, checked as 2×2 matrices up to a global phase. A measurement whose bit conditions a later gate ends a segment: the bit is published through the board hub, all cores meet at a barrier, and the conditioned gate runs in the next segment.

In the course: C4 The same controller everywhere

B3The RISC-Q controller

host hub core 0 core 1 link link pulse ch. demod ch. pulse ch. DAC ADC DAC
  • Core. An RV32I processor that runs one program from its own RAM. A store into its put window becomes a posted register write.
  • Posted link. A pipeline that carries the write to one channel next to the converters. "Posted" means the core does not wait for it: the write travels on while the core goes on.
  • Channel. Holds a pulse table (entries, or slots, of amplitude, phase, envelope address and duration), a carrier frequency, a start time and timed queues. Writing a slot number to fire schedules that entry at the current start time. The queues release each parameter early by exactly its pipeline latency, so the pulse opens at the converter on the scheduled batch. A pulse channel drives a DAC; a demodulation channel integrates an ADC; a digital (dio) channel sets lines.
  • Envelope. The pulse shape, stored as samples in envelope memory and stretched by the channel's interpolation factor.
  • Hub. Gives the cores shared bits, counted barriers that return one common time, and mailboxes. It passes one message per batch for the whole board, from queues of eight per core. A publish reaches every core 23 batches later at link depth 4.
  • Host. Receives results through a write-only host window.
See the controller →

In the course: B1 Posted writes and the pulse table · B3 Measurement results come back · B4 Cores meet: the board hub

B4Time: batches, leads and pulse windows

A batch is one controller clock cycle (dspClk). It carries 16 DAC samples or 4 ADC samples. Every time in the model is a whole number of batches:

atPs = atBatch × dspPeriodPs

A pulse window is the interval during which a fired table entry plays on a converter: it opens on its start batch and closes one duration later. A binding ties a channel's slot to the apparatus part it acts on (a qubit, a resonator, a trap site, a beam, an AOD tone) with the delay of the path between them.

Firmware issues each timed write 96 batches before its start time, the lead RISC-Q's own software uses. A write that arrives early enough lands exactly on its start time, whatever the link latency was. That is a theorem of the model, land_exact in QControl/RiscQ/Timing.lean. A core issues one write at a time, so a burst of simultaneous pulses starts its segment later; the compiler accounts for that and rejects schedules that would overflow a channel's queues.

In the course: A2 Batches: the clock everything runs on · B2 Timed queues and the lead

B5The Lean model and the trace

QControl/RiscQ/Soc.lean is an executable model of a RISC-Q system-on-chip; Rv32.lean gives the instruction semantics. Execution is a discrete-event simulation with exact cycle arithmetic. Every event becomes one frame of the trace:

  • a stable id, the operation op and its time atBatch, atPs;
  • the part it acts on and the parts it targets;
  • its causal parents, the firmware address pc and the hardware instruction source that caused it;
  • the committed state of its part.

Because each frame names its causes, any frame can be traced back to the core instruction that started it. Because each frame carries its part's committed state, the machine state at any step is rebuilt by replaying frames from reset, and nothing else.

In the course: A3 Following one pulse

B6Proved, tested, assumed

Three kinds of statement are kept apart, as the project's development rule requires:

  • Proved in Lean, about the model. For example land_exact (a write ready no later than its lead lands exactly on its start time), land_late (a late write lands late by exactly what it missed), and that the hub arbiter grants a waiting core in every batch.
  • Conformance tests against other people's artifacts. Three unmodified RISC-Q firmware binaries reproduce what RISC-Q's RTL simulations assert. QCCD Studio's H2 replay is compared on all 947 cycles. The compiled Helios decoder matches Helios's test vectors.
  • Assumed or schematic. Three latencies RISC-Q states without a number, the core's cost per instruction, the controller floorplan, the path inside an atom move, and display geometry. Each is named where it is used.
The numbers are results of the model with published values where a program states none. They are not hardware measurements and say nothing about gate fidelity.
Open hardware validation →
Part C

The workspace, for reference

The workspace at /riscq-studio shows one run on one screen. The course lesson A4 Reading the workspace teaches it. This is the summary.

C1One machine, three views

The workspace draws one machine. The three views only frame it differently: a part stands in the same place in each.

  • Chip (1): the apparatus, ringed by the converters and channels that drive it.
  • Control system (2): the cores, links, inboxes, channels, hub and host.
  • Whole machine (3): everything.

A part outside the frame keeps running. When it acts, a badge names it, and its instructions stay in the program column. Positions are display geometry. The apparatus uses its own coordinates where the run carries them (QCCD Studio's architecture, the ZAC architecture in µm, or your design in mm). The controller layout is schematic. The left rail's note says which.

C2Keys and layer colours

KeyAction
← →Previous and next step
Home EndReset state, last step
SpacePlay or pause
n pNext hardware instruction, next pulse window
f · hFit the view · Explain mode
1 2 3Chip, Control system, Whole machine

In the program layers, yellow marks the current step's row, blue the instructions whose pulse windows are open, and violet the rows related to the row under the pointer. The address keeps the program, outcomes, step and view, so a link reopens the same moment.

In the course: A4 Reading the workspace

Part D

Light and optics

Ions and atoms are controlled with light. This part gives the optics needed to read the beams in the workspace.

D1Lasers, fibers, lenses and objectives

A beam's path from laser to qubit is an optical train:

  • Laser. Sets the wavelength λ (optical frequency ν = c/λ) and the power.
  • Modulator (AOM or AOD). An RF tone from a DAC launches a sound wave in a crystal. The light diffracted by it is shifted in frequency by the RF frequency and switched by the RF amplitude. This is how a pulse window on a DAC channel becomes a light pulse.
  • Fiber. Carries the beam from the optical table to the experiment and cleans its shape: a single-mode fiber emits one Gaussian mode.
  • Lenses and mirrors. Steer, expand or shrink the beam. A telescope of two lenses with focal lengths f₁, f₂ magnifies the beam by f₂/f₁.
  • Objective. A high-numerical-aperture lens near the qubits that focuses beams to µm spots and collects fluorescence.

D2Gaussian beams

lens f waist w₀ 2 z_R input radius w
A collimated beam of radius w is focused by a lens of focal length f to a waist w₀ ≈ λf/(πw). Within ±z_R of the focus the beam stays narrow.

A laser beam is well described by a Gaussian: its intensity falls off as exp(−2r²/w²) from the axis, where w is the beam radius. Along the axis, around its narrowest point (the waist w₀):

w(z) = w₀ √(1 + (z/z_R)²),    z_R = π w₀² / λ,    θ = λ / (π w₀)

z_R is the Rayleigh range, over which the beam area doubles, and θ the far-field half-angle. A lens of focal length f focuses a collimated beam of radius w to

w₀ ≈ λ f / (π w),    peak intensity I₀ = 2P / (π w₀²)

For illustration: λ = 800 nm, w = 2 mm and f = 10 mm give w₀ ≈ 1.3 µm and z_R ≈ 6 µm, a tweezer. Through lenses and free space a Gaussian beam stays Gaussian; its complex beam parameter is propagated by the ABCD matrices of the elements. An elliptical beam, as made by cylindrical lenses for a light sheet, has a separate w for each transverse axis.

This is paraxial optics: thin lenses, no aberrations, no polarization. It describes beam sizes and focus positions well; it does not predict the exact trap depth of a real objective.

D3Acousto-optic deflectors steer tweezers

AOD crystal RF tone f from a DAC undeflected θ = λ f / v objective x ∝ f
The deflection angle is proportional to the RF frequency; the objective maps angle to position in its focal plane. A frequency change moves the tweezer.

In an AOD an RF tone of frequency f launches a sound wave of speed v in the crystal. Light is diffracted by an angle

θ = λ f / v

and the objective maps the angle to a position in its focal plane, so the tweezer position is linear in the tone frequency. Several tones on one AOD make several tweezers along that axis; two crossed AODs make a grid at the crossings of column and row tones. The model here uses a linear calibration of 188 kHz per µm, derived from Endres et al. (Science 354, 1024 (2016)), around an 80 MHz centre. A new frequency takes effect only after the sound has crossed the beam, about 6.2 µs for a 4 mm beam at 650 m/s.

The controller drives each tone as a pulse channel. A pickup ramps the tone's amplitude up, a move steps its frequency every 2 µs along ZAC's path, and a drop ramps it down. The atom position in the workspace is read back from the carrier updates in the trace through the same calibration: atoms follow their tones because the tones are what the trace contains.

Watch tones carry atoms →

D4Light on each platform

PlatformBeams and what switches them
TransmonsNo light reaches the qubits. Microwave pulses travel on coax; their arrival delay is the routed length over the signal speed.
Trapped ionsA cooling beam shared by the trap (one broadcast channel). Gate beams on each gate zone, switched by that zone's laser modulators for rotations and MS gates. A detection beam per zone; the fluorescence of bright ions is collected onto per-ion photon-counter lines that a core counts.
Neutral atomsStatic trap light. Moving tweezers through two crossed AODs and an objective, set by the tone channels. A global Raman beam for one-qubit gates and Rydberg beams over the entanglement zone, each switched by a laser-core channel.

In every case, light is on exactly while the pulse window of its channel is open in the trace, after the delay of the path to the apparatus.

D5Beams in the workspace

In the workspace a beam is an object of its own, drawn as translucent light rather than as a wire. It follows the optical train of its platform's bench, and it is lit only while its channel's window is open. Hover a beam to read its wavelength, optical frequency, power, waist and the window that switched it on. The bench of each platform, with the source of every number, is shown on hover.

Beam sizes near the qubits are µm and the optical table is cm to m. The two cannot share one scale on screen, so the drawing states the scale of each region. The optics are computed in physical units either way.
Part E

Designing hardware

A machine can be a document you edit, not code. Where that document comes from depends on the platform.

E1Where each platform's design comes from

PlatformThe designWhere to edit it
SuperconductingA riscq-design document: board, cores, DACs, ADCs, stages, qubits, resonators, channels, routed wires, calibrationThe design editor on this site, or the JSON file
Trapped-ion QCCDA QCCD Studio architecture: sites, junctions, segments, loops and zones, and its control blockQCCD Studio's design page ↗. This site replays Studio designs and programs; it has no QCCD editor.
Neutral atomsA ZAC architecture file: storage and entanglement zones with their trap grids, AODs, Rydberg range and operation durationsThe file validation/neutral/zac/full_architecture_2aod.json and the compiled ZAC program. No in-browser editor yet.

E2The design editor in brief

/riscq-design edits a riscq-design document. Place components from the palette, join them with the Wire tool (w), drag parts in plan, side, front or 3D projection (1–4), and edit the selection in the inspector. The server checks every edit, and Signal timing lists every wire's delay. Run on this hardware opens the run in the workspace, and its Edit this hardware button brings you back.

Open the design editor →

In the course: D1 A machine is a document · D3 Who drives what

E3Rules and wire delays

  • One control board; 1 to 64 cores, each with 1 to 16 channels of distinct names.
  • A pulse channel names a DAC and a demodulation channel an ADC; every DAC and ADC has its own index 0–63.
  • Each wire starts and ends within 0.5 mm of the parts it joins.
  • Every qubit has a wired path from its drive DAC, from its readout DAC to its resonator, and from the resonator back to its ADC. Every coupler pulse has a wired path to its qubit.
  • A readout whose tone returns after its acquisition window opens is a warning.

A wire's delay is its routed length over the signal speed of its medium, rounded up to a ps:

delay = length / speed;   coax 200 mm/ns, planar 125, fiber 204, free-space beam 299.79

So the floor plan matters: moving the chip 2 m farther delays every arrival by 10 ns and changes nothing at the converters. A pulse's delay is that of the fastest wired path from its converter, through stages, to the part it acts on.

Loss, dispersion and crosstalk are not modeled. A qubit or coupler added in the editor starts with a copy of an existing calibration: a starting value, not a measured one.

In the course: D2 Wire length is latency · D4 When a design breaks a rule

E4The design document

Lengths are mm, times ns, frequencies Hz, amplitudes a fraction of DAC full scale, phases rad.

{ "kind": "riscq-design", "version": 1, "name": "…",
  "board":     { "dspHz", "linkStages", "memWords", "queueDepth", "envDepth" },
  "parts":     [{ "id", "type", "centerMm": [x, y, z], "index"? }],
  "channels":  [{ "id", "core", "name", "kind": "pulse" | "demod" | "dio", "converter"?, "slots"?, "interp"? }],
  "wires":     [{ "id", "from", "to", "medium", "routeMm": [[x, y, z], …] }],
  "qubits":    [{ "part", "resonator", "gate", "ro", "demod", "freqHz", "x90", "x", "readout" }],
  "couplings": [{ "qubits": [i, j], "freqHz", "durNs", "pulses": […], "virtualZ": […] }],
  "decoder":   "id of a core" }

A program addresses a qubit by its index in qubits. Save in the editor writes this file; the command line runs it (F1).

Part F

Without a browser

A person on the page and a script replaying the same program inspect the same result.

F1The command line

npm ci
npm start                                                  # builds the Lean model, serves http://127.0.0.1:7432
node riscq/cli.mjs --list                                  # the reference programs
node riscq/cli.mjs --example superconducting-feedforward --outcome c=1 --out run.json
node riscq/cli.mjs --example qccd-ghz3 --trace full        # every instruction, not only control-register ones
node riscq/cli.mjs --qasm circuit.qasm --platform qccd     # OpenQASM through QCCD Studio's compiler
node riscq/cli.mjs --calls program.json --outcome s0=1     # system calls on the transmon ring
node riscq/cli.mjs --ring-design > machine.json            # the ring as an editable design
node riscq/cli.mjs --design machine.json --qasm circuit.qasm
node riscq/cli.mjs --verify run.json                       # re-execute a saved run in Lean

A run prints a summary; the exit code is 2 when a run reports a fault. The QCCD paths need Python 3.10+ and the QCCD Studio checkout in a sibling folder named QCCD.

F2The run bundle

--out and the server's /api/riscq/run return the same JSON (kind: "riscq-run"):

FieldHolds
sourceThe program text and its language (and the TSIR program for QCCD runs)
hardwareSegments of hardware instructions with start times and durations
programThe Lean program: each core's RAM image, source map and the channel bindings
systemParts and links of the controller and apparatus
framesThe trace (B5)
summaryStatus, elapsed time, every pulse window and carrier update, faults
machineName, cores, clock period, provenance of every assumed value, apparatus geometry, and the design for design runs
derivedMeasured bits, ion moves, tone positions

F3Modules for agents

The page computes nothing a script cannot. These functions take a run bundle:

import * as model from "./studio/riscq-model.js";
import * as layers from "./studio/riscq-layers.js";
model.stateAt(bundle, 403);                 // the machine state the page shows at step 404
layers.focusAt(bundle, 403);                // source lines, TSIR lines, hardware instruction, core, firmware row
layers.ionPositions(bundle, atBatch);       // or atomPositions: what the chip view draws
layers.viewParts(bundle, "chip");           // which parts a view frames

import * as D from "./studio/riscq-design-doc.js";      // the design editor's edits
import { designService } from "./riscq/design-service.mjs";
const doc = D.firstQubits(designService("/").design, 3);
designService("/check", {}, doc);           // { errors, warnings, wires, pulses, build }

Details: workspace notes and controller model notes.