Autonomous quantum AI research agent
Project description
QuantumMetaGPT
QuantumMetaGPT is an autonomous research agent for quantum computing that:
- Parses quantum research papers from arXiv
- Generates quantum algorithms using reinforcement learning
- Optimizes algorithms with hybrid quantum-classical methods
- Evaluates on simulators and real quantum hardware
- Produces scientific reports with visualizations
Architecture Overview
graph TD
A[arXiv Paper] --> B[LLM Parser]
B --> C[Task Synthesis]
C --> D[RL Algorithm Generation]
D --> E[Hybrid Optimization]
E --> F[Quantum Evaluation]
F --> G[Report Generation]
G --> H[PDF/LaTeX Report]
Key Features
-
Hybrid Quantum-AI Development: Combines LLMs with quantum circuit optimization
-
Reinforcement Learning: PPO, A2C, DDPG, and SAC agents for algorithm discovery
-
Hardware Integration: Runs on Qiskit simulators and IBM Quantum backends
-
Automated Reporting: Generates publication-ready reports with visualizations
-
Security System: Hardware-bound licensing with AES-256 encryption
Installation
# Clone repository
git clone https://github.com/yourusername/QuantumMetaGPT.git
cd QuantumMetaGPT
# Install dependencies
pip install -r requirements.txt
# Set environment variables
export IBMQ_TOKEN="your_ibmq_token"
export OPENAI_API_KEY="your_openai_key"
# Generate license
python -m qmetagpt.security_licensing.cli_license generate
Usage
python
from QuantumMetaGPT import run_pipeline
# Run full pipeline
run_pipeline(arxiv_id="quant-ph/2310.12345")
Module Structure
quantummetagpt/
├── llm_paper_parser # arXiv paper processing
├── task_synthesizer # Quantum task formalization
├── quantum_algorithm_generator # RL-based circuit generation
├── optimizer_engine # Hybrid quantum-classical optimization
├── evaluation_engine # Quantum hardware evaluation
├── report_generator # Scientific report creation
├── security_licensing # License management
└── utils # Logging and error handling
Contributing Contributions are welcome! Please see our contribution guidelines.
License Apache 2.0 - See LICENSE for details.
###CONTRIBUTING.md
# Contribution Guidelines
We welcome contributions to QuantumMetaGPT! Please follow these guidelines:
## Development Setup
1. Fork the repository
2. Clone your fork: `git clone https://github.com/yourusername/QuantumMetaGPT.git`
3. Create a virtual environment: `python -m venv venv`
4. Activate environment: `source venv/bin/activate`
5. Install dependencies: `pip install -r requirements-dev.txt`
## Coding Standards
- Follow PEP 8 style guide
- Use type hints for all function signatures
- Document public methods with docstrings
- Write unit tests for new features
- Keep modules focused and cohesive
## Testing
Run the test suite with:
```bash
pytest --cov=qmetagpt --cov-report=html
Pull Requests
Create a new branch for your feature: git checkout -b feature-name
Implement your changes with tests
Ensure all tests pass: pytest
Update documentation if needed
Submit a pull request to the main repository
Reporting Issues
Please use GitHub issues to report bugs or request features. Include:
Detailed description of the issue
Steps to reproduce
Expected vs actual behavior
Environment details
### 16. `LICENSE`
```text
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution...
[Standard Apache 2.0 License Text]
17. .env.example
env
# IBM Quantum credentials
IBMQ_TOKEN="your_ibmq_token"
# OpenAI API
OPENAI_API_KEY="your_openai_key"
# LLM configuration
LLM_MODEL="gpt-4"
LLM_TEMPERATURE=0.7
# Quantum backend
QUANTUM_BACKEND="ibmq_manila"
USE_HARDWARE=false
SHOTS=1024
# RL training
RL_AGENT="PPO"
RL_TIMESTEPS=50000
Project details
Release history Release notifications | RSS feed
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 quantummetagpt-0.1.0.tar.gz.
File metadata
- Download URL: quantummetagpt-0.1.0.tar.gz
- Upload date:
- Size: 17.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09ec70faae6900d1c23462b3a6f0958c20728c1c08e3e8483cf95814745e5ee5
|
|
| MD5 |
93320d6fed717d173dfb34721cb45f61
|
|
| BLAKE2b-256 |
d3a78221fd38a85ff3583a5036cf644c5ae9ee9bc45b68d8acf6386642510efc
|
File details
Details for the file quantummetagpt-0.1.0-py3-none-any.whl.
File metadata
- Download URL: quantummetagpt-0.1.0-py3-none-any.whl
- Upload date:
- Size: 25.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
076497a39aa3aed2d4ae115b2ee5860670bcbe8c65a411eefa789b04bceb9ec3
|
|
| MD5 |
acca84f6b58ff6a37cd9a77b77f0caaf
|
|
| BLAKE2b-256 |
251d0d3ce31a6f2a81046be2dbf44da9eca6ca87a8fd73eeef5ff8bef27add96
|