Constant¶
-
class
Constant
(duration, amp, name=None)[source]¶ Bases:
qiskit.pulse.library.parametric_pulses.ParametricPulse
A simple constant pulse, with an amplitude value and a duration:
\[f(x) = amp , 0 <= x < duration f(x) = 0 , elsewhere\]Initialize the constant-valued pulse.
- Parameters
duration (
Union
[int
,ParameterExpression
]) – Pulse length in terms of the the sampling period dt.amp (
Union
[complex
,ParameterExpression
]) – The amplitude of the constant square pulse.name (
Optional
[str
]) – Display name for this pulse envelope.
Methods
Assign one parameter to a value, which can either be numeric or another parameter expression.
Return a new ParametricPulse with parameters assigned.
Plot the interpolated envelope of pulse.
Return a Waveform with samples filled according to the formula that the pulse represents and the parameter values it contains.
Return True iff the instruction is parameterized.
Validate parameters.
Attributes
-
amp
¶ The constant value amplitude.
- Return type
Union
[complex
,ParameterExpression
]
-
id
¶ Unique identifier for this pulse.
- Return type
int
-
limit_amplitude
= True¶
-
parameters
¶ - Return type
Dict
[str
,Any
]