PAMLayoutPass.forward_pass

PAMLayoutPass.forward_pass(circuit, pi, cg, perm_data, modify_circuit=False)

Apply a forward pass of the PAM 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.

  • perm_data (dict[CircuitPoint, PAMBlockTAPermData]) – Maps each permutation configuration for every block.

  • modfiy_circuit (bool) – Whether to modify the circuit as the pass is applied or not. (Default: False)