tensorflow / quantum

An open-source Python framework for hybrid quantum-classical machine learning.
https://www.tensorflow.org/quantum
Apache License 2.0
1.81k stars 580 forks source link

How to simulate a QNN ? #723

Closed saurav935 closed 2 years ago

saurav935 commented 2 years ago

Hi,

After completing this tutorial, I noticed that the quantum neural network model is not simulated using anything. How can I do that ?

lockwo commented 2 years ago

It is simulated, what gives the impression it isn't?

saurav935 commented 2 years ago

Can you tell me at what point is the quantum neural network simulated ?

I can't see cirq.Simulator initialized anywhere.

lockwo commented 2 years ago

Every time the model is executed (in training or testing) simulation occurs. The PQC layer manages this simulation.

saurav935 commented 2 years ago

Ohh okay, I understand now. Thank you!