Quanlse/QWaveform.py
def addWaveRot(self, onSubSys: int, waves: Union[QWaveform, List[QWaveform]], t0: Union[int, float] = None,
                   detuning: Union[int, float] = 0.0, phase: Union[int, float] = 0.0, tag: str = None) -> None:
        """
        Add the control terms for the two-qubit cross-resonance effect in
        the rotating frame with the frequency of the diagonal elements of drift term.

        :param onSubSys: what subsystem the wave is acting upon
        :param waves: a QWaveform object
        :param t0: start time
        :param detuning: wave's corresponding detuning
        :param phase: wave phase
        :param tag: wave tag
        :return: None
        """
        levelList = []
        if isinstance(self.sysLevel, list):
            levelList = self.sysLevel
        elif isinstance(self.sysLevel, int):
            levelList = [self.sysLevel for _ in range(self.subSysNum)]

        self.addWave(operators=driveX(levelList[onSubSys]), onSubSys=onSubSys, t0=t0,
                     waves=copy.deepcopy(waves), freq=detuning, phase0=phase, tag=tag)
        self.addWave(operators=driveY(levelList[onSubSys]), onSubSys=onSubSys, t0=t0,
                     waves=copy.deepcopy(waves), freq=detuning, phase0=phase + pi / 2, tag=tag)

        Add the control terms for the two-qubit cross-resonance effect in
        the rotating frame with the frequency of the diagonal elements of drift term.

        :param onSubSys: what subsystem the wave is acting upon
        :param waves: a QWaveform object
        :param t0: start time
        :param detuning: wave's corresponding detuning
        :param phase: wave phase
        :param tag: wave tag
        :return: None
        
Add the control terms for the two-qubit cross-resonance effect in
the rotating frame with the frequency of the diagonal elements of drift term.
Add the control terms for the two - qubit cross - resonance effect in the rotating frame with the frequency of the diagonal elements of drift term .
def addWaveRot(self, onSubSys: int, waves: Union[QWaveform, List[QWaveform]], t0: Union[int, float] = None,
                   detuning: Union[int, float] = 0.0, phase: Union[int, float] = 0.0, tag: str = None) -> None:
        levelList = []
        if isinstance(self.sysLevel, list):
            levelList = self.sysLevel
        elif isinstance(self.sysLevel, int):
            levelList = [self.sysLevel for _ in range(self.subSysNum)]
        self.addWave(operators=driveX(levelList[onSubSys]), onSubSys=onSubSys, t0=t0,
                     waves=copy.deepcopy(waves), freq=detuning, phase0=phase, tag=tag)
        self.addWave(operators=driveY(levelList[onSubSys]), onSubSys=onSubSys, t0=t0,
                     waves=copy.deepcopy(waves), freq=detuning, phase0=phase + pi / 2, tag=tag)
def addWaveRot ( self , onSubSys : int , waves : Union [ QWaveform , List [ QWaveform ] ] , t0 : Union [ int , float ] = None , detuning : Union [ int , float ] = 0.0 , phase : Union [ int , float ] = 0.0 , tag : str = None ) -> None : levelList = [ ] if isinstance ( self . sysLevel , list ) : levelList = self . sysLevel elif isinstance ( self . sysLevel , int ) : levelList = [ self . sysLevel for _ in range ( self . subSysNum ) ] self . addWave ( operators = driveX ( levelList [ onSubSys ] ) , onSubSys = onSubSys , t0 = t0 , waves = copy . deepcopy ( waves ) , freq = detuning , phase0 = phase , tag = tag ) self . addWave ( operators = driveY ( levelList [ onSubSys ] ) , onSubSys = onSubSys , t0 = t0 , waves = copy . deepcopy ( waves ) , freq = detuning , phase0 = phase + pi / 2 , tag = tag )
Add the control terms for the two-qubit cross-resonance effect in
the rotating frame with the frequency of the diagonal elements of drift term.
Add the control terms for the two - qubit cross - resonance effect in the rotating frame with the frequency of the diagonal elements of drift term .
"""
        Add the control terms for the two-qubit cross-resonance effect in
        the rotating frame with the frequency of the diagonal elements of drift term.

        :param onSubSys: what subsystem the wave is acting upon
        :param waves: a QWaveform object
        :param t0: start time
        :param detuning: wave's corresponding detuning
        :param phase: wave phase
        :param tag: wave tag
        :return: None
        """
None
self
onSubSys
int
None
waves
Union[QWaveform, List[QWaveform]]
a QWaveform object
a QWaveform object
t0
Union[int, float]
None
detuning
Union[int, float]
wave's corresponding detuning
wave ' s corresponding detuning
phase
Union[int, float]
None
tag
str
None