qrouter

qrouter

Quantum natural-language retrieval MCP server that ranks text passages by semantic relevance using DisCoCat tensor diagrams compiled to variational circuits.

Category
Visit Server

README


title: qrouter emoji: 🔬 colorFrom: indigo colorTo: purple sdk: docker app_port: 7860 pinned: false license: mit short_description: "QNLP retrieval — DisCoCat + Born-rule overlap"

qrouter

📘 New: Build Your Own MCP Server With Auth + Billing — the 60-page guide ($29) Production stack used to ship this Space + ask-meridian.uk.

Quantum natural-language retrieval for scientific knowledge.

A research artifact: route queries to relevant text by encoding both as quantum states (DisCoCat tensor diagrams compiled to variational circuits) and ranking via Born-rule overlap. Classically simulable now; designed to also run on Quantinuum H-series and (with embedding) Xanadu photonic processors.

Live demo: https://qrouter.ask-meridian.uk

$ curl 'https://qrouter.ask-meridian.uk/rank?q=photons+going+through+barriers&top_k=3'

See docs/deploy.md for the hosting architecture (systemd + Cloudflare Tunnel on a shared VM) and how to flip the server between stub and lambeq backends.

Status

Working name. Day-1 scaffold. Not a product. Not stable. Not even opinionated yet.

What this is and is not

Is: an experiment in whether compositional quantum-semantic structure (à la Coecke et al.) gives meaningfully different retrieval behavior than classical dense embeddings — particularly on small corpora where the geometric structure matters more than scale.

Is not: a faster retriever, a better embedder, or anything you should use in production. Quantum circuit simulation is slower than cosine(a, b) on classical hardware. The point is whether the structure matters, not whether it's fast.

Stack

  • Python 3.12+
  • lambeq — DisCoCat parsing + circuit compilation
  • PennyLane — variational quantum circuits + autodiff
  • JAX — gradients (lambeq supports this backend)
  • pytest, ruff
  • uv for env management

First-week plan

  1. Day 1-2: read Coecke "Mathematical Foundations of QNLP" (2020) + Lorenz et al. "QNLP in Practice" (2023). Run lambeq's MNIST tutorial.
  2. Day 3-4: 50 arXiv quant-ph abstracts → DisCoCat parses → simulated circuits → pairwise Born-rule overlap → toy retrieval demo.
  3. Day 5-6: wire to MCP stdio so qrouter is callable from Claude / Cursor / Windsurf as a tool.
  4. Day 7: decide — go deeper into pure QNLP, or branch toward photonic reservoir front-end.

References

  • Coecke, B., de Felice, G., Meichanetzidis, K., Toumi, A. (2020). Foundations for Near-Term Quantum Natural Language Processing.
  • Lorenz, R., Pearson, A., Meichanetzidis, K., Kartsaklis, D., Coecke, B. (2023). QNLP in Practice: Running Compositional Models of Meaning on a Quantum Computer. JAIR 76.
  • Quantinuum lambeq: https://github.com/CQCL/lambeq

License

MIT (see LICENSE).

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured