CZ Currents From Spectroscopies, or how we get candidate working points for CZ gates#
A special node#
This is a special node that does not perform any measurement but instead analyzes the results from previous measurements, specifically the results from the resonator spectroscopy vs current and qubit spectroscopy vs current nodes. The purpose of this node is to estimate candidate working points for CZ gates; this is done in several steps.
Fit the coupler frequency as a function of the current: this is estimated from the avoided crossings of the qubit and the resonator with the coupler. When the coupler frequency matches the qubit or the resonator frequency, there is an avoided crossing that can be identified in the spectroscopies. Hence, at the avoided crossings we know the coupler frequency (it is equal to the qubit or resonator frequency) and the current applied to the coupler. By collecting all these points from both qubits and the resonator, we can fit a model to estimate the coupler frequency as a function of the current.
Find the candidate working points for CZ gates: this is done using an idea from Jorge Fernández Pendás et al. in arXiv:2503.08645; the coupler is parked at a frequency that is a multiple of the CZ gate frequency above from the qubit transitioning to the second state. This criterion identifies several candidate working points for CZ gates, which can then be further characterized and optimized using other nodes and measurements.
Parameters class#
The CZCurrentsFromSpectroscopiesParameters class defines the parameters for the node: settings for the coupler-frequency fit and criteria for selecting candidate working points. Currently none are exposed to the user, but they can be modified in the code if needed. For example, it could be possible to use a small frequency step to sample the coupler frequency more finely when searching for candidate working points. These fields are not yet assigned a metadata/acquisition/analysis category in code (see Parameter field categories) — they use plain pydantic Field, not the category wrappers.
guess/lower_bounds/upper_bounds: initial values and bounds for the coupler-frequency model fit.min_total_crossing_points/minimum_qubit_crossing_points/minimum_resonator_crossing_points: minimum crossing counts required for a coupler to be fit.fit_quality_threshold: maximum per-point RMSE (GHz) for a subset to be accepted as a good fit; outliers are removed one at a time until the RMSE falls below this.calculate_wp: whether to compute candidate CZ working-point currents from the fitted coupler frequency (defaultTrue); ifFalse, only the coupler-frequency fit results are stored. WhenTrue, the qubits’ calibratedf01/f12/readout clock frequencies needed for the working-point search are read directly from the live device (ActiveSession’s device model) — this is the authoritative calibrated state, not a dependency on any other node’s measurement or Redis value.max_cz_frequency_in_GHz(default1.0): CZ modulation frequencies above this are outside the electronics range; working points are not calculated for them.max_number_of_wp(default15): maximum number of working points to scan for.use_fix_frequency_step(defaultFalse) /fixed_frequency_step_in_GHz(default0.25): scan working points on a fixed frequency grid instead of the CZ frequencies derived from the qubit transition frequencies.
QOI class: CZCurrentsFromSpectroscopiesQOI#
coupler_frequency/coupler_frequency_error,coupler_amplitude/coupler_amplitude_error,current_offset/current_offset_error,coupler_minimum_frequency/coupler_minimum_frequency_error: the fitted coupler-frequency-vs-current model parameters and their errors (seecoupler_freq, the cosine-based tunable-coupler frequency model this node fits).cz_transition_frequency_20/cz_transition_frequency_02: the CZ transition frequency (Hz) for each direction of the \(|11\rangle\)–\(|20\rangle\)/\(|11\rangle\)–\(|02\rangle\) avoided crossing.cz_currents_from_spectroscopies_20/cz_currents_from_spectroscopies_02: the candidate CZ working-point currents found for each direction.