Replies: 2 comments 8 replies
-
Yes. I've defined the forward pass and it seems to be working fine but it seems to in order to make everything work the backward() def would contain the derived versions of the gates used in forward(). I'm subclassing torch.autograd.Function. |
Beta Was this translation helpful? Give feedback.
7 replies
-
Deleted the question about CUDA quantum, just saw that it was doing parameter shift in the backward() impl. and backprop wasn't automatic either. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@wcqc writes:
My understanding: you want to know how best to define
forward
,backward
w.r.t.custatevec.apply_matrix_batched
. Is that correct?Beta Was this translation helpful? Give feedback.
All reactions