English
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

ParametricPulse

class ParametricPulse(duration, name=None, limit_amplitude=None)[source]

Bases: qiskit.pulse.library.pulse.Pulse

The abstract superclass for parametric pulses.

Warning

This class is superseded by SymbolicPulse and will be deprecated and eventually removed in the future because of the poor flexibility for defining a new waveform type and serializing it through the qiskit.qpy framework.

Create a parametric pulse and validate the input parameters.

Parameters
  • duration (Union[int, ParameterExpression]) – Pulse length in terms of the the sampling period dt.

  • name (Optional[str]) – Display name for this pulse envelope.

  • limit_amplitude (Optional[bool]) – If True, then limit the amplitude of the waveform to 1. The default is True and the amplitude is constrained to 1.

Methods

draw

Plot the interpolated envelope of pulse.

get_waveform

Return a Waveform with samples filled according to the formula that the pulse represents and the parameter values it contains.

is_parameterized

Return True iff the instruction is parameterized.

validate_parameters

Validate parameters.

Attributes

duration
name
id

Unique identifier for this pulse.

Return type

int

limit_amplitude = True
parameters

Return a dictionary containing the pulse’s parameters.

Return type

Dict[str, Any]