Skip to content

Commit

Permalink
Update qaoa_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AbeCoull authored Oct 22, 2024
1 parent ccdce81 commit 7d5f619
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 7d5f619

Please sign in to comment.