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/* |
client.generate |
Quantum Application Runtime | /api/v1/runtime/generate |
Generation with provenance
client.generate asks for a world, a character, a branch or a distribution and
gets back structured data plus the origin of the entropy behind it. The
output is classically derived from a quantum seed — it is not computed on a QPU,
and it is not faster because a QPU exists. What is certifiable is the seed's
origin, and the response names it along with the digest and the expander, so a
third party can reproduce the result without running our code.
gen = client.generate.terrain(width=128, height=128, biomes=6)
gen.data["heightmap"] # the world
gen.provenance.quantum # observed from the backend that answered — never echoed
gen.provenance.backend # e.g. "cloud_ibm" or "simulated"
gen.provenance.seed_sha256 # what makes the world reproducible
print(gen.certificate()) # the line you can publish
Every method returns a Generation, which cannot be built without provenance:
a response missing it raises ProvenanceMissingError rather than degrading into
bare data.
quantum_required=True fails rather than substituting. It defaults to
False on every method — today most deployments have no quantum entropy source
reachable, so True by default would fail every call. Set it whenever the
origin will be claimed publicly:
from softqcos_sdk import QuantumEntropyUnavailableError
try:
gen = client.generate.seed(quantum_required=True) # or .certified_seed()
except QuantumEntropyUnavailableError:
... # no quantum source answered. Decide explicitly — this SDK will not
# quietly retry classically on your behalf and hand back a result
# you would go on to describe as quantum.
Already have a result and only now need to claim its origin?
gen.require_quantum() raises unless provenance.quantum is true.
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_fez")
# 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_fez")
proof = client.dri.proof_run(backend="ibm_fez")
# Billing & ROI
estimate = client.billing.calculate(backend="ibm_fez", 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
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 softqcos_sdk-3.8.2.tar.gz.
File metadata
- Download URL: softqcos_sdk-3.8.2.tar.gz
- Upload date:
- Size: 63.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29dbcc3d690a011e3f0d111d20393dff6cf131a16f91d974e4071f13d7d1d193
|
|
| MD5 |
cd7b0c8e0048af1f8c4fae08ebf5892f
|
|
| BLAKE2b-256 |
bd28c3fd599d11b263268dc6458170154472cc4a20f816ab3598a8e9d39ea9ef
|
Provenance
The following attestation bundles were made for softqcos_sdk-3.8.2.tar.gz:
Publisher:
release-pipeline.yml on softquantus/qcos_core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
softqcos_sdk-3.8.2.tar.gz -
Subject digest:
29dbcc3d690a011e3f0d111d20393dff6cf131a16f91d974e4071f13d7d1d193 - Sigstore transparency entry: 2793902730
- Sigstore integration time:
-
Permalink:
softquantus/qcos_core@15d22c7d4fcf6745ed5fd1f0f84759c299b5ee9d -
Branch / Tag:
refs/tags/v3.8.2 - Owner: https://github.com/softquantus
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pipeline.yml@15d22c7d4fcf6745ed5fd1f0f84759c299b5ee9d -
Trigger Event:
push
-
Statement type:
File details
Details for the file softqcos_sdk-3.8.2-py3-none-any.whl.
File metadata
- Download URL: softqcos_sdk-3.8.2-py3-none-any.whl
- Upload date:
- Size: 91.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4005045be3cad2cf0af4822ea100003e202ad6d21b009f3125463cb3459046f6
|
|
| MD5 |
a6c07679f22c72d406666a5eb3982b09
|
|
| BLAKE2b-256 |
a754e5545202c282180c4aeaf355ce6023794374bfd154e14a6355b829da45a1
|
Provenance
The following attestation bundles were made for softqcos_sdk-3.8.2-py3-none-any.whl:
Publisher:
release-pipeline.yml on softquantus/qcos_core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
softqcos_sdk-3.8.2-py3-none-any.whl -
Subject digest:
4005045be3cad2cf0af4822ea100003e202ad6d21b009f3125463cb3459046f6 - Sigstore transparency entry: 2793902811
- Sigstore integration time:
-
Permalink:
softquantus/qcos_core@15d22c7d4fcf6745ed5fd1f0f84759c299b5ee9d -
Branch / Tag:
refs/tags/v3.8.2 - Owner: https://github.com/softquantus
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pipeline.yml@15d22c7d4fcf6745ed5fd1f0f84759c299b5ee9d -
Trigger Event:
push
-
Statement type: