Skip to main content

LazyQML benchmarking utility to test quantum machine learning models.

Project description

LazyQML

Pypi GitHub Actions NumPy Pandas PyTorch scikit-learn nVIDIA Linux

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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lazyqml-0.0.19.tar.gz (132.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lazyqml-0.0.19-py2.py3-none-any.whl (56.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file lazyqml-0.0.19.tar.gz.

File metadata

  • Download URL: lazyqml-0.0.19.tar.gz
  • Upload date:
  • Size: 132.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for lazyqml-0.0.19.tar.gz
Algorithm Hash digest
SHA256 868bd7e48f1d8f1fc3ccb62c36732a9cd4085445d91463859fc65f829519bfba
MD5 215977c94d9d709cfd0083e3a7616f38
BLAKE2b-256 8c8323a52de0406f5a70dbbb1e056f6a94b73faac874d09b779ac9e56f1329af

See more details on using hashes here.

File details

Details for the file lazyqml-0.0.19-py2.py3-none-any.whl.

File metadata

  • Download URL: lazyqml-0.0.19-py2.py3-none-any.whl
  • Upload date:
  • Size: 56.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for lazyqml-0.0.19-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 949b8a91e05361c8b57f4c3ad8f9fa4560043f0375af24431d24cff57355b7bb
MD5 8d1a7f6c35b0c9f1af5abb8f78f25e9e
BLAKE2b-256 8941d29f2d6f0109a59b9c512beca3cc02ba1a20765c788905d9b6417ff2df37

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page