@@ -6,7 +6,7 @@ using QuantumClifford
66using QuantumClifford. ECC: Steane7, Shor9, naive_syndrome_circuit, shor_syndrome_circuit, parity_checks, code_s, code_n, code_k
77using QuantumClifford. ECC: naive_encoding_circuit, Cleve8, AbstractECC, Perfect5, CSS, PyBeliefPropOSDecoder
88using CairoMakie
9-
9+ using LaTeXStrings
1010using QuantumClifford. ECC: AbstractSyndromeDecoder, TableDecoder, evaluate_decoder, Toric, PyMatchingDecoder
1111
1212function my_plot_both_synd(code:: AbstractECC , decoder:: AbstractSyndromeDecoder , p_shift= 0.0001 , p_wait= 1 - exp(- 14.5 / 28_000 ); name= string(typeof(code)))
@@ -269,7 +269,7 @@ function my_plot_both_synd(code::AbstractECC, decoder::AbstractSyndromeDecoder,
269269 lines!(f_shor_z, [0 ,0 ], [0 ,0 ], label= " Shor-syndrome specialized comp" , color= :orange)
270270
271271 scatter!(f_shor_z, [0 ,0 ], [0 ,0 ], label= " Constant near-term noise parameters \n (shift error, decoherence, gate noise)" , color= :gray, marker= :utriangle)
272- scatter!(f_shor_z, [0 ,0 ], [0 ,0 ], label= " Near-term noise parameters are \n multiplied by 10* p_mem" , color= :gray, marker= :circle)
272+ scatter!(f_shor_z, [0 ,0 ], [0 ,0 ], label= " Near-term noise parameters are \n multiplied by 10 × p_mem" , color= :gray, marker= :circle)
273273
274274 xlims!(ax, high= - 0.5 , low= - 4.0 )
275275 ylims!(ax, high= - 0.5 , low= - 4.0 )
@@ -421,7 +421,7 @@ function plot_for_paper_figure(code::AbstractECC, decoder::AbstractSyndromeDecod
421421 lines!(f_shor_x, [0 ,0 ], [0 ,0 ], label= " Shor-syndrome specialized comp" , color= :orange)
422422
423423 scatter!(f_shor_x, [0 ,0 ], [0 ,0 ], label= " Constant near-term noise parameters \n (shift error, decoherence, gate noise)" , color= :gray, marker= :utriangle)
424- scatter!(f_shor_x, [0 ,0 ], [0 ,0 ], label= " Near-term noise parameters are \n multiplied by 10* p_mem" , color= :gray, marker= :circle)
424+ scatter!(f_shor_x, [0 ,0 ], [0 ,0 ], label= " Near-term noise parameters are \n multiplied by 10 × p_mem" , color= :gray, marker= :circle)
425425
426426 xlims!(ax, high= - 0.5 , low= - 4.0 )
427427 ylims!(ax, high= - 0.5 , low= - 4.0 )
@@ -430,15 +430,15 @@ function plot_for_paper_figure(code::AbstractECC, decoder::AbstractSyndromeDecod
430430 return f
431431end
432432
433- f_Steane = my_plot_both_synd(Steane7(), TableDecoder(Steane7()))
433+ # f_Steane = my_plot_both_synd(Steane7(), TableDecoder(Steane7()))
434434# f_Shor = my_plot_both_synd(Shor9(), TableDecoder(Shor9()))
435435# f_Cleve = my_plot_both_synd(Cleve8(), TableDecoder(Cleve8()))
436436# f_P5 = my_plot_both_synd(Perfect5(), TableDecoder(Perfect5()))
437437
438438# f_x_Gottesman3 = my_plot_both_synd(Gottesman(3), TableDecoder(Gottesman(3)))
439439
440- # f_t3 = my_plot_both_synd(Toric(3, 3), PyMatchingDecoder(Toric(3, 3)), name="Toric 3x3")
441- f_t3 = plot_for_paper_figure(Toric(3 , 3 ), PyMatchingDecoder(Toric(3 , 3 )), name= " Toric 3x3" )
440+ f_t3_both = my_plot_both_synd(Toric(3 , 3 ), PyMatchingDecoder(Toric(3 , 3 )), name= " Toric 3x3" )
441+ # f_t3 = plot_for_paper_figure(Toric(3, 3), PyMatchingDecoder(Toric(3, 3)), name="Toric 3x3")
442442
443443# f_t4 = my_plot_both_synd(Toric(4, 4), PyMatchingDecoder(Toric(4, 4)), name="Toric 4x4")
444444# f_t6 = my_plot_both_synd(Toric(6, 6), PyMatchingDecoder(Toric(6, 6)), name="Toric 6x6")
0 commit comments