Quanlse/QWaveform.py
def waveFunctionsToSequences(self, maxEndTime: float = None) -> 'QJob':
        """
        Convert all functions included QWaveform objects into a serializable sequence.

        :param maxEndTime: maximum ending time
        :return: returned QJob object
        """
        obj = copy.deepcopy(self)
        obj.clearWaves()
        for waveKey in self.waves.keys():
            # Add QOperator
            qOp = self.ctrlOperators[waveKey]
            if isinstance(qOp, list):
                onSubSys = []
                for op in qOp:
                    onSubSys.append(op.onSubSys)
            else:
                onSubSys = qOp.onSubSys
            obj.addOperators(qOp, onSubSys, waveKey)
            # Add QWaveform
            for wave in self.waves[waveKey]:
                seqWave = wave.waveFunctionToSequence(obj.dt, maxEndTime=maxEndTime)
                obj.addWave(name=waveKey, waves=seqWave, tag=wave.tag, strength=wave.strength, freq=wave.freq,
                            phase=wave.phase)
        return obj

        Convert all functions included QWaveform objects into a serializable sequence.

        :param maxEndTime: maximum ending time
        :return: returned QJob object
        
Convert all functions included QWaveform objects into a serializable sequence.
Convert all functions included QWaveform objects into a serializable sequence .
def waveFunctionsToSequences(self, maxEndTime: float = None) -> 'QJob':
        obj = copy.deepcopy(self)
        obj.clearWaves()
        for waveKey in self.waves.keys():
            qOp = self.ctrlOperators[waveKey]
            if isinstance(qOp, list):
                onSubSys = []
                for op in qOp:
                    onSubSys.append(op.onSubSys)
            else:
                onSubSys = qOp.onSubSys
            obj.addOperators(qOp, onSubSys, waveKey)
            for wave in self.waves[waveKey]:
                seqWave = wave.waveFunctionToSequence(obj.dt, maxEndTime=maxEndTime)
                obj.addWave(name=waveKey, waves=seqWave, tag=wave.tag, strength=wave.strength, freq=wave.freq,
                            phase=wave.phase)
        return obj
def waveFunctionsToSequences ( self , maxEndTime : float = None ) -> 'QJob' : obj = copy . deepcopy ( self ) obj . clearWaves ( ) for waveKey in self . waves . keys ( ) : qOp = self . ctrlOperators [ waveKey ] if isinstance ( qOp , list ) : onSubSys = [ ] for op in qOp : onSubSys . append ( op . onSubSys ) else : onSubSys = qOp . onSubSys obj . addOperators ( qOp , onSubSys , waveKey ) for wave in self . waves [ waveKey ] : seqWave = wave . waveFunctionToSequence ( obj . dt , maxEndTime = maxEndTime ) obj . addWave ( name = waveKey , waves = seqWave , tag = wave . tag , strength = wave . strength , freq = wave . freq , phase = wave . phase ) return obj
Convert all functions included QWaveform objects into a serializable sequence.
Convert all functions included QWaveform objects into a serializable sequence .
"""
        Convert all functions included QWaveform objects into a serializable sequence.

        :param maxEndTime: maximum ending time
        :return: returned QJob object
        """ # Add QOperator # Add QWaveform
returned QJob object
returned QJob object
self
maxEndTime
float
maximum ending time
maximum ending time