Assume a diagonal matrix $\mathbf X$ whose size $N\times N$ and its diagonal elements are $0.5 + 0.5i$, and the vector $\mathbf p$ of size $N\times 1$ whose elements have similar amplitude.
I have noticed that $$\operatorname{tr}\bigg\{\left(\mathbf{X^{-1}\cdot p\cdot p^H\cdot \left(X^H\right)^{-1}}\right)\bigg\}\tag{1}$$ is related into the amplitude of $\mathbf p$. where $\operatorname{tr}$ is the trace operator.
For example if $\mathbf p = 1$; $$\implies\operatorname{tr}\bigg\{\left(\mathbf{X^{-1}\cdot p\cdot p^H\cdot \left(X^H\right)^{-1}}\right)\bigg\} = 2N$$
On the other hand, if $\mathbf p=0.5$; $$\implies\operatorname{tr}\bigg\{\left(\mathbf{X^{-1}\cdot p\cdot p^H\cdot \left(X^H\right)^{-1}}\right)\bigg\} = \frac N2$$
And so on.
My question, is there a general formula expressing the relationship between the equation $(1)$ and the amplitude of $\mathbf p$ ?