qiskit.transpiler.CouplingMap.neighbors¶
- CouplingMap.neighbors(physical_qubit)[Quellcode]¶
Return the nearest neighbors of a physical qubit.
Directionality matters, i.e. a neighbor must be reachable by going one hop in the direction of an edge.
Return the nearest neighbors of a physical qubit.
Directionality matters, i.e. a neighbor must be reachable by going one hop in the direction of an edge.