Skip to content

Commit

Permalink
force u.to_clock_cycles to return an integer
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoLaudatQM committed May 15, 2024
1 parent ddb2e6c commit d33524d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qualang_tools/units/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def to_clock_cycles(self, t):
f"Warning: the specified duration ({t}) to be converted to clock cycles in not an integer. It has been converted to int ({int(t)}) to avoid subsequent errors."
)
t = int(t * self.ns)
return t // 4
return int(t // 4)

def demod2volts(
self,
Expand Down

0 comments on commit d33524d

Please sign in to comment.