Skip to content

Commit

Permalink
Update qasm.py (#334)
Browse files Browse the repository at this point in the history
Fixes issue #332
  • Loading branch information
kottmanj authored Mar 18, 2024
1 parent 871b1b9 commit a752e8c
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 @@ -362,7 +362,7 @@ def parse_command(command: str, custom_gates_map: Dict[str, QCircuit], qregister
control=get_qregister(args[0], qregisters),
target=get_qregister(args[1], qregisters))
if name in ("s", "t", "sdg", "tdg"):
g = gates.Phase(pi / (2 if name.startswith("s") else 4),
g = gates.Phase(angle=pi / (2 if name.startswith("s") else 4),
control=None,
target=get_qregister(args[0], qregisters))
if name.find("dg") != -1:
Expand Down

0 comments on commit a752e8c

Please sign in to comment.