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(target: IQMTarget, circuit: QuantumCircuit) Layout#

Generate an initial layout for the given circuit, for running on the given Star architecture target.

Parameters:
  • target (IQMTarget) – IQM Star architecture target to run the circuit on, without fictional gates.

  • circuit (QuantumCircuit) – Quantum circuit for which a layout is to be generated.

Returns:

Layout that maps the virtual/logical qubits of circuit to the physical qubits of target so that all the gates in circuit are available on those loci.

Return type:

Layout