Skip to content

Commit

Permalink
Add show_progress
Browse files Browse the repository at this point in the history
  • Loading branch information
alleSini99 committed Jun 25, 2024
1 parent 63960ff commit 6295df9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion netket_fidelity/driver/infidelity_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ def run(
*args,
target_infidelity=None,
callback=lambda *x: True,
show_progress=True,
**kwargs,
):
"""
Expand Down Expand Up @@ -184,7 +185,7 @@ def run(
)
callbacks = callbacks + (cb,)

super().run(n_iter, out, *args, callback=callbacks, **kwargs)
super().run(n_iter, out, *args, show_progress=show_progress, callback=callbacks, **kwargs)

@property
def cv(self) -> Optional[float]:
Expand Down

0 comments on commit 6295df9

Please sign in to comment.