qutip_qoc._time module

This module contains the TimeInterval class for storing a time interval and deriving its attributes. It provides an easy way to specify the pulse duration.

class qutip_qoc._time._TimeInterval(tslots=None, evo_time=None, n_tslots=None)[source]

Bases: object

Class for storing a time interval and deriving its attributes.

Attributes:
tslotsarray_like, optional

If not provided, it is derived from evo_time and n_tslots.

evo_timefloat, optional

If not provided, it is derived from the last element of tslots.

n_tslotsint, optional

If not provided, it is derived from the length of tslots.

property evo_time

If not provided, it is derived from the last element of tslots.

property n_tslots

If not provided, it is derived from the length of tslots.

property tslots

If not provided, it is derived from evo_time and n_tslots.