Skip to content

Commit

Permalink
test: add failing test demonstrating issue #429 – block terminators d…
Browse files Browse the repository at this point in the history
…o not show up in the dependency graph
  • Loading branch information
antalsz committed Jan 10, 2025
1 parent 8dbb292 commit 825d2ea
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions quil-rs/src/program/scheduling/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,18 @@ DECLARE integers INTEGER[1]
LOAD bits[0] bits2 integers[0] # write
LOAD bits[0] bits3 integers[0] # write
LOAD bits4[0] bits integers[0] # read
"#
}

build_dot_format_snapshot_test_case! {
memory_dependency_in_block_terminator,
r#"
DECLARE ro BIT
NONBLOCKING CAPTURE 0 "readout_rx" flat(duration: 2.0000000000000003e-06, iq: 1.0, scale: 1.0, phase: 0.8745492960861506, detuning: 0.0) ro
JUMP-WHEN @eq ro
LABEL @eq
PULSE 0 "tx" gaussian(duration: 1, fwhm: 2, t0: 3)
"#
}
}

0 comments on commit 825d2ea

Please sign in to comment.