Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outputs for autoencoder examples #575

Open
dcmesh opened this issue Apr 19, 2022 · 1 comment
Open

Outputs for autoencoder examples #575

dcmesh opened this issue Apr 19, 2022 · 1 comment
Assignees

Comments

@dcmesh
Copy link

dcmesh commented Apr 19, 2022

Hello, I'm doing some survey research into quantum autoencoders, and I was running simulations with both the QAE and EF_QAE versions (the ones in qibo/examples/EF_QAE). However, I saw that your examples don't appear to have a decoder portion of the circuit to reconstruct the image from the quantum state. I was wondering if you could provide the steps you used to generate Figure 7 in "Quantum autoencoders with enhanced data encoding".

Any help would be greatly appreciated.

@bpcarlos
Copy link
Contributor

@dcmesh The encoder reduces the initial space with n+k qubits, to a reduced (latent) space with n qubits, where k are the so-called trash qubits. Once you have trained the encoder, you can simply create a circuit with n+k+k qubits and then run the encoder on the first n+k qubits. Finally, you initialize the other k qubits on the 0 state and run U^\dagger (being U the action of the encoder) on the latent qubits n and the new k initialized qubits. Now by simply measuring those qubits, you can obtain Fig. 7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants