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

42 lines
1.3 KiB
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: Constant (v1.2)
description: API reference for qiskit.pulse.library.Constant in qiskit v1.2
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
$$
Create new pulse instance.
**Parameters**
* **duration** Pulse length in terms of the sampling period dt.
* **amp** The magnitude of the amplitude of the square envelope.
* **angle** The angle of the complex amplitude of the square envelope. Default value 0.
* **name** Display name for this pulse envelope.
* **limit\_amplitude** If `True`, then limit the amplitude of the waveform to 1. The default is `True` and the amplitude is constrained to 1.
**Returns**
ScalableSymbolicPulse instance.
## Attributes
### alias
<Attribute id="qiskit.pulse.library.Constant.alias" attributeValue="'Constant'" />
</Class>