左边是微波脉冲的包络 Ω(t)/2π(单位 MHz,横轴是纳秒),右边是布洛赫球。时间轴走到哪里,左边就把那之前的包络下的面积涂成品红,右边就把态转到那一刻。本页是数值演示,不是证明。
虚线是哪一条。舞台上的白色虚线是拿来对照的另一条路,图例写明是哪一条;页面按固定的先后次序只取一条。① 开了第二个脉冲,虚线一律是两个脉冲换序:把此刻实际发出的两个相位(都已按所选符号改成 φ − λ 或 φ + λ)对调,包络、面积与失谐不变;这不是电路字面上的虚拟 Z,两条路的读数也未必相同。② 否则(只有一个脉冲),λ ≠ 0 时,虚线是电路字面上的那条路:先真转 R_z(λ),再按原相位 φ 发脉冲,实线是按当前符号改过相位的那个脉冲;符号正确(φ − λ)时,不论包络与失谐,把实线的终点绕 z 轴转 λ 就得到虚线的终点,所以高度相同、P(0) 相同;符号改错(φ + λ)时这层关系不再有保证,读数可能变,也可能恰好相同(例如 λ = 180° 时两个符号是同一个相位)。③ 否则,λ = 0 而有失谐时,虚线是同一个脉冲不失谐。④ 否则,λ = 0、不失谐、高斯包络时,虚线是同面积的方波,共振时面积律保证两者终点相同。⑤ 其余情形(一个方波、λ = 0、不失谐)没有虚线。
- 旋转系。比特的固有哈密顿量 H₀ = ½ω₀Z(ω₀/2π = 5 GHz)。不加驱动、只有 H₀ 自由演化时,在实验室系里,赤道上的态每 0.2 ns 绕竖轴转一圈;两极是 H₀ 的本征态,在这一演化下纹丝不动(
energy_eigenstate_stationary,LEAN ✓;它依赖本征线上的标量指数化 exp_mulVec_of_eigenvector,LEAN ✓);一加驱动,两极也会被转走。跟着驱动频率 ω_d 一起转的参考系把载频消掉,这是文献结果,未在本书形式化;共振(ω_d = ω₀)且不加驱动时,旋转系里什么都不动,失谐时见第 3 条。页面默认画旋转系;切到“实验室系”时,把旋转系里的解绕 z 轴转 ω_d t。
- 面积律。共振、相位 φ 固定、旋波近似下,旋转系哈密顿量是 ½Ω(t)(cos φ X + sin φ Y),各时刻彼此对易,传播子是绕赤道轴 (cos φ, sin φ, 0) 转 θ = ∫Ω dt 的 R_φ(θ) = exp[−(i/2)θ(cos φ X + sin φ Y)]。所以方波和高斯波只要面积相同就转到同一处:面积 π/2 是四分之一转,π 是半转。文献结果,未在本书形式化。
- 失谐。加上 Δ = ω₀ − ω_d,生成元是 ½(Ω(t)cos φ X + Ω(t)sin φ Y + ΔZ)。包络在变时,各时刻的生成元不再对易,转轴随时间晃动,要按时间次序相乘;页面把脉冲切成至少 1200 小段,每段用该段的平均振幅做精确指数。不加驱动时生成元只剩 ½ΔZ:旋转系跟着 ω_d 转,与 ω₀ 差了 Δ,所以旋转系里的态仍以 Δ 绕 z 轴进动,只有两极不动。
- 次序。两个绕不同轴的转动一般不对易,换个次序终点可能不同。下面的数只属于一个例子(SWAP-ORDER 卡):共振、方波、面积各 π/2、名义相位 0° 与 90°、λ = 0、从北极出发。这时先 X(π/2) 后 Y(π/2) 把北极送到 −y,先 Y 后 X 送到 +x;两个脉冲的面积合计 π,合成的传播子却只转 2π/3(120°):转角跟着面积走,只对共振且转轴不变的情形成立。这个例子不代表每一种控制组合:换了起点、面积、相位、失谐或 λ,两个次序的终点要另算,可能不同,也可能相同(例如不失谐、即共振时,两个相位相差 180° 的 π/2 脉冲)。页面只是数这两个终点,不涉及第十一章冻结的三脉冲积分核误差界——那条命题讲的是 pulse0 核的迹,不是幺正门。
- 虚拟 Z。由 R_φ(θ)R_z(λ) = R_z(λ)R_{φ−λ}(θ):电路里先做 R_z(λ) 再做 R_φ(θ),等于把后面的脉冲改成相位 φ − λ,再在最后补一个 R_z(λ);最后那个 R_z 与 Z 基投影对易,不改读数,于是可以不发。这条恒等式讲的是电路本身;舞台上画哪一条对照路,按上面的次序选。只有一个脉冲、λ ≠ 0 时,虚线才是电路字面上的那条路(先绕竖轴转 λ,再按 φ 发脉冲),实线是硬件真正做的(只发改过相位的脉冲,0 ns 的 Z):符号正确(φ − λ)时,不论包络与失谐,把实线的终点绕 z 轴转 λ 就得到虚线的终点(落在 z 轴上的终点,即两极,不动),所以两条路终点的高度相同,P(0) 相同。符号取反(φ + λ)时这层关系不再有保证,读数可能改变:从 |+⟩ 出发、λ = 90°、X(π/2) 时,正确的符号到北极 P(0) = 1,错误的符号到南极 P(0) = 0;读数也可能不变,例如 λ = 180° 时 φ + λ 与 φ − λ 是同一个相位。这些是第十一章文献注记的内容,文献结果,未在本书形式化。开了第二个脉冲时,虚线换成第 4 条那样的换序,不再是电路字面上的那条路,也没有什么保证两者读数相同:VIRTUAL-Z 卡(从 |+⟩ 出发、λ = 90°、名义相位 0°)再加一个同面积、名义相位 90° 的方波脉冲,实际发出 −90° 与 0°,实线停在 −y,P(0) = 1/2,换序的虚线到北极,P(0) = 1。读数不随参考系更新而变,在算子代数层面对应状态前推与效应拉回的迹对偶:若信道与完全正映射满足迹对偶前提,则 t 步前推后的读数等于效应拉回 t 次后的读数(
observer_pullback_trace_identity,LEAN ✓;t 是离散步数,定理不涉及脉冲时长)。
书中:第十一章 · 旋转坐标系与载频约分 · 共振微波与脉冲面积 · 有序脉冲与误差界 · 虚拟 Z 与相位参考更新
On the left is the envelope Ω(t)/2π of the microwave pulse (MHz against nanoseconds), on the right the Bloch sphere. Wherever the rail stands, the left side paints the area under the envelope up to that moment in magenta, and the right side turns the state to that moment. The page is a numerical illustration, not a proof.
Which dashed path. The white dashed path on the stage is the comparison, named in the legend, and the page takes exactly one, in a fixed order. (1) With the second pulse on, it is always the two pulses swapped: the two phases actually sent now (each already shifted with the chosen sign, φ − λ or φ + λ) exchange places, with the same envelope, area and detuning; this is not the literal virtual-Z circuit, and the two readouts need not agree. (2) Otherwise, with one pulse and λ ≠ 0, it is the literal circuit, a real R_z(λ) and then the pulse at the nominal phase φ, while the solid path is the pulse at the phase shifted with the current sign; with the right sign φ − λ, at any envelope and detuning, turning the solid end by λ about z gives the dashed end, so the heights and P(0) agree; with the wrong sign φ + λ that relation is no longer guaranteed, so the readouts can differ and can also coincide (at λ = 180°, for instance, the two signs give one phase). (3) Otherwise, with λ = 0 and a detuning, it is the same pulse without detuning. (4) Otherwise, with λ = 0, no detuning and a Gaussian envelope, it is the square pulse of the same area, and at resonance the area law makes the two ends the same. (5) Otherwise (one square pulse, λ = 0, no detuning) there is no dashed path.
- The rotating frame. The qubit's own Hamiltonian is H₀ = ½ω₀Z (ω₀/2π = 5 GHz). With no drive, under the free evolution by H₀ alone, a state on the equator goes once round the vertical axis every 0.2 ns in the lab frame; the poles are eigenstates of H₀ and do not move under this evolution (
energy_eigenstate_stationary, LEAN ✓; it rests on the scalar exponential along an eigenline, exp_mulVec_of_eigenvector, LEAN ✓); once a drive is on, the poles are turned too. A frame turning along at the drive frequency ω_d removes the carrier; that is a literature result, not formalized in this book. At resonance (ω_d = ω₀) and with no drive nothing moves in the rotating frame; for a detuning see item 3. The page draws the rotating frame by default; in “Lab” it turns the rotating-frame solution about z by ω_d t.
- The area law. At resonance, with fixed phase φ and the rotating-wave approximation, the rotating-frame Hamiltonian is ½Ω(t)(cos φ X + sin φ Y); its values at different times commute, and the propagator turns about the equatorial axis (cos φ, sin φ, 0) by θ = ∫Ω dt: R_φ(θ) = exp[−(i/2)θ(cos φ X + sin φ Y)]. So a square and a Gaussian pulse of the same area end at the same point: area π/2 is a quarter turn, π a half turn. Literature result, not formalized in this book.
- Detuning. With Δ = ω₀ − ω_d the generator is ½(Ω(t)cos φ X + Ω(t)sin φ Y + ΔZ). While the envelope changes, its values at different times no longer commute, the axis sways, and the slices must be multiplied in time order; the page cuts the pulse into at least 1200 slices, each an exact exponential at the slice's mean amplitude. With no drive the generator is just ½ΔZ: the rotating frame turns at ω_d, Δ away from ω₀, so a state there still precesses about z at Δ, and only the poles stay put.
- Order. Two turns about different axes do not commute in general, so swapping them can change the end. The numbers here belong to one example, the SWAP-ORDER card: resonant square pulses of area π/2 each, nominal phases 0° and 90°, λ = 0, starting from the north pole. There X(π/2) then Y(π/2) takes the north pole to −y, Y then X takes it to +x; the two areas add up to π, yet the combined propagator turns by only 2π/3 (120°): the angle follows the area only at resonance with an axis that stays the same. The example does not describe every setting: with another start, area, phase, detuning or λ the two ends must be computed again, and they can differ or coincide (two π/2 pulses with phases 180° apart, for instance, coincide at resonance, with zero detuning). The page only counts these two end points; it has nothing to do with the frozen three-pulse kernel bound of Chapter 11, which is about the trace of pulse0 kernels, not unitary gates.
- The virtual Z. From R_φ(θ)R_z(λ) = R_z(λ)R_{φ−λ}(θ): doing R_z(λ) and then R_φ(θ) is the same as sending the later pulse at phase φ − λ and appending R_z(λ) at the end; that last R_z commutes with the Z-basis projectors and does not change the readout, so it need not be sent. This identity is about the circuit itself; which path the stage compares with is chosen by the order above. Only with one pulse and λ ≠ 0 is the white dashed path the circuit taken literally (first turn by λ about the vertical axis, then a pulse at φ), while the solid path is what the hardware does (only the shifted pulse, a Z of 0 ns): with the right sign φ − λ, at any envelope and detuning, turning the solid end by λ about z gives the dashed end (an end on the z axis, at a pole, stays where it is), so the two end points have the same height, hence the same P(0). With the sign reversed (φ + λ) that relation is no longer guaranteed and the readout can change: from |+⟩ with λ = 90° and X(π/2), the right sign reaches the north pole, P(0) = 1, the wrong sign the south pole, P(0) = 0; it can also stay the same, as at λ = 180°, where φ + λ and φ − λ are one phase. These are the literature remarks of Chapter 11, literature results not formalized in this book. With a second pulse on, the dashed path is the swap of item 4 instead, not the literal circuit, and nothing makes the two readouts equal: the VIRTUAL-Z card (from |+⟩, λ = 90°, nominal phase 0°) with a second square pulse of the same area at nominal phase 90° sends −90° and then 0°; the solid path ends at −y, P(0) = 1/2, the dashed swap at the north pole, P(0) = 1. That the readout survives a frame update matches, at the level of operator algebras, the trace duality of pushing states forward and pulling effects back: when a channel and a completely positive map satisfy the duality premise, the readout after t steps forward equals the readout of the effect pulled back t times (
observer_pullback_trace_identity, LEAN ✓; t counts discrete steps, and the theorem says nothing about pulse durations).
In the book: Chapter 11 · Rotating frames and carrier removal · Resonant drives and pulse area · Ordered pulses and an error bound · Virtual Z and phase-reference updates