Skip to content

sq-learn is an extension of Sklearn framework that allows simulating quantum machine learning algorithms in a fault-tolerant setting. It has been developed in my Master's thesis work at Politecnico di Milano.

License

Notifications You must be signed in to change notification settings

tommasofioravanti/sq-learn

PythonVersion PyPi

Alternative text

sq-learn is a Python framework integrating quantum routines with classical machine learning algorithms such that we can simulate their quantum counterpart as we were using a fault-tolerant quantum computer.

It aims to provide simple and efficient solutions to learning problems that are accessible to everybody and reusable in various contexts: quantum machine-learning as a versatile tool for science and engineering.

It can be used to run either classical or quantum machine learning experiments.

Up to now only PCA and K-means algorithm can be simulated in their quantum counterpart.


The framework rests on the QuantumUtility.py module in which all the main quantum routines are implemented. It is important to be aware that the quantum machine learning algorithms that we use can be consider as randomized approximation algorithm. They are formalized in theorems where the approximation error, the probability of failure, and the running time are reported. The approximation error is expected by the quantum computational paradigm and not by techonological limits. Using this framework you will simulate QML algorithms by simulating their approximation error and probability of failure. In this way, you can check how the performance, specific to the problem you are solving, are affected by the approximated solution with respect to the exact one of classical machine learning algorithms.

Moeover, you will be able to compare running time performances between classical and quantum machine learning algorithms since the approximation errors and the probabilty of failure are running time parameters.

About

sq-learn is an extension of Sklearn framework that allows simulating quantum machine learning algorithms in a fault-tolerant setting. It has been developed in my Master's thesis work at Politecnico di Milano.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published