Skip to content

Commit

Permalink
Fix load_from_networkx docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarhiggott committed Sep 6, 2021
1 parent d0ecdca commit b20864f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pymatching/matching.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,7 @@ def load_from_networkx(self, graph: nx.Graph) -> None:
>>> m
<pymatching.Matching object with 2 qubits, 1 detector, 2 boundary nodes, and 2 edges>
>>> m.edges()
[(0, 1, {'qubit_id': {0}, 'weight': 2.1972245773362196, 'error_probability': 0.1}),
(1, 2, {'qubit_id': {1}, 'weight': 1.7346010553881064, 'error_probability': 0.15})]
[(0, 1, {'qubit_id': {0}, 'weight': 2.1972245773362196, 'error_probability': 0.1}), (1, 2, {'qubit_id': {1}, 'weight': 1.7346010553881064, 'error_probability': 0.15})]
"""

if not isinstance(graph, nx.Graph):
Expand Down

0 comments on commit b20864f

Please sign in to comment.