DRAG (Derivative Removal by Adiabatic Gate) pulse shaping with Motzoi correction#

In superconducting qubit control, precise manipulation of qubit states is essential for high-fidelity quantum operations. One common technique to achieve this is through the use of DRAG (Derivative Removal by Adiabatic Gate) pulse shaping. The Motzoi correction is an enhancement to the standard DRAG technique that further reduces leakage to higher energy levels during qubit operations. The Motzoi node in our quantum control framework implements this advanced pulse shaping technique to optimize qubit control pulses.

The Motzoi correction modifies the standard Gaussian pulse by adding a derivative component scaled by the Motzoi parameter (often denoted as β). This adjustment helps to counteract the effects of the qubit’s anharmonicity, thereby minimizing unwanted transitions to higher energy states (e.g., \(|2\rangle\) state in a transmon qubit). By carefully tuning the Motzoi parameter, one can achieve a balance between pulse duration and fidelity, leading to improved performance in quantum gates.

The derivative (DRAG) component is:

\[D(t) = -\beta \, \frac{t - \mu}{\sigma^2} \, G(t)\]

where \(\mu = \text{duration}/2\) and, when sigma is not explicitly provided,

\[\sigma = \frac{\text{duration}}{2 \cdot n_\sigma}\]

with \(n_\sigma\) = nr_sigma = 4 by default.

In practice, the Motzoi parameter is calibrated by sweeping its value and, for each value, measuring two complementary circuits: X(beta) → Y90(beta) and Y(beta) → X90(beta). Both sequences are sensitive to the same phase error that an incorrectly calibrated β leaves behind (from off-resonant driving of the \(|1\rangle \leftrightarrow |2\rangle\) transition), but with opposite sign — swapping which rotation comes first flips how that residual phase shows up in the measured population. Each circuit’s readout response therefore varies ~linearly with the Motzoi parameter but with opposite slope, and the optimal value is identified as the intersection of the two fitted lines, the single β where the phase error cancels and leakage is minimized.

Two nodes exist for the Motzoi calibration: one for the 0-1 transition and another for the 1-2 transition. This allows for comprehensive calibration of qubit control pulses across different energy levels, ensuring robust performance in quantum computations.

Two variants are shown below: the two complementary circuits measured for each swept Motzoi value.

Code structure#

Measurement class: MotzoiMeasurement#

The MotzoiMeasurement class is responsible for generating the experimental schedule to perform the Motzoi calibration. For each swept Motzoi value it builds the two complementary circuits X(beta) → Y90(beta) and Y(beta) → X90(beta) and measures the qubit state after each.

Analysis class: MotzoiAnalysis#

The MotzoiAnalysis class handles both the per-qubit fit and the figure generation. For each Motzoi value, two complementary circuits are measured: X(beta) → Y90(beta) and Y(beta) → X90(beta). Each circuit’s readout magnitude varies ~linearly with the Motzoi parameter, so a LinearModel fit is applied to each of the two traces independently. The optimal Motzoi value is the intersection of the two fitted lines, computed in closed form (with error propagation via the uncertainties package).

Visualization#

The data is visualized in a plot showing the two circuits’ measured response against the Motzoi parameter for each qubit, with each line’s fit and 1σ uncertainty band. The optimal Motzoi value (the lines’ intersection) is indicated on the plot, providing a clear reference for calibration.

Parameters class: MotzoiParameters#

The MotzoiParameters class only defines acquisition fields (see Parameter field categories) — there is no analysis field, since the optimal Motzoi value is a closed-form line intersection with no accept/reject threshold.

Acquisition fields#

  • min_motzoi / max_motzoi / motzoi_bins: range and density of the Motzoi sweep (default -2e-9 / 2e-9 / 51).

  • repetitions: number of repetitions (averages) per point (default 1024).

QOI class: MotzoiBaseQOI#

The MotzoiBaseQOI class encapsulates the quantity of interest for the Motzoi calibration, specifically the optimal Motzoi parameter that minimizes leakage and improves gate fidelity. The transition-specific subclasses Motzoi01QOI and Motzoi12QOI route this value to the correct device field (rxy.beta or r12.ef_beta).