Skip to content

Commit

Permalink
Merge branch 'main' into DecodingGraphEdge_typo
Browse files Browse the repository at this point in the history
  • Loading branch information
grace-harper authored Oct 4, 2023
2 parents bbe097a + aba9d5a commit 75ebc4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/qiskit_qec/circuits/repetition_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -1408,7 +1408,7 @@ def _make_syndrome_graph(self):
+ "1" * len(self.links)
)
nodes: List[DecodingGraphNode] = []
for node in self.string2nodes(string):
for node in self.string2nodes(string, all_logicals=True):
if not node.is_boundary:
for t in range(self.T + 1):
new_node = deepcopy(node)
Expand Down
2 changes: 1 addition & 1 deletion test/code_circuits/test_rep_codes.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ def clustering_decoder_test(
codes = [RepetitionCode(d, 1)]
# then a linear ARC
links = [(2 * j, 2 * j + 1, 2 * (j + 1)) for j in range(d - 1)]
codes.append(ArcCircuit(links, 0))
codes.append(ArcCircuit(links, 0, logical="1"))
# then make a bunch of non-linear ARCs
links_cross = [(2 * j, 2 * j + 1, 2 * (j + 1)) for j in range(d - 2)]
links_cross.append((2 * (d - 2), 2 * (d - 2) + 1, 2 * (int(d / 2))))
Expand Down

0 comments on commit 75ebc4f

Please sign in to comment.