Amplitude optimization using multiple Rabi oscillations#
The N-Rabi oscillations node is designed to optimize the amplitude of qubit control pulses by performing multiple Rabi oscillations in a single experiment. This technique allows for a more efficient calibration of pulse amplitudes, which is crucial for achieving high-fidelity quantum gates. Several numbers of X-pulse repetitions are used to amplify the amplitude error, improving the sensitivity of the measurement. A small correction is swept around the current amplitude to map the oscillations for each repetition count; the optimal correction is the shared shift that best explains all repetition slices jointly.
As usual two nodes exist; one for the 0-1 transition and another for the 1-2 transition.
Code structure#
Measurement class: NRabiOscillationsMeasurement#
The NRabiOscillationsMeasurement class is responsible for generating the experimental schedule to perform the N-Rabi oscillations. For each number of X-pulse repetitions, it sweeps a small amplitude correction around the current amp180 and measures the qubit state after each sequence.
Analysis class: NRabiAnalysis#
The NRabiAnalysis class fits a joint 2-D sine model to all repetition slices simultaneously: each slice r keeps its own frequency, fixed to that slice’s independent pre-fit value, while a single shared shift parameter (the amplitude correction) couples all slices together. Per-slice cosine pre-fits seed the joint fit and gate which slices are used; the joint fit quality (mean \(R^2\) across slices) determines success, without any per-slice thresholds or combinatorial root selection.
Visualization#
The data is visualized as a 2-D color map of the measured response against the amplitude correction and the number of repetitions, with the fitted correction marked. A support figure overlays each repetition’s 1-D cut with its fitted sine curve.
Parameters class: NRabiParameters#
The NRabiParameters class (extends RabiParameters) defines the configurable parameters for the N-Rabi node. Each field is either an acquisition field or an analysis field — see Parameter field categories.
Acquisition fields#
min_amplitude/max_amplitude/amplitude_bins: range and density of the amplitude-correction sweep, overridingRabiParameters’ wider defaults with a narrow correction range (default -0.09 / 0.09 / 50).x_repetitions: numbers of X-pulse repetitions per correction trace (default[1, 2, 3, 4, 5]).repetitions(inherited): number of repetitions (averages) per point (default 1024).
Analysis fields#
sinusoidal_r2_threshold: minimum per-slice \(R^2\) for a slice to enter the joint fit (default 0.8).joint_r2_threshold: minimum mean \(R^2\) of the joint sine fit across all valid slices (default 0.75).
QOI class: NRabiBaseQOI#
The NRabiBaseQOI class (extends RabiBaseQOI) encapsulates the quantities of interest for the node, specifically the corrected amplitude and the correction shift. The transition-specific subclasses NRabi01QOI and NRabi12QOI route the corrected amplitude to the correct device field (rxy.amp180 or r12.ef_amp180) so it can be automatically used in following nodes.