c3.signal.pulse
¶
Module Contents¶
- class c3.signal.pulse.Envelope(name: str, desc: str = ' ', comment: str = ' ', params: dict = {}, shape: Union[Callable, str] = None, drag=False)[source]¶
Bases:
c3.c3objs.C3obj
Represents the envelopes shaping a pulse.
- Parameters
shape (Callable) – function evaluating the shape in time
- class c3.signal.pulse.EnvelopeNetZero(name: str, desc: str = ' ', comment: str = ' ', params: dict = {}, shape: types.FunctionType = None, drag: bool = False)[source]¶
Bases:
Envelope
Represents the envelopes shaping a pulse.
- Parameters
shape (function) – function evaluating the shape in time
params (dict) – Parameters of the envelope Note: t_final
- get_shape_values(self, ts, t_before=None)[source]¶
Return the value of the shape function at the specified times.
- Parameters
ts (tf.Tensor) – Vector of time samples.
t_before (tf.float64) – Offset the beginning of the shape by this time.
- write_config(self, filepath: str) None ¶
Write dictionary to a HJSON file.
- __str__(self) str ¶
Return str(self).
- __repr__(self) str ¶
Return repr(self).
- class c3.signal.pulse.Carrier(name: str, desc: str = ' ', comment: str = ' ', params: dict = {})[source]¶
Bases:
c3.c3objs.C3obj
Represents the carrier of a pulse.
- __str__(self) str ¶
Return str(self).