Quanlse/Simulator/__init__.py
def T2(self, value: Optional[Dict[int, Union[int, float, None]]]):
        """
        Setter for the relaxation time T2 for each qubit.
        """
        if value is not None:
            for index, t2 in value.items():
                if t2 < 0:
                    raise Error.ArgumentError("The value of T1 should be a positive real number.")
                if index not in range(self.subSysNum):
                    raise Error.ArgumentError(f"{index}th-qubit is not defined.")

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

        Setter for the relaxation time T2 for each qubit.
        
Setter for the relaxation time T2 for each qubit.
Setter for the relaxation time T2 for each qubit .
def T2(self, value: Optional[Dict[int, Union[int, float, None]]]):
        if value is not None:
            for index, t2 in value.items():
                if t2 < 0:
                    raise Error.ArgumentError("The value of T1 should be a positive real number.")
                if index not in range(self.subSysNum):
                    raise Error.ArgumentError(f"{index}th-qubit is not defined.")
        self._T2 = value
        self.createQHamiltonian(frameMode=self.frameMode)
def T2 ( self , value : Optional [ Dict [ int , Union [ int , float , None ] ] ] ) : if value is not None : for index , t2 in value . items ( ) : if t2 < 0 : raise Error . ArgumentError ( "The value of T1 should be a positive real number." ) if index not in range ( self . subSysNum ) : raise Error . ArgumentError ( f"{index}th-qubit is not defined." ) self . _T2 = value self . createQHamiltonian ( frameMode = self . frameMode )
Setter for the relaxation time T2 for each qubit.
Setter for the relaxation time T2 for each qubit .
"""
        Setter for the relaxation time T2 for each qubit.
        """
self
value
Optional[Dict[int, Union[int, float, None]]]