Skip to content

Commit

Permalink
fix tox
Browse files Browse the repository at this point in the history
  • Loading branch information
dakk committed Nov 24, 2023
1 parent 669ad73 commit 0933fed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions qlasskit/algorithms/grover.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ def __init__(
oracle: QlassF,
element_to_search: Optional[Qtype] = None,
n_iterations: Optional[int] = None,
n_matching: int = 1
n_matching: int = 1,
):
"""
Args:
oracle (QlassF): our f(x) -> bool that returns True if x satisfies the function or
a generic function f(x) = y that we want to compare with element_to_search
element_to_search (Qtype, optional): the element we want to search
n_iterations (int, optional): force a number of iterations (otherwise, pi/4*sqrt(N/n_matching))
n_iterations (int, optional): force a number of iterations
(otherwise, pi/4*sqrt(N/n_matching))
n_matching (int): the number of expected matching values (default: 1)
"""
if len(oracle.args) != 1:
Expand Down

0 comments on commit 0933fed

Please sign in to comment.