Korean
언어
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.transpiler.CouplingMap.distance

CouplingMap.distance(physical_qubit1, physical_qubit2)[소스]

Returns the undirected distance between physical_qubit1 and physical_qubit2.

매개변수
  • physical_qubit1 (int) – A physical qubit

  • physical_qubit2 (int) – Another physical qubit

반환

The undirected distance

반환 형식

int

예외 발생

CouplingError – if the qubits do not exist in the CouplingMap