tensorflow / quantum

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

How to simulate a QNN ? #723

Closed saurav935 closed 1 year ago

saurav935 commented 1 year 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 1 year ago

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

saurav935 commented 1 year ago

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

I can't see cirq.Simulator initialized anywhere.

lockwo commented 1 year ago

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

saurav935 commented 1 year ago

Ohh okay, I understand now. Thank you!