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

Memory dependencies do not consider the block terminators #429

Open
antalsz opened this issue Jan 9, 2025 · 0 comments · May be fixed by #433
Open

Memory dependencies do not consider the block terminators #429

antalsz opened this issue Jan 9, 2025 · 0 comments · May be fixed by #433

Comments

@antalsz
Copy link
Contributor

antalsz commented Jan 9, 2025

Consider the following program:

DECLARE ro BIT

MEASURE 0 ro
JUMP-WHEN @eq ro
LABEL @eq
RX(pi/2) 0

This program ought to have a memory dependency from the MEASURE 0 ro to the JUMP-WHEN @eq ro, and from the JUMP-WHEN @eq ro to the RX(pi/2) 0. However, the JUMP-WHEN becomes a block terminator, and block terminators do not show up in the quil_rs::program::scheduling::DependencyGraph, so there is no dependency between the MEASURE and the JUMP-WHEN.

antalsz added a commit that referenced this issue Jan 9, 2025
antalsz added a commit that referenced this issue Jan 10, 2025
antalsz added a commit that referenced this issue Jan 10, 2025
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

Successfully merging a pull request may close this issue.

1 participant