qubestack-cudaq
QuREKA target for NVIDIA CUDA-Q.
Run CUDA-Q kernels on quantum hardware and emulators through QuREKA,
SDT's quantum cloud platform. After installation, cudaq.set_target("qureka", ...) sends your
kernels to QuREKA, which runs them on the device you choose and returns the results as regular
CUDA-Q objects.
Requirements
| Item | Requirement |
|---|---|
| Python | 3.12 |
| Platform | Linux x86_64 (the package ships a compiled CUDA-Q plugin) |
| CUDA-Q | cuda-quantum-cu12 0.14.0 — installed automatically |
| QuREKA | An API key issued in the QuREKA console |
Installation
pip install qubestack-cudaq
Use a fresh virtual environment. The package pins cuda-quantum-cu12==0.14.0, so installing it
into an environment that already has another CUDA-Q version replaces that version.
Optional: [academic] extras
To run the NVIDIA CUDA-Q Academic notebooks (QEC, chemistry simulations, QAOA, dynamics, AI for quantum, ...):
pip install "qubestack-cudaq[academic]"
This adds cudaq-qec and cudaq-solvers with ABI-compatible pins, plus the libraries the
notebooks import (qutip, galois, pymatching, stim, openfermion, pyscf, cppe,
diffusers, transformers, genQC, contfrac). The base install does not include them.
The latest upstream Academic notebooks also import cudaq_algorithms, which requires CUDA-Q 0.15
or later and is not available with the current 0.14.0 pin.
Quick start
import cudaq
cudaq.set_target("qureka", backend="sdt.qubesim-mimiq", api_key="<QUREKA_API_KEY>")
@cudaq.kernel
def bell():
q = cudaq.qvector(2)
h(q[0])
x.ctrl(q[0], q[1])
mz(q)
result = cudaq.sample(bell, shots_count=1000)
print(result) # { 00:~500 11:~500 }
Devices
| Device | Provider | Type | Device code |
|---|---|---|---|
| IonQ Forte | IonQ | QPU | ionq.forte-1 |
| IonQ Forte Enterprise | IonQ | QPU | ionq.forte-enterprise-1 |
| IQM Garnet | IQM | QPU | iqm.garnet |
| IQM Emerald | IQM | QPU | iqm.emerald |
| QPerfect MIMIQ | QPerfect | Emulator | sdt.qubesim-mimiq |
Pass the device code as backend. The devices your workspace can use, with their shot limits and
prices, are listed in the QuREKA console under Quantum Resources. An unknown device code is
rejected before anything is submitted.
Configuration
Arguments of cudaq.set_target("qureka", ...):
| Argument | Required | Description |
|---|---|---|
backend |
Yes | Device code from the table above. |
api_key |
Yes | QuREKA API key. May be omitted inside QuREKA notebooks. |
url |
No | API endpoint. Default: https://openapi.qureka.io. |
option |
No | Device-specific options as a JSON string. |
Environment variables:
| Variable | Default | Description |
|---|---|---|
QUREKA_QUIET |
false |
Set to true to hide progress lines such as [QuREKA] submitting to …. |
QUBESTACK_CUDAQ_AUTOLOAD |
1 |
Set to 0 to turn off the QuREKA layer described below. |
What the package adds to CUDA-Q
import cudaq is enough. The package installs a start-up hook that loads its QuREKA layer right
after CUDA-Q is imported:
- waiting for a result retries transient lookup failures and, if it finally gives up, prints the job ID so the result can be found in the console;
cudaq.observewith a list of operators or a list of argument values returns the correct values;cudaq.get_stateon a remote device raises a clearQurekaErrorinstead of crashing.
Using it in QuREKA notebooks
QuREKA notebooks come with this package installed, and it behaves exactly as described here. The
only difference is that api_key may be omitted: the notebook session signs the request.
CUDA-Q compatibility
qubestack-cudaq, cuda-quantum-cu12, cudaq-qec and cudaq-solvers must be ABI-compatible,
so each qubestack-cudaq release pins all three.
qubestack-cudaq |
cuda-quantum-cu12 |
cudaq-qec |
cudaq-solvers |
|---|---|---|---|
| 1.0.x – 1.6.0 | 0.14.0 |
0.6.0 |
0.6.0 |
Versioning
From 1.6.0, the package version is the QuREKA platform release it ships with:
qubestack-cudaq 1.6.0 belongs to QuREKA 1.6.0, and 1.6.0.1 is a hotfix of that release.
Earlier releases were published as 1.0.<build>:
| QuREKA release | qubestack-cudaq |
|---|---|
| 1.5.0 | 1.0.178 |
| 1.4.0.1 | 1.0.163 |
| 1.4.0 | 1.0.160 |
1.6.0 sorts above 1.0.178, so pip install -U qubestack-cudaq moves to the new numbering.
Links
- QuREKA: https://qureka.io
- Documentation: https://docs.qureka.io
License
Apache License 2.0 (Apache-2.0). The license text is included in the package.
Metadata
Release files for qubestack-cudaq 1.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qubestack_cudaq-1.6.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 | Details for qubestack_cudaq-1.6.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
Release files / qubestack_cudaq-1.6.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | qubestack_cudaq-1.6.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 253.3 kB |
| Tags | CPython 3.12 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
a6b55ad18e0341bf6b90eb29cf883a9feca536862fb94322afe4b0df8c4eb2ea
|
|
BLAKE2b-256 checksum How to use checksums |
cf31a09c9b4160daf4885d29fbc3b0227a19ea392ab627f55103dbe370f94c74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Security for qubestack-cudaq 1.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.