deltakit.decode.utils.VisDecodingGraph3D#

class deltakit.decode.utils.VisDecodingGraph3D(decoding_graph: NXDecodingGraph)#

Bases: object

Class to render 2+1D DecodingGraphs using plotly.

Parameters:

decoding_graph (NXDecodingGraph) – Decoding graph to base visualisations on.

Methods#

VisDecodingGraph3D.get_categorised_edges_traces

Add edges of the base graph as lines to traces

VisDecodingGraph3D.get_corrections_traces

Add correction from decoder to traces.

VisDecodingGraph3D.get_edges_traces

Add edges of the base graph as lines to traces

VisDecodingGraph3D.get_error_edges_traces

Add error to traces.

VisDecodingGraph3D.get_logical_edges_traces

Add logical edges to traces.

VisDecodingGraph3D.get_node_traces

Add nodes of the base graph to traces.

VisDecodingGraph3D.get_plot_3d_traces

Plots the DecodingGraph in 3D based on the coordinates (h, v, t) of the nodes of the graph.

VisDecodingGraph3D.get_syndrome_traces

Given a lit up syndrome, add its nodes to traces

VisDecodingGraph3D.highlight_edges_traces

Highlight given set of edges in set colour with the edge type as label.

VisDecodingGraph3D.plot_3d

Plots the DecodingGraph in 3D based on the coordinates (h, v, t) of the nodes of the graph.