View source on GitHub |
Return whether the given placement is a valid placement of small_graph onto big_graph.
cirq.is_valid_placement(
big_graph: nx.Graph, small_graph: nx.Graph, small_to_big_mapping: Dict
)
Used in the notebooks
Used in the tutorials |
---|
This is done by making sure all the nodes and edges on the mapped version of small_graph
are present in big_graph
.