Skip to content

Commit

Permalink
Bugfix: vqe train function
Browse files Browse the repository at this point in the history
  • Loading branch information
renezander90 committed Jul 13, 2024
1 parent 0217558 commit 1782786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qrisp/vqe/vqe_problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def circuit_generator(qarg_gen):
self.init_function(qarg_gen)

for i in range(depth):
self.ansatz_function(qarg,[optimal_theta[self.num_params*i+j] for j in range(self.num_params)])
self.ansatz_function(qarg_gen,[optimal_theta[self.num_params*i+j] for j in range(self.num_params)])

return circuit_generator

Expand Down

0 comments on commit 1782786

Please sign in to comment.