Skip to main content

A Quantum Development Library

Project description

Welcome to the Quantum Rings SDK (CPU only mode)

Minimum System Requirements

A system with a configuration better than the minimum requirements is advised. Lower configurations may affect the number of qubits that can be supported and may perform poorly.

  • Operating systems recommended:

    • Ubuntu 22.04.4 LTS

    • Ubuntu 24.04.4 LTS

    • Windows 11 Pro

    • macOS 15

    • WSL2 based Linux instances

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

  • DDR5 or better memory channels recommended

  • 32 GB Installed physical memory

  • 18 GB Available physical memory

  • 64-bit Python version 3.11 or later

Installation Procedure

STEP - 1

Obtain your license to the Quantum Rings SDK by selecting the Login menu.

Skip this step, if you are already registered.

Login to the Quantum Rings portal. Download your access keys by selecting the Manage Keys menu in the left-hand side bar.

STEP - 2

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

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

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

python3.11 -m venv myenv
source myenv/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 - 3

Install the Quantum Rings SDK using the following command:

pip install QuantumRingsLib

STEP - 4

Store your credentials to the Quantum Rings SDK locally using the following commands from your terminal. Edit the <…> fields and enter the values provided for you.

If you are using the Jupyter notebook, open the termnial as follows:

From your Jupyter notebook, select File->New->Terminal. This launches the terminal window.

From this terminal window, create the configuration file holding the license key as follows:

mkdir ~/.config/quantumrings
echo -e '[default]\nemail = <YOUR_ACCOUNT_ID>\nkey = <YOUR_ACCESS_KEY>\nbackend = scarlet_quantum_rings' > ~/.config/quantumrings/quantumrings.conf

STEP - 5

Now, try the following 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()

Feedback and getting support

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

SDK Documentation

FAQ

Managing your license keys

Need more qubits? Requuest here

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 Distributions

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

quantumringslib-0.10.213-cp313-cp313-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.13Windows x86-64

quantumringslib-0.10.213-cp313-cp313-manylinux_2_34_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

File details

Details for the file quantumringslib-0.10.213-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for quantumringslib-0.10.213-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 5033456ac03006fcc2aa7b30f42d73fcc772bfc1dc4b1e0d899b703d9f8e404f
MD5 89fd0aeba3f9449e60383e2f5c52a68c
BLAKE2b-256 402dc19a99d29519cb6479e896c79b17ec69023ae2e0afe586b2357058271a56

See more details on using hashes here.

File details

Details for the file quantumringslib-0.10.213-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for quantumringslib-0.10.213-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 6462c931624235efa1ba7119cbdb5c9b32b192590e83242f3d8076da59b0e556
MD5 655fea91fb8e7b2e5df2bf6fe4f572f4
BLAKE2b-256 96547ee05604e821d365c3cd6966d4907108fcbe2481b7b8d7942ed34ad978b8

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