From a41cc3dc5d3a416ab760803fcdbc7c6392169309 Mon Sep 17 00:00:00 2001 From: James Wootton Date: Fri, 16 Feb 2024 14:02:44 +0100 Subject: [PATCH] Revert "limit loop" This reverts commit 8036e3c9ee7f9b0d9411599e35a48e70d1172b19. --- src/qiskit_qec/decoders/hdrg_decoders.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/qiskit_qec/decoders/hdrg_decoders.py b/src/qiskit_qec/decoders/hdrg_decoders.py index 5f5815e9..619761ad 100644 --- a/src/qiskit_qec/decoders/hdrg_decoders.py +++ b/src/qiskit_qec/decoders/hdrg_decoders.py @@ -383,9 +383,8 @@ def cluster(self, nodes: List): self._create_new_cluster(node_index) j = 0 - while self.odd_cluster_roots and j < 2 * self.code.d * (self.code.T + 1): + while self.odd_cluster_roots and j < 2 * self.code.d * self.code.T: self._grow_and_merge_clusters() - j += 1 # compile info into standard clusters dict clusters = {}