lime/cavity.py
def promote(self, o, subspace='A'):
        """
        promote an operator in subspace to the full Hilbert space
        E.g. A = A \otimes I_B
        """
        if subspace == 'A':
            return kron(o, self.B.idm)

        elif subspace == 'B':
            return kron(self.A.idm, o)
        else:
            raise ValueError('The subspace option can only be A or B.')

        promote an operator in subspace to the full Hilbert space
        E.g. A = A \otimes I_B
        
promote an operator in subspace to the full Hilbert space
E.g. A = A \otimes I_B
promote an operator in subspace to the full Hilbert space E . g . A = A \ otimes I_B
def promote(self, o, subspace='A'):
        if subspace == 'A':
            return kron(o, self.B.idm)
        elif subspace == 'B':
            return kron(self.A.idm, o)
        else:
            raise ValueError('The subspace option can only be A or B.')
def promote ( self , o , subspace = 'A' ) : if subspace == 'A' : return kron ( o , self . B . idm ) elif subspace == 'B' : return kron ( self . A . idm , o ) else : raise ValueError ( 'The subspace option can only be A or B.' )
promote an operator in subspace to the full Hilbert space
E.g.
promote an operator in subspace to the full Hilbert space E . g .
"""
        promote an operator in subspace to the full Hilbert space
        E.g. A = A \otimes I_B
        """
self
o
subspace