You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Kaustuvi
added a commit
to Kaustuvi/grove
that referenced
this issue
Jun 3, 2019
The documentation of
vqe_run
in the VQE class indicates that we should use the argumentdisp = 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.The text was updated successfully, but these errors were encountered: