CZ Amp/Duration in Two-Qubit Gate Calibration#
Like CZ Chevron, this node tests a candidate CZ working-point current by looking for the avoided-crossing signature — population exchanging into the targeted \(|20\rangle\) or \(|02\rangle\) state, consistently between both qubits of a coupler — but scans the coupler’s flux-pulse amplitude and duration at a single fixed frequency (the coupler’s CZ transition frequency) instead of frequency and duration at fixed amplitude. Where CZ Chevron’s dense duration sweep resolves an actual population oscillation to fit, this node’s duration sweep is not dense enough for that: the extremum point found in the 2-D scan is treated as a half-period, and the reported CZ pulse duration is twice that value.
Code structure#
Class: CZAmpDuration#
The CZAmpDuration class sets up the amplitude/duration scan for every coupler. Couplers whose computed CZ
transition frequency exceeds max_transition_frequency are skipped up front, exactly as in
CZ Chevron and CZ Wall Finder. The CZ pulse frequency is held
fixed per coupler at that coupler’s CZ transition frequency — preferentially read back from Redis (written by
a prior cz_currents_from_spectroscopies run) and otherwise computed from the qubits’ calibrated 01/12 clock
frequencies, via the same get_cz_transition_frequency helper cz_chevron/cz_wall_finder use. The fixed frequency actually used is stamped
onto the dataset’s schedule keyword attrs for the analysis to display.
Class: CZAmpDurationMeasurement#
The measurement class responsible for executing the amplitude/duration scan.
Method: schedule_function#
For every coupler, both qubits are excited to \(|1\rangle\) and the coupler’s flux pulse is applied at each (amplitude,
duration) point of that coupler’s sweep (durations snapped to the 1 ns hardware grid), then both qubits are
read out with plain (non-state-optimized) Measure.
Class: CZAmpDurationAnalysis#
The CZAmpDurationAnalysis class analyzes the coupler’s 2-D (amplitude, duration) magnitude map for both of
its qubits and packages the working point into a single QOI. Like CZChevronAnalysis/CZWallFinderAnalysis,
it overrides analyse_element/_process to group a coupler’s two qubit variables directly, since the
dataset’s data variables are named after each qubit rather than the coupler.
Method: compute_qoi#
Coarse localization:
CombinedAmplitudeVsDurationAnalysisfinds the point of maximum normalized magnitude difference between the qubit driven towards \(|2\rangle\) and the one driven towards \(|0\rangle\), then checks that this point agrees (withinamplitude_tolerance/duration_tolerance) with either the \(|2\rangle\)-qubit’s maximum or the \(|0\rangle\)-qubit’s minimum — i.e. that both qubits are consistent about where the crossing is. The analysis fails (is_successful=False) if they are not.Duration doubling: unlike
CZChevronAnalysis, there is no oscillation fit here — the amplitude/duration grid is not dense enough to resolve one. The found extremum’s duration is instead treated as a half-period: the reportedcz_pulse_durationis twice the scanned value.
Amplitude and duration errors are reported as the sweep’s own grid spacing divided by sqrt(12) (the standard
deviation of a uniform quantization error over one bin).
Output: xarray.Dataset#
Each coupler’s dataset holds, per qubit, a 2-D magnitude map over the swept CZ pulse amplitudes and durations.
Figures#
The figure shows both qubits’ raw (amplitude, duration) magnitude heatmaps side by side, with each qubit’s own extremum marked (an “x”) and the combined working point marked separately (a green circle), plus a text box reporting the targeted CZ transition, the fixed CZ pulse frequency, the parking current, and whether the two qubits were found compatible.
Class: CZAmpDurationParameters#
The CZAmpDurationParameters class encapsulates the parameters for the CZ amp/duration scan. Most fields are
acquisition fields (baked into the hardware sweep); a few hardware-specific or informational constants use
a plain Field instead since they are not meant to be swept or re-tuned like ordinary acquisition knobs — see
Parameter field categories.
Acquisition fields#
cz_min_duration/cz_max_duration: float = 20 ns / 150 ns — bounds of the duration sweep.cz_min_amplitude/cz_max_amplitude: float = 0.05 / 0.7 (fullscale) — bounds of the amplitude sweep.duration_bins: int = 15 — number of duration points.amplitude_bins: int = 30 — number of amplitude points.cz_transition: str = “20” — targeted transition,"20"or"02": which qubit of the coupler (by name order) is driven towards \(|2\rangle\) versus \(|0\rangle\). Determines the frequency the sweep is centered on.cz_half_frequency_wp: bool = False — center the frequency at half the computed CZ transition frequency, for couplers operated at a half-frequency working point.
Other fields#
downconvert_frequency: float = 4.4 GHz — flux-line downconversion offset; the CZ pulse clock is programmed at-frequency + downconvert_frequency. Hardware-wiring specific.parking_current: float = 0.0 — the coupler’s DC parking current (A); informational only, shown on the plot but not applied to hardware by this node.max_transition_frequency: float = 1.0 GHz — couplers whose computed CZ transition frequency exceeds this are skipped entirely (SPI-rack safety limit). A validator warns if this is changed from its default.
Class: CZAmpDurationQOI#
cz_pulse_amplitude/cz_pulse_amplitude_error: the found CZ pulse amplitude (fullscale).cz_pulse_duration/cz_pulse_duration_error: the refined CZ pulse duration (s), after half-period doubling.
On success, both are written to the coupler edge’s ParametricCZSubmodule (cz:square_amp /
cz:square_duration) — the same device fields CZ Parametrization and
CZ Chevron update.