-
Notifications
You must be signed in to change notification settings - Fork 47
CRot cannot be differentiated with the adjoint method #1571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The first issue one encounters here is due to the recent changes of decomposing based on differentiability, which for the special case of ops that are controlled instances whose base gate supports controlling, will be turned into a controlled version of the base gate. This can lead to infinite recursion of the result is rejected due to differentiability criteria (e.g. Next, we can get an error of a numpy array not being
I have seen this error pop up before but I'm not sure what triggers it (besides the fact that the array is F-contiguous instead of C-contiguous). The next error we obtain is the Catalyst verification of grad claiming there is a non-differentiable op in the call graph, although the error message doesn't say which op:
|
Update: It looks like the problem is that the decomposition of |
Test circuit:
The text was updated successfully, but these errors were encountered: