Skip to main content

⚛️ QDB (Quantum-Inspired Deductive Database)

PyPI Version License Python

QDB is a lightweight, zero-API, quantum-inspired deductive database and thermodynamic reasoning engine that beats Vector RAG at multi-hop reasoning, contradiction suppression, and deterministic math.


⚡ Key Highlights

  • 15-Hop Unbroken Causal Deduction: Traverses deep reasoning chains in $< 200\text{ms}$ with zero vector drift using Lie-Group continuous state evolution.
  • Anti-Ferromagnetic Contradiction Invalidation: Injects $+50.0\text{J}$ mathematical repulsion barriers to suppress stale/contradictory facts.
  • Contextual Semantic Opposition: Resolves subtle figurative colloquialisms ("showed him the door") without dictionary dependencies.
  • Deterministic AST Arithmetic: $0.0%$ arithmetic hallucination on financial, numeric, and scientific documents.
  • Bi-Temporal Lineage: Native point-in-time time travel (as_of_time=2021.0) with non-destructive graph mutation.
  • Zero-API, 100% Air-Gapped Privacy: Runs locally on CPU/GPU ($< 150\text{MB}$ RAM) with zero cloud token bills.

📦 Installation

pip install qdb-ai

🚀 Quickstart (Python)

from qdb import Vault

# 1. Initialize local zero-copy vault
vault = Vault("production_vault")

# 2. Ingest structured facts or raw documents
vault.ingest("Dr. Aris Thorne was appointed Chief Cryptographer in 2021.", timestamp=2021.0)
vault.ingest("Dr. Thorne's security clearance was revoked after an audit in 2024.", timestamp=2024.0)

# 3. Quantum-inspired multi-hop reasoning
response = vault.ask("Does Dr. Thorne have active security clearance?")
print(response)
# Output: Deduces clearance is REVOKED (+50J anti-ferromagnetic suppression)

🌐 Standalone REST & OpenAI-Compatible Streaming Server

Start the server from the command line:

qdb server --port 8000

Connect using standard OpenAI SDK or TypeScript:

from openai import OpenAI

client = OpenAI(base_url="http://localhost:8000/v1", api_key="not-needed")
response = client.chat.completions.create(
    model="qdb-quantum-reasoner",
    messages=[{"role": "user", "content": "What happened to Dr. Thorne?"}],
    stream=True
)
for chunk in response:
    if chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="")

📜 License

Released under the MIT License.

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.

qdb_ai-1.7.1-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

Details for the file qdb_ai-1.7.1-py3-none-any.whl.

File metadata

  • Download URL: qdb_ai-1.7.1-py3-none-any.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.10.10

File hashes

Hashes for qdb_ai-1.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c4190d753ff7ecb24035c3c7c1f2380b08b9205e56c9cadc8f672ac42a668666
MD5 d8e7636dba4b27ce9b3bde020fc9ab79
BLAKE2b-256 ed751db670750f5512365c500fa0e594d1df624cf4b133df460bceda2fe79781

See more details on using hashes here.

Release history Release notifications | RSS feed

2.1.1

2 files

2.1.0

2 files

2.0.0

2 files

1.9.7

2 files

1.9.6

2 files

1.9.5

2 files

1.9.4

2 files

1.9.3

2 files

1.9.2

2 files

1.9.1

2 files

1.9.0

2 files

1.8.9

2 files

1.8.8

2 files

1.8.7

2 files

1.8.6

2 files

1.8.5

2 files

1.8.4

2 files

1.8.3

2 files

1.8.2

2 files

1.8.1

2 files

1.8.0

2 files

1.7.9

2 files

1.7.8

2 files

1.7.7

2 files

1.7.6

2 files

1.7.5

2 files

1.7.4

2 files

1.7.3

2 files

1.7.2

2 files

This release

1.7.1 This release

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page