Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarhiggott committed Nov 27, 2020
1 parent f52ad20 commit ec73097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pymatching/lemon_mwpm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ py::array_t<std::uint8_t> LemonDecodeMatchNeighbourhood(WeightedStabiliserGraph&
is_connected = lemon::connected(defect_graph->g);
}

if (!lemon::connected(defect_graph->g)){
if (!is_connected){
throw std::runtime_error("Graph must have only one connected component");
}

Expand Down

0 comments on commit ec73097

Please sign in to comment.