QuantumRouter
Unified interface for quantum cloud providers. One API, any backend.
Switching cloud vendors is a one-parameter change — the calling code stays identical.
Quick start
import quantumrouter
provider = quantumrouter.create_provider(
backend="lingyun", # change this to switch vendors
url="http://xx.xxxx.xx:xxxx", # cloud / simulation server
token="...", # optional for the simulation server
)
backends = provider.backends(online=True)
backend = backends[0]
task_ids = backend.submit_job(["QINIT 4\nH 0"], shots=1024)
results = backend.query_job(task_ids)
config = backend.fetch_configuration()
PCIe-direct (same entry point, different URL scheme):
provider = quantumrouter.create_provider(
backend="lingyun",
url="pcie:///dev/quantum0",
)
Examples
examples/basic_usage.py— list backends, submit a job, query results.examples/multi_vendor.py— switch between LingYun and IBM Quantum with a single parameter.examples/pcie_transport.py— use a PCIe transport instead of HTTP.
Run with:
python examples/basic_usage.py
Architecture
quantumrouter/
├── transport/ # generic wire layer (HTTP, PCIe, …)
├── backend/ # generic backend contract
└── providers/ # one subdir per cloud vendor
├── base.py / registry.py # shared abstraction + registry
└── lingyun/ # LingYun (凌云), self-contained
Adding a vendor: drop a quantumrouter/providers/<vendor>/ subpackage
that self-registers via ProviderRegistry.register(...). The
transport and backend layers stay untouched.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
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 quantumrouter-0.0.3-py3-none-any.whl.
File metadata
- Download URL: quantumrouter-0.0.3-py3-none-any.whl
- Upload date:
- Size: 52.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81f5362e67e92181ad0893ec22a9adf5a46373aa2f37f58b68f6b6555991cb09
|
|
| MD5 |
dc69515f5f49e1a8dd3e78a6794adfc8
|
|
| BLAKE2b-256 |
c3d1916183a66db331087ba453e9569418b204e3c857f6ad59669af0b0a9636f
|