mqt.core.load¶
Main module for loading quantum circuits.
Module Contents¶
- 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 aQuantumComputationitself, a file name to any of the supported file formats, an OpenQASM (2.0 or 3.0) string, or a QiskitQuantumCircuit.- Returns:
The
QuantumComputation.- Raises:
FileNotFoundError – If the input circuit is a file name and the file does not exist.