From d9da3ebbd86eb1dddd698b19ac806b20f6ad82ab Mon Sep 17 00:00:00 2001 From: Yiming zhang <592148382@qq.com> Date: Sat, 26 Aug 2023 11:35:14 +0800 Subject: [PATCH] Fix a small bug --- src/qiskit_qec/linear/symplectic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qiskit_qec/linear/symplectic.py b/src/qiskit_qec/linear/symplectic.py index 80fe38fe..b5cae4a7 100644 --- a/src/qiskit_qec/linear/symplectic.py +++ b/src/qiskit_qec/linear/symplectic.py @@ -691,7 +691,7 @@ def _build_hyper_partner(matrix, index: int) -> np.ndarray: for i in range(ncols): if heads[i] == 1: result[i] = trans_e_index[pivot] - pivot = +1 + pivot += 1 return result