Quanlse/QWaveform.py
def delay(t: Union[int, float], t0: Union[int, float] = 0., freq: float = None,
          phase: float = None, phase0: float = None) -> QWaveform:
    """
    Return a QWaveform object of delay.

    :param t: pulse duration
    :param t0: start time
    :param freq: pulse frequency shift (will not accumulate during the entire pulse execution)
    :param phase: pulse phase shift (will accumulate during the entire pulse execution)
    :param phase0: pulse phase shift (will not accumulate during the entire pulse execution)
    :return: returned square QWaveform
    """

    def func(_t, _):
        """ The constant function """
        return 0.

    wave = QWaveform(f=func, t0=t0, t=t, args=None, freq=freq, phase=phase, phase0=phase0)
    wave.name = "delay"
    return wave

    Return a QWaveform object of delay.

    :param t: pulse duration
    :param t0: start time
    :param freq: pulse frequency shift (will not accumulate during the entire pulse execution)
    :param phase: pulse phase shift (will accumulate during the entire pulse execution)
    :param phase0: pulse phase shift (will not accumulate during the entire pulse execution)
    :return: returned square QWaveform
    
Return a QWaveform object of delay.
Return a QWaveform object of delay .
def delay(t: Union[int, float], t0: Union[int, float] = 0., freq: float = None,
          phase: float = None, phase0: float = None) -> QWaveform:
    def func(_t, _):
        return 0.
    wave = QWaveform(f=func, t0=t0, t=t, args=None, freq=freq, phase=phase, phase0=phase0)
    wave.name = "delay"
    return wave
def delay ( t : Union [ int , float ] , t0 : Union [ int , float ] = 0. , freq : float = None , phase : float = None , phase0 : float = None ) -> QWaveform : def func ( _t , _ ) : """ The constant function """ return 0. wave = QWaveform ( f = func , t0 = t0 , t = t , args = None , freq = freq , phase = phase , phase0 = phase0 ) wave . name = "delay" return wave
Return a QWaveform object of delay.
Return a QWaveform object of delay .
"""
    Return a QWaveform object of delay.

    :param t: pulse duration
    :param t0: start time
    :param freq: pulse frequency shift (will not accumulate during the entire pulse execution)
    :param phase: pulse phase shift (will accumulate during the entire pulse execution)
    :param phase0: pulse phase shift (will not accumulate during the entire pulse execution)
    :return: returned square QWaveform
    """ """ The constant function """
returned square QWaveform
returned square QWaveform
t
Union[int, float]
None
t0
Union[int, float]
None
freq
float
pulse frequency shift (will not accumulate during the entire pulse execution)
pulse frequency shift ( will not accumulate during the entire pulse execution )
phase
float
pulse phase shift (will accumulate during the entire pulse execution)
pulse phase shift ( will accumulate during the entire pulse execution )
phase0
float
pulse phase shift (will not accumulate during the entire pulse execution)
pulse phase shift ( will not accumulate during the entire pulse execution )