T2 (Ramsey) in Dephasing Time Characterization#
T2* quantifies how long a qubit can preserve phase information in a superposition state before it becomes randomized by interaction with its environment — the dephasing time. This node measures it with a Ramsey experiment: two π/2 pulses separated by a variable delay, with a known artificial detuning applied so the population oscillates (the Ramsey fringe) rather than simply decaying, and fits the resulting damped oscillation to extract T2*. As with T1, the measurement repeats several times to give a run-to-run spread rather than a single-shot estimate.
Code structure#
Class: T2#
The T2 class sets up the delay sweep for every qubit. Like T1, it is an
ExternalParameterFixedScheduleQubitNode: the same compiled schedule is executed independently
t2_repetitions times, each tagged with its own t2_repetitions coordinate.
Class: T2Measurement#
The measurement class responsible for executing the delay sweep.
Method: point_schedule / schedule_function#
Schedule sequence per point: Reset → X90 → idle for tau → shift that qubit’s own clock phase by
360 * artificial_detuning_Hz * tau degrees → X90 → Measure. The clock-phase shift implements the artificial
detuning without changing the qubit’s drive frequency mid-experiment, so the phase accumulated between the
two X90 pulses sweeps linearly with the delay and produces the Ramsey fringe. artificial_detuning_Hz is
shared across qubits; hardware averaging over repetitions uses the schedule’s top-level repetitions
argument (unlike T1/T2-echo, this schedule does not opt into the automatic calibration-points block via a
loop register — points are concatenated in a flat sequence instead).
Class: T2Analysis#
The analysis class that fits a damped Ramsey oscillation (RamseyModel) to a single qubit’s delay sweep,
repeated independently t2_repetitions times. As with T1, each repeat is projected onto its own
calibration points (never averaged across repeats) and fit separately; the fit is seeded with the known
(signed) artificial_detuning_Hz so it converges on the physically correct oscillation frequency rather than
an arbitrary sign, and a fit whose frequency lands at or beyond the delay sampling’s Nyquist limit is
rejected as an alias.
Method: compute_qoi#
The reported t2/t2_error (and offset, amplitude, frequency, tau, and their errors) are the mean
and plain (population) standard deviation of the per-repeat fitted values, exactly as in T1. t2 and tau
both hold the same fitted decay time in microseconds — tau is the underlying RamseyModel fit-parameter
name, t2 is the reported characterization quantity; frequency/frequency_error stay in Hz, matching
artificial_detuning_Hz.
Output: xarray.Dataset#
The dataset holds, per qubit, the calibrated (or raw) signal at each delay, tagged by the t2_repetitions
coordinate for the independent repeats, plus the automatic calibration-points block for each repeat.
Class: T2Parameters#
The T2Parameters class encapsulates the parameters for T2* characterization. All fields are currently
acquisition fields; see Parameter field categories.
Acquisition fields#
delays: list[float] — delays τ between the two π/2 pulses, in seconds. Defaultnp.arange(4e-9, 32768e-9, 64e-9).artificial_detuning_Hz: float = 1e6 — artificial detuning applied to every qubit via a clock-phase shift after the idle time, used to generate the Ramsey fringe. A model validator rejects any value at or beyond the Nyquist limit set by the delay spacing (0.5 / max(diff(delays))), since the resulting fringe would alias and could not be fit correctly.repetitions: int = 1024 — number of hardware-averaged shots per delay point.t2_repetitions: int = 3 — number of independent repeats of the full delay sweep (and its own calibration points). T2* is fitted separately per repeat; the reportedt2is the mean across repeats andt2_erroris their standard deviation.
Class: T2QOI#
t2/t2_error: the fitted dephasing time (µs) and its run-to-run spread.offset/offset_error,amplitude/amplitude_error: the damped-oscillation fit’s offset and amplitude.frequency/frequency_error: the fitted oscillation frequency (Hz), matchingartificial_detuning_Hz.tau/tau_error: the same decay time ast2, under the underlying fit-parameter’s name.
T2* is a characterization quantity, not a calibration knob — to_dict() returns an empty mapping. Results
are written to Redis only, under t2, t2_offset, t2_amplitude, t2_frequency, and t2_tau.