LayoutGenerator#

Module: iqm.qubit_selector.qubit_selector

class iqm.qubit_selector.qubit_selector.LayoutGenerator(backend, quantum_circuit, remove_qubits=None, num_trials=2000)#

Bases: object

Generates unique layouts for quantum circuits based on calibration data and backend architecture.

Parameters:
  • backend (IQMBackendBase) – The IQM backend instance.

  • quantum_circuit (QuantumCircuit) – The quantum circuit to generate layouts for.

  • weights – Weights for calibration types.

  • additional_qubits – Number of additional qubits to consider.

  • remove_qubits (list[int] | None) – List of qubit indices (in qiskit) to remove from consideration.

  • num_trials (int) – The number of trial instances for layout generation.

Methods

generate_unique_layouts

Generate unique layouts based on the architecture of the backend.

generate_unique_layouts()#

Generate unique layouts based on the architecture of the backend.

Returns:

A list of unique layouts represented as lists of qubit indices.

Return type:

list[list[int]]

Inheritance

Inheritance diagram of iqm.qubit_selector.qubit_selector.LayoutGenerator