def _eval_innerproduct_JzBra(self, bra, **hints):
        result = KroneckerDelta(self.j, bra.j)
        if bra.dual_class() is not self.__class__:
            result *= self._represent_JzOp(None)[bra.j - bra.m]
        else:
            result *= KroneckerDelta(
                self.j, bra.j) * KroneckerDelta(self.m, bra.m)
        return result
dataset/ETHPy150Open sympy/sympy/sympy/physics/quantum/spin.py/SpinState._eval_innerproduct_JzBra/original