PAMRoutingPass.backward_pass

PAMRoutingPass.backward_pass(circuit, pi, cg)

Apply a backward pass of the Sabre algorithm to pi.

Parameters:
  • circuit (Circuit) – The circuit to pass over.

  • pi (list[int]) – The input logical-to-physical mapping. This maps logical qudits to physical qudits. So, pi[l] == p implies logical qudit l is sitting on physical qudit p.

  • cg (CouplingGraph) – The connectivity of the hardware.