I am working on calculating the exact runtime of a quantum circuit on the
ibmq_16_melbourne device. I am using the API
result.time_taken to calculate the run time.
result = execute(circuit, backend, shots=8000).result() counts = result.get_counts(circuit) print(counts) print("Time taken: ", result.time_taken)
I executed by python code on ibm quantum lab (which is a Jupyter notebook) and also using Pycharm on my laptop. I get huge variations in the results. So, I concluded that
result.time_taken does not provide the run time correctly. I am going through the documentation, but still could not find the solution.
Please provide some solution to calculate exact runtime.