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:
| Step | Frame | Operation | Part | Batch | What happened |
|---|---|---|---|---|---|
| 333 | q0:137 | put | q0 (core) | 227 | The core stores 0 to the fire register of its drive channel |
| 335 | e162 | fire | q0.gate (channel) | 230 | The write arrives; entry 0 is queued for start time 320 |
| 355 | e164 | pulse | q0.gate | 320 | The window opens on the scheduled batch |
| 357 | e172 | effect | qubit0 | 326 | The DAC output leaves; it reaches the qubit at 657.003 ns |
How many frames does causalChain return for the effect frame e172, including
e172 itself?
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:
| Batch | Instruction | Address | Register | Data |
|---|---|---|---|---|
| 220 | sw x6, 12(x5) | 0x1000C | phase offset of q0.gate | the accumulated virtual Z |
| 224 | sw x6, 256(x5) | 0x14100 | start time of q0.gate | 320 |
| 227 | sw x0, 0(x5) | 0x10000 | fire of q0.gate | 0: 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.
3The link
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.
How many batches pass between the store q0:137 and the fire frame it causes?
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.
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.
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.
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.
7The whole chain
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?
Which number in this chain is an assumption of the model rather than a documented latency or a published length?
- The 3 batches from store to channel.
- The 6 batches of the DAC pipeline.
- The 1,050 mm of coax.
- The signal speed of 0.7 c in the coax.
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
- A pulse starts as a store into the put window: a posted write to the fire register of a channel.
- The write crosses the link in 1 + link depth batches, 3 on this machine.
- The timed queues hold the entry until each parameter's lead before the start time, so all land on the start batch.
- The DAC pipeline adds 6 batches; the coax adds 5.003 ns at an assumed 0.7 c.
- Each hop is a frame with parents.
causalChainwalks them back to the core instruction.