qlazy/DensOp.py
def tenspro(self, densop):
        """
        get the tensor product with density operator.

        Parameters
        ----------
        densop : instance of DensOp
            density operator to get the tensor product..

        Returns
        -------
        densop_out : instance of DensOp
            tensor produt of 'self' and 'densop'.

        """
        # densop_out = densop_tensor_product(self, densop)
        # return densop_out
        obj = densop_tensor_product(self, densop)
        de = ctypes.cast(obj.value, ctypes.POINTER(self.__class__)).contents
        return de

        get the tensor product with density operator.

        Parameters
        ----------
        densop : instance of DensOp
            density operator to get the tensor product..

        Returns
        -------
        densop_out : instance of DensOp
            tensor produt of 'self' and 'densop'.

        
get the tensor product with density operator.
Parameters

densop : instance of DensOp
density operator to get the tensor product

Returns

densop_out : instance of DensOp
tensor produt of 'self' and 'densop'.
get the tensor product with density operator . Parameters densop : instance of DensOp density operator to get the tensor product Returns densop_out : instance of DensOp tensor produt of ' self ' and ' densop ' .
def tenspro(self, densop):
        obj = densop_tensor_product(self, densop)
        de = ctypes.cast(obj.value, ctypes.POINTER(self.__class__)).contents
        return de
def tenspro ( self , densop ) : obj = densop_tensor_product ( self , densop ) de = ctypes . cast ( obj . value , ctypes . POINTER ( self . __class__ ) ) . contents return de
get the tensor product with density operator.
get the tensor product with density operator .
"""
        get the tensor product with density operator.

        Parameters
        ----------
        densop : instance of DensOp
            density operator to get the tensor product..

        Returns
        -------
        densop_out : instance of DensOp
            tensor produt of 'self' and 'densop'.

        """ # densop_out = densop_tensor_product(self, densop) # return densop_out
self
densop