From e3b4964b23acfa9da9f13f241dd281748810328f Mon Sep 17 00:00:00 2001 From: Fe-r-oz Date: Tue, 5 Nov 2024 14:58:46 +0500 Subject: [PATCH] test_ecc_generalized_bicycle_codes --- test/test_ecc_generalized_bicycle_codes.jl | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/test_ecc_generalized_bicycle_codes.jl diff --git a/test/test_ecc_generalized_bicycle_codes.jl b/test/test_ecc_generalized_bicycle_codes.jl new file mode 100644 index 000000000..c6e1f50bf --- /dev/null +++ b/test/test_ecc_generalized_bicycle_codes.jl @@ -0,0 +1,18 @@ +@testitem "ECC GB" begin + using Hecke + using QuantumClifford.ECC: generalized_bicycle_codes, code_k, code_n + + # codes taken from Table 1 of [lin2024quantum](@cite) + # Abelian 2BGA codes can be viewed as GB codes. + @test code_n(generalized_bicycle_codes([0 , 15, 16, 18], [0 , 1, 24, 27], 35)) == 70 + @test code_k(generalized_bicycle_codes([0 , 15, 16, 18], [0 , 1, 24, 27], 35)) == 8 + @test code_n(generalized_bicycle_codes([0 , 1, 3, 7], [0 , 1, 12, 19], 27)) == 54 + @test code_k(generalized_bicycle_codes([0 , 1, 3, 7], [0 , 1, 12, 19], 27)) == 6 + @test code_n(generalized_bicycle_codes([0 , 10, 6, 13], [0 , 25, 16, 12], 30)) == 60 + @test code_k(generalized_bicycle_codes([0 , 10, 6, 13], [0 , 25, 16, 12], 30)) == 6 + @test code_n(generalized_bicycle_codes([0 , 9, 28, 31], [0 , 1, 21, 34], 36)) == 72 + @test code_k(generalized_bicycle_codes([0 , 9, 28, 31], [0 , 1, 21, 34], 36)) == 8 + @test code_n(generalized_bicycle_codes([0 , 9, 28, 13], [0 , 1, 21, 34], 36)) == 72 + @test code_k(generalized_bicycle_codes([0 , 9, 28, 13], [0 , 1, 3, 22], 36)) == 10 + end +end