uniqc.transpiler.draw module#

Quantum circuit visualization tools.

This module provides text-based circuit drawing capabilities for quantum programs in OriginIR or QASM format.

uniqc.transpiler.draw.draw(ir_str, language='OriginIR')[source]#

Draw the circuit in text format.

Parameters:
  • ir_str (str) – The input circuit in OriginIR or QASM format.

  • language (str) – The language of the input circuit. Default is ‘OriginIR’.

Returns:

The QProg object of the input circuit.

Return type:

qprog (QProg)