LazyQML is a Python library designed to beanchmark QML models on classic computers in an easy way.
309
LazyQML is a Python library designed to streamline, automate, and accelerate experimentation with Quantum Machine Learning (QML) architectures, right on classical computers.
With LazyQML, you can:
đ ïž Build, test, and benchmark QML models with minimal effort.
⥠Compare different QML architectures, hyperparameters seamlessly.
đ§ Gather knowledge about the most suitable architecture for your problem.
Rapid Prototyping: Experiment with different QML models using just a few lines of code.
Automated Benchmarking: Evaluate performance and trade-offs across architectures effortlessly.
Flexible & Modular: From basic quantum circuits to hybrid quantum-classical modelsâLazyQML has you covered.
For detailed usage instructions, API reference, and code examples, please refer to the official LazyQML documentationâ .
ââ This library is only supported by Linux Systems. It doesn't support Windows nor MacOS. Only supports CUDA compatible devices.
To install lazyqml, run this command in your terminal:
pip install lazyqml
This is the preferred method to install lazyqml, as it will always install the most recent stable release.
If you don't have pipâ installed, this Python installation guideâ can guide you through the process.
To install lazyqml from sources, run this command in your terminal:
pip install git+https://github.com/QHPC-SP-Research-Lab/LazyQML
from sklearn.datasets import load_iris
from lazyqml import *
# Load data
data = load_iris()
X = data.data
y = data.target
classifier = QuantumClassifier(nqubits={4}, classifiers={Model.QNN, Model.QSVM}, epochs=10)
# Fit and predict
classifier.fit(X=X, y=y, test_size=0.4)
If you used LazyQML in your work, please cite:
Content type
Image
Digest
sha256:61956593fâŠ
Size
3.5 GB
Last updated
over 1 year ago
docker pull lealcalejandro/lazyqml