Skip to content

Commit

Permalink
Update qasm.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kottmanj authored Mar 20, 2024
1 parent da7854c commit a0352bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tequila/circuit/qasm.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def parse_command(command: str, custom_gates_map: Dict[str, QCircuit], qregister
G = getattr(gates, name.upper())
target = get_qregister(args[0], qregisters)
control = None
if name[0] == c:
if name[0].lower() == 'c':
control = get_qregister(args[0], qregisters)
target = get_qregister(args[1], qregisters)
return G(control=control, target=target)
Expand Down

0 comments on commit a0352bc

Please sign in to comment.