c3.signal.pulse
¶
Module Contents¶
- class c3.signal.pulse.Envelope(name: str, desc: str = ' ', comment: str = ' ', params: Dict[str, c3.c3objs.Quantity] = {}, shape: Union[Callable, str] = None, use_t_before=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.EnvelopeDrag(name: str, desc: str = ' ', comment: str = ' ', params: dict = {}, shape: types.FunctionType = None, use_t_before=False)[source]¶
Bases:
Envelope
Represents the envelopes shaping a pulse.
- Parameters
shape (Callable) – function evaluating the shape in time
- write_config(filepath: str) None ¶
Write dictionary to a HJSON file.
- __str__() str ¶
Return str(self).
- __repr__() str ¶
Return repr(self).
- compute_mask(ts, t_end) tensorflow.Tensor ¶
Compute a mask to cut out a signal after t_final.
- Parameters
ts (tf.Tensor) – Vector of time steps.
- Returns
[description]
- Return type
tf.Tensor
- class c3.signal.pulse.EnvelopeNetZero(name: str, desc: str = ' ', comment: str = ' ', params: dict = {}, shape: types.FunctionType = None, use_t_before=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(ts)[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(filepath: str) None ¶
Write dictionary to a HJSON file.
- __str__() str ¶
Return str(self).
- __repr__() str ¶
Return repr(self).
- compute_mask(ts, t_end) tensorflow.Tensor ¶
Compute a mask to cut out a signal after t_final.
- Parameters
ts (tf.Tensor) – Vector of time steps.
- Returns
[description]
- Return type
tf.Tensor
- 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__() str ¶
Return str(self).