A PyTorch-based framework for Quantum Classical Simulation, Quantum Machine Learning, Quantum Neural Networks, Parameterized Quantum Circuits with support for easy deployments on real quantum computers.
I am trying to understand how PyTorch recognizes a quantum circuit within a nn.Module and can perform backdrop on the gates in the circuit? What part of the code enables this and how does a circuit get turned into a computational graph which PyTorch can backprop on?
I am trying to understand how PyTorch recognizes a quantum circuit within a
nn.Module
and can perform backdrop on the gates in the circuit? What part of the code enables this and how does a circuit get turned into a computational graph which PyTorch can backprop on?Thanks