4
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!

luciano
  • 5,763
  • 1
  • 12
  • 34
  • 1
    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. – Mauricio Jul 29 '22 at 13:45
  • 1
    Looks like missing from the docs indeed: https://qiskit.org/documentation/stubs/qiskit.result.Counts.html#qiskit.result.Counts – 3yakuya Jul 29 '22 at 16:56

1 Answers1

1

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

T.H
  • 196
  • 9
  • 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 – Mauricio Jul 30 '22 at 08:20