Skip to content

Commit

Permalink
Update QHammingcode.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Fe-r-oz authored Mar 1, 2024
1 parent 344e13b commit b81d4de
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/ecc/codes/QHammingcode.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
#The Gottesman code has the parameters [[2^r, 2^r - r - 2, 3]]
#So, the parity check matrix will be of the form:
#[[I_r, K, -I_r]
#[K^T, I_(2^r - r - 2), 0]
#[0, -K, I_r]]

struct QHamming
r::Int
end
Expand All @@ -29,13 +23,3 @@ function parity_checks(code::QHamming)

return CSS(H)
end

#how to use
# Create two different instances of the quantum Hamming code
#code1 = QHamming(5) # r = 5
#code2 = QHamming(7) # r = 7

# Get the parity check matrices for each instance
#H1 = parity_checks(code1)
#H2 = parity_checks(code2)

0 comments on commit b81d4de

Please sign in to comment.