Part D · Lesson 2
Wire length is latency
A signal needs time to travel down a cable. In a hardware design every wire has a routed length and a medium, and its delay follows from them. Move the chip two metres away and every pulse reaches it 10 ns later, while nothing at the converters changes.
This lesson assumes lesson D1. The background chapter on control systems says more about cables and their signal speeds.
1The timing rule
An electrical signal in a cable travels at a fraction of the speed of light, set by the cable's dielectric. Light in
a fibre travels at the speed of light divided by the glass's refractive index. A design states each wire's medium,
and machine/interconnect.mjs gives the signal speed of each:
| Medium | Signal speed (mm/ns) | Delay per metre (ns) |
|---|
The table is read from GET /api/riscq/design/rules. A wire's length is the length of its route: the sum
of the straight segments between its points (pathLengthMm). Its delay is that length over the speed,
rounded up to a whole picosecond (wireTiming in riscq/design.mjs):
A pulse's delay is that of the fastest path of wires from its converter to the part it acts on, through any
stage parts in between (pathDelay). A stage stands for a feedthrough, an attenuator or a
filter; it adds no delay of its own. Loss, dispersion and crosstalk are not modeled: a wire delays a signal, it does
not change it.
riscq/standards.mjs lists it with its source. The built-in ring of lesson
C1 instead assumes 0.7 c, 209.85 mm/ns, for its 1,050 mm of coax. The two machines therefore
differ in their arrival times by a few hundred picoseconds. Exercise 6 measures by how much.2A route, by hand
How long does the drive pulse of qubit 2 take to reach the chip?
In the ring as a design, every coax from a converter runs along x at the board's height, turns along y, and drops
along z to the chip. The drive line of qubit 2, drive2, goes from dac2 at
[60, −66, 0] to qubit2 at [700, 0, −350] (qubit 2 sits on the chip's 3 mm circle, at the top):
drive2. Four points, three straight segments. The y step is drawn as a
diagonal because the drawing is flat. Schematic drawing, not to scale.Compute the delay of drive2 in coax by hand. Then confirm it with the reader of lesson D1 or the
widget below.
drive2, and so does the run: the effect frame of a pulse on qubit 2 arrives
5,295 ps after its window opens at the DAC.
Each qubit sits at a different angle on the chip and each DAC at a different height on the board, so no two drive
lines have quite the same length. In one design, lines of different length arrive at different times. The test
tests/riscq-design.test.mjs checks exactly that.
Across the eight drive lines of the ring, what is the difference between the longest and the shortest delay?
drive0 is the longest, 1,083 mm or 5,415 ps; drive7 the shortest, 996 mm
or 4,980 ps: 435 ps apart. Two qubits fired on the same batch receive their pulses 435 ps apart. A real system
would calibrate that skew away or measure it; this model shows it.3Move the chip
In this section: change the layout, then compare what the converters do and when the signals arrive.
The widget below moves every qubit and resonator of the ring along x and re-routes their wires with the same
right-angle rule as ringDesign(). It sends the result to the check route and shows every line's length
and delay. Run the program runs the Bell program of lesson A1 on the moved design and lists, for every pulse,
the batch its window opens at the converter and the time it reaches the chip.
Chip position
Move the chip 2,000 mm farther along x and run the program. How many nanoseconds later than on the unmoved ring
does the first x90 reach qubit 0?
tests/riscq-design.test.mjs requires exactly that for every arrival of the program.In that run, how many batches later does the conditioned x on qubit 2 open at its DAC than on the
unmoved ring?
effect frame on
qubit 0 in the trace and read arrivesPs in the step inspector.4Change the medium
The same route in a slower medium is a later arrival. A planar trace on a circuit board carries a signal at 125 mm/ns in this model, a fibre at 204 mm/ns, free space at the speed of light. The medium menu of the widget changes all eight drive lines at once.
Make drive0 a planar wire and keep its route. What delay does the check report for it?
5Paths through stages
In this section: how a delay is found when a signal crosses several wires.
A real line into a cryostat is not one cable. It runs from the room-temperature electronics to a vacuum feedthrough,
then through attenuators at each temperature stage, then to the sample. A design can say so: add stage
parts at those points and split the line into one wire per section. Each section has its own route and medium. The
delay of a pulse is then the sum of the delays of the sections it crosses.
pathDelay(design, from, to) finds that sum. It starts at the pulse's converter and follows every wire
leaving a part, in the wire's direction, adding each wire's delay. When two paths reach the same part, it keeps the
shorter delay. The answer is the delay of the fastest path from the converter to the qubit or resonator. If no path
exists, the answer is undefined, and lesson D4 shows the error that follows.
Three consequences are worth checking for yourself in the editor:
- Splitting a wire at a stage changes nothing if the two sections follow the old route: the lengths add up to the same total, and a stage adds no delay of its own. Each section is rounded up to a picosecond separately, so the sum can grow by a picosecond or two.
- Direction matters. A wire from the resonator to the ADC carries the returning signal only. It does not give the ADC a path to the resonator, and it does not give the readout DAC one either.
- A redundant path does not slow anything down. If you add a second, longer route between the same parts, the shorter one still sets the delay.
The editor's Signal timing tab lists every wire with its length and delay, and every calibrated pulse with the delay of its fastest path. Those numbers come from the same check route as the widget above, so they agree with the run. Why care about a few nanoseconds? A readout tone that goes down a line and comes back up another pays both delays before the signal reaches the ADC, and feedback cannot start before that. Lesson E1 follows the rest of that loop inside the controller.
6Design versus built-in
The built-in ring gives every line 1,050 mm at 0.7 c: 5,003 ps for every pulse. The designed ring routes each line and uses 200 mm/ns. The design test requires both to play identical windows; it does not require identical arrivals, and they are not.
Run the Bell program on the built-in ring (example superconducting-feedforward) and on the ring as a
design (example superconducting-design). By how many picoseconds does qubit 0's first
x90 arrive later on the design?
machine.provenance.delay.What to remember
- A wire's delay is its routed length over its medium's speed, rounded up to a picosecond: coax 200, planar 125, fibre 204, free space 299.79 mm/ns.
- A pulse's delay is the fastest wired path from its converter to its part; stages add nothing.
- Moving the chip changes when signals arrive, not when the controller plays them.
- Lines of different length give different arrivals: 435 ps of skew across the ring's drive lines.
- The built-in ring and the design assume different coax speeds; each run states which.