Skip to main content

TNO Quantum: Variational classifier

TNO Quantum provides generic software components aimed at facilitating the development of quantum applications.

The tno.quantum.ml.classifiers.vc package provides a VariationalClassifier class, which has been implemented in accordance with the scikit-learn estimator API. This means that the classifier can be used as any other (binary and multiclass) scikit-learn classifier and combined with transforms through Pipelines. In addition, the VariationalClassifier makes use of PyTorch tensors, optimizers, and loss functions.

Limitations in (end-)use: the content of this software package may solely be used for applications that comply with international export control laws.

Documentation

Documentation of the tno.quantum.ml.classifiers.vc package can be found here.

Install

Easily install the tno.quantum.ml.classifiers.vc package using pip:

$ python -m pip install tno.quantum.ml.classifiers.vc

If you wish to run the tests you can use:

$ python -m pip install 'tno.quantum.ml.classifiers.vc[tests]'

Example

Here's an example of how the VariationalClassifier class can be used for classification based on the Iris dataset: Note that tno.quantum.ml.datasets is required for this example.

from tno.quantum.ml.classifiers.vc import VariationalClassifier
from tno.quantum.ml.datasets import get_iris_dataset

X_training, y_training, X_validation, y_validation = get_iris_dataset()
vc = VariationalClassifier().fit(X_training, y_training, n_iter=5)
predictions = vc.predict(X_validation)

Metadata

Release files for tno.quantum.ml.classifiers.vc 3.0.1

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

Source distribution (sdist)

Source distribution for tno.quantum.ml.classifiers.vc 3.0.1
File Size Uploaded Provenance Actions
tno_quantum_ml_classifiers_vc-3.0.1.tar.gz 19.3 kB Without provenance Details for tno_quantum_ml_classifiers_vc-3.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tno.quantum.ml.classifiers.vc 3.0.1
File Interpreter ABI Platform Actions
tno_quantum_ml_classifiers_vc-3.0.1-py3-none-any.whl Python 3 none any Details for tno_quantum_ml_classifiers_vc-3.0.1-py3-none-any.whl

Total release size: 42.4 kB

Release files / tno_quantum_ml_classifiers_vc-3.0.1.tar.gz

Download URL tno_quantum_ml_classifiers_vc-3.0.1.tar.gz
Size 19.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0cef824ffaf320778d086e6de3d6990f8e3cb28471520edfc3aa68a9bdc89a6d
BLAKE2b-256 checksum
How to use checksums
9e954d95ec3dc851c674050d22d39f2ea22f94fba5f2bd8eea6260ac0bf2fbf8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.3

Release files / tno_quantum_ml_classifiers_vc-3.0.1-py3-none-any.whl

Download URL tno_quantum_ml_classifiers_vc-3.0.1-py3-none-any.whl
Size 23.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
26c4864654cb767037e32d1c52950dd8605afdae9804aa2a000619979ad4ce02
BLAKE2b-256 checksum
How to use checksums
9dde522168c162d43dc872cc2d2b7201703eec517882e99dc14a0a2536206486
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.3

Security for tno.quantum.ml.classifiers.vc 3.0.1

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.

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