Skip to main content

SoftQCOS™ SDK v3.5

Typed, synchronous Python client for the SoftQuantus QCOS™ API Gateway. Covers the documented product surface; it is not a wrapper over every mounted route.

pip install softqcos-sdk

Quick Start

from softqcos_sdk import QCOSClient

client = QCOSClient(api_key="sk-...")

# Submit a quantum job
job = client.jobs.submit(qasm="OPENQASM 2.0; ...", shots=1024)
result = client.jobs.wait(job["job_id"])
print(result["result"]["counts"])

# Or use the blocking shortcut
result = client.jobs.execute(qasm="OPENQASM 2.0; ...", shots=1024)

Product APIs

Property Product Prefix
client.jobs QCOS Jobs™ /v1/jobs/*
client.circuits QCOS Circuits™ /api/v1/circuits/*
client.bench QCOS Bench™ /api/v1/bench/*
client.calibration QCOS GlassBox™ /api/v1/glassbox/*
client.billing QCOS ROI Engine™ /api/v1/roi/*
client.network QCOS QuantumNet™ /api/v1/network/*
client.qec QCOS QEC Runtime™ /api/v1/qec/*
client.isolation QCOS ZoneGuard™ /api/v1/isolation/*
client.dri QCOS DRI™ /api/v1/dri/*
client.ledger QCOS QuantumLedger™ /api/v1/ledger/*
client.navcore QCOS NavCore™ /api/v1/navcore/*
client.acos ACOS-ISA™ /api/v1/acos/*
client.macro Quantum Macro™ /api/v1/macro/*
client.admin withdrawn 2026-07-28 /api/admin/* returns 404
client.evidence QCOS Evidence™ /api/v1/runtime/jobs/{id}/artifacts/*
client.backends QCOS Backends™ /api/v1/backends/*

Async Client

Not available. There is no AsyncQCOSClient; importing it raises ImportError. Every method on QCOSClient is synchronous.

QCOSClient does define __aenter__ / __aexit__, so async with QCOSClient(...) enters without complaint — but the first await client.jobs.submit(...) fails, because submit is not a coroutine. Do not rely on that context manager as evidence of async support.

Run the client in a thread if you need it off the event loop:

import asyncio
from softqcos_sdk import QCOSClient

client = QCOSClient(api_key="sk-...")
result = await asyncio.to_thread(
    client.jobs.execute, qasm="OPENQASM 2.0; ...", shots=1024
)

Configuration

Environment Variable Description Default
QCOS_API_KEY API key (required if not passed to ctor)
QCOS_API_URL API gateway URL https://api.softquantus.com

Examples

# Calibration
devices = client.calibration.devices()
state = client.calibration.device_state("ibm_brisbane")

# Benchmarking
report = client.bench.run(backend="aer_simulator", suite="standard")
client.bench.verify(report["benchmark_id"])

# DRI — Device Reliability Index
dri = client.dri.run(backend="ibm_brisbane")
proof = client.dri.proof_run(backend="ibm_brisbane")

# Billing & ROI
estimate = client.billing.calculate(backend="ibm_brisbane", shots=10000)
plans = client.billing.plans()

# NavCore — GNSS/PNT
#
# Three calls were listed here that do not work against the deployed service and
# have been removed rather than left as examples:
#   navcore.navigate(...)      -> the route does not exist (404)
#   navcore.qrng_bytes(...)    -> 503, the QRNG backend is not configured
#   navcore.pqc_keypair(...)   -> 503, liboqs is not installed, so no PQC keypair
#                                 can be produced (see the NavCore whitepaper §4.3)
# The read-only NavCore endpoints under /api/v1/navcore/* respond normally.

# Network — Multi-QPU
topo = client.network.topology()
# network.teleport(...) is omitted deliberately: the endpoint accepts a request
# but does not complete a teleport against real nodes. Do not build on it yet.

# Error handling
from softqcos_sdk import QCOSError, AuthenticationError, RateLimitError

try:
    result = client.jobs.submit(qasm="invalid")
except RateLimitError as e:
    print(f"Rate limited — retry after {e.retry_after}s")
except AuthenticationError:
    print("Invalid API key")
except QCOSError as e:
    print(f"API error: {e}")

License

Copyright © 2024-2026 SoftQuantus innovative OÜ. All Rights Reserved.

QCOS™ is a trademark of SoftQuantus innovative OÜ. Registry Code: 17048927 | Tallinn, Estonia

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.

softqcos_sdk-3.6.1-py3-none-any.whl (72.7 kB view details)

Uploaded Python 3

File details

Details for the file softqcos_sdk-3.6.1-py3-none-any.whl.

File metadata

  • Download URL: softqcos_sdk-3.6.1-py3-none-any.whl
  • Upload date:
  • Size: 72.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for softqcos_sdk-3.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 48f46c9104151618edf0af2f200ec9a4c8c35d1a3cb942a2d293c59c85b330a4
MD5 90a29eea9c146588980ab0a4fc0093fc
BLAKE2b-256 6289f56d73c8502e6c808ea3c9050d297ed94a3e5c4394eb21e1973d67829b5e

See more details on using hashes here.

Release history Release notifications | RSS feed

3.8.2

2 files

3.8.1

2 files

3.8.0

2 files

3.7.0

2 files

This release

3.6.1 This release

1 file

3.5.0

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