exa.core.util.topology.is_valid_homomorphism#
- is_valid_homomorphism(rev_mapping, layout_graph, chip_graph)#
Check if the mapping corresponds to a valid injective homomorphism between two graphs.
- Parameters:
- Returns:
True if the mapping given is an injective homomorphism from the logical qubit graph to the chip graph.
- Return type: