Skip to content
This repository was archived by the owner on Apr 19, 2026. It is now read-only.

Commit 28d6faa

Browse files
committed
Update draw.py
1 parent e8c7a67 commit 28d6faa

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

qpandalite/transpiler/draw.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@ def _from_qasm(qasm_str):
1212
return qprog
1313

1414
def draw(ir_str, language='OriginIR'):
15+
'''
16+
Draw the circuit in text format.
17+
18+
Args:
19+
ir_str (str): The input circuit in OriginIR or QASM format.
20+
language (str): The language of the input circuit. Default is 'OriginIR'.
21+
22+
Returns:
23+
qprog (QProg): The QProg object of the input circuit.
24+
25+
'''
1526

1627
if language == 'OriginIR':
1728
qprog = _from_originir(ir_str)

0 commit comments

Comments
 (0)