GeneralizedSabreLayoutPass.forward_pass
- GeneralizedSabreLayoutPass.forward_pass(circuit, pi, cg, modify_circuit=False)
Apply a forward 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.
modfiy_circuit (
bool) – Whether to modify the circuit as the pass is applied or not. (Default: False)
- Return type:
None