Appendix C - Vectors and Linear Algebra
Contents
Introduction
This appendix introduces some aspects of linear algebra and complex algebra which will be helpful for the course. In addition, Dirac notation is introduced and explained.
Vectors
Here we review some facts about real vectors before discussing the representation and complex analogues used in quantum mechanics.
Real Vectors
The simple definition of a vector - an object which has magnitude and direction - is helpful to keep in mind even when dealing with complex and/or abstract vectors as we will here. In three dimensional space, a vector is often written as
where the hat () denotes a unit vector, and the components , are just numbers. The unit vectors, denoted by a hat () are also known as basis vectors. This is because any vector (in real three-dimensional space) can be written in terms of these unit/basis vectors. In some sense they are the basic components of any vector. Other basis vectors could be use, however. Some other common choices are those that are used for spherical and cylindrical coordinates. When dealing with more abstract and/or complex vectors, it is often helpful to ask what one would do for an ordinary three-dimensional vector. For example, properties of unit vectors, dot products, etc. in three-dimensions are similar to the analogous constructions in higher dimensions.
The inner product, or dot product for two real three-dimensional vectors
can be computed as follows
For the inner product of with itself, we get the square of the magnitude of denoted ,
If we want a unit vector in the direction of , then we divide by its magnitude to get a unit vector,
Now, of course, as can easily be checked.
There are several ways to represent a vector. The ones we will use most often are column and row vector notations. So, for example, we could write the vector above as
In this case, our unit vectors are represented by the following
We next turn to the subject of complex vectors along with the relevant notation. We will see how to compute the inner product later, but some other definitions will be required.
Complex Vectors
For complex vectors in quantum mechanics, Dirac notation is most often used. This notation uses a , called a ket, for a vector, so our vector would be
For qubits, i.e. two-state quantum systems, will often be written as complex vectors
| (C.1) |
where
are the basis vectors. The two numbers and are complex numbers, so the vector is said to be a complex vector.
Linear Algebra: Matrices
There are many aspects of linear algebra that are quite useful in quantum mechanics. We will briefly discuss several of these aspects here, however, we will first provide some definitions and properties which will be useful as well as fixing notation. Some familiarity with matrices will be assumed, but many basic defintions are also included.
Let us denote some matrix by . The set of all Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle m\times n\,\!}
matrices with real entries is Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle M(n\times m,\mathbb{R})\,\!}
. Such matrices
are said to be real since they have all real entries. Similarly, the
set of Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle m\times n\,\!}
complex matrices is . For the
set of set of square Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle n\times n\,\!}
complex matrices, we simply write
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle M(n,\mathbb{C})\,\!}
.
We will also refer to the set of matrix elements, Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle a_{ij}\,\!}
where the
first index ( in this case) labels the row and the second Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle (j)\,\!}
labels the column. Thus the element Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle a_{23}\,\!}
is the element in the
second row and third column. A comma is inserted if there is some
ambiguity. For example, in a large matrix the element in the
2nd row and 12th
column is written as Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle a_{2,12}\,\!}
to distinguish between the
21st row and 2nd column.
Complex Conjugate
The complex conjugate of a matrix is the matrix with each element replaced by its complex conjugate. In other words, to take the complex conjugate of a matrix, one takes the complex conjugate of each entry in the matrix. We denote the complex conjugate with a ``star, e.g. . For example,
| Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} A^* &=& \left(\begin{array}{ccc} a_{11} & a_{12} & a_{13} \\ a_{21} & a_{22} & a_{23} \\ a_{31} & a_{32} & a_{33} \end{array}\right)^* \\ &=& \left(\begin{array}{ccc} a_{11}^* & a_{12}^* & a_{13}^* \\ a_{21}^* & a_{22}^* & a_{23}^* \\ a_{31}^* & a_{32}^* & a_{33}^* \end{array}\right). \end{align} \,\!} | (C.2) |
(Notice that the notation for a matrix is a capital letter, whereas the entries are numbers, so they are represented by lower case letters.)
Transpose
The transpose of a matrix is the same set of elements but the first row becomes the first column, the second row becomes the second column, etc. Thus the rows and columns are interchanged. For example, for a square Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle 3\times 3\,\!} matrix, the transpose is given by
| Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} A^T &=& \left(\begin{array}{ccc} a_{11} & a_{12} & a_{13} \\ a_{21} & a_{22} & a_{23} \\ a_{31} & a_{32} & a_{33} \end{array}\right)^T \\ &=& \left(\begin{array}{ccc} a_{11} & a_{21} & a_{31} \\ a_{12} & a_{22} & a_{32} \\ a_{13} & a_{23} & a_{33} \end{array}\right). \end{align} \,\!} | (C.3) |
Hermitian Conjugate
The complex conjugate and transpose is called the Hermitian conjugate, or simply the dagger of a matrix. It is called the dagger, because the symbol used to denote it is a dagger (), viz.
| Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle (A^T)^* = (A^*)^T \equiv A^\dagger. \,\!} | (C.4) |
For our Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle 3\times 3\,\!} example,
If a matrix is its own Hermitian conjugate, i.e. , the we call it a Hermitian matrix. (Clearly this is only possible for square matrices.) Hermitian matrices are very important in quantum mechanics since their eigenvalues are real. (See Sec.(Eigenvalues and Eigenvectors).)
Index Notation
Very often we write the product of two matrices Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle A\,\!} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle B\,\!} simply as Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle AB\,\!} and let . However, it is also quite useful to write this in component form. In this case, if these are Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle n\times n\,\!} matrices
This says that the element in the row and column of the matrix is the sum . The transpose of Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle C\,\!} has elements
Now if we were to transpose and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle B\,\!} as well, this would read
This gives us a way of seeing the general rule that
It follows that
The Trace
The trace of a matrix is the sum of the diagonal elements and is denoted Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \mbox{Tr}\,\!} . So for example, the trace of an Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle n\times n\,\!} matrix Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle A\,\!} is
Some useful properties of the trace are the following:
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \mbox{Tr}(AB) = \mbox{Tr}(BA)\,\!}
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \mbox{Tr}(A + B) = \mbox{Tr}(A) + \mbox{Tr}(B)\,\!}
Using the first of these results,
This relation is used so often that we state it here explicitly.
The Determinant
For a square matrix, the determinant is quite a useful thing. For example, an Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle n\times n\,\!} matrix is invertible if and only if its determinant is not zero. So let us define the determinant and give some properties and examples.
The determinant of a Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle 2\times 2\,\!}
matrix
| Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle N = \left(\begin{array}{cc} a & b \\ c & d \end{array}\right), \,\!} | (C.5) |
is given by
| Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \det(N) = ad-bc. \,\!} | (C.6) |
Higher-order determinants can be written in terms of smaller ones in the standard way.
The determinant of a matrix Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle A\,\!}
can be
also be written in terms of its components as
| (C.7) |
where the symbol
| Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \epsilon_{ijkl...} = \begin{cases} +1, \; \mbox{if } \; ijkl... = 1234... (\mbox{in order, or any even number of permutations}),\\ -1, \; \mbox{if } \; ijkl... = 2134... (\mbox{or any odd number of permutations}),\\ \;\;\; 0, \; \mbox{otherwise}, \; (\mbox{meaning any index is repeated}). \end{cases} \,\!} | (C.8) |
Let us consider the example of the Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle 3\times 3\,\!} matrix Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle A\,\!} given above. The determinant can be calculated by
where, explicitly,
| Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \epsilon_{ijk} = \begin{cases} +1, \;\mbox{if }\; ijk= 123,231,\; \mbox{or}\; 312, (\mbox{These are even permutations of }123),\\ -1, \;\mbox{if }\; ijk = 213,132,\;\mbox{or}\;321(\mbox{These are odd permuations of }123),\\ \;\;\; 0, \; \mbox{otherwise}, \; (\mbox{meaning any index is repeated}). \end{cases} \,\!} | (C.9) |
so that
| Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} \det(A) &=& \epsilon_{123}a_{11}a_{22}a_{33} +\epsilon_{132}a_{11}a_{23}a_{32} +\epsilon_{231}a_{12}a_{23}a_{31} \\ &&+\epsilon_{213}a_{12}a_{21}a_{33} +\epsilon_{312}a_{13}a_{21}a_{32} +\epsilon_{213}a_{13}a_{21}a_{32}. \end{align} \,\!} | (C.10) |
Now given the values of Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \epsilon_{ijk}\,\!} in Eq.~(\ref{eq:3depsilon}), this is
The determinant has several properties which are useful to know. A few are listed here.
- The determinant of the transpose of a matrix is the same as the determinant of the matrix itself:
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \det(A) = \det(A^T).\,\!} - The determinant of a product is the product of determinants:
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \det(AB) = \det(A)\det(B).\,\!}
From this last property, another specific property can be derived. Suppose we take the determinant of the product of a matrix and its inverse we find
since the determinant of the identity is one. This implies that
The Inverse of a Matrix
The inverse of a square matrix Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle A\,\!} is another matrix, denoted Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle A^{-1}\,\!} such that
where is the identity matrix consisting of zeroes everywhere except the diagonal which has ones. For example the Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle 3\times 3\,\!} identity matrix is
It is important to note that a matrix is invertible if and only if its determinant is nonzero. Thus one only needsd to calculate the determinant to see if a matrix has an inverse or not.
Unitary Matrices
A unitary matrix Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle U\,\!} is one whose inverse is also its Hermitian conjugate, so that
If the unitary matrix also has determinant one, it is said to be a special unitary matrix. The set of Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle n\times n\,\!} unitary matrices is denoted UFailed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle (n)\,\!} and the set of special unitary matrices is denoted SU.
Unitary matrices are particularly important in quantum mechanics because they describe the evolution, or change, of quantum states. They are able to do this because unitary matrices have the property that rows and columns, viewed as vectors, are orthonormal. (To see this, an example is provided below.) This means that when they act on a basis vector of the form (one 1, in say the Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle j} th spot, and zeroes everywhere else)
| (C.11) |
the result is a normalized complex vector. Acting on a set of orthonormal vectors of the form given in Eq.(C.11), will produce another orthonormal set.
Let us consider the example of a unitary matrix,
| (C.12) |
The inverse of this matrix is the Hermitian conjugate, so the inverse is given by
| (C.13) |
provided that the matrix satisfies the constraints
| (C.14) |
and
| (C.15) |
Looking at each row as a vector, the constraints in Eq.(C.14) are the orthonormality conditions for the vectors forming the rows. Similarly, the constraints in Eq.(C.15) are the orthonormality conditions for the vectors forming the columns when viewed as vectors.
More Dirac Notation
Now that we have a definition of Hermitian conjugate, we consider the case for a Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle 1\times n\,\!} matrix, i.e. a vector. In Dirac notation, we had
So the Hermitian conjugate comes up so often that we use the following notation for vectors,
This is a row vector and in Dirac notation , the symbol , called a bra. Let us consider a second complex vector
The inner product between Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left\vert\psi\right\rangle\,\!} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left\vert\phi\right\rangle\,\!} is computed as follows:
| (C.16) |
If these two vectors are orthogonal, then their inner product is zero, Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left\langle\phi\mid\psi\right\rangle =0\,\!} . (The Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left\langle\phi\mid\psi\right\rangle \,\!} is called a bracket which is the product of the bra and the ket.) The inner product of Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left\vert\psi\right\rangle\,\!} with itself is
If this vector is normalized then Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left\langle\psi\mid\psi\right\rangle = 1\,\!} .
More generally, we will consider vectors in Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle N\,\!} dimensions. In this case we write the vector in terms of a set of basis vectors Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \{\left\vert i\right\rangle\}\,\!} , where . This is an ordered set of vectors which are just labeled by integers. If the set is orthogonal, then
and if they are normalized, then
If both of these are true, i.e., the entire set is orthonormal, we can write,
where the symbol is called the Kronecker delta and is defined by
| Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \delta_{ij} = \begin{cases} 1, & \mbox{if } i=j, \\ 0, & \mbox{if } i\neq j. \end{cases} } | (C.17) |
Now consider Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle (N+1)\,\!} -dimensional vectors by letting two such vectors be expressed in the same basis as
and
Then the inner product is
| Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} \left\langle\Psi\mid\Phi\right\rangle &= \left(\sum_{i=0}^{N} \alpha_i\left\vert i\right\rangle\right)^\dagger\left(\sum_{j=0}^{N} \beta_j\left\vert j\right\rangle\right) \\ &= \sum_{ij} \alpha_i^*\beta_j\left\langle i\mid j\right\rangle \\ &= \sum_{ij} \alpha_i^*\beta_j\delta_{ij} \\ &= \sum_i\alpha^*_i\beta_i, \end{align} } | (C.18) |
where we have used the fact that the delta function is zero unless Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle i=j\,\!} to get the last equality. For the inner product of a vector with itself, we get
This immediately gives us a very important property of the inner product. It tells us that in general,
(Just in case you don't know, the symbol Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \Leftrightarrow\,\!} means "if and only if" sometimes written as "iff.")
We could also expand a vector in a different basis. Let us suppose that the set Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \{\left\vert e_k \right\rangle\}\,\!} is an orthonormal basis Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle (\left\langle e_k \mid e_l\right\rangle = \delta_{kl})\,\!} which is different from the one considered earlier. We could expand our vector in terms of our new basis by expanding our new basis in terms of our old basis. Let us first expand the Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left\vert e_k\right\rangle\,\!} in terms of the Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left\vert j\right\rangle\,\!} :
| Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left\vert e_k\right\rangle= \sum_j \left\vert j\right\rangle \left\langle j\mid e_k\right\rangle, } | (C.19) |
so that
| (C.20) |
where
| Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \alpha_k^\prime = \sum_j \alpha_j \left\langle e_k \mid j\right\rangle. } | (C.21) |
Notice that the insertion of Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \sum_k\left\vert e_k\right\rangle\left\langle e_k\right\vert\,\!} didn't do anything to our original vector. It is the same vector, just in a different basis. Therefore, this is effectively the identity operator
This is an important and quite useful relation. Now, to interpret Eq.(C.19), we can draw a close analogy with three-dimensional real vectors. The inner product can be interpreted as the projection of one vector onto another. This provides the part of Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left\vert j \right\rangle\,\!} along Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left\vert e_k \right\rangle\,\!} .
Transformations
Suppose we have two different orthogonal bases, Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \{e_k\}\,\!} , . The numbers for all the different and are often referred to as matrix elements since the set forms a matrix with labelling the rows, and labelling the columns. Therefore, we can write the transformation from one basis to another with a matrix transformation. Let be the matrix with elements Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle m_{kj} = \left\langle e_k\mid j\right\rangle\,\!} . Then the transformation from one basis to another, written in terms of the coefficients of Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left\vert\Psi\right\rangle\,\!} , is
| Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle A^\prime = MA, } | (C.22) |
where
This sort of transformation is a change of basis. However, most often when one vector is transformed to another, the transformation is represented by a matrix. Such transformations can either be represented by the matrix equation, like Eq.(C.22), or the components
| Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \alpha_k^\prime = \sum_j \alpha_j \left\langle e_k \mid j \right\rangle = \sum_j m_{kj}\alpha_j. } | (C.23) |
For a general transformation matrix Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle T\,\!} , acting on a vector, the matrix elements in a particular basis Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left\vert i\right\rangle\,\!} are
just as elements of a vector can be found using
A similarity transformation of an Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle n\times n\,\!} matrix Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle A\,\!} by an invertible matrix is Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle S A S^{-1}\,\!} . There are (at least) two important things to note about similarity transformations,
- Similarity transformations leave determinants unchanged. (We say the determinant is invariant under similarity transformations.) This is because
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \det(SAS^{-1}) = \det(S)\det(A)\det(S^{-1}) =\det(S)\det(A)\frac{1}{\det(S)} = \det(A). \,\!} - Simultaneous similarity transformations of matrices in an equation will leave the equation unchanged. Let Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle A^\prime = SAS^{-1}\,\!} , , and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle C^\prime = SCS^{-1}\,\!} . If Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle AB=C\,\!} , then Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle A^\prime B^\prime = C^\prime\,\!} since . The two matrices Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle A^\prime\,\!} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle A\,\!} are said to be similar.
Eigenvalues and Eigenvectors
A matrix can always be diagonalized. By this, it is meant that for every complex matrix Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle M\,\!} there is a diagonal matrix such that
| Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle M = UDV, \,\!} | (C.24) |
where Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle U\,\!} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle V\,\!} are unitary matrices. This form is called a singular value decomposition of the matrix and the entries of the diagonal matrix are called the singular values of the matrix Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle M\,\!} . However, the singular values are not always easy to find.
For the special case that the matrix Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle M\,\!} is Hermitian Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle (M^\dagger = M)\,\!} , the matrix can be written as
| Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle M = U D U^\dagger, } | (C.25) |
where Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle U\,\!} is unitary Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle (U^{-1}=U^\dagger)\,\!} . In this case the elements of the matrix are called eigenvalues. Very often eigenvalues are introduced as solutions to the equation
where Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left\vert v\right\rangle\,\!} a vector called an eigenvector.
To find the eigenvalues and eigenvectors of a matrix Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle M\,\!} , we follow a standard procedure which is to calculate the following
| (C.26) |
and solve for Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \lambda\,\!} . The different solutions for Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \lambda\,\!} is the set of eigenvalues and this set is called the spectrum. Let the different eigenvalues be denoted by Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \lambda_i\,\!} , fo an vector. If two eigenvalues are equal, we say the spectrum is degenerate. To find the eigenvectors, which correspond to different eigenvalues, the equation
must be solved for each value of . Notice that this equations holds even if we multiply both sides by some complex number. This implies that an eigenvector can always be scaled. Usually they are normalized to obtain an orthonormal set. As we will see by example, degenerate eigenvalues require some care.
Example 1
Consider a Hermitian matrix
| (C.27) |
To find the eigenvalues of this, we follow a standard procedure which is to calculate the following
| (C.28) |
and solve for Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \lambda\,\!} . The eigenvalues of this matrix are given by
which implies the eigenvalues are
and the eigenvectors are
These expressions are useful for calculating properties of qubit states as will be seen in the text.
Example 2
Now consider a Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle 3\times 3\,\!} matrix
First we calculate
This implies that the eigenvalues \index{eigenvalues} are
Let Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \lambda_1=1\,\!} , Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \lambda_0 = 0\,\!} , and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \lambda_2 = 2\,\!} . To find eigenvectors, we calculate
| (C.29) |
for each Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \lambda\,\!} . For Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \lambda = 1\,\!} we get the following equations:
| Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} v_1 -iv_2 &= v_1, \\ iv_1+v_2 &= v_2, \\ v_3 &= v_3, \end{align} } | (C.30) |
so , Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle v_1 =0\,\!} , and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle v_3\,\!} is any non-zero number, but we choose it to normalize the vector. For Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \lambda =0\,\!} ,
| (C.31) |
and for Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \lambda = 2\,\!} ,
| Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} v_1 -iv_2 &= 2v_1, \\ iv_1+v_2 &= 2v_2, \\ v_3 &= 2v_3, \end{align} } | (C.32) |
so that Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle v_1 = -iv_2\,\!} . Therefore, our three eigenvectors are
The matrix
is the matrix that diagonalizes Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle N\,\!} in the following way,
where
or, we may write this as
This is sometimes called the eigenvalue decompostion of the matrix and is also written as,
| Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle N = \sum_i \lambda_i v_iv^\dagger_i. \,\!} | (C.33) |
Example 3
(ONE MORE EXAMPLE WITH DEGENERATE E-VALUES)
Tensor Products
The tensor product (also called the Kronecker product) is used extensively in quantum mechanics and throughout the course. It is commonly denoted with a Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \otimes\,\!} symbol, but this symbol is also often left out. In fact the following are commonly found in the literature as notation for the tensor product of two vectors and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left\vert\Phi\right\rangle\,\!}
| Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} \left\vert\Psi\right\rangle\otimes\left\vert\Phi\right\rangle &= \left\vert\Psi\right\rangle\left\vert\Phi\right\rangle \\ &= \left\vert\Psi\Phi\right\rangle. \end{align} } | (C.34) |
Each of these has its advantages and we will use all of them in different circumstances.
The tensor product is also often used for operators. So several examples will be given, one which explicitly calculates the tensor product for two vectors and one which calculates it for two matrices which could represent operators. However, these are not different in the sense that a vector is a Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle 1\times n\,\!} or an matrix. It is also noteworthy that the two objects in the tensor product need not be of the same type. In general a tensor product of an Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle n\times m\,\!} object (array) with a Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle p\times q\,\!} object will produce an Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle np\times mq\,\!} object.
In general, the tensor product of two objects is computed as follows.
Let be an Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle n\times m\,\!}
and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle B\,\!}
be a Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle p\times q\,\!}
array
| (C.35) |
and similarly for . Then
| (C.36) |
Let us now consider two examples. First let and be as before,
Then
| (C.37) |
Also
| (C.38) |
Now consider two matrices
Then
| (C.39) |
Properties of Tensor Products
Some properties of tensor products which are useful are the following (with , , , any type):
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \mbox{Tr}(A\otimes B) = \mbox{Tr}(A)\mbox{Tr}(B)\,\!}
(See Ref.~(\cite{Horn/JohnsonII}), Chapter 4.)