Overview
A gate in a circuit diagram is, in the laboratory, a shaped burst of microwaves, laser light or voltage applied for a few nanoseconds to microseconds. Quantum control is the theory and practice of choosing those waveforms so that the system's evolution is the intended unitary, and of measuring how far it falls short. It has three layers.
- Modelling the drive. In a frame rotating with the drive, a resonantly driven two-level system obeys a simple time-independent Hamiltonian. Rabi oscillations calibrate the rotation angle; Ramsey fringes calibrate the frequency and measure dephasing (Rabi; Ramsey).
- Designing robust pulses. Composite pulses cancel systematic errors (Levitt; Wimperis), DRAG removes leakage into a third level (Motzoi et al.), and numerical optimal control such as GRAPE searches over all piecewise-constant waveforms (Khaneja et al.; Glaser et al.).
- Characterizing the result. Randomized benchmarking reports an average error per gate insensitive to preparation and measurement errors (Magesan, Gambetta and Emerson); gate-set tomography reconstructs every operation self-consistently (Nielsen et al.); filter functions predict dephasing from the noise spectrum (Cywiński et al.).
The superconducting-qubit review of Krantz et al. shows all three layers at work on one platform.
Intuition
Think of the qubit's Bloch vector as a spinning top that precesses about at its transition frequency. A drive at the same frequency looks static to an observer who rotates along with the top, and in that rotating frame it simply tilts the vector about an axis in the equatorial plane fixed by the drive's phase. Turning the drive on for the right time gives a or rotation. If the drive is slightly off frequency, the axis tilts out of the plane and the rotation never fully inverts the qubit.
Errors come in two kinds. Systematic errors (a miscalibrated amplitude, a fixed detuning) are the same every time; they can be cancelled by clever sequences, just as an echo cancels a constant detuning. Random errors fluctuate; how much a sequence suppresses them depends on how fast they fluctuate compared with the sequence, which is what the filter-function picture makes precise.
Characterization faces its own problem: one cannot measure a gate without preparing and measuring states, which are made with the same imperfect operations. Randomized benchmarking avoids the circularity by asking only how fast fidelity decays with sequence length; gate-set tomography embraces it and estimates everything at once, up to an unavoidable change of frame.
Prerequisites
Qubit states and the Bloch sphere (quantum states), unitary dynamics, quantum channels and the average gate fidelity, the Clifford group, and elementary Fourier analysis. The lessons qubits and the Bloch sphere and noise and hardware give a gentler start.
Mathematical Definitions
Take the lab-frame Hamiltonian of a driven qubit
with , so lies above . For a time-dependent unitary , the state evolves under the rotating-frame Hamiltonian . With one has and , hence
The rotating-wave approximation (RWA) discards the last, counter-rotating term, leaving the time-independent Hamiltonian
The dropped term oscillates at ; averaged over a period it vanishes, and its effect on the dynamics is small when . In that regime the drive phase selects the rotation axis in the equatorial plane, so a single carrier with two quadratures (in-phase and quadrature components) gives any axis, and the detuning adds a component. Because is diagonal in the computational basis, populations are the same in both frames; phases are not, and a frame change is equivalent to redefining the phase reference of later pulses (the basis of "virtual " gates). This model underlies magnetic resonance from Rabi on and is the standard starting point for microwave control of superconducting qubits (Krantz et al.).
- A two-level system with transition frequency driven by a classical field of carrier frequency , units with .
Let parametrise a systematic error, for example an amplitude (pulse-length) error under which every nominal rotation is applied as . A composite pulse for the target is a finite product with (up to a global phase). It compensates to order if as , so that the gate infidelity is . A plain pulse has and infidelity of order .
BB1 (Wimperis) appends to the sequence with
The appended block is the identity when , and its first- and second-order error terms cancel those of the main pulse, so BB1 compensates amplitude errors to second order. The correction block may be placed before or after the main pulse, or in its middle. The review of Levitt collects composite pulses for amplitude errors, for off-resonance errors and for both; they trade gate time (BB1 adds of rotation, so a BB1 pulse lasts five times as long as a plain one) for robustness against slowly varying, systematic errors, and give no protection against noise that fluctuates within the sequence.
- Rotations in the rotating frame; the error is systematic, i.e. the same unknown value for every pulse of the sequence.
Drive a ladder with a complex envelope in the frame of the – transition. In a weakly anharmonic system the same drive also couples to , detuned by only , so a short smooth pulse alone causes leakage out of the qubit subspace and a drive-induced phase shift. A DRAG pulse adds the quadrature
with chosen so that is the target angle and , and possibly a small time-dependent detuning. The dimensionless coefficient is of order one: its first-order theoretical value depends on whether leakage or the qubit phase error is targeted, and in practice it is calibrated experimentally. The sign convention depends on the sign chosen for and for the quadrature.
The construction is due to Motzoi, Gambetta, Rebentrost and Wilhelm, who derived it by moving to a frame in which the coupling to is removed order by order in ; Gambetta, Motzoi, Merkel and Wilhelm develop the analytic theory of such corrections. It is the default single-qubit pulse shape for transmons (Krantz et al.).
- A weakly anharmonic ladder driven near the – transition, anharmonicity with large compared with the drive amplitude but not with the inverse gate time.
Write for a density operator as a vector in and for the linear functional . A gate set is a tuple
of a prepared state, a measurement (POVM effects ) and superoperators (the implemented gates). It predicts, for every finite word of gate labels, the outcome probabilities
For any invertible the gauge-transformed gate set predicts exactly the same for every , because the factors cancel between neighbours. Data from any experiment built of these operations therefore cannot distinguish gauge-equivalent gate sets. Gate-set tomography (GST) estimates up to gauge from the probabilities of many sequences, including long repetitions of short "germs" that amplify small errors, without assuming that preparation or measurement is known (Nielsen et al.; Blume-Kohout et al.).
Gauge-invariant quantities, such as the eigenvalues of each and the probabilities themselves, are physical. Quantities that compare one gate with an ideal target, such as process fidelity or diamond distance, are not gauge invariant: they are reported after gauge fixing, usually by choosing the that brings the estimate closest to the target, and a statement of the gauge choice belongs with any reported number.
- Finite-dimensional system of dimension ; operations represented as superoperators acting on vectorised operators.
Theorems
Driven two-level dynamics
The quantity is the generalized Rabi frequency. On resonance () the population oscillates fully, , and a pulse of area (a pulse) inverts the qubit; off resonance the oscillation is faster but its contrast is reduced to . The formula goes back to Rabi; fitting measured oscillations to it calibrates drive amplitudes in every qubit platform (Krantz et al.). For a time-dependent envelope on resonance, is replaced by the pulse area .
- Evolution under the rotating-wave Hamiltonian with constant real and , starting from .
- No decoherence and no levels outside the qubit.
Proof · Derivation of the Rabi formula
Let . If then and both sides vanish. Otherwise write with the unit vector . Since , the power series of the exponential splits into even and odd parts:
The transition amplitude is
because , and . Its squared modulus is the stated probability. The rotating-frame transformation is diagonal in the computational basis, so the same probability holds in the lab frame.
After the first pulse the state is . Free evolution gives and , and a random extra phase multiplies the relative phase by . The second pulse gives the amplitude , whose squared modulus is . Averaging over a symmetric gives , which is the formula. On resonance and without noise two pulses make a pulse and .
The method of separated oscillatory fields is due to Ramsey. Fitting the oscillation frequency of measures (its sign needs a second measurement with a known added detuning), and fitting the envelope measures (Krantz et al.). For Gaussian phase noise the envelope exponent is given by the filter-function formula.
- Instantaneous ideal rotations about in the rotating frame, free evolution under for time , start in .
- Dephasing enters only as an average of the accumulated phase with real (zero-mean symmetric phase noise); without noise .
Characterization
Prepare a (possibly imperfect) state , apply the noisy sequence and measure a (possibly imperfect) effect meant to detect the initial state. The survival probability averaged over the random sequence is
where is defined by and satisfies
with the average gate fidelity of to the identity. Fitting for several therefore yields the error per Clifford independently of the preparation and measurement errors, which enter only through and .
The protocol was introduced by Emerson, Alicki and Życzkowski with Haar-random unitaries and by Knill et al. with Pauli-randomised Clifford-type gates; the statement above for Clifford sequences, including a first-order correction for weakly gate-dependent noise, is due to Magesan, Gambetta and Emerson (long version). The 2-design property of the Clifford group used in the third assumption is shown by Dankert et al..
- Gate-independent, time-independent Markovian noise - every implemented Clifford acts as for one fixed completely positive trace-preserving map on a -dimensional system, .
- The gates are independent and uniformly distributed on the -qubit Clifford group, and .
- The twirl of over the Clifford group is a depolarizing channel; this holds because the Clifford group is a unitary 2-design.
Proof · Proof of exponential decay in randomized benchmarking
Write for the channel and let be the Clifford group modulo phases, a finite group.
Step 1 (rewriting). Put and for . Then for and . Substituting and regrouping,
Step 2 (independence). The map is a bijection of (its inverse is ). The uniform distribution on is therefore mapped to itself, so are independent and each uniform on .
Step 3 (averaging). is multilinear in the factors , which are independent, so the expectation of the composition is the composition of the expectations. Each expectation is the twirl . Because is a unitary 2-design (Dankert et al.) the twirl equals the average over the Haar measure, which is the depolarizing channel for some real . Hence
the last identity by induction on using and .
Step 4 (survival probability). By linearity, with as stated.
Step 5 (relation to fidelity). The average fidelity is invariant under twirling: for each , the map has the same average fidelity as because the unitarily invariant measure on pure states is invariant under , and average fidelity is linear in the channel. For the depolarizing channel for every . So , i.e. .
The argument is the zeroth-order analysis of Magesan, Gambetta and Emerson; their first-order model and the gate-dependent case need further work.
The coherence after the sequence is . Examples:
- Free evolution (Ramsey), : , which is largest at : slow noise dominates.
- Hahn echo, one pulse at : , which vanishes like at : static noise is removed.
- CPMG with pulses shifts the pass band to , which is the basis of noise spectroscopy: sweeping and samples .
Conventions differ between papers by factors of and in whether is called the filter function; the formula above is self-consistent with the stated definition of . The approach was applied to qubit dephasing by Cywiński, Lutchyn, Nave and Das Sarma, tested experimentally with trapped ions by Biercuk et al., and is reviewed by Suter and Álvarez.
- Pure dephasing: in the rotating frame , with a real, zero-mean, wide-sense stationary Gaussian process with autocorrelation and integrable power spectral density .
- Ideal instantaneous pulses about an equatorial axis at times ; the switching function is for (, ).
- Coherence means the magnitude of the off-diagonal density-matrix element relative to its value without noise.
Proof · Derivation of the filter-function formula for dephasing
Toggling frame. An ideal pulse about an equatorial axis satisfies . Moving each pulse to the end of the sequence conjugates the Hamiltonian of every earlier interval by the pulses that follow it, so for a fixed noise realisation the evolution equals with the product of the pulses (noise independent, hence removable) and
All the terms commute, so no time ordering is needed. The off-diagonal element in the computational basis is multiplied by relative to the noiseless case, and .
Gaussian average. is a linear functional of a zero-mean Gaussian process, hence a zero-mean real Gaussian random variable, whose characteristic function gives . So .
Spectral form. By stationarity and Fubini, . Insert (Fourier inversion, valid since is integrable):
using that is real. Halving gives the formula. For the examples: with , and ; with one pulse at , , whose squared modulus is .
Worked Examples
Off-resonant Rabi oscillation
Take MHz and a detuning . By the Rabi formula the maximal excited population is , reached first at , i.e. after ns, whereas on resonance a pulse takes ns and reaches population 1. A detuning of 10 percent of already lowers the maximal contrast to : frequency calibration matters as much as amplitude calibration.
BB1 against amplitude error
Target a rotation about . BB1 uses and (mod ). Applying every rotation with angle scaled by and computing numerically gives:
| plain pulse | BB1 | |
|---|---|---|
| 0.10 | ||
| 0.05 | ||
| 0.01 |
The plain pulse has infidelity ; BB1 scales as , as expected for second-order compensation of the composite pulse: halving reduces the BB1 error by about .
White and quasi-static noise through two filters
Use the filter-function formula. For white noise, . Free evolution gives , using . A Hahn echo gives , using . The two are equal: an echo does nothing against white noise. For quasi-static noise, with concentrated at frequencies and total power , free evolution gives (Gaussian decay, the regime), while the echo's filter vanishes at and . Real spectra such as noise lie between these extremes, which is why measured echo times exceed Ramsey times by a factor that depends on the spectrum.
Reading a benchmarking fit
A single-qubit Clifford randomized-benchmarking fit returns . With the decay theorem gives the error per Clifford . If the Clifford gates are compiled from native gates using on average native pulses each, dividing by estimates an error per native gate only under the extra assumption that errors add and are similar across gates. For two qubits () the same would mean .
Algorithms and Implementations
Problem. With on slice , the slice propagators are , , and the total propagator is . Maximise
over , possibly with amplitude bounds or penalty terms.
Gradient. Put (forward propagation, ) and (backward propagation, ). Then for every , and the exact derivative of a matrix exponential gives
so that
The integral form is exact (it can be evaluated in the eigenbasis of ); the first-order form is the one of Khaneja et al. and is accurate when .
Algorithm.
- Choose an initial guess (random or a smooth analytic pulse).
- Compute all , then forwards and backwards.
- Evaluate and all partial derivatives from the formula above: the cost is matrix products, not .
- Update (or take a quasi-Newton step, e.g. L-BFGS), apply bounds, and repeat from step 2 until stops improving.
Correctness. The first identity holds because . The derivative of with respect to involves only , so by the product rule , and . The integral formula for the derivative of with follows from differentiating in and solving the resulting linear differential equation in (Duhamel's formula); replacing both exponentials inside by gives the first-order form, with and agreeing to that order.
GRAPE finds local optima only; the landscape, constraints, robustness to parameter spreads and open-system extensions are reviewed by Glaser et al..
- Closed, finite-dimensional system with Hermitian on and real controls.
- Controls piecewise constant on slices of length ; the fidelity is the phase-insensitive gate overlap with a unitary target .
Beyond GRAPE, optimal control includes Krotov-type sequential updates and methods that optimise a few parameters of a smooth basis; Glaser et al. survey these and the controllability results behind them. In practice, pulses found numerically are refined in closed loop on the device, because the model Hamiltonian is never exact.
Limitations and Common Pitfalls
- The RWA can fail. For strong drives ( not small compared with ) the counter-rotating terms shift resonances and distort rotations; for weakly anharmonic qubits the third level matters long before that, which is what DRAG addresses.
- Benchmarking numbers are averages. The error per Clifford is an average gate infidelity, not a worst-case error; coherent errors can produce a much larger diamond distance than suggests. Tailoring noise with randomized compiling narrows that gap.
- Gate-dependent noise. With gate-dependent noise the decay is still exponential to good approximation, but need not equal the average infidelity of the physical gates in any fixed gauge (Proctor et al.; Wallman). Non-Markovian or drifting noise can make the decay non-exponential.
- Gauge. Gate fidelities from gate-set tomography depend on the gauge fixing; quote the gauge or report gauge-invariant quantities (Nielsen et al.).
- Gaussian, classical noise. The filter-function formula assumes classical Gaussian noise and ideal pulses; quantum baths, non-Gaussian telegraph noise and finite pulse widths require extensions (Suter and Álvarez).
- Optimal control overfits models. A pulse optimised for a model Hamiltonian can be fragile to parameter errors; robustness must be built into the cost function or checked afterwards.
Related Research
Pulse sequences against slowly varying noise are treated in dynamical decoupling, and the platform-specific control problems in superconducting qubits, trapped ions, neutral atoms and semiconductor spin qubits. How calibrated native gates are assembled into circuits is the subject of quantum compilation; Pauli twirling connects characterization to error mitigation, and leakage connects pulse design to error correction.