lime/cavity.py
def transform_basis(self, a):
        """
        transform the operator a from the direct product basis to polariton basis

        Parameters
        ----------
        a : TYPE
            DESCRIPTION.

        Returns
        -------
        2d array

        """
        if self.eigvecs is None:
            self.eigenstates()

        return basis_transform(a, self.eigvecs)

            # raise ValueError('Call eigenstates() to compute eigvecs first.')

        transform the operator a from the direct product basis to polariton basis

        Parameters
        ----------
        a : TYPE
            DESCRIPTION.

        Returns
        -------
        2d array

        
transform the operator a from the direct product basis to polariton basis
Parameters

a : TYPE
DESCRIPTION.

Returns

2d array
transform the operator a from the direct product basis to polariton basis Parameters a : TYPE DESCRIPTION . Returns 2d array
def transform_basis(self, a):
        if self.eigvecs is None:
            self.eigenstates()
        return basis_transform(a, self.eigvecs)
def transform_basis ( self , a ) : if self . eigvecs is None : self . eigenstates ( ) return basis_transform ( a , self . eigvecs )
transform the operator a from the direct product basis to polariton basis
Parameters
transform the operator a from the direct product basis to polariton basis Parameters
"""
        transform the operator a from the direct product basis to polariton basis

        Parameters
        ----------
        a : TYPE
            DESCRIPTION.

        Returns
        -------
        2d array

        """ # raise ValueError('Call eigenstates() to compute eigvecs first.')
self
a