- #1
raisin_raisin
- 27
- 0
Hi,
Can someone explain to me how to write a matrix as a sum of outer products like [tex]\left|\psi\rangle\langle\psi\right|[/tex]?
For example how would I do a CNOT gate? http://en.wikipedia.org/wiki/Controlled_NOT_gate
I assume this is fairly easy since it is always assumed and I have kind of picked up its something to do with associating the rows and columns with the basis vectors.
Thanks
Can someone explain to me how to write a matrix as a sum of outer products like [tex]\left|\psi\rangle\langle\psi\right|[/tex]?
For example how would I do a CNOT gate? http://en.wikipedia.org/wiki/Controlled_NOT_gate
I assume this is fairly easy since it is always assumed and I have kind of picked up its something to do with associating the rows and columns with the basis vectors.
Thanks