PulseList

class PulseList(iterable=None)

Represent multiple pulses.

Tht class behaves similarly to a standard list, it supports indexing, setting items, iteration, and querying its length. It is specifically tailored for handling collections of Pulse instances.

Initialize a list of pulses.

Parameters:

iterable (List[Pulse] | None) – Initial list of Pulse instances.

Hint

  • Iterable over Pulse elements:

for pulse in pulse_list:
    print(pulse)
  • Supports indexing and item assignment:

pulse = pulse_list[0]
pulse_list[1] = Pulse(...)
  • Concatenate with another PulseList:

new_pulse_list = pulse_list1 + pulse_list2

Methods

append(new_pulse)

Append a pulse.

convert_to_time_segment_sequence([start, end])

Convert the to TimeSegmentSequence.

Attributes

is_all_constant_envelope

Check if all pulses have a constant envelope.

n_pulses

Number of pulses.