lime/cavity.py
def vacuum(self, sparse=True):
        """
        get initial density matrix for cavity vacuum state
        """
        vac = np.zeros(self.n_cav)
        vac[0] = 1.
        if sparse:
            return csr_matrix(vac)
        else:
            return vac

        get initial density matrix for cavity vacuum state
        
get initial density matrix for cavity vacuum state
get initial density matrix for cavity vacuum state
def vacuum(self, sparse=True):
        vac = np.zeros(self.n_cav)
        vac[0] = 1.
        if sparse:
            return csr_matrix(vac)
        else:
            return vac
def vacuum ( self , sparse = True ) : vac = np . zeros ( self . n_cav ) vac [ 0 ] = 1. if sparse : return csr_matrix ( vac ) else : return vac
get initial density matrix for cavity vacuum state
get initial density matrix for cavity vacuum state
"""
        get initial density matrix for cavity vacuum state
        """
self
sparse