Skip to content

Commit

Permalink
fix method call
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick committed May 5, 2024
1 parent 6c8843c commit ba1c29b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/qutip_qoc/_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def _global_local_optimization(
# when terminated through StopIteration (see min_callback)
if min_res.fun < result.infidelity:
if cllbck.inside_bounds(min_res.x):
result.update(min_res.fun, min_res.x)
result._update(min_res.fun, min_res.x)

# save runtime information in result
result.n_iters = min_res.nit
Expand Down
1 change: 1 addition & 0 deletions src/qutip_qoc/pulse_optim.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ def optimize_pulses(
- max_iter : int, optional
Maximum number of iterations to perform.
Default is 0 (no global optimization).
Full list of options can be found in
:func:`scipy.optimize.basinhopping`
Expand Down

0 comments on commit ba1c29b

Please sign in to comment.