QuantumArchitect MCP
Provides a web UI interface and MCP integration layer for the quantum circuit tools, enabling both browser-based interaction and AI agent connectivity.
Used for data validation and JSON schema definitions for MCP tool input/output handling.
Serves as the underlying quantum computing framework for circuit creation, simulation, validation, and hardware topology compatibility checking.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@QuantumArchitect MCPcreate a Bell state circuit and simulate it"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
title: QuantumArchitect MCP emoji: βοΈ colorFrom: indigo colorTo: purple sdk: gradio sdk_version: 6.0.1 app_file: app.py pinned: false license: mit short_description: Quantum Circuit Architect & MCP Server for AI Agents tags:
building-mcp-track-enterprise
building-mcp-track-consumer
building-mcp-track-creative
Google-Gemini-API
VIDEO: https://youtu.be/E1Ailx1X1YE SOCIAL: https://www.linkedin.com/posts/nicolas-larenas_quantumarchitect-mcp-a-hugging-face-space-activity-7401024993893044225-RF-R?utm_source=share&utm_medium=member_desktop&rcm=ACoAADmu0wIBjvA0DVdHvqncNUVTEW72gbiGUps
QuantumArchitect-MCP π¬βοΈ
A Python-based MCP (Model Context Protocol) Server for Quantum Circuit creation, validation, and evaluation. This serves as a "Quantum Logic Engine" that AI Agents can call upon to validate, score, and execute quantum logic.
π Features
Circuit Creation: Generate Bell States, GHZ States, QFT, Grover's Algorithm, and VQE Ansatz circuits
Circuit Validation: Syntax checking, connectivity validation for real hardware, unitarity verification
Circuit Evaluation: Statevector simulation, noise estimation, resource estimation
Circuit Scoring: Complexity metrics, expressibility scores, hardware fitness evaluation
MCP Endpoints: Full MCP protocol support for AI Agent integration
Hardware Profiles: Support for IBM, Rigetti, and other quantum hardware topologies
π¦ Installation
For Hugging Face Spaces
This project is designed to run directly on Hugging Face Spaces. Simply clone and deploy!
Local Installation
pip install -r requirements.txt
python app.pyπ Quick Start
1. Start the Application
python app.pyThe app will start at http://127.0.0.1:7861
2. Build Your First Circuit
Open the web interface in your browser
Go to the "Circuit Builder" tab
Click the "H" button to add a Hadamard gate
Click "Simulate" to see the results
View the Bloch sphere visualization of the qubit state
3. Try a Bell State
Go to the "Templates" tab
Select "Bell State" from the dropdown
Click "Load Template"
Click "Simulate" to see entangled output (50/50 probabilities)
4. Validate a Circuit
Go to the "Validate" tab
Paste or enter QASM code
Select target hardware (e.g., "ibm_eagle")
Click "Validate" to check syntax, connectivity, and unitarity
π§ Project Structure
QuantumArchitect-MCP/
βββ app.py # Main entry point (Gradio + MCP)
βββ requirements.txt # Dependencies
βββ pyproject.toml # Project configuration
βββ src/
β βββ mcp_server/ # MCP Protocol handling
β β βββ server.py # MCP capabilities definition
β β βββ schemas.py # JSON schemas for I/O
β β βββ context_provider.py # Resource providers
β βββ core/ # Quantum engine core
β β βββ circuit_parser.py # QASM/circuit parsing
β β βββ dag_representation.py # Internal DAG model
β β βββ exceptions.py # Custom exceptions
β βββ plugins/ # Modular components
β β βββ creation/ # Circuit generation
β β βββ validation/ # Circuit validation
β β βββ evaluation/ # Circuit evaluation
β β βββ scoring/ # Circuit scoring
β βββ data/ # Knowledge base
β βββ hardware_profiles/ # Hardware topology configs
β βββ reference_circuits/ # Standard algorithm references
βββ tests/ # Test suiteπ― MCP Endpoints
Creation Tools
create_bell_state: Generate a 2-qubit Bell state circuitcreate_ghz_state: Generate an N-qubit GHZ statecreate_qft: Generate Quantum Fourier Transform circuitcreate_grover: Generate Grover's search algorithmcreate_vqe_ansatz: Generate VQE variational ansatz
Validation Tools
validate_syntax: Check circuit syntax validityvalidate_connectivity: Verify hardware topology compatibilityvalidate_unitarity: Check if circuit is properly unitary
Evaluation Tools
simulate_statevector: Get ideal simulation resultsestimate_noise: Estimate circuit noise accumulationestimate_resources: Calculate required shots and resources
Scoring Tools
score_complexity: Get circuit depth, gate count, widthscore_expressibility: Evaluate VQC expressibility (QML)score_hardware_fitness: Rate circuit for specific hardware
π₯οΈ Usage
Web Interface
Access the Gradio UI at the deployed URL or http://localhost:7860 for local runs.
MCP Integration
Connect your AI Agent to the MCP endpoints:
# Example: Claude Desktop configuration
{
"mcpServers": {
"quantum-architect": {
"url": "https://your-space.hf.space/mcp"
}
}
}π Learning Path Integration
This tool follows the "Zero to Hero" quantum computing curriculum:
Level 0 (Beginner): Use creation templates (Bell, GHZ states)
Level 1 (Practitioner): Validate circuits against real hardware
Level 2 (Advanced): Evaluate noise and optimize for NISQ devices
Level 3 (PhD/Hero): Score expressibility and develop new algorithms
π€ AI Agent Integration
Available MCP Tools
Tool | Description | Parameters |
| Create from template |
|
| Parse OpenQASM code |
|
| Build custom circuit |
|
| Validate circuit |
|
| Check hardware compatibility |
|
| Simulate circuit |
|
| Get ideal statevector |
|
| Estimate hardware fidelity |
|
| Score circuit |
|
| Compare multiple circuits |
|
| Gate documentation |
|
| Algorithm explanation |
|
| List hardware profiles | - |
| List circuit templates | - |
| Get learning resources |
|
Supported Hardware Profiles
IBM Eagle (127 qubits, heavy-hex topology)
Rigetti Aspen (80 qubits, octagonal topology)
IonQ Aria (25 qubits, all-to-all connectivity)
Circuit Templates
bell_state- Maximally entangled 2-qubit stateghz_state- N-qubit GHZ entangled statew_state- N-qubit W statesuperposition- Uniform superpositionqft- Quantum Fourier Transformgrover- Grover's search algorithmvqe- VQE variational ansatzqaoa- QAOA optimization circuit
π§ͺ Running Tests
pytest tests/ -vπ License
MIT License - See LICENSE file for details.
π Acknowledgments
Built with:
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/NLarchive/QuantumArchitect-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server