Skip to main content

A Quantum Development Library

Reason this release was yanked:

Please use newer versions

Project description

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 system:

    • Preferred: Windows 11 Pro

  • 64-bit x86 CPU (14 cores 20 logical processors)

  • 32 GB Installed physical memory ( 64 GB Recommended )

  • 18 GB Available physical memory

  • 64-bit Python version 3.9

Installation

The Quantum Rings SDK can be installed directly using pip. Many users find Anaconda a good way to install the Quantum Rings SDK. From Anaconda, select a Python 3.9 channel and launch CMD.exe Prompt to go to the command prompt and execute the following command.

pip install QuantumRingsLib

If you do not have a Python 3.9 or higher channel, select Environments from the left channel, + Create button from the menu bar at the bottom and select Python 3.9 from the Create New Environment dialog.

Quantum Rings SDK requires a 64-bit version of Python 3.9.

Usage

Obtain your account name and token from the Quantum Rings team. You can then use them to create the backend for execution. You can follow the reference code below for further information:

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

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

provider.active_account()

Executing the Code

You can execute the code in the backend as illustrated below and setup a job monitor to watch for completion. The code is executed in a background thread so you can use your system normally.

Using job_monitor function

job = backend.run(qc, shots)
job_monitor(job)
result = job.result()
counts = result.get_counts()
print (counts)

Using wait_for_final_state function

def jobCallback(job_id, state, job):
    #print("Job Status: ", state)
    pass

# Execute the circuit
job = backend.run(qc, shots)
job.wait_for_final_state(0, 5, jobCallback)
counts = job.result().get_counts()

Version 0.3.1 Known Issues

  • qasm2 importer does not process include statements.

Project details


Download files

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

Source Distribution

QuantumRingsLib-0.3.2.tar.gz (1.3 MB view hashes)

Uploaded Source

Built Distribution

QuantumRingsLib-0.3.2-cp39-cp39-win_amd64.whl (1.3 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

Supported by

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