paulie.helpers.drawing.plot_graph_by_nodes#
- paulie.helpers.drawing.plot_graph_by_nodes(nodes, commutators=None)#
Plot anticommutator graph with edges labeled by commutator of endpoints.
- Parameters:
nodes (PauliStringCollection) – Generating set for anticommutator graph.
commutators (PauliStringCollection|list[PauliString], optional) – Only show those edges which have labels belonging to this set. Defaults to None, in which case all edges are shown.
- Returns:
None