Chapter 11 Quantum Gates in Hardware: Microwave Pulse Area and Zero-Duration Virtual Z Gates
“A quantum state is a direction, and a quantum gate turns that direction; perhaps a gate can be understood as a geometric structure with area.”
Across our first ten chapters, we stripped away matrix mystique and restored every single-qubit gate to a rigid rotation on the unit sphere — or, in the even Clifford algebra , a rotor driven by an oriented bivector area. Yet when a theorist trained on blackboard symbols first steps into a superconducting transmon lab or an NMR facility, no chip labeled “unitary matrix multiplier” is anywhere in sight. Instead, racks of arbitrary waveform generators (AWGs), local oscillators (LOs), and IQ mixers send tens-of-nanoseconds microwave voltage envelopes down coaxial lines into a dilution refrigerator.
In real hardware, the epigraph’s intuition — that a quantum gate is a geometric structure with area — turns out to be literal in two complementary ways:
- To rotate a qubit state about an equatorial axis ( or ), engineers apply a microwave drive resonant with the qubit transition; in the standard rotating-frame and rotating-wave physical model, the Bloch rotation angle is governed by the pulse area under the microwave envelope (see Remark 11.4 and Remark 11.9 below)!
- Conversely, to rotate around the vertical energy axis (), how many nanoseconds of additional analog microwave pulse are needed in ideal pulse scheduling? Zero! The energy splitting fixes the axis and free-precession frequency, while the drive’s phase reference fixes the equatorial zero azimuth. Control software simply updates a passive phase register and offsets the drive phases of subsequent equatorial pulses — the virtual gate scheduling protocol in superconducting hardware (see Remark 11.6 and Remark 11.9 below).
This chapter builds the bridge between exact formal dynamics and hardware pulse physics: from matrix exponentials on eigenlines and the stationarity of energy eigenstates, through rotating-frame carrier cancellation and resonant pulse area, to an explicit trace error bound for ordered three-pulse kernels and the trace-duality identity linking state evolution to Heisenberg effect pullback.
Figure 11. The chapter at a glance: Panel I is the rotating frame that turns with the carrier, Panel II is the area under the envelope equalling the turning angle on the sphere, and Panel III is a virtual that sends no pulse and only shifts the phase of the pulses after it. Panel I looks down on the equatorial plane: the grey axis turns about by (violet curved arrow) and the amber state rides along it, still in the rotating frame; in Panel II the magenta area under the envelope and the magenta sector are both ; in Panel III the violet dashed line is the written in the circuit, the solid violet line the actually sent, and the amber curved arrow the phase shift , costing . The area law and virtual- scheduling are literature results, not formalized in this book (Remark 11.4, Remark 11.6).
11.1 Rotating Frames and Carrier Removal
In a superconducting quantum processor, a qubit begins with a static energy-splitting Hamiltonian (setting ):
with a typical transition frequency . Under ideal free evolution without a microwave drive, a Bloch vector with a nonzero transverse component precesses around the vertical axis five billion times per second (one full revolution every ). Vectors on the axis remain stationary, including the energy eigenstates at the poles and the maximally mixed state at the origin.
To see how energy eigenstates behave under matrix exponentiation, we start with the general algebraic lemma in the Lean module EnergyEigenstateStationarity: whenever , the matrix exponential acts on simply as scalar multiplication by .
Let be a finite index type with decidable equality (Fintype n, DecidableEq n), let be an arbitrary complex square matrix, let be a vector, and let be a complex scalar. If , then
By induction on , the eigenvalue relation implies . Passing the continuous linear map through the norm-convergent exponential series yields
The full proof is checked by the Lean kernel.
Notice that Lemma 11.1 assumes neither Hermiticity of nor normalization of ( is allowed). Specializing to a Hermitian matrix , a unit eigenvector with real eigenvalue , and real time (), the propagator multiplies by the pure phase . On the rank-one density matrix (encoded via pureDensityState), the conjugate phases cancel identically, leaving the eigenstate stationary!
Let be a finite index type with decidable equality, let be Hermitian (H.IsHermitian), let satisfy , and let satisfy . Setting
both properties hold:
Because is Hermitian and is real, is skew-Hermitian, so belongs to with . By Lemma 11.1 with , . Conjugating therefore gives
The full proof is checked by the Lean kernel.
Theorem 11.2 provides the stationary eigenstate anchor motivating the rotating frame in hardware control (Panel I of Figure 11; the standard continuous-time rotating-frame Hamiltonian reduction is recorded in Remark 11.3).
Literature result, not formalized in this book. In the continuous-time Schrödinger model (see Remark 11.9), under the basis states and are stationary rays with eigenvalues while equatorial states precess at angular frequency . Defining the rotating-frame state via
substituting yields the effective rotating-frame Hamiltonian
where the frame term cancels the carrier Hamiltonian identically.
In the lab frame the equator spins and the poles stay. With no drive, the amber state leaves and goes round the violet axis once every , while the two white dots at the north and south poles do not move: they are the energy eigenstates of Theorem 11.2. The dashed line on the left is the carrier reference , which also runs through two cycles in .
11.2 Resonant Drives and Pulse Area
With the background carrier removed, the standard reduction of a resonant transverse microwave drive under the rotating-wave approximation (RWA) to a fixed-axis pulse-area integral is recorded below (Panel II of Figure 11; Remark 11.4).
Literature result, not formalized in this book. In an isolated two-level model (for modeling premises and citations, see Remark 11.9), apply a resonant transverse microwave drive () with real envelope and phase :
Conjugating by via and expanding product-to-sum identities splits the drive into a counter-rotating term oscillating at and a co-rotating term fixed at azimuth on the equator. Under resonance (), two-level isolation, and the rotating-wave approximation (RWA), dropping the rapid oscillation gives the effective rotating-frame Hamiltonian:
(Writing and alongside a general detuning , the linear combination expands entrywise in as , whose diagonal vanishes at exact resonance .)
Whenever the drive phase is held constant over , the generator points along the same fixed equatorial axis at every instant, so for all . No Dyson time-ordering series is needed, and the propagator integrates directly to
so in this idealized fixed-axis RWA model the Bloch rotation angle equals the integrated pulse area under the envelope (an area of executes a quarter-turn, and an area of executes a half-turn bit flip).
One quarter-turn: a spiral in the lab frame, a single meridian arc in the rotating frame. Left: the amber path leaves the north pole and winds round the violet axis, turn after turn, down to the equator. Right: during the same pulse the amber state only runs down a meridian from the north pole to , about the violet axis. Schematic: the pulse holds carrier cycles, of which the picture draws . The rotating frame and the area law are literature results, not formalized in this book (Remark 11.4).
This effective hardware picture echoes the epigraph’s geometric intuition (MODEL): a quantum state is a spherical direction, while a resonant control pulse acts in the time domain through an envelope of definite integrated area (Remark 11.4).
Area , a quarter turn. A square pulse of for : the magenta area on the left is ; on the right the amber state leaves the north pole and turns about the violet axis through a magenta sector of the same size, stopping on the equator with . The area law is a literature result (Remark 11.4), not formalized in this book.
11.2.1 Cancellation of the Fast Term: From the Actual Path to Integral Action
The area law describes the fixed-axis average model exactly. Comparing it with the actual laboratory path requires an estimate of the discarded term. We use the integral-action method of Burgarth, Facchi, Gramegna, and Yuasa, One bound to rule them all: from Adiabatic to Zeno (arXiv:2111.08961v2, Lemma 1, Eqs. 2.3–2.6; §3.3.1, Eqs. 3.27–3.34). Their envelope example uses zero phase; the derivation here treats exact resonance and an arbitrary fixed phase. It is a mathematical application of a literature method, not an additional Lean-verified result in this book or a formal verification of the entire hardware control process.
Objects and assumptions. Set , , a constant real phase , and . Real functions are continuous on , with on ; assume bounds for every . Only continuity on the closed interval and the interior derivative relation are required; a differentiable extension beyond it is unnecessary. All matrices below lie in , and every matrix norm is the spectral norm, the operator norm induced by the Euclidean vector norm. The laboratory model is
Construct the original path first. On the matrix Banach space, take the identity contraction semigroup and the left-multiplication coefficient . A continuous is bounded on the finite closed interval, so the original nonautonomous Dyson–Phillips construction applies. Its source and scope are in the pinned source repository, at D5/S3/Quantum/Analysis/NonautonomousDysonPhillips.lean (evolution, nonautonomous_bounded_perturbation) and Blueprint/D5/S3/Quantum/Analysis/NonautonomousDysonPhillips.md. Specifically, take
These are matrix-valued Bochner integrals retaining the left multiplication order. If , then ; the series converges uniformly to the unique continuous mild path
The fundamental theorem of calculus gives the interior derivative . Hermiticity then gives ; the initial value and continuity imply , hence unitarity for finite square matrices. These differential, Hermitian, and physical identifications are applications of the existence and uniqueness supplier just cited. Let . Laboratory generators at different times generally do not commute, so this path cannot be replaced by exponentiating their integral directly.
Actual rotating path and average path. Put and . The product rule and give
Here is the effective generator used in the area law above after dropping the fast term; retains it. Both are continuous and Hermitian. Write and . The candidate path
satisfies and . After integration, mild uniqueness identifies with the path supplied by the same original construction for . Thus the area exponential identifies the evolution of the average model; it is not assumed to solve the laboratory equation. Both and are unitary and start at .
A reusable integral-action identity. For any two continuous Hermitian generators and their normalized evolution paths, define
For fixed , differentiate . Using gives
The endpoints are and . Integrating and rearranging yields the identity from Lemma 1, with the multiplication order retained:
Unitary multiplication on either side preserves the spectral norm, so the triangle inequality gives
Endpoints and envelope variation. For this pulse, . Set
The norm relation follows from . Integrating the scalar oscillatory integral by parts retains both endpoints explicitly:
A Pauli matrix along a fixed unit axis has spectral norm , so and . Substituting in the integral-action inequality and extending the nonnegative integrals from to gives, for every ,
This is also the same norm error bound between and in the laboratory frame. Cancellation occurs under integration: does not decrease with , whereas the primitive is , controlled by endpoints and total envelope variation. Increasing the carrier frequency with the envelope and finite window fixed therefore controls this model’s approximation error. Equal areas alone do not determine the actual laboratory propagator.
A hand calculation and its boundaries. Choose a time unit and normalize angular frequencies by its inverse. Take , , , and . Then
This holds for all and every fixed . In physical units, are angular frequencies and has units of inverse time squared; is dimensionless, while has the same units as . The error bound is consequently dimensionless; frequencies in Hz cannot be substituted directly for angular frequencies. If , then ; for any admissible envelope, the paths also agree exactly at . These are identity cases, not claims that the bound from a coarse is tight.
The model remains an isolated, exactly resonant two-level system. Square-pulse paths containing switching corners or jumps, phase modulation, detuning, and higher-level leakage fall outside these comparison hypotheses. The ideal fixed-axis area law can hold for more general integrable envelopes; that does not remove the regularity assumptions of this error comparison. The quantity estimated here is the spectral-norm distance between unitary propagators. It differs from the next section’s real-trace error for pulse0 under Frobenius-norm hypotheses and is not experimental gate infidelity. The physical modeling retains its literature status in Remark 11.4 and Remark 11.9.
11.3 Ordered Pulses and an Error Bound
When three distinct generators are applied sequentially in finite steps rather than along a single commuting axis, higher-order noncommuting corrections appear.
The same two pulses, swapped, end elsewhere. Two square pulses of area , first about , then about : the north pole goes to ; the white dashed path, first and then , goes to . This is only a numerical picture of two noncommuting turns, not the kernel bound of Proposition 11.5 below.
In the Lean module OrderedThreePulseTrace, for a finite decidable index type , a complex matrix , and real parameter , define the integrated kernel
The next frozen proposition gives the exact and formulas for pulse0 together with an explicit bound on the real trace deviation of three ordered kernels when are real symmetric matrices with Frobenius norms at most .
Let be a finite index type with decidable equality (Fintype I, DecidableEq I), let be real symmetric matrices (A.IsSymm, B.IsSymm, C.IsSymm), let satisfy with Frobenius-norm bounds
and let denote their complexifications. Then for every real :
-
For all , ;
-
For all and all with ,
-
The real part of the ordered three-kernel trace satisfies
Integrating the constant matrix over gives . For , applying the fundamental theorem of calculus to on yields
Expanding each factor to second order in , the first-order terms multiply real traces of real symmetric matrix products by and are therefore purely imaginary, vanishing identically under . Bounding the remaining tail via the L2 operator norm (which is dominated by the Frobenius norm ) yields the explicit bound. The full proof is checked by the Lean kernel.
Notice the geometric reason why the trace error scales as rather than : for real symmetric generators , the first-order drift is purely imaginary, so taking the real part projects out the term orthogonally! Keep the mathematical contract of Proposition 11.5 clear: pulse0 is an integrated exponential-times-matrix kernel (where NormedSpace.exp uses the local L2 operator norm while the hypotheses bound Frobenius norms), not a unitary propagator, microwave envelope, or hardware gate fidelity.
The first-order drift is all imaginary; the real deviation starts at second order. On log-log axes, the magenta line is the imaginary part of the trace of the three ordered pulse kernels, growing like for small , with slope tending to as ; the cyan line is the deviation of the real part from , growing like for small , with slope tending to as ; the dashed green line is the bound of Proposition 11.5, and the cyan line stays below it. The matrices are three real symmetric matrices of Frobenius norm (); the two curves are numerical results.
11.4 Virtual Z and Phase-Reference Updates
In contrast to equatorial rotations implemented via nonzero-duration microwave envelopes (Remark 11.4), superconducting hardware executes virtual gates with zero additional analog pulse duration via axial conjugation and a software phase register (Panel III of Figure 11; the conjugation identities and sign conventions are recorded in Remark 11.6).
A virtual : , a phase shift, the same readout. From the circuit is and then . The violet mark on the left is wide and the pulse goes out at (): the solid path turns about to the north pole; the white dashed path takes the circuit literally, turning about the vertical axis to and then about to the north pole. Both end at the north pole with the same cyan shadow, (Remark 11.6, a literature result not formalized in this book).
Literature result, not formalized in this book. For an axial rotation and an equatorial drive gate , the relations and yield both the axial conjugation identity and the right-commutation identity (for hardware scheduling citations, see Remark 11.9):
To implement virtual gates without sign ambiguity, control software distinguishes the passive frame offset from the physical drive phase replacement:
-
Conjugation identity and the passive frame register : The conjugation identity shows that rotating the reference frame actively by around carries an axis at azimuth to azimuth (for instance, at and , conjugating yields ). In control software, each virtual instruction increments a passive frame phase register by
-
Commuting a preceding to final readout uses : When an active gate precedes a subsequent equatorial pulse in a circuit (acting first on the ket from the right), omitting the physical pulse and pushing to the left past toward a final -basis measurement uses the right-commutation identity . Under the fixed physical drive convention , incrementing maps a logical gate angle to the physical microwave drive phase
while rotating subsequent equatorial readout axes by the same relative shift; the accumulated pushed to the end of the circuit leaves final -basis projectors () invariant (compare Theorem 11.2), realizing zero additional analog pulse duration () in ideal pulse scheduling.
-
Observable sign check on : Preparing , applying followed by , and measuring in the basis gives
with outcome probability : omitting and setting ( pulse) rotates to (), whereas ( pulse) would rotate to ().
Shift the phase the wrong way and you land on the opposite pole. The same circuit, but the pulse goes out at (): the solid path turns about to the south pole, , while the white dashed path, what the circuit means, still ends at the north pole.
At the operator-algebraic level, pushing a state forward by discrete channel steps (Schrödinger picture) versus pulling the measurement effect back by adjoint iterates (Heisenberg picture) is certified by the frozen trace-duality identity in ObserverPullbackTraceIdentity. This is general effect pullback; the phase-reference update above is a unitary-conjugation special case, and an arbitrary channel’s pullback need not be realizable by updating a phase register. Here MatrixAlgebra d is the complex square CStar-matrix algebra, DensityState d is its positive trace-one subtype, QuantumChannel d d carries a completely positive trace-preserving map, and evolvedState channel t rho iterates QuantumChannel.mapState times.
Push the state, or pull the readout back: the same angle, the same reading. Left: the amber state turns about the violet axis to a new place while the readout direction (the north pole) stays put. Right: the amber state stays and the grey readout direction turns back by the same angle. The cyan arcs on both sides are the same angle , so the chance of reading is the same. This is the special case of Corollary 11.7 for a single unitary turn.
Let be a finite index type with decidable equality, let be a quantum channel, and let be a completely positive map satisfying the explicit trace-duality premise (hduality):
Then for every natural number , density state , and matrix effect ,
By induction on . The base case is immediate. For the inductive step from to , applying hduality once transfers one step of from the evolved state to on the effect, after which the induction hypothesis completes the -fold iterate . The full proof is checked by the Lean kernel.
Note that in Corollary 11.7, counts discrete channel iterations rather than physical seconds, and the theorem certifies trace-dual readout under the explicit hduality premise (of which unitary frame conjugation is a special case); it makes no claim about analog pulse duration or hardware error rates.
The film below walks through the chapter’s arc step by step, from the pulse area to the push-or-pull duality.
The gate that takes no time (2 min 30 s). A sideways turn costs a magenta pulse of about , a turn about the vertical axis costs . In the rotating frame the amber state turns about the violet axis by the magenta area under the envelope: for or for gives ; the area law is a literature result (Remark 11.4). For three real symmetric matrices about different axes, each of Frobenius norm , a two-column ledger shows the imaginary part of the trace of the three pulse kernels at (about halving) and its real deviation from (falling to about a quarter each time) under the green bound (Proposition 11.5); this trace does not depend on the order of the three. Between two pulses, skipping a turn and firing the second pulse at phase puts the amber state and the white dashed literal end on the same cyan latitude , apart, so both ways; the phase rule is a literature result (Remark 11.6). Pushing the state by steps or pulling the readout direction back gives on both sides, the special case of Corollary 11.7 for a unitary step. The tap and jug, the map and hiker, and the photo are analogies; the derived numbers are computed on screen, while and are typical values from the literature.
Let us compare the three elementary single-qubit rotations in superconducting hardware and check all four numerical aspects — carrier removal, a quarter-turn pulse, a virtual- phase shift, and the dimensionless pulse0 trace bound — in a single concrete example.
Literature result, not formalized in this book. The superconducting hardware comparison of below together with the rotating-wave-approximation (RWA) pulse-area law and passive zero-analog-duration virtual- scheduling in Steps 1–3 belong to the quantum-engineering literature (see Remark 11.9 below) and are not formalized in this book, whereas Step 4 instantiates this chapter’s kernel-verified dimensionless bound Proposition 11.5.
First compare the three elementary single-qubit rotations across physical mechanism, control parameter, and analog duration:
- Rotation about the axis: Executed by a resonant microwave pulse at phase (in-phase channel ), with rotation angle set by the envelope area over a typical analog duration ;
- Rotation about the axis: Executed by a resonant microwave pulse at phase (quadrature channel ; under this chapter’s positive carrier-phase convention, the carrier leads by a quarter cycle), with rotation angle over ;
- Rotation about the axis (Virtual gate): Executed by updating the passive software frame register (and, when commuting a preceding to final -basis readout, shifting the physical drive phase of subsequent equatorial pulses to , i.e. via ), requiring zero additional analog pulse duration () in ideal pulse scheduling!
Next verify the four concrete numerical items:
-
Carrier cancellation at : Set , , and (carrier period ). With and , the transformed Hamiltonian cancels exactly, while the drive reduction uses resonance and the rotating-wave approximation.
-
A quarter-turn pulse: For fixed drive phase , the ideal effective Hamiltonian commutes across times, giving with . Choosing rectangular and gives
Since the carrier period is , carrier cycles fit inside the envelope, and any smooth pulse of equal integral produces the same ideal fixed-axis rotation within this effective approximation.
-
Virtual- phase shift and physical drive sign: With and , one checks both the conjugation identity and the right-commutation identity:
In the active conjugation formula , setting and rotates the reference axis from () to (). In circuit compilation with zero additional analog pulse duration in ideal scheduling (), software increments the passive frame offset , while commuting a preceding past toward final -basis readout sets the physical drive phase to . On , an active physical rotates the Bloch vector to ; if followed by and -basis readout, gives , confirming that a passive frame update leaves the physical state untouched and must consistently transform subsequent physical drive phases () and readout (Corollary 11.7).
-
Dimensionless
pulse0bound check: Instantiating Proposition 11.5 with Frobenius-norm bound and step parameter givesbounding the real trace deviation of three integrated
pulse0kernels (not a hardware gate infidelity or the microwave-area formula).
Another shape, the same area, the same end point. The Gaussian envelope also has area : tall in the middle and low at the ends, so the amber state moves slowly, then fast, then slowly, while the white dashed square pulse moves evenly; at both stop at the same point (Step 2 of Example 11.8).
Literature result, not formalized in this book. Two hardware-control results from the quantum-engineering literature frame this chapter:
- Virtual gates and pulse scheduling (D. C. McKay et al., “Efficient Z gates for quantum computing,” Phys. Rev. A 96, 022330, 2017, DOI 10.1103/PhysRevA.96.022330; single-qubit rotations in M. A. Nielsen & I. L. Chuang, 2010, §4.2): Implementing -axis rotations via software phase-reference updates (which shifts the physical drive phase of subsequent equatorial pulses to when commuting to final readout) adds zero analog pulse duration in ideal scheduling conventions. Zero additional analog duration is a scheduling convention, not zero classical digital latency or total physical error.
- Assumptions behind the simple pulse-area law: The formula requires resonance (), a fixed phase/rotation axis during the pulse, an isolated effective two-level model, and the rotating-wave approximation. Time-dependent phase or detuning generally makes generators at different times noncommuting, so time ordering must be handled for the chosen control. With fixed phase, a constant envelope and constant detuning still give a fixed tilted axis and commuting generators, but not the resonant equatorial-axis area formula above. Meanwhile, Corollary 11.7 applies under its explicit
hdualitypremise and makes no claim about pulse duration, drive calibration, decoherence, leakage, or gate error rates.
Detuned, the area no longer decides. The same Gaussian envelope of area , with the drive off: the violet axis tilts out of the equator and sways with the envelope. The dashed violet trail is where its tip has been: it comes closest to the equator, off it, at the envelope’s peak, and when the pulse ends the envelope is back at zero and the faint axis is vertical again. The amber state misses the end of the white dashed (undetuned) path; the short white arc between the two marks the miss, about . The page cuts the pulse into a thousand or more slices and multiplies them in time order: a numerical illustration.
If a gate can be executed simply by shifting the observer’s phase reference, can we go one step further and perform all quantum computation by shifting the observer’s measurement axes across an entangled resource state? Let us enter Chapter 12.
The full lab for pulse area and the virtual : drag the top and the right end of the envelope to change its area and length, change the drive phase, the detuning and the angle of the virtual , add a second pulse and swap the two, or switch between the lab and the rotating frame. The green boxes cite only the theorems this chapter verifies in Lean; the area law and virtual- scheduling are literature results, not formalized in this book.