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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for QuantumRingsLib-0.3.2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce623616d4987af0a8c192f012455b37fbad30cec85cfa4910a90daa7a756ae6 |
|
MD5 | b5bcb9b361be185024ef5fd0752d2898 |
|
BLAKE2b-256 | ee2899fa34d6907548b89aa3b298cb98076845bc2b318c8d9a09703ba7832efa |