qiskit-documentation/docs/api/qiskit/0.24/qiskit.pulse.builder.second...

31 lines
856 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: seconds_to_samples
description: API reference for qiskit.pulse.builder.seconds_to_samples
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.pulse.builder.seconds_to_samples
---
<span id="qiskit-pulse-builder-seconds-to-samples" />
# qiskit.pulse.builder.seconds\_to\_samples
<Function id="qiskit.pulse.builder.seconds_to_samples" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.16/qiskit/pulse/builder.py" signature="seconds_to_samples(seconds)">
Obtain the number of samples that will elapse in `seconds` on the active backend.
Rounds down.
**Parameters**
**seconds** (`Union`\[`float`, `ndarray`]) Time in seconds to convert to samples.
**Return type**
`Union`\[`int`, `ndarray`]
**Returns**
The number of samples for the time to elapse
</Function>