Readout frequency optimization, step 1 in readout optimization#

The current strategy for optimizing the readout consists of two main steps:

  • Step 1: Optimize the readout frequency for each state using resonator spectroscopy.

  • Step 2: Optimize the readout amplitude for each state using single-shot measurements and state discrimination analysis.

This can be performed for both 2-state and 3-state readout configurations. The class description is given for the 3-state case, but the same applies to the 2-state case.

This node implements step 1 of the readout optimization by performing the resonator spectroscopy for all considered states using the same amplitude. The amplitude is selected based on the punchout experiments performed prior to this node in which the optimal amplitude for each state is determined; the lowest of these amplitudes is used. The readout frequency is selected using Heron’s formula to find the frequency that maximizes the separation between the states.

Code structure#

Class: ROFrequencyOptimizationParameters#

The ROFrequencyOptimizationParameters class only defines acquisition fields (see Parameter field categories) — there is no analysis field, since the frequency selection has no user-facing threshold.

Acquisition fields#

  • samples: int = 100 — number of readout-frequency samples.

  • half_width: float = 1.0e6 — half-width of the frequency sweep window in Hz.

  • repetitions: int = 1024 — number of repetitions (averages) per point.

Class: ROThreeStateFrequencyOptimizationNode#

The node in which the measurement, analysis and QOI are defined. A sibling class, ROTwoStateFrequencyOptimizationNode, implements the 2-state (\(|0\rangle\), \(|1\rangle\)) variant.

Class: ROFrequencyOptimizationMeasurement#

This class is similar to the ResonatorSpectroscopyMeasurement but adapted to perform the resonator spectroscopy for all three states using the same amplitude and store the results in a single file.

Class: ROThreeStateFrequencyOptimizationAnalysis#

This class handles all the operations common to all qubits and produces the figures. The standard figure displays, for each qubit, the resonator spectroscopy results for the three states and the separation between states as a function of the frequency. The maximum of the curve is indicated as the optimal readout frequency.

For each frequency, the separation between states is calculated. The base (2-state) analysis selects the frequency maximizing the \(|0\rangle\)/\(|1\rangle\) IQ-plane distance; the 3-state subclass instead maximizes the area of the \(|0\rangle\),\(|1\rangle\),\(|2\rangle\) triangle in the IQ plane (via Heron’s formula).