27 lines
803 B
Plaintext
27 lines
803 B
Plaintext
---
|
||
title: samples_to_seconds
|
||
description: API reference for qiskit.pulse.builder.samples_to_seconds
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: function
|
||
python_api_name: qiskit.pulse.builder.samples_to_seconds
|
||
---
|
||
|
||
# qiskit.pulse.builder.samples\_to\_seconds
|
||
|
||
<Function id="qiskit.pulse.builder.samples_to_seconds" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.23/qiskit/pulse/builder.py" signature="samples_to_seconds(samples)">
|
||
Obtain the time in seconds that will elapse for the input number of samples on the active backend.
|
||
|
||
**Parameters**
|
||
|
||
**samples** (`Union`\[`int`, `ndarray`]) – Number of samples to convert to time in seconds.
|
||
|
||
**Return type**
|
||
|
||
`Union`\[`float`, `ndarray`]
|
||
|
||
**Returns**
|
||
|
||
The time that elapses in `samples`.
|
||
</Function>
|
||
|