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

automatic diffirentaion through circuit with conditional gate #418

Open
rezah opened this issue Jul 20, 2022 · 2 comments
Open

automatic diffirentaion through circuit with conditional gate #418

rezah opened this issue Jul 20, 2022 · 2 comments

Comments

@rezah
Copy link

rezah commented Jul 20, 2022

It is possible to do automatic differentiation through a circuit with conditional gates. I mean variationally optimize the circuit with gates that are applied based on themed-circuit measurement.

@GiggleLiu
Copy link
Member

GiggleLiu commented Aug 5, 2022

It is hard to do it directly. Try using lower level interfaces like apply and mat. Their backward rules are ported to ChainRules. Maybe you can try writing the loss using Zygote.

@GiggleLiu
Copy link
Member

Please check this issues: #323

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants