Skip to content

Commit

Permalink
fix: The wrap_in_loop method now applies the end target to the prog…
Browse files Browse the repository at this point in the history
…ram (#329)
  • Loading branch information
MarquessV committed Jan 16, 2024
1 parent 481334f commit b38f26d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions quil-rs/src/program/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ impl Program {
Instruction::Jump(Jump {
target: start_target,
}),
Instruction::Label(Label { target: end_target }),
])
.collect::<Vec<Instruction>>(),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ I 0
SUB shot_count[0] 1
JUMP-UNLESS @loop-end shot_count[0]
JUMP @loop-start
LABEL @loop-end

0 comments on commit b38f26d

Please sign in to comment.