Quanlse/Simulator/__init__.py
def couplingMap(self, value: Optional[Dict[Tuple, Union[int, float]]]):
        """
        Return the coupling structure of the system.
        """
        if self.couplingMap is not None:
            indexList = [index for pair in value for index in pair]
            for index in indexList:
                if index not in range(self.subSysNum+1):
                    raise Error.ArgumentError("The number of the frequencies and the number of qubits are not the same.")

        self._couplingMap = value
        self.createQHamiltonian(frameMode=self.frameMode)

        Return the coupling structure of the system.
        
Return the coupling structure of the system.
Return the coupling structure of the system .
def couplingMap(self, value: Optional[Dict[Tuple, Union[int, float]]]):
        if self.couplingMap is not None:
            indexList = [index for pair in value for index in pair]
            for index in indexList:
                if index not in range(self.subSysNum+1):
                    raise Error.ArgumentError("The number of the frequencies and the number of qubits are not the same.")
        self._couplingMap = value
        self.createQHamiltonian(frameMode=self.frameMode)
def couplingMap ( self , value : Optional [ Dict [ Tuple , Union [ int , float ] ] ] ) : if self . couplingMap is not None : indexList = [ index for pair in value for index in pair ] for index in indexList : if index not in range ( self . subSysNum + 1 ) : raise Error . ArgumentError ( "The number of the frequencies and the number of qubits are not the same." ) self . _couplingMap = value self . createQHamiltonian ( frameMode = self . frameMode )
Return the coupling structure of the system.
Return the coupling structure of the system .
"""
        Return the coupling structure of the system.
        """
self
value
Optional[Dict[Tuple, Union[int, float]]]