mqt.core.plugins.qiskit.mqt_to_qiskit

Functionality for translating from the MQT to Qiskit.

Module Contents

mqt_to_qiskit(qc: QuantumComputation, *, set_layout: bool = False) QuantumCircuit[source]

Convert a QuantumComputation to a Qiskit QuantumCircuit.

Parameters:
  • qc – The MQT circuit to convert.

  • set_layout – If true, the layout property is populated with the initial layout and output permutation of the MQT circuit.

Returns:

The converted circuit.

Raises:

NotImplementedError – If the MQT circuit contains variables.