qiskit.transpiler.Layout.from_intlist¶
- static Layout.from_intlist(int_list, *qregs)[source]¶
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.