qbraid.transpiler.conversions.pytket.qasm2_to_pytket

qasm2_to_pytket(qasm)[source]

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

Parameters:

qasm (str) – OpenQASM 2 string to convert to a pytket circuit.

Returns:

PyTKET circuit object equivalent to input OpenQASM 2 string.

Return type:

pytket.circuit.Circuit