deltakit.core.decoding_graphs.HyperMultiGraph#
- class deltakit.core.decoding_graphs.HyperMultiGraph#
Bases:
ABC,Generic[AnyEdgeT]Class for abstract immutable multigraph with hyperedges. Any set of vertices can be connected by one or more edges in the multi-hypergraph, forming the basis of all other graph objects.
Methods#
Return True if given detector is a boundary, False otherwise. |
|
Assume an error has happened on the given edges and return the corresponding syndrome. |
|
Generator for the edges defined by the given set of detectors. |
|
Iterator for the incident edges connected to a given detector. |
|
Iterator for the neighbours of a given detector. |
|
Convert the hypergraph to a parity check matrix of size (len(nodes), len(edges)). |