BaseRoutingPTN

BaseRoutingPTN#

Module: iqm.qaoa.transpiler.ptn.ptn

class iqm.qaoa.transpiler.ptn.ptn.BaseRoutingPTN(problem_bqm, qpu, initial_mapping=None)[source]#

Bases: BaseRouting

Base class for the Parity Twine Network routing (PTN).

Attributes

layers

The list of layers of the routing object.

Methods

Parameters:
  • problem_bqm (BinaryQuadraticModel)

  • qpu (QPU)

  • initial_mapping (LineMappingPTN | None)

property layers: list[list[tuple[int, int]]]#

The list of layers of the routing object.

A layer here corresponds to a Parity Twine chain and therefore it can NOT be executed in one circuit layer. The purpose of having layers like this is mostly debugging and structuring the code.

Inheritance

Inheritance diagram of iqm.qaoa.transpiler.ptn.ptn.BaseRoutingPTN