qlazy/DensOp.py
def clone(self):
        """
        get the copy of density operator.

        Parameters
        ----------
        None

        Returns
        -------
        densop : instance of DensOp
            copy of the original density operator.

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

        get the copy of density operator.

        Parameters
        ----------
        None

        Returns
        -------
        densop : instance of DensOp
            copy of the original density operator.

        
get the copy of density operator.
Parameters

None

Returns

densop : instance of DensOp
copy of the original density operator.
get the copy of density operator . Parameters None Returns densop : instance of DensOp copy of the original density operator .
def clone(self):
        obj = densop_copy(self)
        de = ctypes.cast(obj.value, ctypes.POINTER(self.__class__)).contents
        return de
def clone ( self ) : obj = densop_copy ( self ) de = ctypes . cast ( obj . value , ctypes . POINTER ( self . __class__ ) ) . contents return de
get the copy of density operator.
get the copy of density operator .
"""
        get the copy of density operator.

        Parameters
        ----------
        None

        Returns
        -------
        densop : instance of DensOp
            copy of the original density operator.

        """ # densop = densop_copy(self) # return densop
self