You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current Problem
Unlike the Chimera version of find_clique_embedding, the Pegasus version requires a NetworkX graph.
Proposed Solution
Similar parameter to Chimera's find_clique_embedding
Alternatives Considered
Grunt work to use the existing function:
G =nx.Graph()
G.add_nodes_from(qpu.nodelist)
G.add_edges_from(qpu.edgelist)
p6 = dnx.pegasus_graph(6)
missing_nodes = [node for node in p6.nodes if node not in G.nodes]
missing_edges = [edge for edge in p6.edges if edge not in G.edges]
p6.remove_nodes_from(missing_nodes)
p6.remove_edges_from(missing_edges)
Additional context
Advantage
The text was updated successfully, but these errors were encountered:
Current Problem
Unlike the Chimera version of
find_clique_embedding
, the Pegasus version requires a NetworkX graph.Proposed Solution
Similar parameter to Chimera's
find_clique_embedding
Alternatives Considered
Grunt work to use the existing function:
Additional context
Advantage
The text was updated successfully, but these errors were encountered: