Skip to content

Commit

Permalink
Commented in circuit gen code
Browse files Browse the repository at this point in the history
  • Loading branch information
Benzillaist committed Nov 27, 2024
1 parent 462f932 commit 9bf7129
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions _2.markdown_generation_pass/figures.jl
Original file line number Diff line number Diff line change
Expand Up @@ -144,18 +144,18 @@ function prep_figures(code_metadata)
colsize!(f.layout, 2, Aspect(1, 1))
colgap!(f.layout, 1, Relative(0.15))
save("codes/$(codetypename)/$(instancenameof(c)).png", f)
if code_n(c) <= 10
try
savecircuit(naive_encoding_circuit(parity_checks(c)), "codes/$(codetypename)/$(c)_encoding.png")
catch
@error "$(c) failed to plot `naive_encoding_circuit`"
end
try
savecircuit(naive_syndrome_circuit(parity_checks(c))[1], "codes/$(codetypename)/$(c)_naive_syndrome.png")
catch
@error "$(c) failed to plot `naive_syndrome_circuit`"
end
end
# if code_n(c) <= 10
# try
# savecircuit(naive_encoding_circuit(parity_checks(c)), "codes/$(codetypename)/$(c)_encoding.png")
# catch
# @error "$(c) failed to plot `naive_encoding_circuit`"
# end
# try
# savecircuit(naive_syndrome_circuit(parity_checks(c))[1], "codes/$(codetypename)/$(c)_naive_syndrome.png")
# catch
# @error "$(c) failed to plot `naive_syndrome_circuit`"
# end
# end
end
end
end
Expand Down

0 comments on commit 9bf7129

Please sign in to comment.