 For example, let "T" be the identity operator, which is not compact when "H" is infinite-dimensional.Take any orthonormal sequence {"yn"}.Then "yn" converges to 0 weakly, but lim "f"("yn") = 1 ≠ 0 = "f"(0).