paulie.common.get_graph.get_graph#
- paulie.common.get_graph.get_graph(generators, commutators=None, flag_labels=True)#
Get the anticommutation graph.
- Parameters:
nodes (list[PauliString]) – Generating set for anticommutator graph.
commutators (list[PauliString], optional) – Only add those edges which have labels belonging to this set. Defaults to None, in which case all edges are added.
flag_labels (bool, optional) – Boolean indicating whether to include labels in the graph. Defaults to True.
- Returns:
Vertices, edges, and edge labels for the anticommutation graph.