qbraid.transpiler.conversions.pytket.pytket_to_qasm2

pytket_to_qasm2(circuit)[source]

Returns an OpenQASM 2 string equivalent to the input pytket circuit.

Parameters:

circuit (pytket.circuit.Circuit) – PyTKET circuit to convert to OpenQASM 2 string.

Returns:

OpenQASM 2 string equivalent to input pytket circuit.

Return type:

str