def __mul__(self, other): if isinstance(other, FockStateKet): return InnerProduct(self, other) else: return Basic.__mul__(self, other)