Note

This is the documentation for the current state of the development branch of Qiskit Experiments. The documentation or APIs here can change prior to being released.

BackendTiming.delay_time

BackendTiming.delay_time(*, time=None, samples=None)[source]

The closest valid delay time in seconds to the input

If the backend reports dt, this method uses BackendTiming.round_delay() and converts the result back into seconds. Otherwise, if time was passed, it is returned directly.

Parameters:
  • time (Optional[float]) – The nominal delay time to convert in seconds

  • samples (Union[int, float, None]) – The nominal delay time to convert in samples

Return type:

float

Returns:

The realizable delay time in seconds

Raises:

QiskitError – If either both time and samples are passed or neither is passed.