From 7d5f61925072e4928d341151ae706ea6ff2ac473 Mon Sep 17 00:00:00 2001 From: Abe Coull <85974725+math411@users.noreply.github.com> Date: Tue, 22 Oct 2024 12:04:53 -0700 Subject: [PATCH] Update qaoa_utils.py --- test/resources/qaoa_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/resources/qaoa_utils.py b/test/resources/qaoa_utils.py index 32b1258..6ebd3aa 100644 --- a/test/resources/qaoa_utils.py +++ b/test/resources/qaoa_utils.py @@ -90,7 +90,7 @@ def tf_cost(): _cached_cost_before = cost_function(params) return _cached_cost_before - optimizer.apply_gradients(zip([tf_cost], [params])) + optimizer.apply_gradients(zip([tf_cost], params)) cost_before = _cached_cost_before # Alternative: