Skip to main content

QCOS Driver SDK

Implement one class, pass one conformance suite, and your QPU runs under QCOS — calibration, predictive routing (PSR), QEC advisor, error mitigation, billing and the canonical runtime API included. You never need (or receive) the QCOS core source.

Install

pip install qcos-driver-sdk[conformance]

The SDK is for the vendor workstation/CI. Never install it on a QCOS server host — the server already provides the hal package; your driver wheel must depend on the SDK only via an optional extra (see examples/vendor-driver-demo).

1. Implement your driver

Two methods are mandatory; everything else has defaults. Copy ReferenceSimulatorDriver as a full-contract template.

from qcos_driver_sdk import (
    BackendIdentity, DeviceCapabilities, HardwareSpec, QPUDriver,
)

class AcmeDriver(QPUDriver):
    targets = ("acme.lab1",)          # backend ids you serve

    def device_capabilities(self) -> DeviceCapabilities:
        return DeviceCapabilities(
            backend=BackendIdentity(id="acme.lab1", name="ACME Lab-1", provider="acme"),
            hardware=HardwareSpec(num_qubits=20, is_simulator=False),
        )

    def execute(self, circuit, shots=1024):
        # circuit arrives as OpenQASM 2.0 text at the QCOS dispatch seam;
        # ACOS-ISA certification additionally feeds qiskit QuantumCircuit
        # objects — see ReferenceSimulatorDriver._to_qasm for the pattern.
        counts = my_control_stack.run(circuit, shots)
        return {
            "job_id": "...", "backend_id": "acme.lab1", "shots": shots,
            "counts": counts, "execution_time_ms": 12.3,
            "timestamp": "...", "status": "completed",
        }

Rules the dispatch seam enforces:

  • Provenance is honest. Declare is_simulator truthfully; undeclared provenance is reported as simulated, never as real hardware.
  • Failures are explicit. Raise, or return status: "failed" in-band — both are authoritative. QCOS never substitutes a simulator for your id.
  • Declared limits are enforced by you. ACOS-ISA-006 submits circuits exceeding your declared limits and expects a limit error.

2. Certify

qcos-driver-cert acme_qcos_driver:AcmeDriver --backend-id acme.lab1 --output report.json

Exit code 0 = certified (ACOS-ISA v1.0, 10/10, "QCOS Compatible"). Runs on real hardware use --execution-mode hardware; certification tiers, signed evidence bundles and the public registry are handled by the SoftQuantus certification program (partnerships@softquantus.com).

3. Ship

Package your driver as a wheel with a qcos.drivers entry point:

[project.entry-points."qcos.drivers"]
acme = "acme_qcos_driver:AcmeDriver"

pip install acme-qcos-driver on the QCOS host is the whole deployment: the unified dispatch seam resolves acme.lab1 through your driver, and the real-QPU gates (kill-switch, payment, tier) apply automatically.

Building this SDK (SoftQuantus internal)

The wheel force-includes hal/ and the ACOS-ISA suite from the server tree — one source of truth, never edit copies here. Build wheels only:

python -m build --wheel sdk-driver

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.

qcos_driver_sdk-1.2.0-py3-none-any.whl (92.5 kB view details)

Uploaded Python 3

File details

Details for the file qcos_driver_sdk-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for qcos_driver_sdk-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0369c798e261b165b2589358c6989c6c3c9d5629f4cdee183216eff7bc537b7c
MD5 a8857df869bfac913aad5fc82932477a
BLAKE2b-256 198b4df0daadbb0218ba759c323e5538be3ad67196307924931e7ad1c3e8c421

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.2.0 This release

1 file

1.1.0

1 file

1.0.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