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) # no explicit creg — measure_all() adds its own
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=....
Tip: don't call
measure_all()on a circuit built asQuantumCircuit(2, 2)— Qiskit then appends a second classical register and your counts come back as 4-bit keys ('0000','1100') instead of'00'/'11'.
"roro.sim.sv" is a target id — the targetId field of each machines()
entry. (On the wire submit_run sends it as machineTargetId; the API accepts
targetId as an alias.)
Qiskit provider
from qiskit import QuantumCircuit
from roro.provider import RoRoProvider
qc = QuantumCircuit(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/.
Metadata
Release files for roro-quantum 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| roro_quantum-0.4.1.tar.gz | 15.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| roro_quantum-0.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.3 kB
Release files / roro_quantum-0.4.1.tar.gz
| Download URL | roro_quantum-0.4.1.tar.gz |
|---|---|
| Size | 15.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0cbc983176093133bb96062b85ab7b96f242ab26a7e53091a6d2bd0ef4f59273
|
|
BLAKE2b-256 checksum How to use checksums |
3e50f64ee82fc98efeef8ee2512b8c5001b99393352d663584bc7a7710e3fda8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / roro_quantum-0.4.1-py3-none-any.whl
| Download URL | roro_quantum-0.4.1-py3-none-any.whl |
|---|---|
| Size | 14.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
250316d56a6b40234207ad50f57ee05f063ace26bca17c0db4c107ca73dfd91d
|
|
BLAKE2b-256 checksum How to use checksums |
ec4ee5500af9312908987c5ff28f49a91b04677c50889cb8ae392ea7dafd3b22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Security for roro-quantum 0.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.