Skip to content

Commit

Permalink
Fixes #112
Browse files Browse the repository at this point in the history
  • Loading branch information
jvdwetering committed Feb 23, 2023
1 parent ff7ba72 commit 0ca8a0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyzx/circuit/qasmparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ def parse_phase_arg(self, val):
else:
val = val.strip()
if not val: phase = 1
elif val == '-': phase = -1
else: phase = float(val)
except: raise TypeError("Invalid specification {}".format(val))
phase = Fraction(phase).limit_denominator(100000000)
Expand Down

0 comments on commit 0ca8a0f

Please sign in to comment.