LazyQML benchmarking utility to test quantum machine learning models.
Project description
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.
✨ Why LazyQML?
-
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.
Documentation
For detailed usage instructions, API reference, and code examples, please refer to the official LazyQML documentation.
Requirements
- Python >= 3.12
❗❗ This library is only supported by Linux Systems. It doesn't support Windows nor MacOS. Only supports CUDA compatible devices.
Installation
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.
From sources
To install lazyqml from sources, run this command in your terminal:
pip install git+https://github.com/QHPC-SP-Research-Lab/LazyQML
Example
from sklearn.datasets import load_iris
from lazyqml import QuantumClassifier
from lazyqml.Global import Embedding, Ansatzs, Model
# 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)
Quantum and High Performance Computing (QHPC) group at University of Oviedo - https://qhpc.uniovi.es
- José Ranilla Pastor - ranilla@uniovi.es
- Elías Fernández Combarro - efernandezca@uniovi.es
- Diego García Vega - diegogarciavega@gmail.com
- Fernando Álvaro Plou Llorente - ploufernando@uniovi.es
- Alejandro Leal Castaño - lealcalejandro@uniovi.es
Citing
If you used LazyQML in your work, please cite:
- García-Vega, D., Plou-Llorente, F., Leal-Castaño, A., Combarro, E.F., Ranilla, J.: pLazyQML: a parallel package for efficient execution of QML models on classical computers. J Supercomput 81, 1254 (2025). https://doi.org/10.1007/s11227-025-07714-9
License
- Free software: MIT License
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 lazyqml-0.1.2.tar.gz.
File metadata
- Download URL: lazyqml-0.1.2.tar.gz
- Upload date:
- Size: 145.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d3a53db9d27cf3a153c3edfcb8a5d8ed2d5632222fa0d4e9f246dbc94976770
|
|
| MD5 |
146aaaed439a1132d973e86c67fac887
|
|
| BLAKE2b-256 |
f24a24b5aa65715299290bff8149ab80dd7b8726f6a98ce6a50fdb4a3f40efc1
|
File details
Details for the file lazyqml-0.1.2-py2.py3-none-any.whl.
File metadata
- Download URL: lazyqml-0.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 66.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61a44844e27a20bf9cee26c827a9ec2b617a2d445ef5903d00b87a3fcb0eb9fb
|
|
| MD5 |
9723de83da9b1d0ebe4b720b1281e624
|
|
| BLAKE2b-256 |
ece0c81b3fca06fcddc5f067d9eb931ad8bcb785a742445872236b24d53fdbb2
|