qbraid.transpiler.conversions.qiskit.qiskit_to_qasm2

qiskit_to_qasm2(circuit)[source]

Returns OpenQASM 2 string equivalent to the input Qiskit circuit.

Parameters:

circuit (QuantumCircuit) – Qiskit circuit to convert to OpenQASM 2 string.

Returns:

OpenQASM 2 representation of the input Qiskit circuit.

Return type:

str