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', tracer_output_path: str | Path | None = None) 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”.
tracer_output_path – If provided, enables compiler tracing and exports the JSON log to this path/directory.
- Returns:
A tuple containing the compiled quantum circuit, the compilation information, and the name of the device used for compilation.