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.3-py3-none-any.whl (52.9 kB view details)

Uploaded Python 3

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

Hashes for quantumrouter-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 81f5362e67e92181ad0893ec22a9adf5a46373aa2f37f58b68f6b6555991cb09
MD5 dc69515f5f49e1a8dd3e78a6794adfc8
BLAKE2b-256 c3d1916183a66db331087ba453e9569418b204e3c857f6ad59669af0b0a9636f

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.5

1 file

0.0.4

1 file

This release

0.0.3 This release

1 file

0.0.2

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