3
$\begingroup$
job = execute(qwalk_circuit, backend='ibmq_16_melbourne', shots=1000)

results = job.result()

time = job.result().time_taken

What are the units of time? And where is this stated in the documentation?

Thanks!

$\endgroup$
2
  • 1
    $\begingroup$ I tried to run a job and compare the output of time_taken to the runtime in IBM quantum experience, but I cannot find any relation between the two. $\endgroup$
    – Mauricio
    Jul 29 at 13:45
  • 1
    $\begingroup$ Looks like missing from the docs indeed: qiskit.org/documentation/stubs/… $\endgroup$
    – 3yakuya
    Jul 29 at 16:56

1 Answer 1

0
$\begingroup$

As @3yakuya has said, this is missing from the documentation.

The best I could find is a Qiskit tutorial (version 0.37.1) which uses the parameter. According to this tutorial (see the 3rd code cell), the unit of time appears to be seconds:

Screenshot from the Qiskit tutorial

$\endgroup$
1
  • $\begingroup$ I tried a job that took many minutes and another that took seconds to run and the `time_taken’ was pretty similar. I wonder what is it actually measuring $\endgroup$
    – Mauricio
    Jul 30 at 8:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.