Suppose that $X$ is a random element with values in a separable Hilbert space $\mathbb H$ such that $\operatorname E\|X\|^2<\infty$. The expected value of $X$ is defined as a unique $\mu\in\mathbb H$ such that $$\operatorname E\langle x,X\rangle=\langle x,\mu\rangle$$ for each $x\in\mathbb H$ (the existence and uniqueness of such an element follows from the Riesz representation theorem).
I am trying to understand the definition of the covariance operator of $X$. Usually, the covariance operator of $X$ is defined as $$\operatorname E[(X-\mu)\otimes(X-\mu)],$$ where $\mu$ is the expected value of $X$ and $x\otimes x:\mathbb H\to\mathbb H$ with $x\in\mathbb H$ denotes an operator defined by $(x\otimes x)(y)=\langle y,x\rangle x$ for each $y\in\mathbb H$. So $(X-\mu)\otimes(X-\mu)$ is a random operator and $\operatorname E[(X-\mu)\otimes(X-\mu)]$ is the expected value of a random operator. How is the expected value of this random operator defined?
Similarly to the expected value of a random vector. If $X$ is a random
vectoroperator then its expected value is the unique operator $T$ such that $\mathbb{E} \langle v, X w\rangle = \langle v, T w\rangle$ for all $v,w \in \mathbb{H}$.