cunqa.converters

Holds functions for converting circuits into the different formats: qiskit.QuantumCircuit, CunqaCircuit and json dict.

There is the general convert() function, that identifies the input format and transforms according to the format desired by the variable convert_to.

Warning

It is not possible to convert circuits with classical or quantum communications instructions into qiskit.QuantumCircuit since these are not supported by this format. It one tries, an error will be raised.

Functions

convert

Function to convert a quantum circuit to the desired format.

Exceptions

ConvertersError

Exception for error during conversion between circuit types.