Skip to content

Commit

Permalink
Docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
majafranz committed Nov 5, 2024
1 parent 225a615 commit 2c193a5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/fromhopetoheuristics/utils/qaoa_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,11 @@ def solve_QUBO_with_QAOA(
The optimiser to use. Defaults to "COBYLA".
tolerance : float, optional
The tolerance for the optimization algorithm. Defaults to 1e-3.
maxiter : int, optional
Number of maximum iterations for the optimization algorithm. Defaults
to 1000.
options : dict, optional
Additional options for the optimiser. Defaults to empty dict.
Returns
-------
Expand Down Expand Up @@ -673,6 +678,11 @@ def run_QAOA(
The optimiser to use, defaults to "COBYLA".
tolerance : float, optional
The tolerance for the optimization algorithm, defaults to 1e-3.
maxiter : int, optional
Number of maximum iterations for the optimization algorithm. Defaults
to 1000.
options : dict, optional
Additional options for the optimiser. Defaults to empty dict.
Returns
-------
Expand Down

0 comments on commit 2c193a5

Please sign in to comment.