Resonator Spectroscopy in Qubit-Resonator Interaction Analysis#
Resonator spectroscopy is a powerful tool for studying the interaction between qubits and resonators. By probing the resonator’s response across various frequencies, we can extract critical parameters, such as the resonant frequency and Q-factor, which are essential for optimizing qubit-resonator interactions. This measurement is performed for the 0, 1 and 2 states of the transmon qubit, with additional nodes and analysis existing for the higher states that only differ in the qubit initialization and the parameters saved in the database.
Code structure#
Class: ResonatorSpectroscopy#
The ResonatorSpectroscopy class is designed to conduct resonator spectroscopy for transmon qubits. It takes as input
a dictionary of transmon qubits and their respective states.
Class: ResonatorSpectroscopyMeasurement#
The measurement class responsible for executing the resonator spectroscopy procedure.
Method: schedule_function#
The schedule_function method generates a schedule to perform resonator spectroscopy. This process includes:
Clock Initialization: Initializes the clocks for each qubit based on the specified qubit state.
Qubit Reset: Resets the qubit to a known state.
Frequency Probing: Applies a square pulse at various frequencies.
Signal Measurement: Measures the response signal, capturing data on the resonator’s behavior.
Class: ResonatorSpectroscopyAnalysis#
The ResonatorSpectroscopyAnalysis class is used for analyzing resonator spectroscopy data, enabling the
extraction of the resonant frequency and loaded/external Q-factors. It is constructed from:
parameters: AResonatorSpectroscopyParametersinstance with the fit-quality gate and (for wide sweeps) sliding-window settings.qoi_cls: The QOI class used to store results (state-specific subclassesResonatorSpectroscopy1Analysis/ResonatorSpectroscopy2Analysisadd the state-1/2 chi markers to the plot).
Method: resonator_analysis#
The resonator_analysis method fits the complex hanger-with-delay model directly against the raw complex IQ data (not just the magnitude), so the propagation delay and impedance-mismatch asymmetry are constrained jointly by magnitude and phase. For wide sweeps (more points than sample_size_for_sliding_window_analysis) it first localizes the resonance with a sliding-window search before the final fit — see the parameters section below. From the fit it derives the resonant frequency (via a closed-form expression, not simply the fitted fr), the linewidth kappa = fr/Ql, and the cable propagation delay.
Output: xarray.Dataset#
The dataset returned by this analysis is an xarray.Dataset, which includes:
Frequency Sweep Data: The set of frequencies used during the sweep.
Transmission Response: The measured response of the resonator at each frequency.
This dataset provides essential insights into the resonator’s properties, allowing for precise tuning of qubit-resonator interactions.
Class: ResonatorSpectroscopyParameters#
The ResonatorSpectroscopyParameters class encapsulates the parameters required for conducting resonator spectroscopy. Every field is either an acquisition field (baked into the hardware sweep — changing it means re-running on hardware) or an analysis field (post-processing only — safe to change and re-apply to already-saved data during a bragi_quantum.gui reanalysis); see Parameter field categories.
Acquisition fields#
readout_state: int = 0 — the targeted qubit state.samples: int = 100 — number of frequency samples.repetitions: int = 100 — number of repetitions (averages) per frequency point.half_width: float = 1.0e6 — half-width of the sweep window in Hz.
Analysis fields#
Sliding-window analysis for wide resonator spectroscopies#
If the number of frequency points in the resonator spectroscopy is very high (more than sample_size_for_sliding_window_analysis), a sliding window analysis is performed to find a better initial guess for the fit. This is done by splitting the resonator spectroscopy in smaller overlapping windows of size slide_window_size, with a step of slide_window_step. Each window is fitted individually and the first fit that satisfies the conditions on \(R^2\) (coefficient of determination), Ql and Qe (defined by min_r_squared, slide_window_min_ql and slide_window_max_qe) is considered.
sample_size_for_sliding_window_analysis: int = 200slide_window_size: int = 100slide_window_step: int = 50slide_window_min_ql: float = 7000slide_window_max_qe: float = 60000
Fit-quality gate (used by both the plain resonator spectroscopy and punchout)#
Every caller (the plain resonator_spectroscopy node and each punchout amplitude slice) gates the fit through the same is_good_fit check, defined by:
min_r_squared: float = 0.9 — minimum \(R^2\) (coefficient of determination) between the fit and the raw complex data.max_abs_theta: float = 0.25 — maximum allowed magnitude of the fitted impedance-mismatch angletheta(radians); a larger value indicates an implausible impedance mismatch. \(R^2\) is used instead of a \(\chi^2\)-based gate because there is no real per-point noise estimate (no SSRO) to anchor a \(\chi^2\) scale to — \(R^2\) needs no such estimate, so it stays comparable across qubits and amplitudes.