Skip to main content

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 Inside QuREKA notebooks, set to true to hide progress lines such as [QuREKA] submitting to ….

Using it in QuREKA notebooks

QuREKA notebooks come with this package installed. Inside a notebook, 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.5.0.3 0.14.0 0.6.0 0.6.0

Versioning

From 1.5.0.3, the package version is the QuREKA platform release it ships with: 1.5.0.3 is hotfix 3 of QuREKA 1.5.0. It has the same source code as 1.0.178 (QuREKA 1.5.0); only the documentation and package metadata changed. 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.5.0.3 sorts above 1.0.178, so pip install -U qubestack-cudaq moves to the new numbering.

License

Apache License 2.0 (Apache-2.0). The license text is included in the package.

Metadata

Release files for qubestack-cudaq 1.5.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for qubestack-cudaq 1.5.0.3
File Interpreter ABI Platform Actions
qubestack_cudaq-1.5.0.3-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.5.0.3-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Release files / qubestack_cudaq-1.5.0.3-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL qubestack_cudaq-1.5.0.3-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 247.4 kB
Tags CPython 3.12 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
13428d1969abc0ad93e7b0e5b05d988d98daade081df367f60f330619b5e7d15
BLAKE2b-256 checksum
How to use checksums
47c9804255db4aaa14266308e63b547533956516d4970869218c30b65a0d89e0
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.5.0.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page