A quantum machine learning algorithm based on generative models | Synapse