tensorflow / quantum

Hybrid Quantum-Classical Machine Learning in TensorFlow
https://www.tensorflow.org/quantum
Apache License 2.0
1.8k stars 577 forks source link

New Feature : Classical Data Encoders into TFQ #391

Open karlunho opened 4 years ago

karlunho commented 4 years ago

A common task for first time users of TFQ is to try and encode classical data into quantum circuits. It would be good if TFQ has some out-of-box encoders based on 1-2 methods found in the literature.

sassan72 commented 4 years ago

you mean TFQ doesn't have a method to encode classical data into quantum circuits?

zaqqwerty commented 4 years ago

Embedding classical data into quantum circuits just means that the parameters of the circuit are controlled by the dataset. We have an example of such an embedding using TFQ in our MNIST tutorial, definitely check that out if you're interested in classical data embedding :)

What we don't have is a standard library of techniques from which users can select off-the-shelf solutions, I think that sort of module is what is referred to in this issue.

lockwo commented 4 years ago

I think this would be a good idea, even sort of simple techniques (e.g. basis encoding) might be useful especially for those coming from classical machine learning. There are a number of different techniques that exist in literature but offering some templates like Pennylane, for example would be nice.