From 4665797e5e74e093e90804e562bd17b08bb482da Mon Sep 17 00:00:00 2001 From: GiggleLiu Date: Wed, 3 Jul 2024 11:12:50 +0800 Subject: [PATCH] fix barrier --- lib/YaoPlots/src/vizcircuit.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/YaoPlots/src/vizcircuit.jl b/lib/YaoPlots/src/vizcircuit.jl index 36ef1c9c..a054bce8 100644 --- a/lib/YaoPlots/src/vizcircuit.jl +++ b/lib/YaoPlots/src/vizcircuit.jl @@ -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