NVIDIA CUDA-Q
A kernel-based platform for fast GPU simulation and hybrid quantum-classical programs.
by NVIDIA · Python and C++ · Moderate · Open source core, with some proprietary GPU libraries it can use (check the repository) · reviewed December 2026
What it is
CUDA-Q is NVIDIA’s platform for programming quantum kernels in Python or C++ and running them on GPU-accelerated simulators or on quantum processors. A kernel is a function marked as quantum code, which the toolchain compiles.
Its selling point is simulation speed and tight coupling of quantum kernels with classical GPU code, which matters for larger simulations and for research on hybrid workflows.
- Quantum programs are kernels, compiled functions, not circuit objects.
- The target, simulator or hardware, is set separately from the program.
- GPUs are first-class for both simulation and classical processing.
Core ideas
- Kernel
- A function marked with @cudaq.kernel that holds quantum operations.
- Target
- Chooses where a kernel runs, such as a CPU simulator or a GPU simulator.
- sample and observe
- Functions that return measurement counts or expectation values.
- Qubit containers
- cudaq.qubit for one qubit and cudaq.qvector for a register.
Install and first program
Install
pip install cudaq
Bell state
import cudaq
@cudaq.kernel
def bell():
q = cudaq.qvector(2)
h(q[0])
x.ctrl(q[0], q[1]) # CNOT
mz(q)
print(cudaq.sample(bell)) # about half '00' and half '11'The documentation’s Python examples use cudaq.kernel, cudaq.qubit, mz and cudaq.sample. The register and controlled-X spelling here is from memory, so check the documentation of your release.
Choosing a GPU simulator
import cudaq
cudaq.set_target("nvidia") # GPU state-vector simulator; needs an NVIDIA GPU
@cudaq.kernel
def ghz(n: int):
q = cudaq.qvector(n)
h(q[0])
for i in range(n - 1):
x.ctrl(q[i], q[i + 1])
mz(q)
print(cudaq.sample(ghz, 20))Target names change between releases, and the GPU target requires suitable hardware. Check the current target list before relying on this.
Strengths
- →GPU-accelerated simulation for larger circuits
- →Python and C++ with the same model
- →Kernels compile, so loops and structure are efficient
- →Designed for hybrid quantum-classical workflows
- →Supports multiple simulation backends
Weaknesses
- →Best speed needs NVIDIA GPUs
- →Kernel code supports only a subset of Python
- →Smaller community than Qiskit
- →Hardware targets depend on the provider integrations available
Hardware access
CUDA-Q lets you pick a target for simulation or for supported hardware providers. The list of targets changes between releases, so check NVIDIA’s documentation.
Ecosystem
- State-vector and other simulators on CPU and GPU
- Integrations with some hardware providers
- Libraries for algorithms and applications
- C++ toolchain with nvq++
Choose it when
- Fast simulation of larger circuits
- Hybrid GPU workflows
- C++ and high-performance computing teams
- Benchmarking simulators
Look elsewhere when
- Learners without a need for GPU simulation
- Projects centred on one hardware vendor’s own SDK
Common pitfalls
- Kernel code is compiled and uses only supported Python features, so ordinary Python may not work inside it.
- A GPU target needs a compatible NVIDIA GPU and drivers.
- Docs for different releases differ, so check the release you use.
- Measurement in kernels uses functions such as mz, not circuit-level measure calls.
A learning path
- Install the cudaq package and run the Bell kernel.
- Set a different simulator target.
- Use observe to compute an expectation value.
- Scale up a circuit on a GPU target.
Ratings
Editorial ratings from 0 to 3, not benchmarks.
| Beginner friendliness | 1 | |
| Quantum machine learning | 1 | |
| IBM hardware | 0 | |
| Google hardware | 0 | |
| Many hardware providers | 1 | |
| GPU simulation | 3 | |
| Circuit compilation | 1 | |
| Fault-tolerant planning | 0 | |
| Low-level control | 2 |
Compared with others
Learn more on QuantumAtlas
Questions
Do I need a GPU?
No for CPU simulators, but GPU targets are where it is fastest.
Is CUDA-Q a quantum computer?
No. It is a software platform. It simulates quantum circuits and can send them to hardware.
Can I write C++?
Yes. C++ and Python are both supported.
Sources
Frameworks change often. The official documentation is the final word on versions, devices and prices.