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

[Proto] Use apply_gate via jax.lax.scan #19

Open
RolandMacDoland opened this issue Apr 26, 2024 · 1 comment
Open

[Proto] Use apply_gate via jax.lax.scan #19

RolandMacDoland opened this issue Apr 26, 2024 · 1 comment
Labels

Comments

@RolandMacDoland
Copy link
Collaborator

@dominikandreasseitz Description ?

@mlahariya
Copy link
Collaborator

Jax.lax.scan is the equivalent of doing for loops.

It's recommended to do it in case of tensor manipulations for correct compilation.
https://jax.readthedocs.io/en/latest/_autosummary/jax.lax.scan.html

All for loops should be replaced by Jax.lax.scan.

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

Successfully merging a pull request may close this issue.

3 participants