qiskit-documentation/docs/api/qiskit/1.4/qiskit.pulse.library.Consta...

32 lines
1.2 KiB
Plaintext

---
title: Constant (v1.4)
description: API reference for qiskit.pulse.library.Constant in qiskit v1.4
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.pulse.library.Constant
---
# Constant
<Class id="qiskit.pulse.library.Constant" isDedicatedPage={true} signature="qiskit.pulse.library.Constant(duration, amp, angle=0.0, name=None, limit_amplitude=None)" modifiers="class">
Bases: [`object`](https://docs.python.org/3/library/functions.html#object "(in Python v3.13)")
A simple constant pulse, with an amplitude value and a duration:
$$
f(x) = \text{amp}\times\exp\left(i\text{angle}\right) , 0 <= x < duration
f(x) = 0 , elsewhere
$$
<Admonition title="Deprecated since version 1.3" type="danger">
The class `qiskit.pulse.library.symbolic_pulses.Constant` is deprecated as of Qiskit 1.3. It will be removed in Qiskit 2.0. The entire Qiskit Pulse package is being deprecated and will be moved to the Qiskit Dynamics repository: [https://github.com/qiskit-community/qiskit-dynamics](https://github.com/qiskit-community/qiskit-dynamics)
</Admonition>
## Attributes
### alias
<Attribute id="qiskit.pulse.library.Constant.alias" attributeValue="'Constant'" />
</Class>