Constant¶
- class Constant(duration, amp, name=None, limit_amplitude=None)[ソース]¶
ベースクラス:
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.
- パラメータ
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.limit_amplitude (
Optional
[bool
]) – IfTrue
, then limit the amplitude of the waveform to 1. The default isTrue
and the amplitude is constrained to 1.
Methods
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.
- 戻り値の型
Union
[complex
,ParameterExpression
]
- id¶
Unique identifier for this pulse.
- 戻り値の型
int
- limit_amplitude = True¶
- parameters¶
- 戻り値の型
Dict
[str
,Any
]