iqm.qaoa.transpiler.rx_to_nx

iqm.qaoa.transpiler.rx_to_nx#

Module to carry a helpful function to transform a rustworkx graph into a networkx.Graph.

This function isn’t included in rustworkx or networkx because these two packages don’t want to have the other as a dependency.

Functions

rustworkx_to_networkx(graph)

Convert a rustworkx graph to a networkx.Graph.