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.
State your qudits, couplings and calibrated pulses in Python or a system file, and address them from a program.
Read the layout, frequencies, coherence and calibrated gates of the system the tutorials run on, as a worked description.
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.
Write kernels#
The language a pulse program is written in.
Write kernels with arguments, loops, branches on measurements and calls to other kernels, and know which Python a kernel accepts.
Look up every operation and waveform a kernel can use, and try each envelope in the waveform explorer.
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.
Get completion and checked arguments for the operations inside a kernel.
Compile and schedule#
From a kernel to a timed program.
Call, compile and lower kernels, read a program’s schedule, MLIR and metrics, fill idle time, and load a scheduled program.
Pick when each operation starts: the policies, one kernel under each, and what a control system adds.
Check a schedule in Python, or load your own MLIR passes as a plugin.
Lower to your electronics#
From a timed program to what a controller executes.
Read every key of the program a backend receives: its events, its run-time expressions and the structured format.
Implement the backend interface, register the backend by its entry point and validate it against the export test corpus.
Measure and feed back#
Decisions 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.
Which waits and answers leave a schedule exact, which let it move, which lines move together, and where such a point cannot be.
Simulation#
Running a compiled program without control electronics has a section of its own.
Run a compiled program on a CPU or an NVIDIA GPU, or in virtual time against its classical services.