Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Fixed Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
edyounis committed Mar 3, 2021
1 parent 9155ca6 commit 7c37de0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions qfactor/optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ def optimize ( circuit, target, diff_tol_a = 1e-12, diff_tol_r = 1e-6,
if not isinstance( min_iters, int ) or min_iters < 0:
raise TypeError( "Invalid minimum number of iterations." )

if not isinstance( slowdown_factor, [float, int] ):
raise TypeError( "Slowdown factor is a positive number less than 1." )

if slowdown_factor < 0 or slowdown_factor >= 1:
raise TypeError( "Slowdown factor is a positive number less than 1." )

Expand Down

0 comments on commit 7c37de0

Please sign in to comment.