A Flexible Quantum Machine Learning Framework
Project description
QuantumML: A Flexible Quantum Machine Learning Framework
Overview
QuantumML is an advanced quantum machine learning framework built on top of PennyLane, designed to provide researchers and practitioners with a comprehensive toolkit for quantum machine learning experiments.
Key Features
- Modular quantum machine learning architectures
- Multiple feature embedding techniques
- Variational quantum circuit implementations
- Advanced training and evaluation utilities
- Quantum-classical model comparisons
- Circuit complexity and barren plateau analysis
Installation
pip install quantum-ml-system
Project Structure
quantum-ml/
│
├── quantumml/
│ ├── __init__.py
│ ├── core/
│ │ ├── __init__.py
│ │ ├── base_model.py
│ │ └── quantum_circuit.py
│ │
│ ├── models/
│ │ ├── __init__.py
│ │ ├── classifier.py
│ │ ├── regressor.py
│ │ └── generative.py
│ │
│ ├── feature_maps/
│ │ ├── __init__.py
│ │ ├── zz_map.py
│ │ ├── amplitude_map.py
│ │ └── angle_map.py
│ │
│ ├── ansatzes/
│ │ ├── __init__.py
│ │ ├── strongly_entangling.py
│ │ ├── basic_entangler.py
│ │ └── custom_ansatz.py
│ │
│ ├── utils/
│ │ ├── __init__.py
│ │ ├── visualization.py
│ │ ├── complexity_analysis.py
│ │ └── gradient_analysis.py
│ │
│ └── metrics/
│ ├── __init__.py
│ ├── quantum_metrics.py
│ └── comparison_metrics.py
│
├── examples/
│ ├── classification_demo.py
│ ├── regression_demo.py
│ └── generative_model_demo.py
│
├── tests/
│ ├── test_core.py
│ ├── test_models.py
│ └── test_feature_maps.py
│
├── setup.py
├── requirements.txt
└── README.md
Basic Usage Example
from quantumml.models import QuantumClassifier
from quantumml.feature_maps import ZZFeatureMap
from quantumml.ansatzes import StronglyEntanglingAnsatz
# Create a quantum classifier
model = QuantumClassifier(
n_qubits=4,
feature_map=ZZFeatureMap(),
ansatz=StronglyEntanglingAnsatz(n_layers=2)
)
# Train the model
model.fit(X_train, y_train)
# Make predictions
predictions = model.predict(X_test)
Advanced Features
- Multiple Feature Embedding Techniques
- Flexible Variational Circuit Architectures
- Quantum-Classical Model Comparisons
- Circuit Complexity Analysis
- Barren Plateau Detection
- Model Serialization and Loading
Contributing
Contributions are welcome! Please read our contributing guidelines and code of conduct.
License
MIT License
Citation
If you use QuantumML in your research, please cite our framework.
@software{quantum_ml_system,
author = {Nikolaos Roufas},
title = {Quantum Machine Learning System},
year = {2025},
url = {https://github.com/nikolasroufas/quantum-ml-system
/}
}
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 quantummlsystem-0.1.2.tar.gz.
File metadata
- Download URL: quantummlsystem-0.1.2.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6e5210f01d69041d2d105cfac82b3b11bcd73f5ee52377a5094e7806aa6df0e
|
|
| MD5 |
d740c6005f56d6836f94685074a4bfc7
|
|
| BLAKE2b-256 |
1072fe52dd91735ebf057a6110c37e333c915e6b3ef09a1086ff1347f7e1ecd6
|
File details
Details for the file quantummlsystem-0.1.2-py3-none-any.whl.
File metadata
- Download URL: quantummlsystem-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.3 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 |
777bee84a8955e936c2ca01239de6600189afd8f0fff0839a2329714d221aa9e
|
|
| MD5 |
f2a519d32531feb888257589478ab1e2
|
|
| BLAKE2b-256 |
a49c9a6980269108f3685efd60795c9affe7cbc5cbbda4718491245f699387f7
|