tqec.computation.zx_plot.plot_zx_graph#
- plot_zx_graph(graph: ZXGraph, *, figsize: tuple[float, float] = (5, 6), title: str | None = None, node_size: int = 400, hadamard_size: int = 200, edge_width: int = 1) tuple[Figure, Axes3D] [source]#
Draw the 3D graph using matplotlib.
- Parameters:
figsize – The figure size. Default is (5, 6).
title – The title of the plot. Default is the name of the graph.
node_size – The size of the node. Default is 400.
hadamard_size – The size of the Hadamard transition. Default is 200.
edge_width – The width of the edge. Default is 1.