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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for qcos_driver_sdk-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d0a44bf077eb9ce38a544a7f4112d5c03e60ea4113fe27ba3c73861af719bb90
MD5 07c602e462a7ff4a9985c641c5350e67
BLAKE2b-256 a35456fca9b96ef73c0d565af68acd02dd617cb41c6769b12a7e7b5c7ad9e747

See more details on using hashes here.

Release history Release notifications | RSS feed

1.2.0

1 file

This release

1.1.0 This release

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