Skip to main content

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quantumrouter-0.0.2-py3-none-any.whl (46.9 kB view details)

Uploaded Python 3

File details

Details for the file quantumrouter-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: quantumrouter-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 46.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for quantumrouter-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c0c84750bfe5c6e0571b8b1083f1954bc04d1690aaff54a1f9831358d413fbfc
MD5 83dce7973d2b5c684994ba3f476f7fd4
BLAKE2b-256 0daeb4e6dd16ec806f9216786eada368551a4b87cd2b039e77f569fc07e3f904

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.5

1 file

0.0.4

1 file

0.0.3

1 file

This release

0.0.2 This release

1 file

0.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page