iqm.qiskit_iqm.iqm_move_layout.generate_initial_layout#
- iqm.qiskit_iqm.iqm_move_layout.generate_initial_layout(backend: IQMBackendBase, circuit: QuantumCircuit, restrict_to_qubits: list[int] | list[str] | None = None) Layout #
Generates an initial layout for the given circuit, when run against the given backend.
- Parameters:
backend (IQMBackendBase) – IQM backend to run against.
circuit (QuantumCircuit) – Star architecture circuit for which a layout is to be generated.
restrict_to_qubits (list[int] | list[str] | None) – Optional list of qubits to restrict the layout to.
- Returns:
Layout that maps the logical qubits of
circuit
to the physical qubits ofbackend
so that all the gates incircuit
are available on those loci.- Return type: