it would be nice to add a python interface similar to pymatching (https://github.com/oscarhiggott/PyMatching)