Skip to main content

A Quantum Development Library

Project description

Welcome to the Quantum Rings SDK

This document serves as a guide for installing the Quantum Rings SDK. You can choose to install the SDK in either CPU-only mode or GPU-enabled mode, depending on your system configuration. Before starting the installation process, please review the sections that outline the minimum system requirements and supported GPU architectures.

Additionally, the section titled “Feedback and Getting Support” provides links for submitting feedback or obtaining further assistance.

Finding the Latest Version of the SDK

  • 0.11.2311 – For Python 3.11 based installations

  • 0.11.2312 – For Python 3.12 based installations

  • 0.11.2313 – For Python 3.13 based installations

  • 0.11.2314 – For Python 3.14 based installations

Minimum System Requirements

A system with specifications exceeding the minimum requirements is recommended. Lower specifications may limit the number of qubits supported and could result in poor performance.

  • Operating systems recommended:

    • Ubuntu 22.04.4 LTS

    • Ubuntu 24.04.4 LTS

    • Windows 11 Pro

    • macOS 15 (Only CPU mode and official Python builds are supported. For more information, visit www.python.org.)

    • WSL2 based Linux Instances on Windows 11 Pro

  • 64-bit Intel i9 x86 CPU (14 cores 20 logical processors recommended) or equivalent

  • Intel processors or Apple Silicon on Mac Systems

  • NVIDIA GB10 Grace Blackwell Superchip

  • DDR5 or better memory channels recommended

  • 32 GB Installed physical memory

  • 18 GB Available physical memory

  • 64-bit Python version 3.11, 3.12, 3.13, or 3.14

Supported GPU Architectures

  • Amphere, compute capabilities 8.0, 8.6

  • Hopper, compute capability 9.0

  • Blackwell, compute capability 10.0

  • or later

A minimum of 4 GB global memory on the GPU is required to run the SDK. The actual amount of memory needed depends upon the number of qubits used and the gate operations involved. CUDA Toolkit 12.x or 13.x is required to install the GPU version of the SDK.

Installing the Quantum Rings SDK in CPU-Only Mode

To unlock the full potential of the Quantum Rings Software Development Kit (SDK) in CPU-only mode, follow these essential steps for seamless installation.

STEP - 1

To obtain your license for the Quantum Rings SDK, register by selecting the Login option from the menu.

If you are already registered, you can skip this step.

Next, log in to the Quantum Rings portal. To download your access keys, select the Manage Keys option in the left sidebar.

STEP - 2

Create a virtual environment for your Python version using the following example.

virtualenv --python=/usr/bin/python3.11 myenv311
source myenv311/bin/activate

In some installations, the virtual environment can be created as follows:

python3.11 -m venv myenv311
source myenv311/bin/activate

Note that installing a Python virtual environment may require additional steps.

You can optionally install Jupyter Notebook using the following command:

pip install notebook

STEP - 3

Install the Quantum Rings SDK using the following command:

pip install QuantumRingsLib

or by using the following option:

pip install quantumrings[cpu]

STEP - 6

Now, try the following Python program from your Jupyter notebook to ensure that everything is working fine.

import QuantumRingsLib
from QuantumRingsLib import QuantumRegister, AncillaRegister, ClassicalRegister, QuantumCircuit
from QuantumRingsLib import QuantumRingsProvider
from QuantumRingsLib import job_monitor
from QuantumRingsLib import JobStatus
from QuantumRingsLib import OptimizeQuantumCircuit
from matplotlib import pyplot as plt
import numpy as np
import math

provider = QuantumRingsProvider(token =<YOUR_TOKEN_HERE>, name=<YOUR_ACCOUNT_NAME_HERE>)
backend = provider.get_backend("scarlet_quantum_rings")
numberofqubits = 50
shots = 100

q = QuantumRegister(numberofqubits , 'q')
c = ClassicalRegister(numberofqubits , 'c')
qc = QuantumCircuit(q, c)

qc.h(0)
for i in range (qc.num_qubits - 1):
    qc.cnot(i, i + 1)

qc.measure_all()

job = backend.run(qc, shots=shots)
job_monitor(job)

result = job.result()
counts = result.get_counts()
print(counts)

Installting the Quantum Rings SDK for NVidia GPU

Quantum Rings SDK now supports Nvidia GPUs, either in the native mode or together with the toolkit for Qiskit.

The following steps outline the installation procedure.

STEP - 1

To obtain your license for the Quantum Rings SDK, register by selecting the Login option from the menu.

If you are already registered, you can skip this step.

Next, log in to the Quantum Rings portal. To download your access keys, select the Manage Keys option in the left sidebar.

STEP - 2

Update the NVIDIA drivers for your system. For some Linux distributions, you may need to install the NVIDIA drivers directly from the distribution. Please search for the documentation from your Linux operating system provider and follow their recommendation.

If you are installing on WSL-based Linux, you must update the NVIDIA driver in Windows. It will automatically apply to the WSL Linux instance.

Note down the driver version by running the nvidia-smi command in the terminal and observing the version displayed in the top panel. You will need to know the driver version to install the CUDA Toolkit later.

STEP - 3

Create a virtual environment for your python version using the following example.

virtualenv --python=/usr/bin/python3.11 myenv311
source myenv31/bin/activate

In some installations, the virtual environment can be created as follows:

python3.11 -m venv myenv311
source myenv311/bin/activate

Note that installing a python virtual environment may require additional steps.

You can optionally choose to install Jupyter notebook, at this time using the following command.

pip install notebook

STEP - 4

Choose the appropriate CUDA Toolkit (CTK) for your driver version. Section 2.2 CUDA Driver in Release notes outlines the CUDA Driver version range and the CUDA Toolkit (CTK) you could install. Install the CUDA Toolkit (CTK) by following the instructions in the link: CUDA Toolkit Follow the instructions on the screen after installing and setting up the CUDA Toolkit, and set the paths as directed.

If environment variables are not set correctly, linker errors will occur, and the SDK will not load. If you are a Windows user, see additional instructions in Section 6 to set up the DLL search path with Python.

If you are using your university supercomputer or a cloud environment with NVIDIA GPUs, your system administrator may already have installed the necessary runtime components optimized for your hardware platform. You may only need to select the CUDA Toolkit module. Selecting the CUDA Toolkit is typically done using a module loader, as shown below. Browse the modules installed in your system and choose the most recent CUDA Toolkit. Note that your system may use a different way of loading runtime components.

module load cuda-12.6.1-gcc-12.1.0

STEP - 5

To install the Quantum Rings SDK, use the command appropriate for your CUDA Toolkit version:

If you are using CUDA Toolkit version 13.x:

pip install quantumrings-nvidia-gpu

or

pip install quantumrings[cuda13x]

If you are using CUDA Toolkit version 12.x:

pip install quantumrings[cuda12x]

STEP - 6

Try running the following Python program in your Jupyter notebook to ensure everything is functioning correctly.

# For Windows users. Linux users may skip this.
# Setup the CUDA Toolkit path with Python
import os
import platform

if platform.system() == "Windows":
    cuda_path = os.getenv("CUDA_PATH", "")
    if "" == cuda_path:
        #set a hard-coded path
        cuda_path = "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v13.0\\bin\\x64"
    else:
        #create from the environment
        if "13" in cuda_path:
            cuda_path += "\\bin\\x64"
        else:
            cuda_path += "\\bin"

    os.add_dll_directory(cuda_path)
#
#

import QuantumRingsLib
from QuantumRingsLib import QuantumRegister, AncillaRegister, ClassicalRegister, QuantumCircuit
from QuantumRingsLib import QuantumRingsProvider
from QuantumRingsLib import job_monitor
from QuantumRingsLib import JobStatus
from QuantumRingsLib import OptimizeQuantumCircuit
from matplotlib import pyplot as plt
import numpy as np
import math

provider = QuantumRingsProvider(token =<YOUR_TOKEN_HERE>, name=<YOUR_ACCOUNT_NAME_HERE>)
backend = provider.get_backend("amber_quantum_rings")
numberofqubits = 50
shots = 100

q = QuantumRegister(numberofqubits , 'q')
c = ClassicalRegister(numberofqubits , 'c')
qc = QuantumCircuit(q, c)

qc.h(0)
for i in range (qc.num_qubits - 1):
    qc.cnot(i, i + 1)

qc.measure_all()

job = backend.run(qc, shots=shots)
job_monitor(job)

result = job.result()
counts = result.get_counts()
print(counts)

Using the GPU Mode

Certain programs with a large number of qubits (> 22), complex entanglement, and many gate operations can benefit from using a GPU.

To switch to the GPU mode, select the amber_quantum_rings backend as follows:

backend = provider.get_backend("amber_quantum_rings")

To switch to the CPU mode, select the scarlet_quantum_rings backend as follows:

backend = provider.get_backend("scarlet_quantum_rings")

You can also store the backend name in the configuration file using the key backend and allow the method provider.get_backend select it automatically by not providing any arguments. To save the backend name in the configuration file, please follow the instructions in the SDK. Once the backend name is saved in the configuration file, you can obtain the backend by providing no arguments to the provider.get_backend method as follows:

provider = QuantumRingsProvider()
backend = provider.get_backend()

Feedback and getting support

We love to hear from you! Please join our Discord community to discuss anything quantum computing.

SDK Documentation

FAQ (Requires you to login)

Managing your license keys (Requires you to login)

Need more qubits? Request here (Requires you to login)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quantumrings-0.11.2000-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file quantumrings-0.11.2000-py3-none-any.whl.

File metadata

File hashes

Hashes for quantumrings-0.11.2000-py3-none-any.whl
Algorithm Hash digest
SHA256 6171e176be1ac67d8ace13543376d1d8b6f418684cf8255158888dfd9d7a5ebe
MD5 656b314880a725bc434ca44f50acdd20
BLAKE2b-256 4df2eb55dc5e84c44a76ea499ab6cb42c2ce00f5490e618a2926d6e666ec00cd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page