qiskit.transpiler.Layout.from_intlist¶
- static Layout.from_intlist(int_list, *qregs)[소스]¶
Converts a list of integers to a Layout mapping virtual qubits (index of the list) to physical qubits (the list values).
- 매개변수
int_list (list) – A list of integers.
*qregs (QuantumRegisters) – The quantum registers to apply the layout to.
- 반환
The corresponding Layout object.
- 반환 형식
- 예외 발생
LayoutError – Invalid input layout.