Japanese
Languages
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