From 5e101bc3fc8772c9810e6e1476f7b345b8753cce Mon Sep 17 00:00:00 2001 From: Yiming Zhang <61700160+inmzhang@users.noreply.github.com> Date: Wed, 20 Sep 2023 00:42:18 +0800 Subject: [PATCH] Fix a small bug (#384) Co-authored-by: grace-harper <119029214+grace-harper@users.noreply.github.com> --- 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 fdbb5d25..3b749163 100644 --- a/src/qiskit_qec/linear/symplectic.py +++ b/src/qiskit_qec/linear/symplectic.py @@ -690,7 +690,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