Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in vqe_run when disp = True #205

Open
diogo-cruz opened this issue Mar 30, 2019 · 0 comments
Open

Bug in vqe_run when disp = True #205

diogo-cruz opened this issue Mar 30, 2019 · 0 comments

Comments

@diogo-cruz
Copy link

diogo-cruz commented Mar 30, 2019

The documentation of vqe_run in the VQE class indicates that we should use the argument disp = True if we want the expectation and parameters to be printed at each iteration.
However, in line 123 of vqe.py:

self._disp_fun = disp if disp is not None else lambda x: None

So we actually have to use disp = print for it to work as intended.

Kaustuvi added a commit to Kaustuvi/grove that referenced this issue Jun 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant