Skip to content

Commit

Permalink
fixes rigetti#205
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaustuvi committed Jun 3, 2019
1 parent b6e17c0 commit 58433b0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions grove/pyvqe/vqe.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@ def vqe_run(self, variational_state_evolve, hamiltonian, initial_params,
returned if 'return_all=True' is set as a
vqe_run() option.
"""
# self._disp_fun = disp if disp is not None else lambda x: None
self._disp_fun = lambda x: None if disp is not True else print
self._disp_fun = print if disp is True else lambda x: None
iteration_params = []
expectation_vals = []
self._current_expectation = None
Expand Down

0 comments on commit 58433b0

Please sign in to comment.