Quanlse/QWaveform.py
def computeMaxTime(self) -> Tuple[float, float]:
        """
        Compute the time duration of the whole circuit according to the waves added.

        :return: returned total time duration
        """
        # Find the longest time
        maxTime = 0.0
        containers = [self._waves]
        if self.parent is not None:
            containers.append(self.parent.doNotClearFlagWaves)
        for container in containers:
            for key in container.keys():
                waves = container[key]
                for waveform in waves:
                    if waveform.flag & QWAVEFORM_FLAG_ALWAYS_ON > 0:
                        continue
                    if waveform.seq is not None:
                        finalNs = waveform.t0 + len(waveform.seq) * self.dt
                    else:
                        finalNs = waveform.t0 + waveform.t
                    if maxTime < finalNs:
                        maxTime = finalNs
        maxDt = floor(maxTime / self.dt)

        self.endTimeDt = maxDt
        self.endTime = maxTime
        return maxTime, maxDt

        Compute the time duration of the whole circuit according to the waves added.

        :return: returned total time duration
        
Compute the time duration of the whole circuit according to the waves added.
Compute the time duration of the whole circuit according to the waves added .
def computeMaxTime(self) -> Tuple[float, float]:
        maxTime = 0.0
        containers = [self._waves]
        if self.parent is not None:
            containers.append(self.parent.doNotClearFlagWaves)
        for container in containers:
            for key in container.keys():
                waves = container[key]
                for waveform in waves:
                    if waveform.flag & QWAVEFORM_FLAG_ALWAYS_ON > 0:
                        continue
                    if waveform.seq is not None:
                        finalNs = waveform.t0 + len(waveform.seq) * self.dt
                    else:
                        finalNs = waveform.t0 + waveform.t
                    if maxTime < finalNs:
                        maxTime = finalNs
        maxDt = floor(maxTime / self.dt)
        self.endTimeDt = maxDt
        self.endTime = maxTime
        return maxTime, maxDt
def computeMaxTime ( self ) -> Tuple [ float , float ] : maxTime = 0.0 containers = [ self . _waves ] if self . parent is not None : containers . append ( self . parent . doNotClearFlagWaves ) for container in containers : for key in container . keys ( ) : waves = container [ key ] for waveform in waves : if waveform . flag & QWAVEFORM_FLAG_ALWAYS_ON > 0 : continue if waveform . seq is not None : finalNs = waveform . t0 + len ( waveform . seq ) * self . dt else : finalNs = waveform . t0 + waveform . t if maxTime < finalNs : maxTime = finalNs maxDt = floor ( maxTime / self . dt ) self . endTimeDt = maxDt self . endTime = maxTime return maxTime , maxDt
Compute the time duration of the whole circuit according to the waves added.
Compute the time duration of the whole circuit according to the waves added .
"""
        Compute the time duration of the whole circuit according to the waves added.

        :return: returned total time duration
        """ # Find the longest time
returned total time duration
returned total time duration
self