Some VQE computations for molecular ground states may take several hours.
It would be good for the community if you could include an input to functions like pennylane.expval to activate something like the tqdm function to show a progress bar and estimated time left.
Thank you for your suggestion @Den !
You can try using qml.Tracker. You can provide a callback function that is called each time the tracker updates. This will allow you to see how many device executions have occurred.
def total_executions(totals, history, latest):
if 'executions' in latest:
print("Total executions: ", totals['executions'])
Let me know if this helps!
1 Like
You can of course use tqdm too if you prefer.
1 Like