From ba1c29bb94bc3a7ebbb0e4a836917b529e037972 Mon Sep 17 00:00:00 2001 From: Patrick <> Date: Sun, 5 May 2024 16:44:00 +0200 Subject: [PATCH] fix method call --- src/qutip_qoc/_optimizer.py | 2 +- src/qutip_qoc/pulse_optim.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qutip_qoc/_optimizer.py b/src/qutip_qoc/_optimizer.py index 1bd647c..697e11e 100644 --- a/src/qutip_qoc/_optimizer.py +++ b/src/qutip_qoc/_optimizer.py @@ -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 diff --git a/src/qutip_qoc/pulse_optim.py b/src/qutip_qoc/pulse_optim.py index 5354ccb..88353f4 100644 --- a/src/qutip_qoc/pulse_optim.py +++ b/src/qutip_qoc/pulse_optim.py @@ -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`