TNO Quantum: ML - Classifiers - Support Vector Machine
TNO Quantum provides generic software components aimed at facilitating the development of quantum applications.
This package implements a scikit-learn compatible, (quantum) support vector machine.
During the fit, the (quantum) support vector machine solves a discretized version of the continuous optimization problem posed by a standard kernel support vector machine. This discrete optimization problem can be solved using quantum optimization algorithms (DWAVE, QAOA, etc.). Predictions are done classically based on the solutions found during fit.
An earlier version of the SVM was used in the following publication:
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.svm package can be found [here](https://tno-
quantum.github.io/documentation/).
Install
Easily install the tno.quantum.ml.classifiers.svm package using pip:
$ python -m pip install tno.quantum.ml.classifiers.svm
Example
The Support Vector Machine can be used as shown in the following example.
from tno.quantum.ml.classifiers.svm import SupportVectorMachine
from tno.quantum.ml.datasets import get_iris_dataset
X_training, y_training, X_validation, y_validation = get_iris_dataset(n_classes=2)
svm = SupportVectorMachine()
svm = svm.fit(X_training, y_training)
predictions_validation = svm.predict(X_validation)
Metadata
Release files for tno.quantum.ml.classifiers.svm 2.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tno_quantum_ml_classifiers_svm-2.0.2.tar.gz | 47.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tno_quantum_ml_classifiers_svm-2.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 94.7 kB
Release files / tno_quantum_ml_classifiers_svm-2.0.2.tar.gz
| Download URL | tno_quantum_ml_classifiers_svm-2.0.2.tar.gz |
|---|---|
| Size | 47.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
05f03766e2ac27199a15d607c5b6779379cd795b233520b43e3fe3f0b193d4fb
|
|
BLAKE2b-256 checksum How to use checksums |
ff904c08c6a2755fba7dddd101e9d960f8e88f90dec638ab740edbd1cd3581a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.3
|
Release files / tno_quantum_ml_classifiers_svm-2.0.2-py3-none-any.whl
| Download URL | tno_quantum_ml_classifiers_svm-2.0.2-py3-none-any.whl |
|---|---|
| Size | 46.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2252667ee19319a52c5992be367cc8d4c5b6fed67e3aa310344f634ac57b559f
|
|
BLAKE2b-256 checksum How to use checksums |
f1bcae34d57ee8ff8a243108e7fd30090b79c6b6d9784da3b55da19401a13f5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.3
|