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.

Your First Pulse Program

Install, write one kernel, simulate a Rabi oscillation and read the schedule

Your First Pulse Program
Several Qubits: Registers, Sync and Scheduling

Drive a register of qubits, line pulses up with sync, compare two schedules

Several Qubits: Registers, Sync and Scheduling

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.

From a Kernel to Your Control Electronics

Describe a control system, compile for it and lower a program to per-channel sequencer instructions

From a Kernel to Your Control Electronics
One QPU, Several Control Systems

Put five control systems under one chip and see what latency and limits cost

One QPU, Several Control Systems
From Kernel to Controller

Read the exported program, then write, register and validate a small backend

From Kernel to Controller
Lowering to Your Controller’s Instruction Set

Lower a program to a toy controller’s instruction set, one kind of event at a time (experimental)

Lowering to Your Controller’s Instruction Set
Getting More out of Your Controller’s Instruction Set

See what the compiler does about six controller limits, so a small instruction set is enough (experimental)

Getting More out of Your Controller’s Instruction Set

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.

Coherence: T1, Ramsey and Echo

Measure T1, Ramsey fringes and an echo on a simulated qubit

Coherence: T1, Ramsey and Echo
Idle Replacement: Echoing a Readout’s Crosstalk

Protect a qubit during a neighbour’s readout with echo pulses

Idle Replacement: Echoing a Readout’s Crosstalk
Adaptive Calibration in One Program

Track a drifting T1 with an estimator that picks each wait during the run

Adaptive Calibration in One Program

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.

Measure and React

Build an active reset: read a qubit out and flip it back only if it read 1

Measure and React
Calling Classical Code During Quantum Runtime

Call a decoder during a shot, with a deadline and a fallback

Calling Classical Code During Quantum Runtime
Real-Time Decoding with a Deadline

Decode a repetition code’s syndrome with a deadline, and fall back to a table when the decoder is late

Real-Time Decoding with a Deadline
T-State Injection and a Heralded Repeat-Until-Success Loop

Prepare a T state, measure it by tomography and improve it with a herald

T-State Injection and a Heralded Repeat-Until-Success Loop

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 Your Own Quantum System

Describe qudits, a coupling and calibrated pulses from measured numbers, and save them to a file

Describe Your Own Quantum System

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.

Your First Pulse Program

Install, write one kernel, simulate a Rabi oscillation and read the schedule

Your First Pulse Program
Simulating on a GPU

Run a coupled pair on the CPU and then on a GPU (research preview)

Simulating on a GPU

This group has a page of its own: Simulation.