Part A · Lesson 3

Following one pulse

One store instruction on a control core becomes a microwave pulse on a qubit 203 ns later. In between it crosses a link, waits in a queue, opens a window, passes a converter pipeline and travels a metre of coax. This lesson walks that chain one hop at a time, with the frame of the trace that records each hop.

You should know the five layers of A1 and what a batch is (A2). Every time below is in batches of 2 ns unless it says otherwise.

1The pulse to follow

Which event made qubit 0 receive its first pulse, and when?

Take the feed-forward program of lesson A1 with the measured bit set to 1. Its first line, h q[0], became a 90° drive pulse on qubit 0: hardware instruction h2, an x90 scheduled at 0 ns of segment 0. Below, you follow that pulse from the firmware to the qubit.

Every frame of the trace names its parents: the frames that caused it. Following parents back from an event gives its causal chain. The debugger computes it with causalChain(bundle, frameId) in studio/riscq-model.js, a pure function that a script can call on a saved run. For the frame in which the pulse reaches qubit 0 it returns four frames:

StepFrameOperationPartBatchWhat happened
333q0:137putq0 (core)227The core stores 0 to the fire register of its drive channel
335e162fireq0.gate (channel)230The write arrives; entry 0 is queued for start time 320
355e164pulseq0.gate320The window opens on the scheduled batch
357e172effectqubit0326The DAC output leaves; it reaches the qubit at 657.003 ns
Step 357: the effect frame. The Step inspector under the stage ends with "Chain back to the core instruction: q0:137 put → e162 fire → e164 pulse → e172 effect". Click each to step back along the chain.

How many frames does causalChain return for the effect frame e172, including e172 itself?

The put, the fire, the pulse and the effect. A core frame ends the chain: the earlier instructions of the same core are its program order, not its cause.

2The store

In this section: what the core actually does to start a pulse.

A control core is an RV32I processor. It has no instruction that plays a pulse. It starts one with an ordinary store word, sw, into a range of addresses called the put window. A store there becomes a posted write to a register of one channel. The core does not wait for an answer.

For this pulse, core q0 issues three posted writes, each three or four batches apart:

BatchInstructionAddressRegisterData
220sw x6, 12(x5)0x1000Cphase offset of q0.gatethe accumulated virtual Z
224sw x6, 256(x5)0x14100start time of q0.gate320
227sw x0, 0(x5)0x10000fire of q0.gate0: entry 0 of the table, the x90

The last store, at firmware address 0x80000224, is the one the chain starts from. Lesson B1 explains the address map and the register layout. Here it is enough to know that 0x10000 is the first register of the core's channel 0, the drive channel of qubit 0, and that writing an entry number to it fires that entry of the pulse table.

Notice the batch: 227, while the window opens at 320. The core works 93 batches ahead of the pulse. Lesson B2 is about that distance, the lead.

A posted write leaves the core through a bridge and crosses a pipelined link to the channel, which sits next to its converter. The model charges

store to channel = 1 + link depth batches

One batch for the bridge (RISC-Q PutBridge.md) and one per register stage of the link (PutLink.md). The x6y3 build has a link depth of 2, so the write that left at 227 arrives at 230. That arrival is the fire frame e162.

Step 335 in the Control system view: core q0, its posted link and the channel q0.gate light up along the causal path.

How many batches pass between the store q0:137 and the fire frame it causes?

1 + link depth = 1 + 2 = 3 batches: the store at 227, the fire at 230. Every channel write of this run shows the same distance. Lesson B2 shows what happens when the link is much deeper.

What is the frame ID of the fire that the store q0:137 causes? Find it in the Trace tab or in the Step inspector's causes.

Frames of a core are named core:instructions retired. Events at channels, the hub and the apparatus are numbered e… in the order the model scheduled them.

4The queues

In this section: why the pulse does not start when the fire arrives, and what the trace records of the wait.

The fire frame reports that entry 0 was queued with start time 320 and that it will land at 320. The channel now holds the entry's amplitude, phase, envelope address and duration in separate timed queues. RISC-Q documents that a fired pulse reaches the queue push 2 batches after its write (PulseParamBuffer.md), at batch 232, and that an entry can pop at the earliest 3 batches after its push (TimedQueue.scala).

Each queue then waits. Each parameter takes its own number of batches to travel through the pulse generator to the converter, so each pops that many batches before the start time. The phase, the slowest, takes 35 batches and pops at 285; the amplitude takes 34 and pops at 286; the envelope address takes 11; the duration takes 2. All of them land on batch 320. Lesson B2 derives these numbers and the theorem that guarantees the landing.

The trace has no frame for a queue pop. The pulse frame records where each parameter landed instead: ampLands, phaseLands and envLands are all 320, so aligned is true, and the batch-time register read the start time when the window opened, so onTime is true.

5The window and the converter

The pulse frame e164 marks the window: it opens at 320 and closes at 338, the 18 batches of lesson A2. Its converter field names dac0, and its atConverter field says 326.

Those six batches are the path from the pulse generator to the DAC port. Several channels can share one DAC; their outputs are summed by an adder tree, and two more register stages lead to the port. RISC-Q's map.py computes this as dac_pipe, and dacPipe in riscq/soc.mjs copies it. It is one number for the whole build, set by the most shared DAC. On this ring, DAC 8 carries the readout tones of all eight qubits. An adder tree for 8 inputs has ⌈log₂ 8⌉ + 1 = 4 stages, plus 2 gives 6.

How many batches after the window opens does the pulse reach the DAC port? Read opens and atConverter of the pulse frame at step 355.

326 − 320 = 6 batches, the DAC pipeline of this build. Qubit 0's own DAC is shared by only three channels (the drive channel and two CZ channels), but the model uses the build's largest pipeline for every DAC.

6The wire

From the DAC the pulse travels to the chip inside a dilution refrigerator. The effect frame e172 is stamped at batch 326, when the signal leaves the converter, and its arrivesPs field says when it reaches qubit 0: 657,003 ps, 5,003 ps after it left.

That delay is a length divided by a speed. The length, 1,050 mm, is the sum of the coax sections from the room-temperature flange through the five cryogenic stages of a published setup: 200 + 290 + 250 + 170 + 140 mm (Krinner et al., "Engineering cryogenic setups for 100-qubit scale superconducting circuit systems", EPJ Quantum Technology 6, 2 (2019), arXiv:1806.07862, Table 1). The speed is an assumption: 0.7 of the speed of light, a typical velocity factor for coax. 1,050 mm ÷ (0.7 × 299.79 mm/ns) = 5.003 ns. The run states both in machine.provenance.delay.

What the arrival means. The effect frame says that a signal bound to q0.x90 reached the part qubit0 at that time. It does not say what the qubit did. No quantum state is simulated, and loss, dispersion and the attenuators of the real line are not modeled.

From the effect frame, compute the wire delay in picoseconds: arrivesPs minus the time of batch 326.

657,003 − 326 × 2,000 = 5,003 ps. Lesson D2 lets you change this length in a hardware design and watch every arrival move while nothing at the converters changes.

7The whole chain

core q0sw → 0x10000batch 227 linkbridge + 2 stages+3 q0.gatefire, queues230 → 320 dac0adder tree + 2+6 → 326 coax1,050 mm, 0.7 c+5.003 ns qubit0657.003ns Frames: q0:137 put (227) · e162 fire (230) · e164 pulse (320) · e172 effect (326, arrives 657.003 ns) Not frames: the queue push (232) and the parameter pops (285 to 318). Their effect is in the pulse frame's *Lands fields. Documented latencies: bridge, link, fire to push, DAC pipe. Assumed: coax velocity factor 0.7.
One pulse, end to end. Batches from the feed-forward run with c = 1. Schematic drawing.

Most of the 203 ns is deliberate waiting: the write arrives 90 batches before its start time and sits in the queues. The hardware path itself, link plus converter plus coax, takes 3 + 6 batches and 5 ns. That split is the point of the design. Because the queues absorb the waiting, the time the core happened to issue the write does not change when the pulse plays, as long as it was early enough.

How long does it take from the store q0:137 to the arrival of the pulse at qubit 0, in nanoseconds?

The store is at batch 227, 454 ns. The arrival is at 657.003 ns. The difference is 203.003 ns, of which 180 ns is queue waiting that the lead deliberately builds in.

Which number in this chain is an assumption of the model rather than a documented latency or a published length?

  1. The 3 batches from store to channel.
  2. The 6 batches of the DAC pipeline.
  3. The 1,050 mm of coax.
  4. The signal speed of 0.7 c in the coax.
The link and DAC latencies come from RISC-Q documents, the length from Krinner et al. Table 1. The velocity factor is stated as "assumed" in riscq/platforms/superconducting.mjs and in the run's provenance.

8The same chain in the debugger

The detailed debugger at /riscq shows the same run with more fields. Open it at step 355. The Step inspector lists the pulse frame's state fields, including ampLands, atConverter and dur; under Causes it links the fire. The Controller schematic lights the causal path from core q0 through its link to q0.gate and on to dac0. The Channel timeline below draws the 18-batch window on the q0.gate row. Lesson A4 tours both pages.

What to remember

  1. A pulse starts as a store into the put window: a posted write to the fire register of a channel.
  2. The write crosses the link in 1 + link depth batches, 3 on this machine.
  3. The timed queues hold the entry until each parameter's lead before the start time, so all land on the start batch.
  4. The DAC pipeline adds 6 batches; the coax adds 5.003 ns at an assumed 0.7 c.
  5. Each hop is a frame with parents. causalChain walks them back to the core instruction.