Tutorials#
Each tutorial builds one idea from a few short snippets you can run on a laptop, and ends by pointing to the example files that take it further. Each page’s code is also one Python script you can download from the page.
New here? Start with Getting Started, then Your First Pulse Program. After that, go to the group that matches what you are doing. Inside a group the tutorials are in reading order, and each card’s last line gives the tutorial’s level and what it needs.
The group “Start” comes before the use cases of the landing page and is not one of them. “Extend the compiler” has no tutorial; it begins at Compilation Pipeline.
Teaching with CUDA-Q Pulse? The tutorials form a sequence that runs on a laptop CPU, and the Challenges are exercises that score themselves.
Most tutorials run on the built-in transmon_surface17 quantum system.
The transmon_surface17 Quantum System shows its layout, frequencies and
calibrated gates.
Start#
For everyone, after Getting Started. Read first: Your First Pulse Program.
Install, write one kernel, simulate a Rabi oscillation and read the schedule
Drive a register of qubits, line pulses up with sync, compare two schedules
This group has a page of its own: Start.
Bring up control electronics#
For people who own the FPGA or AWG stack and write the backend that feeds it. Read first: From a Kernel to Your Control Electronics.
Describe a control system, compile for it and lower a program to per-channel sequencer instructions
Put five control systems under one chip and see what latency and limits cost
Read the exported program, then write, register and validate a small backend
Lower a program to a toy controller’s instruction set, one kind of event at a time (experimental)
See what the compiler does about six controller limits, so a small instruction set is enough (experimental)
This group has a page of its own: Bring up control electronics.
Calibrate a device#
For people who tune up and characterize qubits. Read first: Coherence: T1, Ramsey and Echo.
Today “a device” is the simulated model: these tutorials calibrate the model of the built-in system, and on hardware the same kernels run through a backend. The step that puts a measured value back into the system description is “Follow a recalibration” in Describe Your Own Quantum System. “Idle Replacement” is in this group but is not a calibration step: it protects a qubit while a neighbour is read out.
Measure T1, Ramsey fringes and an echo on a simulated qubit
Protect a qubit during a neighbour’s readout with echo pulses
Track a drifting T1 with an estimator that picks each wait during the run
This group has a page of its own: Calibrate a device.
Run feedback and error correction#
For people who close the loop during a shot: branches on readouts, calls to decoders and estimators. Read first: Measure and React.
Build an active reset: read a qubit out and flip it back only if it read 1
Call a decoder during a shot, with a deadline and a fallback
Decode a repetition code’s syndrome with a deadline, and fall back to a table when the decoder is late
Prepare a T state, measure it by tomography and improve it with a herald
This group has a page of its own: Run feedback and error correction.
Describe a QPU#
For people with a device of their own. Read first: Describe Your Own Quantum System.
Describe qudits, a coupling and calibrated pulses from measured numbers, and save them to a file
This group has a page of its own: Describe a QPU.
Simulation#
For people who run programs without control electronics; see also Simulation. Read first: Your First Pulse Program.
Install, write one kernel, simulate a Rabi oscillation and read the schedule
Run a coupled pair on the CPU and then on a GPU (research preview)
This group has a page of its own: Simulation.