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
#
# Post-quantum signatures work: liboqs 0.16.0 is built into the API image, and
# navcore.algorithms() reports per scheme what the deployment can sign with.
# The keys are client-held — pqc_keypair returns the private key once, the
# server keeps no copy, and pqc_sign takes it back as a request field.
kp = client.navcore.pqc_keypair(algorithm="ml-dsa-65")
sig = client.navcore.pqc_sign(
    message=b64_message, private_key=kp["private_key"], key_id=kp["key_id"]
)
ok = client.navcore.pqc_verify(
    message=b64_message,
    signature=sig["signature"],
    public_key=kp["public_key"],
    algorithm=sig["mechanism"],   # the exact mechanism, matched exactly
)["valid"]
#
# Two 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
# 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 Distribution

softqcos_sdk-3.7.0.tar.gz (55.2 kB view details)

Uploaded Source

Built Distribution

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

softqcos_sdk-3.7.0-py3-none-any.whl (80.7 kB view details)

Uploaded Python 3

File details

Details for the file softqcos_sdk-3.7.0.tar.gz.

File metadata

  • Download URL: softqcos_sdk-3.7.0.tar.gz
  • Upload date:
  • Size: 55.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.7

File hashes

Hashes for softqcos_sdk-3.7.0.tar.gz
Algorithm Hash digest
SHA256 3d5a79054cb73a1dc2b96a0364d23e860503e42bfbf5fecbc28f5de121a5eb77
MD5 f8b14bc9af3d2444915dc8b069cb60eb
BLAKE2b-256 68400cdbad4ee0029ec214b978c600a7d2f6744336f2dc55f4d6ced6a5d03603

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for softqcos_sdk-3.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1663402552da1c2b54913ed32ece86ac6330ac817321de72ca456fb5e759db4
MD5 8f10c8ecdc503bb199d9b70438257415
BLAKE2b-256 124db331325afb95221bea7385eac525831a2aad3cb108c10dd3874e986583da

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

This release

3.7.0 This release

2 files

3.6.1

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