Quanlse/Simulator/__init__.py
def _generateTimeIndepCoupTerm(self, ham: QHamiltonian) -> None:
        r"""
        Generate time-independent coupling terms for ith qubit and jth qubit.
        :math:`H_{coup} = a_{i} a_{j}^\dagger + a_{i}^\dagger a_j`

        :param ham: The QHamiltonian object.
        :return: None
        """
        # Generate the time independent coupling terms
        for index, value in self.couplingMap.items():
            ham.addCoupling(onSubSys=[index[0], index[1]], g=value)
r"""
        Generate time-independent coupling terms for ith qubit and jth qubit.
        :math:`H_{coup} = a_{i} a_{j}^\dagger + a_{i}^\dagger a_j`

        :param ham: The QHamiltonian object.
        :return: None
        
r"""
Generate time-independent coupling terms for ith qubit and jth qubit.
r " " " Generate time - independent coupling terms for ith qubit and jth qubit .
def _generateTimeIndepCoupTerm(self, ham: QHamiltonian) -> None:
        for index, value in self.couplingMap.items():
            ham.addCoupling(onSubSys=[index[0], index[1]], g=value)
def _generateTimeIndepCoupTerm ( self , ham : QHamiltonian ) -> None : for index , value in self . couplingMap . items ( ) : ham . addCoupling ( onSubSys = [ index [ 0 ] , index [ 1 ] ] , g = value )
r"""
Generate time-independent coupling terms for ith qubit and jth qubit.
r " " " Generate time - independent coupling terms for ith qubit and jth qubit .
r"""
        Generate time-independent coupling terms for ith qubit and jth qubit.
        :math:`H_{coup} = a_{i} a_{j}^\dagger + a_{i}^\dagger a_j`

        :param ham: The QHamiltonian object.
        :return: None
        """ # Generate the time independent coupling terms
None
self
ham
QHamiltonian
The QHamiltonian object.
The QHamiltonian object .
math
None