Rabi sweeps
One- and two-dimensional Rabi sweeps are some of the most basic and important qubit characterization protocols. The examples included here show how QUA is used to generate time-Rabi and power-Rabi pulse sequences. A two-dimensional (time and power) scan can just as easily be performed and an example is included. These examples show several features of the QUA language: looping constructs, dynamical stretching of pulse duration and dynamical stretching of pulse amplitude. By dynamical, we mean that the factors by which stretching is performed are QUA variables which are executed in hardware and can therefore be calculated in script run-time, included with feedback from the system (though this is not the case here).
#
Description of experiments#
IntroductionThe OPX device is conceived to ensure the user has an optimal control over the quantum system he wants to work on. A prior and critical step for this control is to perform a set of calibration procedures, which ensure that the control sequence sent by the OPX on the quantum system, e.g a superconducting qubit coupled to a readout resonator, does modify its state according to what is originally desired.
The Power Rabi experiment is one type of those calibration procedures. The idea is to find the right parameter tuning (controllable by the user) leading to the execution of a particular single qubit gate.
In this example, we want to find the required amplitude of the pulse that will produce a -rotation around the x-axis, i.e a NOT gate.
#
Review of few theoretical elementsA single qubit gate can be visualized as a rotation of a defined angle around an arbitrary axis on the Bloch-Sphere. On the hardware, this single qubit gate translates itself in a particular pulse sequence involving specific parameters, such as the pulse envelope (i.e its shape), its amplitude, its frequency and its duration.
We know that an arbitrary qubit rotation can be decomposed into a subset of rotations around the main axes. One is interested here into figuring out which parameters we must use in order to achieve elementary rotation such as -pulse around the x-axis. This pulse maps the state to the state and vice versa.
We can write the pulse signal sent to the qubit as follows : where is the amplitude of the pulse, which is time dependent since it is directly related to the pulse shape. When the frequency of the drive is set to the resonant frequency of the qubit , we remove the contribution related to the detuning () that allows rotations along the z-axis, leaving us with qubit rotations in the x-y plane (the rotation vector will be defined accordingly to the value of ).
To perform a rotation around the x-axis, we set the phase to be , and the rotation angle is determined by the following equation : .
#
Power-Rabi experimentIn a typical Power Rabi Oscillations experiment, the shape and duration of the pulse are fixed (e.g. a 20-nanosecond gaussian pulse) and only its amplitude is varied in order to get different rotation angles θ. The experiment is performed by repeating the following basic sequence:
Initialize the qubit to the ground state, .
Apply a pulse with amplitude (e.g. is a gaussian shaped pulse with peak amplitude and fixed duration ), which rotates the qubit by so that the qubit is in the state
Apply a resonant pulse to the readout resonator coupled to the qubit, and from the phase of the reflected pulse, deduce the state of the qubit.
This basic sequence is repeated in the program for a series of amplitudes (i.e., many values ), where for each amplitude, we do a sampling of N identical sequences. This measurement sampling is required due to the state collapse, inducing the need to obtain statistics representing the probability of measuring the state which can be written as :
Once we obtain the results, we can plot the probability above in terms of the amplitude , and find out for which amplitude this probability reaches one. This amplitude is the one allowing us to finally configure our NOT gate.
#
Time-Rabi experimentThis experiment is very similar to the previous one, but instead of sweeping the amplitudes to find the desired rotation angle, we set it at a fixed value and proceed a sweeping of the pulse duration.
We hence do reproduce the same experiment as before, but looking for the maximum probability of measuring the in terms of the pulse duration .
#
Describing the QUA program#
The configuration fileThe configuration file is architectured around the following items :
- controllers : We define the outputs and inputs of the OPX device, which will be of use for the experiment. In this case, we have two analog outputs for the qubit, and two others for its coupled readout resonator. We add an analog input which is the channel where will be sampled out the analog results of the readout operation.
- elements : This defines the set of essential components of the quantum system interacting with the OPX. In this case, the two elements are the qubit and the coupled readout resonator. Here are specified the main characteristics of the element, such as its resonant frequency, its associated operations (i.e the operations the OPX can apply on the element).
- pulses : A description of the doable pulses introduced in the elements. Here is provided a description of the default pulse duration (length parameter), the associated waveform (which can be taken from an arbitrary array), the type of operation (e.g control or measurement)
- waveforms : Specification of the pulse shape based on pre-built arrays (either by the user in case the shape is arbitrary, or constant pulse otherwise)
- Integration weights : Describe the demodulation process of the data
#
The QUA programThe structure of the program is very similar for both Time and Power Rabi experiments. The only difference is the using of the QUA for_ loop, which is used for tuning either the amplitude or the duration for the Power and Time Rabi experiments respectively. Once the pulse is applied on the qubit, we align the readout resonator and the qubit to launch a measurement command on the resonator, to retrieve its I & Q components.
Once the program is written, what we would do on a usual basis is to execute the program. However, in our case we do not have access to a real quantum system, we hence use the LoopbackInterface command, which allows to pick an output signal of the OPX and plug it in the input channel to replace the usual measurement done on the resonator.
Finally, the save command allows the saving of the data from the OPX into a Python structure reachable by the computer. We can then process the data using various tools to produce the corresponding graph of the Rabi oscillations, allowing the determination of optimal parameters for the desired X gate.