Everything by Use Case#
This is the complete list for each of the six use cases on the landing page: tutorials, guide pages, reference pages and examples, in reading order.
Bring up control electronics#
You own an FPGA or AWG stack and want pulse programs to run on it: describe the electronics, compile a kernel for them, and produce what each sequencer executes.
Read first: From a Kernel to Your Control Electronics.
Tutorials: One QPU, Several Control Systems (how latency, several controllers and limits change a schedule), From Kernel to Controller (the backend interface and its validation), Lowering to Your Controller’s Instruction Set and Getting More out of Your Controller’s Instruction Set (a lowering to an instruction set, limit by limit).
Guide: Describe Your Control System (every field of a controller description), The Program a Backend Reads (every field of the program a backend receives), Write and Validate a Backend (a backend and its validation), Describe a Quantum System (system files).
Reference: Controller Backends API, Quantum system API.
Examples: examples/controller_backend/sequencer_backend.py, examples/controller_backend/text_backend.py, examples/isa_lowering/toy_isa.py, examples/23_define_a_qpu.py, examples/30_control_systems_compared.py.
Calibrate a device#
You tune up qubits: sweeps, coherence measurements, calibrations that follow a drifting device. Today “a device” is the simulated model: the tutorials calibrate the model of the built-in system, and on hardware the same kernels run through a backend.
Read first: Coherence: T1, Ramsey and Echo.
Tutorials: Adaptive Calibration in One Program (track a drifting T1 during the run); “Follow a recalibration” in Describe Your Own Quantum System, the step that puts a measured value back into the system description. Also in this group, though not a calibration step: Idle Replacement: Echoing a Readout’s Crosstalk (protect a qubit during a neighbour’s readout with echo pulses).
Guide: “Calibrating while the QPU runs” in Call Classical Code During a Shot, “Gate calibrations” in Describe a Quantum System, Units, Time and Sign Conventions.
Examples: examples/01_single_qubit_rabi.py, examples/03_t1_t2_dissipator.py, examples/13_dynamical_decoupling.py, examples/14_randomized_benchmarking.py, examples/20_adaptive_calibration.py, examples/21_calibration_protocol.py, examples/24_pipelined_calibration.py, examples/26_drift_following.py.
Run feedback and error correction#
Your programs decide during a shot: a branch on a readout, a decoder that must answer before a deadline, the timing of a round of error correction. These pages work at the level of pulses and their timing; for circuit-level error correction, see CUDA-Q QEC.
Read first: Measure and React.
Tutorials: Calling Classical Code During Quantum Runtime, Real-Time Decoding with a Deadline, T-State Injection and a Heralded Repeat-Until-Success Loop, One QPU, Several Control Systems (what feedback latency and a limit on drives at once do to a round), “A decoder with a deadline” in Getting More out of Your Controller’s Instruction Set.
Guide: Call Classical Code During a Shot, “Control Flow” in Write a Pulse Kernel, The transmon_surface17 Quantum System (the built-in chip, what its model simulates and what it does not).
Reference: Classical Calls API.
Examples: examples/08_readout_and_branching.py, examples/19_classical_calls.py, examples/27_realtime_decoding.py, examples/28_t_state_injection.py, examples/18_per_kernel_schedules.py, examples/30_control_systems_compared.py, examples/transmon/transmon_surface17_surface_code_cycle.py.
Describe a QPU#
You have a device of your own: its qudits, couplings, calibrated pulses and the lines that reach them.
Read first: Describe Your Own Quantum System.
Guide: Describe a Quantum System, The transmon_surface17 Quantum System (the built-in system, as a worked description).
Reference: Quantum system API, Quantum system components API.
Examples: examples/22_runtime_qudits.py, examples/23_define_a_qpu.py.
Simulation#
You want to run a compiled program without control electronics: on a CPU, on an NVIDIA GPU, or in virtual time against its classical services.
Read first: Your First Pulse Program, the CPU simulation tutorial.
Tutorials: Simulating on a GPU.
Guide: Simulation (the section’s own page), GPU Simulation Reference.
Reference: Simulation API.
Examples: examples/transmon/transmon_surface17_rabi.py, examples/transmon/transmon_surface17_evolve_gpu.py.
Extend the compiler#
You want to read or change what the compiler does: the MLIR it writes, its passes, passes of your own.
Read first: Compilation Pipeline.
The kernel language#
This is not a seventh use case: whatever you are doing, the kernel language is the same. Your First Pulse Program and Several Qubits: Registers, Sync and Scheduling teach it, Write a Pulse Kernel and Operations and Waveforms are its guide, and Examples lists every example.