Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Coull committed Oct 21, 2024
1 parent eccf40a commit ccdce81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/resources/qaoa_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ccdce81

Please sign in to comment.