maxcut_draw
QuICT.tools.display.graph_drawer ¶
Draw an undirected graph based on given nodes and edges.
Parameters:
-
nodes(list) –The nodes of the graph.
-
edges(list) –The edges of the graph.
-
title(str, default:'Graph') –The title of the figure. Defaults to "Graph".
-
save_path(str, default:None) –The path to save the figure. Defaults to None.
Source code in QuICT/tools/display/maxcut_draw.py
QuICT.tools.display.result_drawer ¶
Draw an undirected graph based on given nodes and edges.
Parameters:
-
nodes(list) –The nodes of the graph.
-
edges(list) –The edges of the graph.
-
solution_bit(str) –The result state as a binary string.
-
title(str, default:'The result of MaxCut') –The title of the figure. Defaults to "The result of MaxCut".
-
save_path(str, default:None) –The path to save the figure. Defaults to None.