I was trying to write a more elaborate circuit based on Qiskit's tutorial here: https://qiskit.org/textbook/ch-machine-learning/machine-learning-qiskit-pytorch.html
When I came to the training part, I realised that the way this network is written, the only trainable parameters are actually the input (or rather, the encoding of the input). However, I would like to write a circuit where the trainable parameters are not directly related to the input, like the weights in classical neural networks. More specifically, the encoding is supposed to be seperate from the actual trainable circuit, and the rotation parameters need to somehow be accessible to PyTorch as trainable parameters. I don't know if this is even possible to do with PyTorch's autograd, or if I would have to write the entire gradient descent process myself?