Bengali
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

Waveform

class Waveform(samples, name=None, epsilon=1e-07, limit_amplitude=None)[source]

Bases: Pulse

A pulse specified completely by complex-valued samples; each sample is played for the duration of the backend cycle-time, dt.

Create new sample pulse command.

প্যারামিটার
  • samples (Union[ndarray, List[complex]]) -- Complex array of the samples in the pulse envelope.

  • name (Optional[str]) -- Unique name to identify the pulse.

  • epsilon (float) -- Pulse sample norm tolerance for clipping. If any sample's norm exceeds unity by less than or equal to epsilon it will be clipped to unit norm. If the sample norm is greater than 1+epsilon an error will be raised.

  • limit_amplitude (Optional[bool]) -- Passed to parent Pulse

Methods

draw

Plot the interpolated envelope of pulse.

is_parameterized

Return True iff the instruction is parameterized.

Attributes

duration
name
id

Unique identifier for this pulse.

রিটার্ন টাইপ

int

limit_amplitude = True
parameters

Return a dictionary containing the pulse's parameters.

রিটার্ন টাইপ

Dict[str, Any]

samples

Return sample values.

রিটার্ন টাইপ

ndarray