Spanish
Idiomas
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.transpiler.Layout.from_intlist

static Layout.from_intlist(int_list, *qregs)[fuente]

Converts a list of integers to a Layout mapping virtual qubits (index of the list) to physical qubits (the list values).

Parámetros
  • int_list (list) – A list of integers.

  • *qregs (QuantumRegisters) – The quantum registers to apply the layout to.

Devuelve

The corresponding Layout object.

Tipo del valor devuelto

Layout

Muestra

LayoutError – Invalid input layout.