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

qiskit.transpiler.CouplingMap.from_heavy_square

classmethod CouplingMap.from_heavy_square(distance, bidirectional=True)[소스]

Return a heavy square graph coupling map.

A heavy square graph is described in:

https://journals.aps.org/prx/abstract/10.1103/PhysRevX.10.011022

매개변수
  • distance (int) – The code distance for the generated heavy square graph. The value for distance can be any odd positive integer. The distance relates to the number of qubits by: \(n = 3d^2 - 2d\) where \(n\) is the number of qubits and \(d\) is the distance parameter.

  • bidirectional (bool) – Whether the edges in the output coupling graph are bidirectional or not. By default this is set to True

반환

A heavy square coupling graph

반환 형식

CouplingMap