mqt.core

MQT Core - The Backbone of the Munich Quantum Toolkit.

Submodules

Package Contents

__version__: str
version_info: tuple[int, int, int, str, str] | tuple[int, int, int]
load(input_circuit: QuantumComputation | str | PathLike[str] | QuantumCircuit) QuantumComputation[source]

Load a quantum circuit from any supported format as a QuantumComputation.

Parameters:

input_circuit – The input circuit to translate to a QuantumComputation. This can be a QuantumComputation itself, a file name to any of the supported file formats, an OpenQASM (2.0 or 3.0) string, or a Qiskit QuantumCircuit.

Returns:

The QuantumComputation.

Raises:

FileNotFoundError – If the input circuit is a file name and the file does not exist.