iqm.qiskit_iqm.iqm_move_layout.generate_initial_layout

iqm.qiskit_iqm.iqm_move_layout.generate_initial_layout#

iqm.qiskit_iqm.iqm_move_layout.generate_initial_layout(backend: IQMBackend, circuit: QuantumCircuit)#

Generates the initial layout for the given circuit, when run against the given backend.

Parameters:
  • against (backend - the IQM backend to run) –

  • generated (circuit - the circuit for which a layout is to be) –

  • backend (IQMBackend) –

  • circuit (QuantumCircuit) –

Returns:

a layout that remaps the qubits so that the move qubit and the resonator are using the correct indices.