Skip to content

Commit

Permalink
fix barrier
Browse files Browse the repository at this point in the history
  • Loading branch information
GiggleLiu committed Jul 3, 2024
1 parent b9e3a53 commit 4665797
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/YaoPlots/src/vizcircuit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ end

# composite
function draw!(c::CircuitGrid, p::ChainBlock, address, controls)
CircuitStyles.barrier_for_chain[] && set_barrier!(c, Int[address..., controls...])
for block in subblocks(p)
draw!(c, block, address, controls)
end
Expand Down

0 comments on commit 4665797

Please sign in to comment.