Skip to content

Commit

Permalink
Merge pull request #149 from dlyongemallo/fix_parse_phase_arg_errmsg
Browse files Browse the repository at this point in the history
Fix a wrong variable used in error message.
  • Loading branch information
jvdwetering authored Sep 6, 2023
2 parents f13746e + 6c6362a commit dcb21f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyzx/circuit/qasmparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def parse_phase_arg(self, val):
try:
phase = float(val)/math.pi
except ValueError:
if val.find('pi') == -1: raise TypeError("Invalid specification {}".format(name))
if val.find('pi') == -1: raise TypeError("Invalid specification {}".format(val))
try:
val = val.replace('pi', '')
val = val.replace('*','')
Expand Down

0 comments on commit dcb21f0

Please sign in to comment.