CUDA Quantum Platform

type access

  • Operating System:

  • Terminal:

  • Shell:

  • Editor:

  • Package Manager:

  • Programming Language:

  • Database:

  • NVIDIA Libraries:

  • Extension:

type access

  • Operating System:

  • Terminal:

  • Shell:

  • Editor:

  • Package Manager:

  • Programming Language:

  • Database:

  • NVIDIA Libraries:

  • Extension:

type access

  • Operating System:

  • Terminal:

  • Shell:

  • Editor:

  • Package Manager:

  • Programming Language:

  • Database:

  • NVIDIA Libraries:

  • Extension:

NVIDIA CUDA Quantum is a platform for hybrid quantum-classical computing.

The platform consists of both a specification and a compiler NVQ++. It delivers a unified programming model designed for quantum processors (either actual or emulated) in a hybrid setting, that is, CPUs, GPUs, and QPUs working together.

Information about the supported simulation backends can be found here.

Initialization

For information on how to use the Initialization parameter, please refer to the Initialization - Bash script and Initialization - pip packages section of the documentation.

Run a script in batch mode

The optional Batch mode parameter is used to run a Bash script (.sh) when the job starts. In this case the job ends immediately after the program runs.

Tutorials and examples

To get started with CUDA Quantum and understand the programming and execution model, several examples and tutorials can be found in the default user's home folder.

For example, this command executes an implementation of a Bernstein-Vazirani algorithm:

$ nvq++ $HOME/examples/cpp/algorithms/bernstein_vazirani.cpp && ./a.out
$ python $HOME/examples/python/bernstein_vazirani.py

The program will use GPU-acceleration if a suitable GPU has been detected. To confirm that the GPU acceleration works, one can increase the size of the secret string and pass the target as a command line argument:

$ nvq++ $HOME/examples/cpp/algorithms/bernstein_vazirani.cpp -DSIZE=25 --target nvidia && ./a.out
$ python $HOME/examples/python/bernstein_vazirani.py --size 25 --target nvidia