Quanlse/QHamiltonian.py
def outputInverseJob(self, subSysNum: int, sysLevel: int = None, dt: float = None) -> QJob:
        """
        Return an inverse-mapped Job. (see subSystemIndicesInverse())

        :param subSysNum: subsystem's size
        :param sysLevel: subsystem's energy level
        :param dt: time interval
        :return: returned QJob object
        """
        # Get the job
        inverseMapping = self.subSystemIndicesInverse()
        _sysLevel = self.sysLevel if sysLevel is None else sysLevel
        _dt = self.dt if dt is None else dt
        job = QJob(subSysNum, _sysLevel, _dt)
        for opKey in self.job.ctrlOperators.keys():
            operators = self.job.ctrlOperators[opKey]
            onSubSysInSubHam = self.job.ctrlOperators[opKey].onSubSys
            if isinstance(operators, list):
                onSubSysInOriginalHam = []
                for index in onSubSysInSubHam:
                    onSubSysInOriginalHam.append(inverseMapping[index])
            elif isinstance(operators, QOperator):
                onSubSysInOriginalHam = inverseMapping[onSubSysInSubHam]
            else:
                raise Error.ArgumentError("Unsupported type of operators.")
            # Add the waves into the new QJob instance.
            for wave in self.job.waves[opKey]:
                job.addWave(operators, onSubSysInOriginalHam, wave)
        return job

        Return an inverse-mapped Job. (see subSystemIndicesInverse())

        :param subSysNum: subsystem's size
        :param sysLevel: subsystem's energy level
        :param dt: time interval
        :return: returned QJob object
        
Return an inverse-mapped Job.
Return an inverse - mapped Job .
def outputInverseJob(self, subSysNum: int, sysLevel: int = None, dt: float = None) -> QJob:
        inverseMapping = self.subSystemIndicesInverse()
        _sysLevel = self.sysLevel if sysLevel is None else sysLevel
        _dt = self.dt if dt is None else dt
        job = QJob(subSysNum, _sysLevel, _dt)
        for opKey in self.job.ctrlOperators.keys():
            operators = self.job.ctrlOperators[opKey]
            onSubSysInSubHam = self.job.ctrlOperators[opKey].onSubSys
            if isinstance(operators, list):
                onSubSysInOriginalHam = []
                for index in onSubSysInSubHam:
                    onSubSysInOriginalHam.append(inverseMapping[index])
            elif isinstance(operators, QOperator):
                onSubSysInOriginalHam = inverseMapping[onSubSysInSubHam]
            else:
                raise Error.ArgumentError("Unsupported type of operators.")
            for wave in self.job.waves[opKey]:
                job.addWave(operators, onSubSysInOriginalHam, wave)
        return job
def outputInverseJob ( self , subSysNum : int , sysLevel : int = None , dt : float = None ) -> QJob : inverseMapping = self . subSystemIndicesInverse ( ) _sysLevel = self . sysLevel if sysLevel is None else sysLevel _dt = self . dt if dt is None else dt job = QJob ( subSysNum , _sysLevel , _dt ) for opKey in self . job . ctrlOperators . keys ( ) : operators = self . job . ctrlOperators [ opKey ] onSubSysInSubHam = self . job . ctrlOperators [ opKey ] . onSubSys if isinstance ( operators , list ) : onSubSysInOriginalHam = [ ] for index in onSubSysInSubHam : onSubSysInOriginalHam . append ( inverseMapping [ index ] ) elif isinstance ( operators , QOperator ) : onSubSysInOriginalHam = inverseMapping [ onSubSysInSubHam ] else : raise Error . ArgumentError ( "Unsupported type of operators." ) for wave in self . job . waves [ opKey ] : job . addWave ( operators , onSubSysInOriginalHam , wave ) return job
Return an inverse-mapped Job.
Return an inverse - mapped Job .
"""
        Return an inverse-mapped Job. (see subSystemIndicesInverse())

        :param subSysNum: subsystem's size
        :param sysLevel: subsystem's energy level
        :param dt: time interval
        :return: returned QJob object
        """ # Get the job # Add the waves into the new QJob instance.
returned QJob object
returned QJob object
self
subSysNum
int
None
sysLevel
int
subsystem's energy level
subsystem ' s energy level
dt
float
None