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.pulse_time

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

The closest valid pulse duration to the input in seconds

This method uses BackendTiming.round_pulse() and then converts back into seconds.

Parameters:
  • time (Optional[float]) – Nominal pulse duration in seconds

  • samples (Union[int, float, None]) – Nominal pulse duration in samples

Return type:

float

Returns:

The realizable pulse time in seconds

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

  • QiskitError – The backend does not include a dt value.

  • QiskitError – If the algorithm used to calculate the pulse length produces a length that is not commensurate with the pulse or acquire alignment values. This should not happen unless the alignment constraints provided by the backend do not fit the assumptions that the algorithm makes.