cuda-q
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| cuda-q [August 22, 2026 at 15:39] – created - external edit 127.0.0.1 | cuda-q [August 22, 2026 at 18:21] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| # CUDA-Q | # CUDA-Q | ||
| - | **CUDA-Q** is NVIDIA' | + | **CUDA-Q** is NVIDIA' |
| - | The following example demonstrates | + | A **quantum kernel** is a C++ function marked with `__qpu__` containing |
| - | ```python | + | ```cpp |
| - | import | + | #include "cudaq.h" |
| - | from scipy.optimize import minimize | + | |
| - | # Define ansatz for VQE | + | // Quantum kernel: Bell pair |
| - | def ansatz(theta): | + | struct BellPair { |
| - | | + | void operator()() __qpu__ { |
| - | | + | cudaq::qvector |
| - | | + | h(q[0]); |
| - | | + | |
| - | | + | |
| + | } | ||
| + | }; | ||
| - | # Minimize ⟨ZZ⟩ with COBYLA | + | // Execute on GPU-accelerated simulator |
| - | result = minimize(lambda θ: ansatz(θ).expectation(), x0=[0.0], method=' | + | auto result = cudaq::sample< |
| - | print(f"Ground state energy: {result.fun:.4f}") | + | for (auto& [bits, count] : result) { |
| + | | ||
| + | } | ||
| ``` | ``` | ||
| + | |||
| + | CUDA-Q bridges quantum computing and classical HPC—ideal for near-term algorithms combining quantum circuits with classical optimization and machine learning. | ||
| + | |||
| + | ## Concepts | ||
| + | |||
| + | 1. [[cuda-q-hybrid-computing|Hybrid quantum-classical computing]] | ||
| + | 2. [[cuda-q-quantum-kernels|Quantum kernels]] | ||
| + | 3. [[cuda-q-programming-model|CUDA-Q programming model]] | ||
| + | 4. [[cuda-q-state-preparation|State preparation]] | ||
| + | 5. [[cuda-q-measurement|Measurement and readout]] | ||
| + | 6. [[cuda-q-parameterized-circuits|Parameterized quantum circuits]] | ||
| + | 7. [[cuda-q-quantum-algorithms|Quantum algorithms library]] | ||
| + | 8. [[cuda-q-vqe|VQE (Variational Quantum Eigensolver)]] | ||
| + | 9. [[cuda-q-qaoa|QAOA (Quantum Approximate Optimization)]] | ||
| + | 10. [[cuda-q-backends|Backends and execution]] | ||
| + | 11. [[cuda-q-gpu-acceleration|GPU acceleration with cuQuantum]] | ||
| + | 12. [[cuda-q-distributed-simulation|Distributed quantum simulation]] | ||
| + | 13. [[cuda-q-noise-models|Noise models and open system simulation]] | ||
| + | 14. [[cuda-q-gradients|Gradient computation and optimization]] | ||
| + | 15. [[cuda-q-quantum-ml|Quantum machine learning]] | ||
| + | 16. [[cuda-q-classical-integration|Integration with classical compute]] | ||
| + | 17. [[cuda-q-optimization|Optimization in CUDA-Q]] | ||
| + | 18. [[cuda-q-debugging|Debugging and profiling]] | ||
| + | 19. [[cuda-q-performance|Performance optimization]] | ||
| + | 20. [[cuda-q-hardware|Hardware integration and QPUs]] | ||
cuda-q.1787413163.md.gz · Last modified: by 127.0.0.1
