cuda-quantum
cuda-quantum copied to clipboard
C++ and Python support for the CUDA Quantum programming model for heterogeneous quantum-classical workflows
Take the following files ```cpp // lib.h #include "cudaq.h" void kernel(cudaq::qvector& q); ``` ```cpp // lib.cpp #include "lib.h" __qpu__ void kernel(cudaq::qvector& q) { x(q[0]); } ``` and ```cpp // user.cpp...
### Description Multiple functions that allocate qubits will cause `assign-wire-indices` to produce duplicate `borrow_wire` ops (i.e., two `borrow_wire` ops with the same index). This change ensures that `assign-wire-indices` refuses to...
### Description Dispatch kernel launch based on whether JIT+synthesis would be required (remote platforms). Otherwise, the direct launch function will be used.
### Description Towards https://github.com/NVIDIA/cuda-quantum/issues/1937 * Prototype the requirements for photonics simulator support * Set execution manager * Infer the handler based on target
Commenting out breakpoint() in plot_voironi as it causes debugger warning ### Description Removed breakpoint() from the function plot_voironi to suppress debugger warnings.
A std::tuple can be laid out in memory either like a struct or like the reverse of a struct. We need to be able to detect which one of these...
This PR contains a collection of changes that were originally developed on the `features/qubit-mgmt` branch, but they have been isolated such that they can be merged into `main`, independent of...
```cpp #include "cudaq.h" __qpu__ void adapt_kernel(std::size_t numQubits, const std::function &statePrep, const std::vector &thetas, const std::vector &coefficients, const std::vector &trotterOpList) { cudaq::qvector q(numQubits); statePrep(q); } ``` produces the following error ```bash...
### Description problems: * the explanation for the need for 3D was inaccurate as |i> and -|i> lie on the same 2D plane as |+> and |-> and are also...