Lightweight Python client for QDSV Bridge, a controlled semantic-to-IR/oracle/circuit compiler.
Project description
QDSV Bridge Developer Preview
Lightweight Python SDK for QDSV Bridge, a controlled semantic compiler that turns supported problem-family specifications into QDSV IR, oracle specs, QASM blueprints, or integration-ready circuit scaffolds.
QDSV Bridge is not a free circuit generator. It is a restricted semantic-to-circuit bridge for supported problem families.
problem family spec
-> family ontology validation
-> semantic ProblemSpec / IR
-> oracle specification
-> materialization policy
-> QASM / Qiskit blueprint when the target requires circuits
The SDK is a client only. It does not include the private QDSV Runtime, CAP, backend selector, lowering internals, QuEST/Aer/IBM adapters, or advanced orchestration.
pip install qdsv-bridge
Why This Exists
Traditional quantum workflows often start by asking users to choose a circuit, encoding, ansatz, or measurement pattern. That can force the data to adapt to a circuit.
QDSV Bridge starts from a controlled semantic family. The family defines what kind of problem is allowed, what concepts belong to it, what patterns are excluded, and what evidence must be produced. Circuit materialization is only one possible export when another platform requires it.
For example, in signal classification:
prepared signals
-> semantic_signal_classification
-> preserve signal geometry
-> oracle / IR / QASM blueprint
This is designed to avoid a fixed pattern such as:
forced reduction -> angle encoding -> fixed ansatz -> fixed measurement
Quick Start
from qdsv_bridge import QDSVBridgeClient
client = QDSVBridgeClient()
spec = {
"family": "semantic_signal_classification",
"state_space": {
"kind": "finite_candidates",
"candidate_count": 300,
"candidate_id": "eeg_window",
},
"signals": [
"dwt_cD3_std_score",
"std_score",
"activity_score",
"energy_score",
"dwt_cD2_std_score",
"complexity_score",
],
"goal": {
"kind": "binary_marking",
"positive_state": "ictal",
},
"materialization_policy": {
"preserve_signal_geometry": True,
"avoid_fixed_ansatz": True,
"avoid_forced_dimensionality_reduction": True,
"report_information_loss": True,
},
"target": {
"format": "qasm3",
"backend_family": "qiskit",
},
"limits": {
"max_qubits": 10,
"max_depth": 300,
},
}
result = client.export(spec)
print(result["status"])
print(result["semantic_preservation_report"])
print(result["artifact"]["content"])
Public Endpoints
The SDK calls the QDSV API:
GET /api/bridge/familiesPOST /api/bridge/validatePOST /api/bridge/compilePOST /api/bridge/explainPOST /api/bridge/export
Default cloud endpoint:
client = QDSVBridgeClient(api_url="https://api.qdsv.cloud/api")
Local/private Docker endpoint:
client = QDSVBridgeClient.local()
Supported Families
Developer Preview families:
semantic_signal_classificationpredicate_markingstate_similaritycombinatorial_relationdistribution_sampling
Each family has:
- ontology boundary;
- allowed state-space kinds;
- allowed goal kinds;
- allowed semantic operations;
- excluded patterns;
- public limits;
- export targets;
- evidence / digest contract.
What It Exports
Depending on target.format, QDSV Bridge can export:
problem_speciroracle_specqasm2qasm3qiskit_blueprint
QASM outputs are bridge blueprints with explicit semantic oracle insertion points and QDSV digests. External platforms should inspect the returned preservation report, qubit/depth limits and oracle digest before executing or optimizing the generated artifact.
Important Boundaries
QDSV Bridge does not expose:
- QDSV Runtime internals;
- CAP internals;
- backend selection heuristics;
- private QuEST/Aer/IBM adapters;
- native lowering internals;
- unrestricted circuit generation;
- arbitrary Python execution;
- user-supplied free circuits as family contracts.
The product principle is:
controlled semantic family
-> flexible materialization
-> auditable export
Not:
any input
-> arbitrary circuit
Open SDK, Private Runtime
This repository is open-core:
- Open under MIT: Python client SDK, examples, docs and tests.
- Not included: QDSV Runtime, ontology compiler internals, CAP, lowering, advanced materialization, backend adapters, private endpoints, secrets or production configuration.
QDSV, QIntent and Qruba names and marks are project marks of their respective owners. The MIT License for this repository does not grant trademark rights.
Project details
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 qdsv_bridge-0.1.0.tar.gz.
File metadata
- Download URL: qdsv_bridge-0.1.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d519422ccac38be406dd8ff033fbd24b1b7da9bd0c930b2eba2acd71d03f09e3
|
|
| MD5 |
3539696380d99afc769475f263c6c662
|
|
| BLAKE2b-256 |
3d6cdfd0cfc5a57bf6d6ec2fe9f39fc5fd22983bcbac2f71fedf734035d84c86
|
File details
Details for the file qdsv_bridge-0.1.0-py3-none-any.whl.
File metadata
- Download URL: qdsv_bridge-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73f7b3e9f449bc84c3e594ce6ba4a4d4cb49ea5ccdf549932e25ac2562f0653d
|
|
| MD5 |
5407b56f200e3627ca8a5e27753af660
|
|
| BLAKE2b-256 |
0ccea10bc821f171c6456ec5ad597cfdda489af8f201c774ffb85de52b565ca0
|