Writing a matrix as an outer product expansion.

In summary, the conversation involved a discussion of writing a matrix as a sum of outer products, specifically in the context of a CNOT gate. The process involves using an orthonormal basis and mapping each ket to an element of the normal ordered basis. The conversation also touched on the origins and meaning of bra-ket notation, as well as recommendations for books on great mathematicians and scientists.
  • #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
 
Physics news on Phys.org
  • #2
If you have an n-elements orthonormal basis {|i>}, and a matrix A (nxn) so:

[tex]a_{ij}=<i|A|j>[/tex] (1)

Then this sum:

[tex]A=\sum_{ij}a_{ij}|i><j|[/tex]

Represents the matrix. (Simply substitute this into (1) and use orthonormallity)
 
  • #3
elibj123 said:
If you have an n-elements orthonormal basis {|i>}, and a matrix A (nxn) so:

[tex]a_{ij}=<i|A|j>[/tex] (1)

Then this sum:

[tex]A=\sum_{ij}a_{ij}|i><j|[/tex]

Represents the matrix. (Simply substitute this into (1) and use orthonormallity)

To expand on this a little, the outer product |i><j| indexes the ith row and jth column of the matrix. This is why the resolution of the identity is written as a sum over outer products:

[tex]\sum_{i=1}^{N}\left|i\right\rangle\left\langle i\right|=I[/tex]

where |i> are the orthonormal basis vectors spanning some N-dimensional space, and I is the NxN identity matrix. So, can you see how to form a CNOT matrix now?
 
  • #4
raisin_raisin said:
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

Yes, you are exactly right. Each ket (bra) is taken to correspond to a column (row) vector. We usually deal with orthonormal kets, so in that case we can just map each one to an element of the normal ordered basis.

SpectraCat's elaboration should probably come first, since it shows you how to get the actual expressions for the matrix elements. You simply take the operator you are trying to expand in matrix form and apply two identity operators:
[tex] \hat{a} = \sum_i |i \rangle \langle i| \hat{a} = \sum_{i,j}|i \rangle \langle i| \hat{a}|j\rangle\langle j|[/tex]

This is directly the matrix expansion of the operator once you have replaced kets (bras) with column (row) vectors. Now you can identify the center portion as the matrix elements. They are just numbers obtained by an inner product of two vectors. Now you can use elibj123's (1) to write this expression in the form of his second expression.
[tex]\sum_{i,j}|i \rangle \underbrace{\langle i| \hat{a}|j\rangle}_{a_{ij}}\langle j| = \sum_{i,j} a_{ij} |i \rangle \langle j |
[/tex]

Now just associate each |i> with a column vector in the normal ordered basis and you can write this out as a square matrix. I.e. each term |i><j| in the sum corresponds to a square matrix with all entries zero with the exception of a 1 at i'th row and j'th column. Each term in the sum contributes to exactly one value (the corresponding matrix element) in the final square matrix.
 
  • #5
I've gotten multiple answers to this question, but you're nice folks so maybe you'll throw me a line; bra-ket notation as a WORD is just a play on "bracket", right? I know what the notation means within math, but as with 'shake' (10 nanoseconds from shakes of a lamb's tail) or 'Quark' (3 quarks for muster mark), sometimes it's not obvious.
 
  • #6
Frame Dragger said:
I've gotten multiple answers to this question, but you're nice folks so maybe you'll throw me a line; bra-ket notation as a WORD is just a play on "bracket", right? I know what the notation means within math, but as with 'shake' (10 nanoseconds from shakes of a lamb's tail) or 'Quark' (3 quarks for muster mark), sometimes it's not obvious.

From the man himself, in "The Principles of Quantum Mechanics", p. 19. (italics are Dirac's)

"One may now look upon the symbols < and > as a distinctive kind of brackets. A scalar product <A|B> now appears as a complete bracket expression, and a bra vector <B| or a ket vector |A> as an incomplete bracket expression. We have rules that any complete bracket expression denotes a number and any incomplete bracket expression denotes a vector, of the bra or ket kind according to whether it contains the first or second kind of the brackets."

Not exactly poetry ... and not exactly mathematically rigorous either it seems ... perhaps he wrote better/more complete definitions elsewhere?
 
  • #7
SpectraCat said:
From the man himself, in "The Principles of Quantum Mechanics", p. 19. (italics are Dirac's)

"One may now look upon the symbols < and > as a distinctive kind of brackets. A scalar product <A|B> now appears as a complete bracket expression, and a bra vector <B| or a ket vector |A> as an incomplete bracket expression. We have rules that any complete bracket expression denotes a number and any incomplete bracket expression denotes a vector, of the bra or ket kind according to whether it contains the first or second kind of the brackets."

Not exactly poetry ... and not exactly mathematically rigorous either it seems ... perhaps he wrote better/more complete definitions elsewhere?

If it was good enough for Dirac, it's good enough for us. :smile: He was a great man... but very very odd. Every read the book, "The Strangest Man" by Graham Farmelo? Fine non-scientific biography of Paul Dirac? That was my favourite recent light read since 'Prime Obsession'; an amazing bio of Riemann, with alternating chapters on the evolution of his work and the Zeta function and the man himself.
 
  • #8
Frame Dragger said:
If it was good enough for Dirac, it's good enough for us. :smile: He was a great man... but very very odd. Every read the book, "The Strangest Man" by Graham Farmelo? Fine non-scientific biography of Paul Dirac? That was my favourite recent light read since 'Prime Obsession'; an amazing bio of Riemann, with alternating chapters on the evolution of his work and the Zeta function and the man himself.

Check out, "The Man Who Loved Only Numbers", about mathematician Paul Erdos sometime .. another great read. And I think every scientist would enjoy "The Baroque Cycle" by Neal Stephenson ... it is historical fiction, but absolutely fascinating.
 
  • #9
SpectraCat said:
Check out, "The Man Who Loved Only Numbers", about mathematician Paul Erdos sometime .. another great read. And I think every scientist would enjoy "The Baroque Cycle" by Neal Stephenson ... it is historical fiction, but absolutely fascinating.

I haven't read the former, but I am a great fan of Neal Stephenson. Snow Crash is fantastic, Crytonomicon is hefty, but I laughed so hard within the first 50 pages I knew it would be a good read. His description of a semi-fictional Turing's early 'fancies' from the point of view of a nearly autistic mathematical genius 3rd party almost killed me. The Diamond Age, while very different in its focus, is a fascinating read.

Of course, I'm a great fan of William Gibson especially, but all of those in the surrounding genre ('Zeitgeist' by Bruce Sterling is fantastic) rounds out my sci-fi and much larger non-fiction stable.

I'm checked, and my local (a quick walk local) library has 'The Man Who Loved Only Numbers' and are holding it for me. Thanks! I LOVE any reading tips... and music. I never listen to the radio so I'm perpetually out of touch with current music. :smile:
 
  • #10
Thank you very much (for the book recommendations as well :))
 

Related to Writing a matrix as an outer product expansion.

1. What is an outer product expansion?

An outer product expansion is a way of representing a matrix as a sum of outer products of vectors. It involves breaking down a matrix into its component vectors and multiplying them together to create a new matrix.

2. Why would you want to write a matrix as an outer product expansion?

Writing a matrix as an outer product expansion can make it easier to understand and manipulate the matrix. It can also help in solving certain mathematical problems, such as finding eigenvalues and eigenvectors.

3. How do you write a matrix as an outer product expansion?

To write a matrix as an outer product expansion, you need to first find the set of vectors that make up the columns or rows of the matrix. Then, you can express the matrix as a sum of outer products of these vectors, where each outer product is the product of two vectors.

4. Can any matrix be written as an outer product expansion?

No, not all matrices can be written as an outer product expansion. The matrix must have a specific structure and certain properties, such as being square and having linearly independent columns or rows.

5. What are some applications of outer product expansion in science?

Outer product expansion has various applications in science, such as in quantum mechanics, signal processing, and data analysis. It is used to simplify and solve equations in these fields and can also be used in machine learning algorithms.

Similar threads

  • Quantum Physics
Replies
21
Views
2K
  • Quantum Physics
Replies
8
Views
2K
Replies
1
Views
999
  • Quantum Physics
Replies
1
Views
986
Replies
9
Views
1K
  • Quantum Physics
Replies
11
Views
1K
  • Quantum Physics
Replies
2
Views
1K
  • Quantum Physics
Replies
5
Views
1K
Replies
8
Views
1K
Replies
3
Views
816
Back
Top