This repository contains the code to reproduce the results in the paper "A Variational Algorithm for Quantum Single Layer Perceptron" submitted to The 8th International Online & Onsite Conference on Machine Learning, Optimization, and Data Science
This variational algorithm can be easily expanded to support different versions of the U gate in the ansatz.
Now the ansatz works with only the cU3 gate but it is possible to change it into cU, cU2, and cU1. The first step to support this change has been taken (see qSLP.py) but some work is still needed to be fully operational.