CZ Wall Finder in Two-Qubit Gate Calibration#

Driving a coupler’s flux pulse at too large an amplitude can push it past a safe or controllable regime — a “wall” beyond which the magnitude response departs from its baseline behavior. Before scanning a coupler over a wide amplitude range (as cz_parametrization and cz_chevron do), it is useful to know where that wall sits so the sweep can stay under it. This node sweeps the coupler’s CZ flux-pulse amplitude at a single fixed frequency — the coupler’s CZ transition frequency — and finds, per qubit, the amplitude beyond which the magnitude response departs from its baseline.

Code structure#

Class: CZWallFinder#

The CZWallFinder class sets up the amplitude-only scan for every coupler. Couplers whose computed CZ transition frequency exceeds max_transition_frequency are skipped up front, exactly as in CZ parametrization. It reuses CZParametrizationFixDurationMeasurement unchanged, collapsing the frequency sweep to the single point at the coupler’s CZ transition frequency (an array of length 1) while sweeping only the amplitude. As in cz_parametrization, the amplitude sweep is capped at 0.70 V to stay under the AWG gain limit, regardless of the configured amplitude_max.

Class: CZWallFinderAnalysis#

The analysis class that finds each coupler’s wall amplitude — the lower (more conservative) of its two qubits’ wall amplitudes — from the single-frequency amplitude sweep. Because the dataset’s data variables are named after each qubit rather than the coupler, this class overrides analyse_element/_process to group a coupler’s two qubit variables directly instead of relying on the generic per-element slicing.

Function: find_wall_amplitude#

For each qubit’s 1-D magnitude-vs-amplitude sweep:

  1. A wall is only searched for if the sweep shows a clear rise from its first two points to its last three (the last-three mean must exceed the first-two mean by more than 3 standard deviations of the first two points’ spread) — otherwise the sweep is flat/noisy and the qubit reports NO_WALL_FOUND (1.0, i.e. “no restriction found”, mirroring tergite-autocalibration’s hardcoded default).

  2. Otherwise, scanning from the highest amplitude down, the wall is the first amplitude at which the magnitude drops below the sweep’s own mean.

The coupler’s reported wall amplitude is the minimum (more conservative) of its two qubits’ wall amplitudes. This analysis is purely informational: there is no “compatible/not compatible” gate like cz_parametrization/cz_chevron have, and it always reports is_successful=True.

Output: xarray.Dataset#

Each coupler’s dataset holds, per qubit, a 1-D magnitude sweep over the swept CZ pulse amplitudes at the single fixed frequency.

Figures#

The figure shows both qubits’ amplitude-vs-magnitude traces side by side, with a vertical line and label box marking each qubit’s wall amplitude (when one was found below the top of the sweep range).

Class: CZWallFinderParameters#

CZWallFinderParameters extends CZParametrizationFixDurationParameters, so it inherits all of that class’s fields — repetitions, frequency_sweep/frequency_bins (inherited but unused here, since the sweep always collapses to the single point at the coupler’s CZ transition frequency), cz_pulse_duration, cz_transition, cz_half_frequency_wp, parking_current, downconvert_frequency, max_transition_frequency — and overrides the amplitude-sweep bounds. See CZ parametrization for the inherited fields’ descriptions, and Parameter field categories for what “acquisition” vs. “analysis” mean.

Acquisition fields (added/overridden by this class)#

  • amplitude_max: float = 1.0 — end of the amplitude sweep (V); capped at 0.70 to stay under the AWG gain limit (wider default range than cz_parametrization’s 0.5 V, since this node’s purpose is to find the safety limit itself).

  • amplitude_bins: int = 21 — number of amplitude points.

Class: CZWallFinderQOI#

  • coupler_wall_amplitude: float = 1.0 — the coupler’s wall amplitude (V), the more conservative (lower) of its two qubits’ wall amplitudes.

There is no device field this maps to — the result is informational only, so to_redis_dict uses a plain (non-submodule:field) key, coupler_wall_amplitude, rather than writing onto the coupler edge’s ParametricCZSubmodule.