AllXY in Gate Calibration Diagnostics#

AllXY runs 21 fixed pairs of single-qubit gates — combinations of the identity and 180°/90° X/Y rotations — and compares the measured \(|1\rangle\) population at each pair against its noiseless ideal (0, 0.5, or 1, depending on the pair). It reports no fitted quantity of its own: it is a diagnostic that exposes systematic errors in the already-calibrated X/Y gates (amplitude, phase, DRAG) as characteristic deviations from the ideal step pattern, meant to be read by eye after the single-qubit gate calibration chain (Rabi, Ramsey, Motzoi) has run.

Code structure#

Class: AllXY#

The AllXY class sets up the 21-point sequence for every qubit. Each point’s pair of (theta, phi) gates is an arbitrary combination, not expressible as a hardware Variable sweep, so the 21-point sequence is a plain Python loop rather than generic_1d_sweep. Per-point hardware averaging is expressed as an explicit loop register (the same idiom T1 uses), keeping the schedule’s top-level repetitions at 1 as required by the automatic calibration-points block appended by BaseNode.precompile (append_calibration_points = True). Calibration points are mandatory here (require_calibration_points = True): the \(|1\rangle\) populations this diagnostic reports are meaningless without a \(|0\rangle\)–\(|1\rangle\) axis to project onto.

Class: AllXYMeasurement#

The measurement class responsible for executing the 21-point sequence, read out with 2-state-optimized readout (Measure_RO_2state_Opt).

Method: point_schedule#

Each of the 21 standard AllXY points (ALL_XY_CLIFFORD_PAIRS) is a pair of Cliffords drawn from {I, X, Y, X90, Y90} — each one directly a single-pulse element of S4GroupPTM’s tabulated single-qubit Clifford group. Both gates of the pair are applied to every qubit in sequence, then the qubit is read out and passively reset. The 21 points are grouped by their expected ideal \(|1\rangle\) population: indices 0–4 → 0, 5–16 → 0.5 (the “equator” pairs), 17–20 → 1.

Class: AllXYAnalysis#

The analysis class that projects and compares against the ideal pattern.

Method: compute_qoi#

Each qubit’s 21 XY_index points are projected onto its own \(|0\rangle\)–\(|1\rangle\) calibration axis (bragi_quantum.experiments.utils.calibration_points.project) and compared against IDEAL_POPULATIONS. There is no fit and no failure mode: compute_qoi always returns is_successful=True once the projection is computed — the diagnostic value is in the shape of the deviation from the ideal step pattern, not in a single reported number.

Output: xarray.Dataset#

The dataset holds, per qubit, the calibrated (or raw, if no calibration points are available) signal at each of the 21 XY_index points, plus the automatic calibration-points block.

Figures#

The figure plots the ideal step pattern as a red line and the measured \(|1\rangle\) population as blue markers, against each of the 21 two-letter operation labels (e.g. II, xy, XX) on the x-axis.

Class: AllXYParameters#

The AllXYParameters class encapsulates the parameters for the AllXY diagnostic. Its one field is an acquisition field; see Parameter field categories.

Acquisition fields#

  • repetitions: int = 1024 — hardware-averaged shots per AllXY point, and for the automatic calibration-points block appended by BaseNode.precompile.

Class: AllXYQOI#

AllXY is a purely diagnostic characterization: there are no fitted quantities, only whether the calibrated \(|0\rangle\)–\(|1\rangle\) projection could be computed at all. Both to_dict() and to_redis_dict() return an empty mapping — nothing is written to Redis or to the device model.