Skip to main content

QDSV Bridge

QDSV Bridge is the QDSV interoperability service for circuit-based quantum workflows. Applications submit a bounded decision request and receive a portable OpenQASM or Qiskit-ready artifact when the request is within the service's supported scope.

Version 0.7.x uses a deliberately narrow public boundary. The SDK contains domain request builders, an HTTP client and artifact adapters. The QDSV translation and implementation that derive an artifact run only in the Bridge service.

Business-First Quickstart

Describe the prepared candidates and decision rule; Bridge returns a portable artifact without requiring the application to author a quantum circuit.

from qdsv_bridge import (
    QDSVBridge,
    const,
    field,
    predicate_request,
)

suppliers = [
    {"supplier_id": 101, "quality": 820, "compliance": 1},
    {"supplier_id": 102, "quality": 680, "compliance": 1},
    {"supplier_id": 103, "quality": 760, "compliance": 0},
]

request = predicate_request(
    candidates=suppliers,
    rule={
        "op": "and",
        "args": [
            {"op": "gte", "left": field("quality"), "right": const(700)},
            {"op": "eq", "left": field("compliance"), "right": const(1)},
        ],
    },
    format="qasm2",
)

artifact = QDSVBridge().export(request)

print(artifact.format)
print(artifact.artifact_digest)

The candidates keep their business identifiers. The SDK sends the bounded public request to Bridge; it does not construct a circuit locally.

Qiskit integration

Install the optional adapter:

pip install "qdsv-bridge[qiskit]"

Then load the recommended artifact into your own Qiskit workflow:

from qdsv_bridge import QDSVBridge

bridge = QDSVBridge()
artifact = bridge.export(request)
qc = artifact.to_quantum_circuit()

export() is explicit: it sends only the public domain request to Bridge. Before Qiskit parses anything, the adapter confirms that artifact_digest matches the exact returned OpenQASM bytes and that the public verification status passed. to_quantum_circuit() makes no network request.

Bridge does not select a backend, transpile for a device, execute a simulator or QPU, or interpret execution results. Those remain under the user's Qiskit or provider workflow. The SDK has no local construction or circuit-generation fallback.

Semantic composition candidates

The official Bridge backend can also report the status of QDSV's Semantic Composition Engine (SCE). SCE generates composite operation candidates from bounded structured expressions and only marks them OFFICIAL_CANDIDATE when the backend evidence includes both operation-program verification and semantic cross-check over the declared finite domain.

from qdsv_bridge import QDSVBridgeClient

client = QDSVBridgeClient()
capabilities = client.composition_capabilities()

candidate = client.generate_composition_candidate(
    name="policy_gate_score_v1",
    expression={
        "op": "select_if",
        "args": [
            {"op": "gte", "args": [{"var": "risk"}, 5]},
            {"op": "add", "args": [{"op": "mul", "args": [{"var": "risk"}, 2]}, {"var": "impact"}]},
            {"var": "impact"},
        ],
    },
    domains=[
        {"type": "int_range", "variable": "risk", "start": 0, "end": 7},
        {"type": "int_range", "variable": "impact", "start": 0, "end": 7},
    ],
)

print(candidate["candidate"]["state"])
print(candidate["evidence"]["semantic_cross_check"]["status"])

Reference outputs may be used by the backend to verify candidate semantics, but the evidence must report reference_answers_used_for_materialization = false. The SDK does not include the private compiler or operation synthesis internals.

Public boundary

The SDK's stable contracts are qdsv_bridge_domain.v1 for requests and qdsv_bridge_public.v1 for responses. The Qiskit adapter accepts qasm2 and qasm3 artifacts.

The public service does not return internal intermediate representations, lowering plans, private build identities, or compilation diagnostics. Do not send confidential, regulated or secret data to a public endpoint.

The distributable wheel and source package are checked before release against the 0.7 public-distribution policy. The check fails when an unexpected module, historical documentation, implementation marker or unapproved package file is present.

Migration from 0.6.x

Release 0.7.0 was intentionally breaking. Replace legacy request builders with predicate_request() or score_request(), and receive a verified public artifact through QDSVBridge().export(request). See the 0.7 migration guide in the documentation before upgrading an existing integration.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qdsv_bridge-0.7.1.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

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

qdsv_bridge-0.7.1-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file qdsv_bridge-0.7.1.tar.gz.

File metadata

  • Download URL: qdsv_bridge-0.7.1.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for qdsv_bridge-0.7.1.tar.gz
Algorithm Hash digest
SHA256 107bfa85d4ad22582fe01609b0b5a5b0f07aab1ff16b2e84d490b9404c0618d7
MD5 e78968f74b2b6d70f1d62f103bdffe7d
BLAKE2b-256 7977d72451773aa0c977e039e44bbcaf4debfcbb17eb826cb1917ca8233f8df6

See more details on using hashes here.

Provenance

The following attestation bundles were made for qdsv_bridge-0.7.1.tar.gz:

Publisher: publish-pypi.yml on qdsvquantum-afk/qdsv-bridge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qdsv_bridge-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: qdsv_bridge-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for qdsv_bridge-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 98f1c8adaffc80ba4817d3933239ae60e8e595e302282925efc30a51a7e5ffdc
MD5 e3e31300dee415c34ba6d9ac2e8deae3
BLAKE2b-256 4f18d014c5c0fc1c048788c95c0529cc5e47ffddb463e229b4fec00023672be9

See more details on using hashes here.

Provenance

The following attestation bundles were made for qdsv_bridge-0.7.1-py3-none-any.whl:

Publisher: publish-pypi.yml on qdsvquantum-afk/qdsv-bridge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.7.1 This release

2 files

0.7.0

2 files

0.6.7

2 files

0.6.6

2 files

0.6.5

2 files

0.6.4

2 files

0.6.3

2 files

0.6.2

2 files

0.6.1

2 files

0.6.0

2 files

0.5.4

2 files

0.5.3

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.4

2 files

0.4.3

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

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