Funky Junction
Enables quantum circuit design and electromagnetic simulation optimization through Qiskit Metal and Octave/OpenEMS. Provides 25+ specialized tools across two integrated MCP servers for designing transmon qubits, analyzing CPW transmission lines, and automating parameter optimization workflows.
README
<div align="center"> <img src="logo.png" alt="Funky Junction Logo" width="300">
Funky Junction
Quantum Hardware Optimization Platform
A comprehensive MCP server ecosystem for quantum circuit design using Qiskit Metal and electromagnetic simulation via Octave/OpenEMS.
Built by Team Silicon Architects at the Stanford MCP x Quantum Science Hackathon 2025
Team Members: Sarah Dweik, Sebastien Boussard, Paul Goldschmidt, & Gabriel Dupuis </div>
š Features
- š§ Quantum Circuit Design: Complete design workflow with Qiskit Metal
- ā” EM Simulation: Full-wave electromagnetic analysis using Octave/OpenEMS
- š Optimization Loops: Automated parameter optimization with convergence detection
- š Learning Resources: Python examples and research paper access
- š¤ Dual MCP Architecture: 25+ specialized tools across two integrated servers
š Installation
Prerequisites
- Python 3.8+, Octave 4.0+, OpenEMS, Git
Quick Install
# Clone repository
git clone https://github.com/PaulGoldschmidt/qsim-mcp.git
cd qsim-mcp
# Install Python dependencies
pip install -r requirements.txt
# Install system dependencies (Ubuntu/Debian)
sudo apt update && sudo apt install octave openems
# Verify installation
python -c "import qiskit_metal; print('ā Qiskit Metal ready')"
octave --version && openEMS --version
š Quick Start
Start Both MCP Servers:
# Terminal 1 - Qiskit Metal Server
cd src/qiskit-metal-mcp && python quantum_hardware_mcp_server.py
# Terminal 2 - Octave OpenEMS Server
cd src/octave-mcp && python octave_openems_server.py
Basic Optimization Workflow:
# 1. Design Phase
create_design()
set_design_variables(cpw_width='10um', cpw_gap='6um')
create_transmons(q1_pos_x='-2.5mm', q2_pos_x='2.5mm')
export_design_to_gds('./quantum_design.gds')
# 2. Simulation Phase
create_cpw_octave_simulation(name='opt_v1', width=10.0, gap=6.0)
run_octave_simulation('opt_v1')
# 3. Analysis & Iteration
analyze_octave_impedance('opt_v1')
# Adjust parameters if needed and repeat
# 4. Export Results
export_octave_results('opt_v1', export_format='touchstone')
š Project Structure
qsim-mcp/
āāā src/
ā āāā qiskit-metal-mcp/ # Quantum circuit design server
ā ā āāā quantum_hardware_mcp_server.py
ā ā āāā requirements.txt
ā āāā octave-mcp/ # EM simulation server
ā ā āāā octave_openems_server.py
ā ā āāā requirements.txt
ā āāā resources/ # Examples and papers
āāā requirements.txt # Combined dependencies
āāā README.md
š§ Available Tools
Qiskit Metal Design Tools
create_design()- Initialize quantum circuit designset_design_variables()- Configure CPW parameters (cpw_width,cpw_gap)create_transmons()- Add transmon qubits with positioningadd_coupler()- Create spiral inductors (n_turns,spacing)connect_components()- Route CPW transmission linesexport_design_to_gds()- Export for fabricationvisualize_gds_with_klayout()- Professional visualization
Octave/OpenEMS Simulation Tools
create_cpw_octave_simulation()- Set up EM simulationrun_octave_simulation()- Execute full-wave analysisextract_octave_s_parameters()- Analyze S11, S21 parametersanalyze_octave_impedance()- Verify 50Ī© characteristic impedanceexport_octave_results()- Export to Touchstone, CSV, JSONlist_octave_simulations()- View completed simulations
š Optimization Workflow
- Set Targets: Define optimization goals (impedance, Q-factor, coupling)
- Design: Create/modify quantum circuit components in Qiskit Metal
- Simulate: Run electromagnetic analysis with synchronized parameters
- Analyze: Compare results against targets
- Iterate: Adjust parameters until convergence
- Export: Generate GDS files and simulation reports
āļø Configuration
MCP Client Setup:
{
"mcpServers": {
"qiskit-metal": {
"command": "python3",
"args": ["src/qiskit-metal-mcp/quantum_hardware_mcp_server.py"]
},
"octave-openems": {
"command": "python3",
"args": ["src/octave-mcp/octave_openems_server.py"]
}
}
}
š§ Troubleshooting
System Requirements Issues:
# Install missing dependencies
sudo apt install octave openems # Ubuntu/Debian
brew install octave # macOS
# Check installations
check_octave_openems_status()
check_status()
Common Solutions:
- Simulation timeout: Increase timeout in
config.json - Memory issues: Use
clear_octave_data("all") - Permission errors: Check file paths and write permissions
š” Example: Complete Optimization
# Target: 50Ω ±5% characteristic impedance
targets = {'impedance': 50.0, 'tolerance': 2.5}
for iteration in range(1, 6):
# Design with current parameters
set_design_variables(cpw_width=f'{current_width}um', cpw_gap=f'{current_gap}um')
# Simulate
create_cpw_octave_simulation(name=f'iter_{iteration}',
width=current_width, gap=current_gap)
run_octave_simulation(f'iter_{iteration}')
# Analyze and check convergence
results = analyze_octave_impedance(f'iter_{iteration}')
if within_tolerance(results, targets):
print(f"ā
Converged in {iteration} iterations!")
break
# Adjust parameters for next iteration
current_width, current_gap = optimize_parameters(results, targets)
# Export final design
export_design_to_gds('./optimized_quantum_chip.gds')
export_octave_results(f'iter_{iteration}', 'touchstone')
š License
MIT License - see LICENSE file for details.
š¤ Contributing
Contributions welcome! Create an issue or submit a pull request.
Built with ā¤ļø by Team Silicon Architects for the quantum computing community
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.