qiskit.transpiler.Layout.from_qubit_list¶
- static Layout.from_qubit_list(qubit_list, *qregs)[source]¶
Populates a Layout from a list containing virtual qubits, Qubit or None.
- প্যারামিটার
qubit_list (list) -- e.g.: [qr[0], None, qr[2], qr[3]]
*qregs (QuantumRegisters) -- The quantum registers to apply the layout to.
- রিটার্নস
the corresponding Layout object
- রিটার্ন টাইপ
- রেইজেস
LayoutError -- If the elements are not Qubit or None