Skip to main content

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}, embeddings={Embedding.ZZ, Embedding.ZZ_LOCAL}, 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

Metadata

Release files for lazyqml 0.1.23

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lazyqml 0.1.23
File Size Uploaded Provenance Actions
lazyqml-0.1.23.tar.gz 151.5 kB Without provenance Details for lazyqml-0.1.23.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lazyqml 0.1.23
File Interpreter ABI Platform Actions
lazyqml-0.1.23-py2.py3-none-any.whl Python 3, Python 2 none any Details for lazyqml-0.1.23-py2.py3-none-any.whl

Total release size: 218.4 kB

Release files / lazyqml-0.1.23.tar.gz

Download URL lazyqml-0.1.23.tar.gz
Size 151.5 kB
Tags Source
SHA-256 checksum
How to use checksums
df302b859dc8c0d1606dd6c143b1b276f0186f330aee809aaaa0ac6e3662898a
BLAKE2b-256 checksum
How to use checksums
cc594e5533a4390ba248dae4fd9a3ec829c0c2a544def6657bfd773fee976645
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / lazyqml-0.1.23-py2.py3-none-any.whl

Download URL lazyqml-0.1.23-py2.py3-none-any.whl
Size 66.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
02168eb7f2b59097b8835a7073ee6a478f690c1eb36985f2776d5cb8806fa2a5
BLAKE2b-256 checksum
How to use checksums
0ab480c99682c96e2333385aedb8bda64c6d33703da6e8ab67afc131a13772ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Security for lazyqml 0.1.23

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.23 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page