deltakit.core.decoding_graphs.DecodingCode#

class deltakit.core.decoding_graphs.DecodingCode(hypergraph: DecodingHyperGraph, logicals: Sequence[Set[DecodingHyperEdge]])#

Bases: object

Convenience class encapsulating the annotated hypergraph and logicals.

Methods#

DecodingCode.to_nx_code

Lower hypergraph to graph, if there are no hyper edges.