T2 Echo in Dephasing Time Characterization#
T2 echo measures a qubit’s coherence time while canceling the effect of static or low-frequency dephasing noise. It extends the standard T2 (Ramsey) measurement by inserting a refocusing pulse halfway through the delay, between the two π/2 pulses — a Hahn echo — which reverses the phase a qubit picks up from any noise that stayed roughly constant during the delay, isolating the T2 echo decay from ordinary T2*. This implementation uses the Meiboom-Gill variant (the refocusing pulse on the Y axis, 90° from the initial X90, rather than X), which is additionally robust against pulse-angle calibration errors in the refocusing pulse itself. As with T1/T2*, the measurement repeats several times to give a run-to-run spread.
Code structure#
Class: T2Echo#
The T2Echo class sets up the delay sweep for every qubit. Like T1, it is an
ExternalParameterFixedScheduleQubitNode: the same compiled schedule (with its per-point hardware averaging
expressed as a loop register, plus the automatic calibration-points block) is executed independently
t2_echo_repetitions times, each tagged with its own t2_echo_repetitions coordinate.
Class: T2EchoMeasurement#
The measurement class responsible for executing the echo sequence: CPMG with n_gates=1 and the
Meiboom-Gill (“Y”) refocusing pulse.
Method: point_schedule / schedule_function#
Schedule sequence per point: Reset → X90 → idle(τ/2) → Y (echo) → idle(τ/2) → X90 → Measure. The sweep is
expressed as a single hardware loop register over half-delays: schedule_function halves the
user-facing total delays (plain host-side arithmetic, before the loop domain is built) and reuses that same
half-delay value on both sides of the echo pulse, so no arithmetic on the scheduler’s symbolic sweep variable
is needed. The recovery X90’s start is anchored to the start of the echo pulse (not its end), so the
scheduled X90-to-X90 spacing is exactly τ regardless of the echo pulse’s own physical duration. The
coordinate recorded at measurement time is therefore the half-delay; T2EchoAnalysis doubles it back to the
total echo delay before fitting.
Class: T2EchoAnalysis#
The analysis class that fits the T2 echo decay of a single qubit, repeated independently
t2_echo_repetitions times — structurally identical to T1Analysis: each repeat is projected
onto its own calibration points (never averaged across repeats) and fit separately to an
ExponentialDecayModel, with fits lacking a valid covariance rejected. The reported t2_echo is the mean of
the per-repeat fits and t2_echo_error is the plain standard deviation across those repeats.
Output: xarray.Dataset#
The dataset holds, per qubit, the calibrated (or raw) signal at each half-delay, tagged by the
t2_echo_repetitions coordinate for the independent repeats, plus the automatic calibration-points block for
each repeat.
Class: T2EchoParameters#
The T2EchoParameters class encapsulates the parameters for T2 echo characterization. All fields are
currently acquisition fields; see Parameter field categories.
Acquisition fields#
delays: list[float] — total echo delays between the two π/2 pulses, in seconds (the echo pulse sits atdelay/2). Default a linear sweep from 0 to 480 µs in 41 points (12 µs steps); must stay a true evenly spaced sweep, since the schedule expresses half of it as a single hardware loop domain.repetitions: int = 1024 — number of hardware-averaged shots per delay point.t2_echo_repetitions: int = 3 — number of independent repeats of the full delay sweep (and its own calibration points). T2 echo is fitted separately per repeat; the reportedt2_echois the mean across repeats andt2_echo_erroris their standard deviation.
Class: T2EchoQOI#
t2_echo/t2_echo_error: the fitted echo decay time (µs) and its run-to-run spread.offset/offset_error,amplitude/amplitude_error: the exponential decay’s fit parameters, averaged the same way.
T2 echo is a characterization quantity, not a calibration knob — to_dict() returns an empty mapping.
Results are written to Redis only, under t2_echo, t2_echo_offset, and t2_echo_amplitude.