pennylane_calculquebec.utility.graph.is_directly_connected#
- pennylane_calculquebec.utility.graph.is_directly_connected(operation: Operation, machine_topology: Graph) bool#
Checks if a 2 qubits operation is mapped to a coupler in the machine
- Parameters:
operation (Operation) – a two qubits operation
machine_topology (Graph) – the machine’s graph
- Returns:
does the graph have a link that maps given operation?
- Return type:
bool