RoRo Quantum SDK — run circuits on the RoRo quantum cloud with an API key
Project description
roro-quantum (Python SDK)
Run quantum circuits on the RoRo Quantum cloud with an API key.
pip install roro-quantum # REST client
pip install "roro-quantum[qiskit]" # + Qiskit BackendV2 provider
Quickstart
from roro import RoRoClient
from qiskit import QuantumCircuit
qc = QuantumCircuit(2, 2)
qc.h(0); qc.cx(0, 1)
qc.measure_all()
roro = RoRoClient(api_key="qcs_live_…")
job = roro.submit_run("roro.sim.sv", shots=5000, circuit=qc, wait=True)
print(job["status"], job["counts"]) # completed {'00': 2500, '11': 2500}
You can also pass raw QASM 2.0 via qasm=... instead of circuit=....
Qiskit provider
from qiskit import QuantumCircuit
from roro.provider import RoRoProvider
qc = QuantumCircuit(2, 2)
qc.h(0); qc.cx(0, 1); qc.measure_all()
backend = RoRoProvider(api_key="qcs_live_…").get_backend("roro.sim.sv")
result = backend.run(qc, shots=5000).result()
print(result.get_counts())
API
| Method | Description |
|---|---|
RoRoClient(api_key, base_url=…) |
Create a client |
.machines() |
List available targets |
.submit_run(target, shots=1024, qasm=None, circuit=None) |
Submit a run |
.runs(limit=None, offset=None) / .run(id) |
List runs (newest first; paginate with limit 1–200 + offset, omit for full history) / fetch one |
Errors raise roro.RoRoError (with .status). Get your API key in the
console. Full docs: https://roroquantum.com/docs/.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file roro_quantum-0.3.0.tar.gz.
File metadata
- Download URL: roro_quantum-0.3.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
acae0945a2145c2dcc2aca63bf383c4b72b9015fd285bf4e38032f2d81f2d79d
|
|
| MD5 |
dbf3f0eb1b21da7757568b41a9bd311e
|
|
| BLAKE2b-256 |
8fc69390d3caa4df9bab2f87341d48fcf34cb4356778f356028dc776d6337e4e
|
File details
Details for the file roro_quantum-0.3.0-py3-none-any.whl.
File metadata
- Download URL: roro_quantum-0.3.0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
702f8ebbaf81e2f61ec12be58bf2edbeebff6900a25c5ec63c27581f99c130c2
|
|
| MD5 |
a7b438af8a74e50f7350b50fac7e1c43
|
|
| BLAKE2b-256 |
6bc7fb86aadb2c4122c059b8946c5b3c316c396711957e8c21b266041d560732
|