I am following the tutorial on QONN by @theodor where I am stuck on a problem of encoding a qubit state. This is occurring because of my uneasiness with Dual Rail Encoding.
All the examples we have in the demo are basis state. But I want to know/understand how a general state can be encoded as qml.Fockstate can only take integer values.
For a clear answer, I can give you an example problem. Say, I want to use QONN to take me from GHZ states back to 0 state. Now, to do this I have to encode GHZ state in x. How can I do it? In the demo, it is given the other way round. Could you demonstrate me this type of encoding?
Thank you for your time
In this Strawberry Fields demo on CV QNNs, the encoding is made using several gates depending on the number of modes. In this demo the training is done to learn a specific target state. I know it’s not exactly encoding a GHZ state but maybe it can give you ideas for how this works.
Let me know if this helps, or if this doesn’t answer your question please let me know and I’ll try to explain it in a different way.
The inherent difference in the CVQNN from QONN is the encoding scheme. In QONN, they use “dual rail” encoding in which encoding of only basis states are demonstrated. I am not getting an idea how to do it generally in this new scheme discussed in QONN.
Hi @Prabhat_Prabhat, thank you for the clarification. In the demo they seem to be using Fock state encoding. I don’t know the paper in the demo though. Let me give it another look in the next couple of days.
Thank you @CatalinaAlbornoz. That’s exactly my problem!! One can use Dual rail encoding in CVQNN structure with Fock state encoding (exploitation). But that is not general, and nobody in the literature (as far as I can search) talk about it and hence the confusion. I’ll be waiting for your reply