Skip to content

Commit

Permalink
balanced surface/toric codes
Browse files Browse the repository at this point in the history
  • Loading branch information
perlinm committed Jan 30, 2025
1 parent 046f119 commit 042b9e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qldpc/codes/quantum.py
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ def __init__(
matrix_z = code_ab.matrix_z
self._default_conjugate = slice(code_ab.sector_size[0, 0], None)

CSSCode.__init__(self, matrix_x, matrix_z, field=field)
CSSCode.__init__(self, matrix_x, matrix_z, field=field, promise_balanced_codes=rows == cols)

@staticmethod
def get_rotated_checks(
Expand Down Expand Up @@ -1230,7 +1230,7 @@ def __init__(
matrix_z = code_ab.matrix_z
self._default_conjugate = slice(code_ab.sector_size[0, 0], None)

CSSCode.__init__(self, matrix_x, matrix_z, field=field)
CSSCode.__init__(self, matrix_x, matrix_z, field=field, promise_balanced_codes=rows == cols)

@staticmethod
def get_rotated_checks(
Expand Down

0 comments on commit 042b9e2

Please sign in to comment.