Korean
언어
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.transpiler.Layout.from_qubit_list

static Layout.from_qubit_list(qubit_list, *qregs)[소스]

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

반환 형식

Layout

예외 발생

LayoutError – If the elements are not Qubit or None