From 5c5f13cf2f5cfabd6257b4a598c9f00f36a5760a Mon Sep 17 00:00:00 2001 From: Maurice Hanisch <133436688+MauriceDHanisch@users.noreply.github.com> Date: Wed, 4 Oct 2023 18:19:09 +0200 Subject: [PATCH] Node -> Edge typo (#393) Co-authored-by: grace-harper <119029214+grace-harper@users.noreply.github.com> --- src/qiskit_qec/utils/decoding_graph_attributes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qiskit_qec/utils/decoding_graph_attributes.py b/src/qiskit_qec/utils/decoding_graph_attributes.py index bf4c0b92..0bbe5e52 100644 --- a/src/qiskit_qec/utils/decoding_graph_attributes.py +++ b/src/qiskit_qec/utils/decoding_graph_attributes.py @@ -133,7 +133,7 @@ def __setitem__(self, key, value): self.properties[key] = value def __eq__(self, rhs) -> bool: - if not isinstance(rhs, DecodingGraphNode): + if not isinstance(rhs, DecodingGraphEdge): return NotImplemented return set(self.qubits) == set(rhs.qubits) and self.weight == rhs.weight