mqt.predictor.qcompile

Helper functions for the machine learning device selection predictor.

Module Contents

qcompile(qc: qiskit.QuantumCircuit, figure_of_merit: qcompile.figure_of_merit = 'expected_fidelity') tuple[qiskit.QuantumCircuit, list[str], str][source]

Compiles a given quantum circuit to a device with the highest predicted figure of merit.

Parameters:
  • qc – The quantum circuit to be compiled.

  • figure_of_merit – The figure of merit to be used for compilation. Defaults to “expected_fidelity”.

Returns:

A tuple containing the compiled quantum circuit, the compilation information, and the name of the device used for compilation.