Control, Readout, and Calibration
Control determines the fields acting on a quantum device; readout converts its response into a classical record; calibration estimates the parameters needed to make both reliable. The useful distinction is between the waveform requested, the evolution actually produced, and the information extracted. This page connects those physical processes, including reset and evolution during feedback delays.
Required background. Hardware Overview explains computational subspaces and physical operations; Metrics for Quantum Hardware distinguishes fidelity, assignment, and leakage; Quantum Instruments supplies conditional state updates.
Controlled dynamics and physical waveforms
Section titled “Controlled dynamics and physical waveforms”A finite-dimensional model often begins with
where contains device parameters, is the drift Hamiltonian, are control generators, and are physical fields or effective envelopes. For an open system with a suitable time-local description, the corresponding model may be
A Lindblad description with nonnegative instantaneous rates is one model for ; it does not capture arbitrary environmental memory. Model the relevant extra modes explicitly when their history affects subsequent controls.
Real actuators constrain through:
- amplitude and energy bounds;
- finite bandwidth and sample rate;
- phase, frequency, and timing resolution;
- slew-rate and smoothness limits;
- finite spatial resolution and addressing spillover;
- shared-resource and simultaneous-operation constraints;
- heating, scattering, photon-number, or motional limits;
- waveform memory and streaming limits.
A pulse that is optimal for an unconstrained model but cannot be generated, delivered, synchronized, or calibrated is not an implementable control.
Reachability and native operations
Section titled “Reachability and native operations”The available generators determine which transformations are reachable and how costly they are. In closed finite-dimensional systems, Lie-algebraic controllability tests can establish whether combinations of and generate the desired unitary algebra. This is an existence statement. It does not determine a robust, short, low-leakage waveform under experimental constraints.
A native gate specifies an interaction, computational subspace, pulse duration, rotating frame, and allowed simultaneous operations. Leakage and spectator effects depend on those choices. A virtual frame change alters the phases assigned to later pulses; it requires a consistent phase reference even when no physical pulse is applied. Pulse-Level Control explains the corresponding scheduling and waveform representation.
Delivered fields and causal response
Section titled “Delivered fields and causal response”The requested digital envelope generally differs from the field at the device. In a linear time-invariant approximation,
With the convention , this becomes
Causality requires for . A pure delay has and produces . A predetermined pulse can be launched early to compensate this delay; an unknown feedback decision cannot be sent before it exists.
includes digital filters, converters, mixers or modulators, cables, amplifiers, resonances, reflections, optical elements, and device coupling. Predistortion attempts to choose so that the delivered field matches a target. Exact inversion is unsafe near zeros of and can amplify noise. A regularized frequency-domain inverse controls this amplification but does not by itself enforce causality, stability, finite pulse duration, or actuator bounds. In particular, a nonminimum-phase response need not have a stable causal inverse. van Dijk and colleagues relate control-electronics imperfections to qubit errors.
The linear model is only a starting point. Saturation, mixer imbalance, frequency-dependent phase, hysteresis, thermal effects, laser nonlinearities, ac Stark shifts, and state-dependent response can make the transfer context dependent.
Clock and reference integrity
Section titled “Clock and reference integrity”Timing jitter, phase noise, frequency-reference drift, skew between channels, and trigger uncertainty can become quantum errors. A phase error in a nominal equatorial qubit rotation changes its axis:
Shared clocks reduce relative drift but can create common-mode correlated error. Independent references reduce some shared failure modes but require synchronization. The relevant specification follows from the quantum operation and circuit duration, not from a generic electronics data sheet.
Pulse synthesis and robustness
Section titled “Pulse synthesis and robustness”A control objective may minimize a cost
where penalizes leakage and penalizes bandwidth, roughness, sensitivity, or another engineering burden. The weights encode a design choice. A high simulated fidelity obtained by permitting excessive power or fragile spectral features may be inferior in the laboratory.
The penalty coefficients must give all terms compatible units. Gradient-based pulse search, analytic composite pulses, and experimental refinement address different information and cost constraints. Optimal Control develops the algorithms; the reviews by Glaser and colleagues and Koch and colleagues discuss their physical limitations.
Robust objectives
Section titled “Robust objectives”If uncertain parameters have distribution , an average robust objective is
A worst-case objective is
Average robustness can tolerate rare poor regions; worst-case robustness can be conservative and expensive. State which uncertainty set or distribution was used and validate on held-out parameter values.
Leakage-aware shaping
Section titled “Leakage-aware shaping”Fast driving of a weakly anharmonic system can populate levels outside the computational subspace. Derivative-based quadrature corrections such as DRAG, spectral shaping, longer pulses, and optimal control can reduce leakage, but they require calibration of anharmonicity, transfer functions, and frame phases. Suppressing final leakage does not guarantee that transient leakage is harmless: population outside the code space can acquire phases or interact with spectators during the pulse.
Calibration as parameter estimation
Section titled “Calibration as parameter estimation”A calibration experiment chooses settings , observes data , and estimates parameters through a model
For example, a Rabi scan estimates an amplitude-to-rotation relation, a Ramsey scan estimates detuning and phase, and detector records estimate a classifier. Parameter uncertainty, model adequacy, and operating context determine whether a fitted value predicts another experiment. Quantum Measurement as Estimation explains likelihoods, bias, and uncertainty.
Calibration dependencies
Section titled “Calibration dependencies”Calibrations form a directed graph. A readout threshold may depend on resonance frequency and gain. A -pulse amplitude may depend on drive frequency, transfer function, and pulse duration. An entangling gate may depend on both one-qubit frames and coupler bias. If an upstream parameter changes, downstream calibrations may become stale.
For a dependency graph , an edge
means calibration assumes a valid result from . A directed acyclic portion can be updated in topological order. Real systems may contain loops, such as readout needed to calibrate control while control is needed to prepare readout references. Those loops require bootstrapping, joint estimation, or progressively refined procedures.
The physical reason for these dependencies matters: changing amplifier gain changes the detector distributions, while changing drive frequency can alter a pulse’s rotation axis and rate. Record units and correlations between fitted parameters, then recheck the affected predictions. Kelly and colleagues describe the graph approach; Calibration Loops develops drift tracking and repeated experimental updates.
Open-loop, closed-loop, and adaptive calibration
Section titled “Open-loop, closed-loop, and adaptive calibration”Model-based open-loop control computes a waveform from an estimated model and executes it without measuring during the operation. It can still be recalibrated between experiments.
Closed-loop calibration evaluates an outcome and updates control parameters over repeated trials. The feedback acts on future experiments, not necessarily within one quantum trajectory.
Real-time measurement feedback uses a record from the current shot to choose a later operation in that same shot.
These loops have different latency and disturbance requirements. Calling all of them “feedback” without a timescale is ambiguous.
Rabi and Ramsey calibration
Section titled “Rabi and Ramsey calibration”Rabi amplitude calibration
Section titled “Rabi amplitude calibration”For a resonantly driven ideal two-level system initially in ,
A nominal pulse satisfies
In practice, fit contrast, offset, damping, detuning, and possibly leakage. A Rabi scan estimates an amplitude-times-duration relation at one operating point. It does not by itself calibrate phase, simultaneous context, or long-sequence coherent accumulation.
Ramsey frequency and frame calibration
Section titled “Ramsey frequency and frame calibration”Fix and the physical qubit Hamiltonian . In a frame rotating at the drive frequency, use the detuning convention
Here and are angular frequencies and defines the drive axis in this frame. During free evolution, . Starting in , apply an ideal pulse, wait , then apply . Direct multiplication gives
The fringe is even in detuning: its frequency alone does not identify the sign. Measuring also yields the sine quadrature and distinguishes the sign locally. Samples at equally spaced delays still alias frequencies separated by ; a bounded prior range or additional delay choices are needed. Contrast loss, offsets, and phase uncertainty must be included in a realistic fit.
With this convention, a measured positive calls for reducing the carrier frequency by . Choosing the analysis phase can instead compensate a known idle phase. This frame tracking does not remove the population error of an off-resonant finite pulse. For a square pulse of fixed axis,
whose maximum is below one when . Rabi and Ramsey Control derives the driven dynamics.
Testing predictions beyond the fit
Section titled “Testing predictions beyond the fit”Rabi data used to choose a pulse do not independently establish its gate fidelity. Test new sequences, delays, input states, and simultaneous operations after fixing the parameters. Long sequences expose coherent accumulation that one population scan may miss; randomized benchmarking and tomography answer different questions, as discussed in Metrics for Quantum Hardware.
Initialization and reset
Section titled “Initialization and reset”A unitary acting on a closed device preserves the eigenvalues and von Neumann entropy of its state. It cannot map every unknown input to the same pure state. Reset requires exporting information or entropy to something else: a reservoir, discarded auxiliary system, or measurement record. Coherent transfer to a fresh pure auxiliary mode can reset the device while moving its former state to that mode; preparing the auxiliary is part of the physical cost.
Passive relaxation, optical pumping, engineered dissipation, and measurement followed by conditional correction implement different reset channels. Heralded preparation instead specifies a conditional output and a success probability. Compare duration, unconditional residual excitation, leakage or loss, and disturbance of neighboring systems. Excellent conditional fidelity alone does not give a useful repetition rate.
Ristè and colleagues demonstrate measurement-based reset. The delay example below explains why even an accurately classified initial state may require a different correction by the time the pulse arrives.
Readout records and conditional states
Section titled “Readout records and conditional states”A quantum observable couples to a pointer; the pointer produces a field, fluorescence, charge response, or detector event; collection and electronics produce a record. Filtering or classification then assigns an outcome. The quantum instrument describes this entire outcome-conditioned physical process, including its backaction, rather than an extra operation performed after classification.
Filtered records and classifiers
Section titled “Filtered records and classifiers”Represent the sampled record as a real vector ; for complex IQ data, stack its real and imaginary components. Suppose the two classes are Gaussian,
with the same positive-definite covariance and known prior probabilities . Minimizing the probability of a wrong label gives the log-likelihood-ratio test
Subtracting the two Gaussian quadratic forms derives this rule: the common term cancels. White noise gives a filter proportional to the difference of mean records. Unequal covariances generally give a quadratic decision rule; unequal error costs also change the threshold. A complex scalar cannot be ordered by an ordinary real threshold without choosing a real projection or another explicit rule.
Relaxation during measurement changes the distribution of temporal records. Gambetta and colleagues compare linear and nonlinear filters for this problem. Test assignment on independent records; adjusting the threshold on the same records used to estimate its error produces an optimistic result.
POVMs and instruments
Section titled “POVMs and instruments”The detector outcomes are represented by a POVM :
The state update is represented by a quantum instrument :
The maps are completely positive and their sum is trace preserving when every outcome is retained. Their effects satisfy . Two instruments can have identical effects and different conditional states. The normalized state is for a nonzero outcome probability.
Quantum Instruments develops this distinction; Measurement Tomography explains effect reconstruction. SPAM Errors discusses the ambiguity between imperfect reference preparation and imperfect readout. Correcting terminal assignment statistics, as in Measurement Error Mitigation, does not undo the measurement backaction.
Quantum non-demolition behavior
Section titled “Quantum non-demolition behavior”A measurement is quantum non-demolition relative to an observable when repeated measurement can reveal that observable without the measurement dynamics causing transitions between its eigenspaces, under the stated model. Practical tests should separate:
- first-readout assignment error;
- conditional state disturbance;
- relaxation or excitation between readouts;
- leakage and loss;
- correlated detector memory.
High agreement between repeated labels can arise from a detector bias and is therefore not sufficient alone.
Multiplexing and readout crosstalk
Section titled “Multiplexing and readout crosstalk”Multiplexing shares detectors, frequency bands, optical paths, cameras, amplifiers, or digitizers. It reduces hardware fan-out but introduces dynamic-range, spectral-collision, bandwidth, and classifier-correlation constraints. Compare isolated and simultaneous readout, including spectator dephasing and measurement-induced transitions.
The full confusion matrix can grow exponentially with qubit count, so scalable models often assume locality or low-order correlations. Those assumptions should be tested rather than treated as definitions.
Feedback delay and conditional correction
Section titled “Feedback delay and conditional correction”Choose an explicit boundary for each map. Let describe the measurement through the time its output signal becomes available. Let describe the subsequent processing and waiting interval, and let describe the correction, including evolution during its finite pulse. Then
If is trace preserving and each subsequent map is a channel, this is a channel. An initially correlated or memory-bearing environment may require an enlarged state to justify those composed maps. Discarding some outcomes instead gives a trace-decreasing accepted branch.
Measurement, propagation, digitization, inference, and actuation all take time, but count each interval once. For serial stages their durations add. Overlapping stages require the actual dependency schedule. Decoherence already included in must not be inserted again as an extra idle channel. Feedback from Records treats conditional estimation and delayed control; Mid-Circuit Measurement and Feedforward explains the corresponding circuit branches.
For a simple reset example, suppose a perfect instantaneous measurement reports the initial state, followed by a delay with amplitude damping and an instantaneous correction only when the result was 1. If the initial excitation probability is , then
An initially excited qubit that survives the delay is reset correctly. One that decays before the correction is excited again by that correction. Accurate initial assignment therefore does not eliminate latency error. This model deliberately excludes imperfect readout, excitation from the bath, and finite correction duration.
The correction can instead use the predicted state at actuation time. Conditional on the recorded result 1, the excitation probability is . Doing nothing leaves excitation ; applying leaves . Therefore apply only when , or , and otherwise do nothing. The recorded-0 branch remains in the ground state. At a fixed delay, the smallest final excitation probability among these two actions is
This optimizes one final ideal correction, without another measurement or reset channel; it is not a recommendation to wait longer. With imperfect readout or heating, predict from the conditional dynamics before choosing the action. The comparison of and still applies to ideal corrections. Feedback from Records develops the state-estimation viewpoint.
Crosstalk and simultaneous control
Section titled “Crosstalk and simultaneous control”For small classical cross-coupling, delivered controls may be approximated by
where off-diagonal entries of represent channel crosstalk. Predistortion can compensate a stable, identified matrix over a limited bandwidth. It cannot remove state-dependent interactions, heating, shared quantum modes, detector backaction, or unmodeled nonlinearities.
Simultaneous calibration should probe:
- neighboring and distant spectator states;
- overlapping gates and measurements;
- power and duty-cycle dependence;
- frequency and timing collisions;
- correlated residuals rather than only marginal errors;
- context changes caused by routing or compiler schedules.
An isolated calibration table is not sufficient evidence for a parallel processor.
Drift and repeated calibration
Section titled “Drift and repeated calibration”A fitted parameter describes a device near its acquisition time and operating conditions. Temperature changes, loading, gain drift, and neighboring pulses can change the prediction. Repeating short diagnostic experiments tests whether the same model still fits; changing a parameter in response to every noisy fluctuation can itself destabilize the controls. Calibration Loops discusses tracking, false alarms, and the tradeoff between estimation noise and drift.
Scaling also constrains how fast records can be processed. If each error-correction round produces bits every , the raw syndrome rate is . Sustained throughput must keep up with this stream, while latency must meet the deadlines of operations that depend on a decoded result. Pipelining can satisfy throughput without reducing the latency of one result. Decoders develops these distinctions.
Worked pulse, readout, and timing example
Section titled “Worked pulse, readout, and timing example”Consider an ideal qubit driven on resonance with observed Rabi frequency
Since , a pulse has duration
A two-quadrature Ramsey fit with the convention above finds . Lowering the drive frequency by restores resonance. Tracking the idle phase is useful for scheduling, but does not substitute for this frequency correction during a finite pulse. Test the corrected control with new delays and longer sequences.
Suppose the readout statistic is Gaussian with equal variance:
With equal prior probabilities and threshold , each idealized assignment error is
so the mean assignment fidelity is about . This calculation assumes stationary Gaussian distributions and no relaxation, leakage, or drift. Those assumptions are tested on held-out records.
Finally, let the measured feedback stages be
The total is
Suppose the measurement instrument includes the first , subsequent waiting includes , and the correction map includes the final . These maps already cover the full ; appending another damping channel would count the time twice. Quoting only classifier time would instead omit real evolution.
Exercises
Section titled “Exercises”1. Calibrate a π pulse
Section titled “1. Calibrate a π pulse”An ideal resonant Rabi experiment gives . Find the -pulse and -pulse durations.
Solution
For ,
The pulse has half that duration:
This conversion assumes amplitude scales linearly, the drive is resonant, and pulse edges or transfer distortion do not alter the effective rotation.
2. Determine the Ramsey sign
Section titled “2. Determine the Ramsey sign”With the pulse convention above and , find for analysis phases 0 and . How do these change if detuning changes sign?
Solution
For phase 0, both signs give . For phase , positive detuning gives and negative detuning gives . The sine quadrature resolves this sign ambiguity, though equally spaced delay samples still have frequency aliases.
3. Propagate a pure delay
Section titled “3. Propagate a pure delay”A delivery line has transfer function
with . What time-domain effect does it produce, and how should a synchronized schedule compensate it?
Solution
The inverse transform gives a delayed waveform:
For a waveform known in advance, the controller can launch that channel earlier relative to a common device-time reference. An unknown measurement-dependent command must still incur the physical propagation delay. Compensation must include every channel’s delay; advancing one waveform without updating triggers and phase references can create a different timing error.
4. Regularize an inverse filter
Section titled “4. Regularize an inverse filter”Why is the formal predistortion
unsafe when is very small?
Solution
Division by a small transfer magnitude produces a very large command amplitude and amplifies measurement noise and modeling error. The requested signal may violate actuator limits or excite unmodeled dynamics. A practical inverse limits bandwidth, penalizes command power, or uses a regularized factor such as
The achieved device waveform and gate must then be validated experimentally.
5. Include unequal readout priors
Section titled “5. Include unequal readout priors”Let and . Find the threshold minimizing the total assignment error for equal priors, then for , .
Solution
The scalar threshold is
Equal priors give and error . Unequal priors give . The total error becomes
The less frequent class now has a larger conditional error; the weighted total is smaller. A classifier tuned to these priors is not automatically optimal for a different input ensemble.
6. Reset by coherent transfer
Section titled “6. Reset by coherent transfer”A device has an arbitrary state , and an auxiliary qubit starts in . What does a SWAP do to the two reduced states? Does it remove the joint entropy?
Solution
The device is reset and the auxiliary inherits its state. The joint entropy remains . Reusing the auxiliary requires another reset process; a unitary on the device alone could not perform this operation for every .
7. Reset with a stale measurement result
Section titled “7. Reset with a stale measurement result”Under the ideal delayed-reset model above, take , , and . Find the final excitation probability and compare it with the zero-delay result. Is the conditional still the better action? Repeat that comparison at .
Solution
Only the initial excited branch can fail. Its decay probability during the delay is , after which the conditional pulse re-excites the qubit. Thus
The result tends to zero as and to as . For long delay, the initial outcome is a poor guide to the state just before correction.
Here , so the conditional is optimal among the two allowed actions. The decision changes at . At , the fixed conditional- rule leaves excitation , whereas doing nothing leaves . Relaxation has made the ground state more likely even on the branch initially measured as excited.
8. Compare average and worst-case robust control
Section titled “8. Compare average and worst-case robust control”Two uncertain parameter values have costs and with probabilities and . Compute the average cost and worst-case cost.
Solution
The worst-case cost is
The average objective regards the poor region as rare; the worst-case objective does not. The appropriate choice depends on whether rare excursions can be detected, tolerated, or made safe.
References
Section titled “References”- L. Bouten, R. van Handel, and M. R. James, “An introduction to quantum filtering,” SIAM Journal on Control and Optimization 46, 2199–2241 (2007), doi:10.1137/060651239.
- J. Gambetta, W. A. Braff, A. Wallraff, S. M. Girvin, and R. J. Schoelkopf, “Protocols for optimal readout of qubits using a continuous quantum nondemolition measurement,” Physical Review A 76, 012325 (2007), doi:10.1103/PhysRevA.76.012325.
- S. J. Glaser et al., “Training Schrödinger’s cat: Quantum optimal control,” European Physical Journal D 69, 279 (2015), doi:10.1140/epjd/e2015-60464-1.
- J. Kelly et al., “Scalable in situ qubit calibration during repetitive error detection,” Physical Review A 94, 032321 (2016), doi:10.1103/PhysRevA.94.032321.
- J. Kelly, P. O’Malley, M. Neeley, H. Neven, and J. M. Martinis, “Physical qubit calibration on a directed acyclic graph,” arXiv:1803.03226 (2018), arXiv:1803.03226.
- N. Khaneja, T. Reiss, C. Kehlet, T. Schulte-Herbrüggen, and S. J. Glaser, “Optimal control of coupled spin dynamics: Design of NMR pulse sequences by gradient ascent algorithms,” Journal of Magnetic Resonance 172, 296–305 (2005), doi:10.1016/j.jmr.2004.11.004.
- C. P. Koch et al., “Quantum optimal control in quantum technologies: Strategic report on current status, visions and goals,” EPJ Quantum Technology 9, 19 (2022), doi:10.1140/epjqt/s40507-022-00138-x.
- P. Krantz et al., “A quantum engineer’s guide to superconducting qubits,” Applied Physics Reviews 6, 021318 (2019), doi:10.1063/1.5089550.
- F. Motzoi, J. M. Gambetta, P. Rebentrost, and F. K. Wilhelm, “Simple pulses for elimination of leakage in weakly nonlinear qubits,” Physical Review Letters 103, 110501 (2009), doi:10.1103/PhysRevLett.103.110501.
- D. Ristè, C. C. Bultink, K. W. Lehnert, and L. DiCarlo, “Feedback control of a solid-state qubit using high-fidelity projective measurement,” Physical Review Letters 109, 240502 (2012), doi:10.1103/PhysRevLett.109.240502.
- J. P. G. van Dijk et al., “Impact of classical control electronics on qubit fidelity,” Physical Review Applied 12, 044054 (2019), doi:10.1103/PhysRevApplied.12.044054.
- J. Zhang, Y. Liu, R. Wu, K. Jacobs, and F. Nori, “Quantum feedback: Theory, experiments, and applications,” Physics Reports 679, 1–60 (2017), doi:10.1016/j.physrep.2017.02.003.