Hi,
Is there a way to measure the execution time in PennyLane scripts?
e.g. qiskit command: job.result().time_taken
Kind regards!
Hi,
Is there a way to measure the execution time in PennyLane scripts?
e.g. qiskit command: job.result().time_taken
Kind regards!
Hello @cmaps,
there is currently no such option available in PennyLane.
Python still offers a relatively easy way to implement timing, you can do it with the following approach:
import time
start = time.time()
print("Here is your code")
end = time.time()
print(end - start) # time elapsed in seconds
See also this discussion on StackOverflow.