tqec.computation.zx_plot.draw_zx_graph_on#

draw_zx_graph_on(graph: ZXGraph, ax: Axes3D, *, node_size: int = 400, hadamard_size: int = 200, edge_width: int = 1, annotate_ports: bool = True) None[source]#

Draw the 3D graph using matplotlib on the provided figure.

Parameters:
  • graph – The ZX graph to draw.

  • ax – a 3-dimensional ax to draw on.

  • 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.

  • annotate_ports – Whether to annotate the ports if they are present. Default is True.