[Physics] Trace of an operator

hilbert-spaceoperatorsquantum mechanicstrace

I have read that if I have two vectors $ |0\rangle $ and $ |1\rangle $, then$$ \mathrm{tr} ( |0\rangle \langle1|)=\langle1|0\rangle. $$

I also know that for an operator $A$ $$ \mathrm{tr} ( A) = \sum_{i} \langle i|A|i\rangle $$ where $ |i\rangle $ is an arbitrary basis. Well, if I was to choose my operator $A =|0\rangle \langle1|$ and use the $ |0\rangle $, $ |1\rangle $ basis to evaluate the trace, I will get

$$ \mathrm{tr} (|0\rangle \langle1|) = \langle 0|0\rangle \langle1|0\rangle + \langle1|0\rangle \langle1|1\rangle $$

and assuming the basis vectors are normalised I get

$$ \mathrm{tr} (|0\rangle \langle1|) = 2\langle1|0\rangle $$
which is disagreement with what I have read. Where am I going wrong?

Best Answer

There is nothing wrong once you realize that $\langle 0|1\rangle=0$ so that the claimed result and your explicit calculation do actually match. More generally, the trace of an operator $| i\rangle \langle j|$ is $$Tr| i\rangle \langle j| =\sum_k \langle k|i\rangle \langle j | k\rangle=\sum_k\delta_{ki} \delta_{jk}=\delta_{ij}=\langle i|j\rangle. $$ where I have been working with an orthonormal basis of vectors $|i\rangle$ and and their dual $\langle i |$.

Related Question