German
Sprachen
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.transpiler.CouplingMap.distance

CouplingMap.distance(physical_qubit1, physical_qubit2)[Quellcode]

Returns the undirected distance between physical_qubit1 and physical_qubit2.

Parameter
  • physical_qubit1 (int) – A physical qubit

  • physical_qubit2 (int) – Another physical qubit

Rückgabe

The undirected distance

Rückgabetyp

int

Verursacht

CouplingError – if the qubits do not exist in the CouplingMap