qudit_sim.pulse.PulseSequence

class qudit_sim.pulse.PulseSequence(iterable=(), /)

Pulse sequence.

This class represents a sequence of instructions (pulse, delay, frequency/phase shift/set) given to a single channel. In practice, the class is implemented as a subclass of Python list with a single additional function generate_fn.

Methods

append(object, /)

Append object to the end of the list.

clear()

Remove all items from list.

copy()

Return a shallow copy of the list.

count(value, /)

Return number of occurrences of value.

envelope(t[, args])

Return the envelope of the sequence as a function of time.

extend(iterable, /)

Extend list by appending elements from the iterable.

generate_fn(frame_frequency, drive_base[, rwa])

Generate the X and Y drive coefficients and the maximum frequency appearing in the sequence.

index(value[, start, stop])

Return first index of value.

insert(index, object, /)

Insert object before index.

pop([index])

Remove and return item at index (default last).

remove(value, /)

Remove first occurrence of value.

reverse()

Reverse IN PLACE.

sort(*[, key, reverse])

Sort the list in ascending order and return None.

Attributes

duration

frequency