Skip to content

Commit

Permalink
add even more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Fe-r-oz committed Sep 26, 2024
1 parent e77e1ca commit 39763ca
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/src/references.bib
Original file line number Diff line number Diff line change
Expand Up @@ -464,3 +464,21 @@ @article{bravyi2024high
year={2024},
publisher={Nature Publishing Group UK London}
}

@article{bravyi2024high,
title={High-threshold and low-overhead fault-tolerant quantum memory},
author={Bravyi, Sergey and Cross, Andrew W and Gambetta, Jay M and Maslov, Dmitri and Rall, Patrick and Yoder, Theodore J},
journal={Nature},
volume={627},
number={8005},
pages={778--782},
year={2024},
publisher={Nature Publishing Group UK London}
}

@article{berthusen2024toward,
title={Toward a 2D local implementation of quantum LDPC codes},
author={Berthusen, Noah and Devulapalli, Dhruv and Schoute, Eddie and Childs, Andrew M and Gullans, Michael J and Gorshkov, Alexey V and Gottesman, Daniel},

Check warning on line 481 in docs/src/references.bib

View workflow job for this annotation

GitHub Actions / Spell Check with Typos

"Childs" should be "Children".
journal={arXiv preprint arXiv:2404.17676},
year={2024}
}
9 changes: 9 additions & 0 deletions test/test_ecc_bbqldpc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,13 @@
@test code_k(BBQLDPC(21, 18, [3 , 10, 17], [5 , 3 , 19])) == 16 == _formula_k(BBQLDPC(21, 18, [3 , 10, 17], [5 , 3 , 19]))
@test code_k(BBQLDPC(28, 14, [26, 6 , 8] , [7 , 9 , 20])) == 24 == _formula_k(BBQLDPC(28, 14, [26, 6 , 8] , [7 , 9 , 20]))
end

@testset "Verify number of logical qubits `k` from Table 1" begin
# Refer to [berthusen2024toward](cite for code constructions
@test code_k(BBQLDPC(12, 3 , [9 , 1 , 2] , [0 , 1 , 11])) == 8 == _formula_k(BBQLDPC(12, 3 , [9 , 1 , 2] , [0 , 1 , 11]))
@test code_k(BBQLDPC(9 , 5 , [8 , 4 , 1] , [5 , 8 , 7])) == 8 == _formula_k(BBQLDPC(9 , 5 , [8 , 4 , 1], [5 , 8 , 7]))
@test code_k(BBQLDPC(12, 5 , [10, 4 , 1] , [0 , 1 , 2])) == 8 == _formula_k(BBQLDPC(12, 5 , [10, 4 , 1] , [0 , 1 , 2]))
@test code_k(BBQLDPC(15, 5 , [5 , 2 , 3] , [2 , 7 , 6])) == 8 == _formula_k(BBQLDPC(15, 5 , [5 , 2 , 3] , [2 , 7 , 6]))
@test code_k(BBQLDPC(14, 7 , [6 , 5 , 6] , [0 , 4, 13])) == 12 == _formula_k(BBQLDPC(14, 7 , [6 , 5 , 6] , [0 , 4, 13]))
end
end

0 comments on commit 39763ca

Please sign in to comment.