Hello QUA
This is the most basic introductory script in QUA. It plays a constant amplitude pulse to output #1 of the OPX and displays the waveform.
#
ConfigWe begin the config file by specifying the name and type of the controller and the outputs used.
We then declare one quantum element called qe1
.
The quantum element has one operation called playOp
The playOp
operation plays a constant amplitude pulse
called constPulse
which has default duration 1 ,
a frequency of 5 MHz and an amplitude of 0.4V (peak-to-peak).
#
ProgramThe QUA program simply calls the play command.
We open a quantum machine with the config file and run the program on the simulator for 1000 clock cycles (4000 ns).
#
Post processingWe plot the simulated samples to observe a single cycle of the waveform (5 MHz for 1 micro-second).
#
Sample outputNote the delay (of approx 200ns) between the start of simulation and the start of the pulse. This delay is faithful to the one produced by executing the QUA program on real hardware.