Skip to content

Commit

Permalink
Create code833
Browse files Browse the repository at this point in the history
  • Loading branch information
Fe-r-oz authored Mar 1, 2024
1 parent 296c634 commit 4032b7f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/ecc/code833
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

# TODO [[8,1,3]] qubit code

struct code833 <: AbstractECC end

parity_checks(c::code833) = S"XXXXXXXX
ZZZZZZZZ
_X_XYZYZ
_XZY_XZY
_YXZXZ_Y"

parity_checks_x(c::code833) = stab_to_gf2(parity_checks(code822()))[1:3,1:end÷2]
parity_checks_z(c::code833) = stab_to_gf2(parity_checks(code833()))[5:end,end÷2+1:end]

distance(c::code833) = 3

0 comments on commit 4032b7f

Please sign in to comment.