qlazy/DensOp.py
def composite(self, num=0):
        """
        get the composite density operator of same density operators.

        Parameters
        ----------
        num : int
            number of density operators..

        Returns
        -------
        de : instance of DensOp
            composite density operator.

        """
        if num <= 1:
            return self
        else:
            de = self.clone()
            for i in range(num-1):
                de_tmp = de.tenspro(self)
                de = de_tmp.clone()
            return de

        get the composite density operator of same density operators.

        Parameters
        ----------
        num : int
            number of density operators..

        Returns
        -------
        de : instance of DensOp
            composite density operator.

        
get the composite density operator of same density operators.
Parameters

num : int
number of density operators

Returns

de : instance of DensOp
composite density operator.
get the composite density operator of same density operators . Parameters num : int number of density operators Returns de : instance of DensOp composite density operator .
def composite(self, num=0):
        if num <= 1:
            return self
        else:
            de = self.clone()
            for i in range(num-1):
                de_tmp = de.tenspro(self)
                de = de_tmp.clone()
            return de
def composite ( self , num = 0 ) : if num <= 1 : return self else : de = self . clone ( ) for i in range ( num - 1 ) : de_tmp = de . tenspro ( self ) de = de_tmp . clone ( ) return de
get the composite density operator of same density operators.
get the composite density operator of same density operators .
"""
        get the composite density operator of same density operators.

        Parameters
        ----------
        num : int
            number of density operators..

        Returns
        -------
        de : instance of DensOp
            composite density operator.

        """
self
num