Skip to content

Commit

Permalink
Update test_qhamming_code.jl
Browse files Browse the repository at this point in the history
Delete [test_qhamming_code.jl]
  • Loading branch information
Fe-r-oz authored Mar 5, 2024
1 parent e4d0759 commit 412d54a
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions test/test_qhamming_code.jl
Original file line number Diff line number Diff line change
@@ -1,21 +1 @@
using Test
using QuantumClifford
using QuantumClifford.ECC: QHamming

# Define test cases
@testset "QHamming Code Tests" begin
# Test parity checks generation
@testset "Parity Checks" begin
hamming_code = QHamming(3)
@test size(parity_checks(hamming_code)) == (3, 8)
@test all(parity_checks(hamming_code) .>= 0)
# Add more parity check tests if needed
end

# Test block size calculation
@testset "Block Size" begin
hamming_code = QHamming(3)
@test code_n(hamming_code) == 8
# Add more block size tests if needed
end
end

0 comments on commit 412d54a

Please sign in to comment.