Skip to content
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

[Feature] Allow adjoint method to compute derivatives of any Parametric gate. Change to JVP implementation. #32

Open
atiyo opened this issue Sep 19, 2024 · 1 comment
Labels

Comments

@atiyo
Copy link
Collaborator

atiyo commented Sep 19, 2024

As it stands, the adjoint method is only used to calculate gradients via vector jacobian products for Parametric gates with string parameters.

However, it can be :

  • extended to allow for float parameters as well.
  • use a jacobian-vector product, which is is a bit more flexible than the vector-jacobian product, in that the former allows for forward mode AD as well.

It might make sense to address these two points simultaneously since both involve changing the same lines of code.

@atiyo atiyo added the feature label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants
@atiyo and others