Skip to content

Commit

Permalink
nit change to matrix conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
perlinm committed Jan 29, 2025
1 parent 2a5ddd2 commit 294c86e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qldpc/codes/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ def get_automorphism_group(self) -> abstract.Group:
The auomorphism group of a classical linear code is the group of permutations of bits that
preserve the code space.
"""
matrix = np.array([row for row in self.canonicalized().matrix])
matrix = self.canonicalized().matrix.view(np.ndarray)
checks_str = ["[" + ",".join(map(str, line)) + "]" for line in matrix]
matrix_str = "[" + ",".join(checks_str) + "]"
code_str = f"CheckMatCode({matrix_str}, GF({self.field.order}))"
Expand Down

0 comments on commit 294c86e

Please sign in to comment.