Skip to content

Commit

Permalink
fun stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
quantumjim committed Feb 16, 2024
1 parent 8036e3c commit 1a28bf5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/qiskit_qec/circuits/intern/arctools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ std::vector<int> check_nodes(
int root;
int max_num = 0;
for (auto & nq_num: nq_nums){
if (nq_num.second > max_num){
if (nq_num.second == max_num){
root = nq_num.first;
max_num = nq_num.second;
}
Expand Down
6 changes: 6 additions & 0 deletions src/qiskit_qec/decoders/hdrg_decoders.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,12 @@ def cluster(self, nodes: List):
# put them in the required dict
for n in neutral_nodes:
clusters[n] = c
if j == 2 * self.code.d * (self.code.T + 1):
print(self.code)
print(self.code.T, self.code.d)
print(nodes)
print(clusters)
print()

# also compile into form required for peeling
self._clusters4peeling = []
Expand Down

0 comments on commit 1a28bf5

Please sign in to comment.