PennyLane is a cross-platform Python library for quantum computing, quantum machine learning, and quantum chemistry. Train a quantum computer the same way as a neural network.
The manual implementation in Qubitization for PrepSelPrep does appear to be differentiable in torch.
It may help to solve the problem if we look at that code
Expected behavior
When using
PrepSelPrep
in a circuit, differentiation with autograd and torch should give the same result:Actual behavior
torch
returns gradient 0Additional information
The manual implementation in Qubitization for PrepSelPrep does appear to be differentiable in torch. It may help to solve the problem if we look at that code
Source code
No response
Tracebacks
No response
System information
Existing GitHub issues