User Guide#

The guide explains each part of CUDA-Q Pulse in depth and is where to look something up; start with Write a Pulse Kernel. It follows the order of the work: describe your hardware, write kernels, compile and schedule them, lower them to your electronics, and measure and feed back. If you would rather learn by doing, the Tutorials teach the same subjects step by step.

The groups below are the steps of that work, not the six use cases of the landing page; Everything by Use Case lists the guide pages under each use case.

Each card says what you can do after reading the page and, in its last line, what kind of page it is: an explanation, a how-to, or a reference.

Describe your hardware#

What the compiler needs to know before it can check a program: the chip and the electronics that drive it.

Describe a Quantum System

State your qudits, couplings and calibrated pulses in Python or a system file, and address them from a program.

Describe a Quantum System
The transmon_surface17 Quantum System

Read the layout, frequencies, coherence and calibrated gates of the system the tutorials run on, as a worked description.

The transmon_surface17 Quantum System
Describe Your Control System

State each controller’s clock, timestep, line delays, shared lines, waveform memory and limits, with every field in a table, so that a program your electronics cannot run fails when it compiles.

Describe Your Control System

Write kernels#

The language a pulse program is written in.

Write a Pulse Kernel

Write kernels with arguments, loops, branches on measurements and calls to other kernels, and know which Python a kernel accepts.

Write a Pulse Kernel
Operations and Waveforms

Look up every operation and waveform a kernel can use, and try each envelope in the waveform explorer.

Operations and Waveforms
Units, Time and Sign Conventions

Know what a bare number means, which way a phase turns a pulse and what sign an exported phase has, each with a snippet that shows it.

Units, Time and Sign Conventions
Set Up Your Editor

Get completion and checked arguments for the operations inside a kernel.

Set Up Your Editor

Compile and schedule#

From a kernel to a timed program.

Compile and Inspect a Program

Call, compile and lower kernels, read a program’s schedule, MLIR and metrics, fill idle time, and load a scheduled program.

Compile and Inspect a Program
Choose a Schedule

Pick when each operation starts: the policies, one kernel under each, and what a control system adds.

Choose a Schedule
Write Your Own Passes

Check a schedule in Python, or load your own MLIR passes as a plugin.

Write Your Own Passes

Lower to your electronics#

From a timed program to what a controller executes.

The Program a Backend Reads

Read every key of the program a backend receives: its events, its run-time expressions and the structured format.

The Program a Backend Reads
Write and Validate a Backend

Implement the backend interface, register the backend by its entry point and validate it against the export test corpus.

Write and Validate a Backend

Measure and feed back#

Decisions during a shot.

Call Classical Code During a Shot

Declare a decoder or an estimator with its latency, call it from a kernel with a deadline, read the timing report, emulate it, and calibrate while the QPU runs.

Call Classical Code During a Shot
Where Timing Is Exact and Where It Can Move

Which waits and answers leave a schedule exact, which let it move, which lines move together, and where such a point cannot be.

Where Timing Is Exact and Where It Can Move

Simulation#

Running a compiled program without control electronics has a section of its own.

Simulation

Run a compiled program on a CPU or an NVIDIA GPU, or in virtual time against its classical services.

Simulation