<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www2.physics.siu.edu/qunet/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mbyrd</id>
	<title>Qunet - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www2.physics.siu.edu/qunet/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mbyrd"/>
	<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php/Special:Contributions/Mbyrd"/>
	<updated>2026-04-29T19:07:06Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.7</generator>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Testing&amp;diff=3101</id>
		<title>Testing</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Testing&amp;diff=3101"/>
		<updated>2023-09-14T13:20:01Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;---EPR Paradox---&lt;br /&gt;
&lt;br /&gt;
Before diving into entanglement in the context of quantum computing and information, it would be prudent to discuss the now-famous EPR paradox.  It was first proposed in a paper by Einstein, Polosky, and Rosen in 1935.  The original paper does include a fairly simple mathematical explanation of the paradox---it is, however, not really necessary as the thought experiment is quite easily understood conceptually with (mostly) words.  A slightly simplified version of the experiment will be given here.&lt;br /&gt;
&lt;br /&gt;
Suppose a neutral pi meson, which has no spin, is at rest.  It then decays into an electron and a positron, necessarily going in opposite directions.  The wave function can now be written as&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert \Psi_-\right\rangle = \frac{1}{\sqrt{2}}(\left\vert \uparrow\downarrow \right\rangle - \left\vert \downarrow\uparrow \right\rangle). &amp;lt;/math&amp;gt;|4.1}}&lt;br /&gt;
&lt;br /&gt;
As can be seen, we now have a system of two particles that have a correlated spin---one being up and the other being down---with an equal probability for each configuration being the outcome of a measurement.  The system is said to be ''entangled'', as a measurement on one will guarantee that the other particle is in the correlated state.  In other words, it cannot be written as &amp;lt;math&amp;gt;\left\vert \psi_1\right\rangle \left\vert \psi_2\right\rangle &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now what is the significance here?  It all depends on what interpretation of quantum mechanics is being used.  The orthodox position says that the wave function is the complete representation of the system.  When the measurement occurs, the wave function collapses, changing the system.&lt;br /&gt;
&lt;br /&gt;
But, in the context of EPR, how can this be?  Imagine the entangled electron-positron pair are at opposite ends of the galaxy when one of them is measured.  The conservation of angular momentum says that the other particle all of the way on the other side of the galaxy must ''instantly'' be the opposite spin as the measured particle.  EPR argued that this is a violation of locality, which says an effect cannot travel faster than the speed of light.  If the very action of measurement on one particle is what caused the other particle to realize the opposite spin, then locality has been violated.  Therefore, the measurement could not have caused the collapse of the wave function.&lt;br /&gt;
&lt;br /&gt;
EPR concluded that this proves that quantum mechanics is incomplete---that the wave function is missing some information.  There was no &amp;quot;spooky-action-at-a-distance,&amp;quot; there must be some underlying property that is absent from the wave function.  Einstein rejected the notion that a measurement caused this quasi-mystical collapse of the wave function---the particles do not care if they are being watched or not.&lt;br /&gt;
&lt;br /&gt;
---Bell's Theorem---&lt;br /&gt;
&lt;br /&gt;
The peculiarities of the EPR paradox were convincing enough to drive many to examine possible &amp;quot;hidden variable theories.&amp;quot;  The basic idea is that there exists a quantity, often denoted by &amp;lt;math&amp;gt;\lambda \,\!&amp;lt;/math&amp;gt;, that must be included in the wave function to completely describe the system. J.S. Bell very elegantly showed in 1964 that this is not the case, using the very thought experiment (although slightly modified) that EPR proposed.&lt;br /&gt;
&lt;br /&gt;
Suppose we have another pion at rest about to decay with detectors oriented equidistant and on opposite sides, ready to measure the spin of the electron and positron.  Further suppose that, unlike the previous scenario, these detectors can be rotated in order to detect the spin in the direction of unit vectors &amp;lt;math&amp;gt;\vec{a}\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{b}&amp;lt;/math&amp;gt; for the electron and positron respectively.&lt;br /&gt;
&lt;br /&gt;
When the electron and positron pair strikes the detectors, a spin up (&amp;lt;math&amp;gt;-1&amp;lt;/math&amp;gt;) or spin down (&amp;lt;math&amp;gt;-1\,\!&amp;lt;/math&amp;gt;) is registered.  The product of the results is then examined.  If they are oriented parallel, where &amp;lt;math&amp;gt; \vec{a} = \vec{b}\,\!&amp;lt;/math&amp;gt;, then the result will be -1.  If anti-parallel, the result is then +1.  The averages are, obviously,&lt;br /&gt;
&lt;br /&gt;
{{Equation| &amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
P(\vec{a}, \vec{a}) &amp;amp;= -1 , \\&lt;br /&gt;
P(\vec{a}, -\vec{a}) &amp;amp;= +1 .&lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;|4.2}}&lt;br /&gt;
&lt;br /&gt;
Quantum mechanics tells us that for arbitrary vectors,&lt;br /&gt;
&lt;br /&gt;
{{Equation| &amp;lt;math&amp;gt; P(\vec{a}, \vec{b}) = -\vec{a} \cdot \vec{b}. \,\!&amp;lt;/math&amp;gt;|4.3}}&lt;br /&gt;
&lt;br /&gt;
We can now introduce the hidden variable, &amp;lt;math&amp;gt;\lambda&amp;lt;/math&amp;gt;.  This can represent ''any'' possible amount of variables that complete the description of the system and allow for locality.  We then define some functions, &amp;lt;math&amp;gt;A(\vec{a},\lambda)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B(\vec{b},\lambda),&amp;lt;/math&amp;gt; that will give the results for the measurement (either +1 or -1) for the electron and positron respectively.&lt;br /&gt;
&lt;br /&gt;
The locality assumption tells us that the orientation of one detector will not affect the outcome of the measurement of the other detector; one can imagine a scenario where the orientation is chosen at a time too late for any information to be transfered slower than light.  It must also be true that, when the detectors are parallel, the results must be&lt;br /&gt;
&lt;br /&gt;
{{Equation| &amp;lt;math&amp;gt; A(\vec{a},\lambda) = -B(\vec{a},\lambda) \,\!&amp;lt;/math&amp;gt;|4.4}}&lt;br /&gt;
&lt;br /&gt;
due to the conservation of angular momentum.  Let us also define a probability density, &amp;lt;math&amp;gt;\rho (\lambda),\,\!&amp;lt;/math&amp;gt; for the hidden variable.  Since we know nothing of &amp;lt;math&amp;gt;\lambda\,\!&amp;lt;/math&amp;gt;, this can be ''anything'' as long as it is nonnegative and normalizable (&amp;lt;math&amp;gt;\int \rho (\lambda)d(\lambda) = 1\,\!&amp;lt;/math&amp;gt;).  We can now look at the product of the measurements,&lt;br /&gt;
&lt;br /&gt;
{{Equation| &amp;lt;math&amp;gt;P(\vec{a},\vec{b}) = \int \rho(\lambda)A(\vec{a},\lambda)B(\vec{b},\lambda)d\lambda.\,\!&amp;lt;/math&amp;gt;|4.5}}&lt;br /&gt;
&lt;br /&gt;
We know from Eq.[[#eq4.4|(4.4)]] that this can be rewritten:&lt;br /&gt;
&lt;br /&gt;
{{Equation| &amp;lt;math&amp;gt;P(\vec{a},\vec{b}) = -\int \rho(\lambda)A(\vec{a},\lambda)A(\vec{b},\lambda)d\lambda.\,\!&amp;lt;/math&amp;gt;|4.6}}&lt;br /&gt;
&lt;br /&gt;
Now for the clever part.  Introducing another unit vector, &amp;lt;math&amp;gt;\vec{c}&amp;lt;/math&amp;gt;, and noting that &amp;lt;math&amp;gt;[A(\vec{b},\lambda)]^{2}=1,\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Equation| &amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
P(\vec{a},\vec{b})-P(\vec{a},\vec{c}) &amp;amp;=&lt;br /&gt;
-\int \rho(\lambda)[A(\vec{a},\lambda)A(\vec{b},\lambda)-A(\vec{a},\lambda)A(\vec{c},\lambda)]d\lambda\\&lt;br /&gt;
&amp;amp;= -\int \rho(\lambda)[1-A(\vec{b},\lambda)A(\vec{c},\lambda)]A(\vec{a},\lambda)A(\vec{b},\lambda)d\lambda&lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;|4.7}}&lt;br /&gt;
&lt;br /&gt;
Recognizing some inequalities,&lt;br /&gt;
&lt;br /&gt;
{{Equation| &amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
-1 \le A(\vec{a},\lambda)A(\vec{b},\lambda) \le 1, \\&lt;br /&gt;
\rho(\lambda)[1-A(\vec{b},\lambda)A(\vec{c},\lambda)] \ge 0,&lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;|4.8}}&lt;br /&gt;
&lt;br /&gt;
we get to a remarkable result,&lt;br /&gt;
&lt;br /&gt;
{{Equation| &amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
|P(\vec{a},\vec{b})-P(\vec{a},\vec{c})| &amp;amp;\le \int \rho(\lambda)[1-A(\vec{b},\lambda)A(\vec{c},\lambda)]d\lambda \\&lt;br /&gt;
&amp;amp;\le 1 + P(\vec{b},\vec{c}). \end{align}\,\!&amp;lt;/math&amp;gt;|4.9}}&lt;br /&gt;
&lt;br /&gt;
The last form is known as the Bell inequality.  This inequality is true for any local hidden variable theory.&lt;br /&gt;
&lt;br /&gt;
What does this mean?  Let us define &amp;lt;math&amp;gt;\vec{a}\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{b}\,\!&amp;lt;/math&amp;gt; to be orthogonal and &amp;lt;math&amp;gt;\vec{c}\,\!&amp;lt;/math&amp;gt; to make a &amp;lt;math&amp;gt;45^{\circ}\,\!&amp;lt;/math&amp;gt; angle with both of them.  Using quantum mechanics (Equation[[eq#4.3|(4.3)]]),&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
P(\vec{a},\vec{b}) = 0 \\&lt;br /&gt;
P(\vec{a},\vec{c}) = P(\vec{b},\vec{c}) = -\frac{1}{\sqrt{2}}.&lt;br /&gt;
\end{align} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Inserting the values into the Bell inequality (Equation [[eq#4.9|(4.9)]]),&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\left|-\frac{1}{\sqrt{2}} \right| &amp;amp;\le 1 + \left(-\frac{1}{\sqrt{2}}\right) \\&lt;br /&gt;
\frac{1}{\sqrt{2}} &amp;amp;\le \frac{\sqrt{2}-1}{\sqrt{2}} \\&lt;br /&gt;
1 &amp;amp;\le \sqrt{2} - 1&lt;br /&gt;
\end{align} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &amp;lt;math&amp;gt;\sqrt{2}-1 \approx .41, \,\!&amp;lt;/math&amp;gt; the inequality is violated!&lt;br /&gt;
&lt;br /&gt;
This means that quantum mechanics is incompatible with ''any'' local hidden variable theory.  The EPR paradox had stronger implications than the authors realized; if local realism is held, then quantum mechanics is incorrect.  This has been repeatedly disproved experimentally.  Thus no local hidden variable theory can resolve the &amp;quot;spooky-action-at-a-distance.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vector &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|V.1}} &lt;br /&gt;
where&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;|V.2}} &lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|V.3}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|V.4}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This enables the inner product between two vectors to be written as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\langle{v}|)(|{w}\rangle) = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and the inner product of a vector with itself&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\langle\psi|\psi\rangle = \alpha^*\alpha + \beta^*\beta.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Basis Vectors====&lt;br /&gt;
&lt;br /&gt;
'''Basis vectors''' are vectors that can be used to write '''any other vector'''.  For example, any two-dimensional vector such as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be written in terms of the two basis vectors &amp;lt;math&amp;gt;\left|0\right\rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\left|1\right\rangle&amp;lt;/math&amp;gt;.  That is because &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right) + \beta\left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)\\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\beta&amp;lt;/math&amp;gt; can be any numbers.  So any vector can be written in terms of these.  &lt;br /&gt;
&lt;br /&gt;
It turns out that any pair of vectors that are orthogonal can serve as basis vectors.  (In fact, any two that are not in the same direction.)  Most of the time, it is best to use vectors that are orthogonal and normalized (have magnitude one).  These are called orhtonormal vectors.  The set of such vectors is called an orthonormal set and such a set can be found for any dimension.  (The dimension is also the same number as the minimal number of vectors that we need in the set in order to be able to write any vector in terms of the basis vectors.)    &lt;br /&gt;
&lt;br /&gt;
It is easy to check that the vectors &amp;lt;math&amp;gt;\left|0\right\rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\left|1\right\rangle&amp;lt;/math&amp;gt; are orthonormal.  Another set of orthonormal vectors that are commonly used in quantum computing is the set&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} &lt;br /&gt;
\left\vert + \right\rangle &amp;amp;= \frac{1}{\sqrt{2}}\left(\begin{array}{c} 1 \\ 1 &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\frac{1}{\sqrt{2}}( \left\vert 0\right\rangle + \left\vert 1\right\rangle ),  \\&lt;br /&gt;
\left\vert - \right\rangle &amp;amp;=\frac{1}{\sqrt{2}} \left(\begin{array}{c} 1 \\ -1 \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\frac{1}{\sqrt{2}}(\left\vert 0\right\rangle - \left\vert 1\right\rangle).\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
It is also easy to show that these two are also orthonormal.  In addition, note that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} &lt;br /&gt;
\left\vert 0 \right\rangle &amp;amp;=\frac{1}{\sqrt{2}}( \left\vert +\right\rangle + \left\vert -\right\rangle ),  \\&lt;br /&gt;
\left\vert 1 \right\rangle &amp;amp;=\frac{1}{\sqrt{2}}(\left\vert +\right\rangle - \left\vert -\right\rangle).\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left|r\right\rangle = \left(\begin{array}{c} 1 \\ i &lt;br /&gt;
  \end{array}\right), \;\; \left|s\right\rangle = \left(\begin{array}{c} 1+i \\ 3&lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\left|t\right\rangle = \left(\begin{array}{c} -2i \\ 2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the complex conjugate of &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the magnitudes of all three vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Normalize &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \mbox{ and } \left|t\right\rangle &amp;lt;/math&amp;gt;.  Confirm that they are now unit vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the Hermitian conjugate (dagger) of all three vectors.&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras, kets, and brackets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner product &amp;lt;math&amp;gt;\left\langle s | t\right\rangle&amp;lt;/math&amp;gt;, between &amp;lt;math&amp;gt;\left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner products among all three vectors normalized versions of the vectors.  Is there any pair that is orthogonal?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;What can you say about the magnitude of the inner products in relation to the magnitudes of the individual vectors?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Find the inner product between &amp;lt;math&amp;gt;\left|0\right\rangle, \mbox{ and } \left|1\right\rangle &amp;lt;/math&amp;gt; from Eq.[[#eqV.3|(V.2)]].  &amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Challenge Questions&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Show that any vector can be written in terms of &amp;lt;math&amp;gt;\left|+\right\rangle, \; \mbox{and} \left|-\right\rangle.&amp;lt;/math&amp;gt;  &amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Matrices:_A_beginner%27s_guide&amp;diff=3100</id>
		<title>Matrices: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Matrices:_A_beginner%27s_guide&amp;diff=3100"/>
		<updated>2023-02-13T20:48:21Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Copyright */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
==Matrices as Operations on Quantum States==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The states of a quantum system can be written as&lt;br /&gt;
{{Equation | &amp;lt;math&amp;gt;\left\vert{\psi}\right\rangle = \alpha_0\left\vert{0}\right\rangle + \alpha_1\left\vert{1}\right\rangle,&amp;lt;/math&amp;gt; |m.1}}&lt;br /&gt;
where &amp;lt;math&amp;gt;\alpha_0\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\alpha_1\,\!&amp;lt;/math&amp;gt; are complex numbers.  These states are used to represent quantum systems that can be used to store information.  Because &amp;lt;math&amp;gt;|\alpha_0|^2\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;|\alpha_1|^2 \,\!&amp;lt;/math&amp;gt; are probabilities and must add up to one, &lt;br /&gt;
{{Equation | &amp;lt;math&amp;gt;|\alpha_0|^2 + |\alpha_1|^2 = 1.\,\!&amp;lt;/math&amp;gt; |m.2}}&lt;br /&gt;
This means that this vector is ''normalized,'' i.e. its magnitude (or length) is one.  ([[Appendix B - Complex Numbers|Appendix B]] contains a basic introduction to complex numbers.) The basis vectors for such a space are the two vectors &amp;lt;math&amp;gt;\left\vert{0}\right\rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\left\vert{1}\right\rangle&amp;lt;/math&amp;gt; which are called ''computational basis'' states. These two basis states are represented by &lt;br /&gt;
{{Equation | &amp;lt;math&amp;gt;\left\vert{0}\right\rangle = \left(\begin{array}{c} 1 \\ 0\end{array}\right), \;\;\left\vert{1}\right\rangle = \left(\begin{array}{c} 0 \\ 1\end{array}\right).&amp;lt;/math&amp;gt; |m.3}}&lt;br /&gt;
Thus, the qubit state can be rewritten as&lt;br /&gt;
{{Equation |&amp;lt;math&amp;gt;\left\vert{\psi}\right\rangle = \left(\begin{array}{c} \alpha_0 \\ \alpha_1\end{array}\right).&amp;lt;/math&amp;gt; |m.4}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A very common operation in computing is to change a &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to a &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; and a &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; to a &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;.  The operation that does this is denoted a &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;.  This operator does both.  It changes &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; a &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;.  So we write, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
X \left|0\right\rangle = \left|1\right\rangle, \mbox{ and } X \left|1\right\rangle = \left|0\right\rangle.  &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
Notice that this means that acting with &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; again means that you get back the original state.  Matrices, which are arrays of numbers, are the mathematical incarnation of these operations.  It turns out that matrices are the way to represent almost all of operations in quantum computing and this will be shown in this section.  &lt;br /&gt;
&lt;br /&gt;
Let us list some important matrices that will be used as examples below:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
X = \left(\begin{array}{cc}&lt;br /&gt;
                 0 &amp;amp; 1 \\&lt;br /&gt;
                 1 &amp;amp; 0 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
Z = \left(\begin{array}{cc}&lt;br /&gt;
                 1 &amp;amp; 0 \\&lt;br /&gt;
                 0 &amp;amp; -1 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.2}}&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
Y = \left(\begin{array}{cc}&lt;br /&gt;
                 0 &amp;amp; -i \\&lt;br /&gt;
                 i &amp;amp; 0 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.3}}&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
H = \left(\begin{array}{cc}&lt;br /&gt;
                 1/\sqrt{2} &amp;amp; 1/\sqrt{2} \\&lt;br /&gt;
                 1/\sqrt{2} &amp;amp; -1/\sqrt{2} \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.3}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These all have the general form&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
M = \left(\begin{array}{cc}&lt;br /&gt;
                 a &amp;amp; b \\&lt;br /&gt;
                 c &amp;amp; d \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.4}}&lt;br /&gt;
where the numbers &amp;lt;math&amp;gt;a,b,c,d&amp;lt;/math&amp;gt; can be complex numbers.&lt;br /&gt;
&lt;br /&gt;
==Matrices==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Basic Definition and Representations===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A matrix is an array of numbers of the following form with columns, col. 1, col. 2, etc., and rows, row 1, row 2, etc.  The entries for the matrix are labeled by the row and column.  So the entry of a matrix &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; will be &amp;lt;math&amp;gt;a_{ij}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; is the row and &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; is the column where the number &amp;lt;math&amp;gt;a_{ij}&amp;lt;/math&amp;gt; is found.  This is how it looks:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
A = \begin{array}{c} {\scriptstyle{row \; 1}}  \\ {\scriptstyle{row \; 2}}  \\  \vdots  \\  {\scriptstyle{row \; m}}\end{array} \overset{{\scriptstyle{col. \; 1 }} \;\;\; {\scriptstyle{col.\; 2 }} \;\;\;\; {\displaystyle{\cdots}} \;\;\;\;\; {\scriptstyle{col.\; n }}}{\left(\begin{array}{cccc} &lt;br /&gt;
a_{11} &amp;amp; a_{12} &amp;amp; \cdots &amp;amp; a_{1n} \\ &lt;br /&gt;
a_{21} &amp;amp; a_{22} &amp;amp; \cdots &amp;amp; a_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
a_{m1} &amp;amp; a_{m2} &amp;amp; \cdots &amp;amp; a_{mn}  &lt;br /&gt;
\end{array}\right)}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notice that we represent the whole matrix with a capital letter &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;.  The matrix &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; has &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; rows and &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; columns, so we say that &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; is an &amp;lt;math&amp;gt;m\times n&amp;lt;/math&amp;gt; matrix.  We could also represent it using all of the entries, this array of numbers seen in the equation above.  Another way to represent it is to write it as &amp;lt;math&amp;gt;(a_{ij})&amp;lt;/math&amp;gt;.  By this we mean that it is the array of numbers in the parentheses.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
The matrix above, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
X = \left(\begin{array}{cc}&lt;br /&gt;
                 0 &amp;amp; 1 \\&lt;br /&gt;
                 1 &amp;amp; 0 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
is a &amp;lt;math&amp;gt;2\times 2&amp;lt;/math&amp;gt; matrix.  &lt;br /&gt;
&lt;br /&gt;
The matrix &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
L = \left(\begin{array}{ccc}&lt;br /&gt;
                 3 &amp;amp; 2 &amp;amp; 5 \\&lt;br /&gt;
                 1 &amp;amp; 0 &amp;amp; 4\end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
is &amp;lt;math&amp;gt;2\times 3&amp;lt;/math&amp;gt; and &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
K = \left(\begin{array}{cc}&lt;br /&gt;
                 2 &amp;amp; 5  \\&lt;br /&gt;
                 1 &amp;amp; 4  \\&lt;br /&gt;
                 7 &amp;amp; 0  \\&lt;br /&gt;
                 8 &amp;amp; 3\end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
is a &amp;lt;math&amp;gt;4\times 2&amp;lt;/math&amp;gt; matrix.&lt;br /&gt;
&lt;br /&gt;
===Matrix Addition===&lt;br /&gt;
&lt;br /&gt;
Matrix addition is performed by adding each element of one matrix with the corresponding element in another matrix.  Let our two matrices be &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as above, and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;.  To represent these in an array, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
A = \left(\begin{array}{cccc} &lt;br /&gt;
a_{11} &amp;amp; a_{12} &amp;amp; \cdots &amp;amp; a_{1n} \\ &lt;br /&gt;
a_{21} &amp;amp; a_{22} &amp;amp; \cdots &amp;amp; a_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
a_{m1} &amp;amp; a_{m2} &amp;amp; \cdots &amp;amp; a_{mn}  &lt;br /&gt;
\end{array}\right), \;\;\;\;&lt;br /&gt;
B = \left(\begin{array}{cccc} &lt;br /&gt;
b_{11} &amp;amp; b_{12} &amp;amp; \cdots &amp;amp; b_{1n} \\ &lt;br /&gt;
b_{21} &amp;amp; b_{22} &amp;amp; \cdots &amp;amp; b_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
b_{m1} &amp;amp; b_{m2} &amp;amp; \cdots &amp;amp; b_{mn}  &lt;br /&gt;
\end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The the sum, which we could call &amp;lt;math&amp;gt;C= A+B&amp;lt;/math&amp;gt; is given by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
A + B = \left(\begin{array}{cccc} &lt;br /&gt;
a_{11} &amp;amp; a_{12} &amp;amp; \cdots &amp;amp; a_{1n} \\ &lt;br /&gt;
a_{21} &amp;amp; a_{22} &amp;amp; \cdots &amp;amp; a_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
a_{m1} &amp;amp; a_{m2} &amp;amp; \cdots &amp;amp; a_{mn}  &lt;br /&gt;
\end{array}\right) &lt;br /&gt;
+ &lt;br /&gt;
\left(\begin{array}{cccc} &lt;br /&gt;
b_{11} &amp;amp; b_{12} &amp;amp; \cdots &amp;amp; b_{1n} \\ &lt;br /&gt;
b_{21} &amp;amp; b_{22} &amp;amp; \cdots &amp;amp; b_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
b_{m1} &amp;amp; b_{m2} &amp;amp; \cdots &amp;amp; b_{mn}  &lt;br /&gt;
\end{array}\right) &lt;br /&gt;
=&lt;br /&gt;
\left(\begin{array}{cccc} &lt;br /&gt;
a_{11} + b_{11} &amp;amp; a_{12}+b_{12} &amp;amp; \cdots &amp;amp; a_{1n}+b_{1n} \\ &lt;br /&gt;
a_{21}+b_{21} &amp;amp; a_{22}+b_{22} &amp;amp; \cdots &amp;amp; a_{2n}+b_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
a_{m1}+b_{m1} &amp;amp; a_{m2}+b_{m2} &amp;amp; \cdots &amp;amp; a_{mn}+b_{mn}  &lt;br /&gt;
\end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In other words, the sum gives &amp;lt;math&amp;gt;c_{11} = a_{11} + b_{11}\,\!&amp;lt;/math&amp;gt;, etc.  We add them component by component like we do vectors.&lt;br /&gt;
&lt;br /&gt;
Change the font color or type in order to highlight the entries that are being added.&lt;br /&gt;
&lt;br /&gt;
===Multiplying a Matrix by a Number ===&lt;br /&gt;
&lt;br /&gt;
When multiplying a matrix by a number, each element of the matrix gets multiplied by that number.  Seem familiar?  This is what was done for vectors.  &lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; be some number.  Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
kA = k\left(\begin{array}{cccc} &lt;br /&gt;
a_{11} &amp;amp; a_{12} &amp;amp; \cdots &amp;amp; a_{1n} \\ &lt;br /&gt;
a_{21} &amp;amp; a_{22} &amp;amp; \cdots &amp;amp; a_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
a_{m1} &amp;amp; a_{m2} &amp;amp; \cdots &amp;amp; a_{mn}  &lt;br /&gt;
\end{array}\right) &lt;br /&gt;
= \left(\begin{array}{cccc} &lt;br /&gt;
ka_{11} &amp;amp; ka_{12} &amp;amp; \cdots &amp;amp; ka_{1n} \\ &lt;br /&gt;
ka_{21} &amp;amp; ka_{22} &amp;amp; \cdots &amp;amp; ka_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
ka_{m1} &amp;amp; ka_{m2} &amp;amp; \cdots &amp;amp; ka_{mn}  &lt;br /&gt;
\end{array}\right) &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Multiplying two Matrices===&lt;br /&gt;
&lt;br /&gt;
The the product, which we could call &amp;lt;math&amp;gt;C= AB&amp;lt;/math&amp;gt; is given by &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:MatrixMult2.jpg|600px]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
A = \left(\begin{array}{cc}&lt;br /&gt;
                 2 &amp;amp; 3 \\&lt;br /&gt;
                 5 &amp;amp; 6 \end{array}\right),&lt;br /&gt;
\mbox{ and }&lt;br /&gt;
B = \left(\begin{array}{cc}&lt;br /&gt;
                 1 &amp;amp; 4 \\&lt;br /&gt;
                 7 &amp;amp; 2 \end{array}\right)&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
Then &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
A B = \left(\begin{array}{cc}&lt;br /&gt;
                 2 &amp;amp; 3 \\&lt;br /&gt;
                 5 &amp;amp; 6 \end{array}\right)\left(\begin{array}{cc}&lt;br /&gt;
                 1 &amp;amp; 4 \\&lt;br /&gt;
                 7 &amp;amp; 2 \end{array}\right) &lt;br /&gt;
= \left(\begin{array}{cc}&lt;br /&gt;
                 2\cdot 1 + 3\cdot 7 &amp;amp; 2\cdot 4 + 3\cdot 2 \\&lt;br /&gt;
                 5\cdot 1 + 6\cdot 7 &amp;amp; 5\cdot 4 + 6\cdot 2 \end{array}\right) &lt;br /&gt;
= \left(\begin{array}{cc}&lt;br /&gt;
                 23 &amp;amp; 14 \\&lt;br /&gt;
                 47 &amp;amp; 32 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us multiply &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Z&amp;lt;/math&amp;gt; from above, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
X Z = \left(\begin{array}{cc}&lt;br /&gt;
                 0 &amp;amp; 1 \\&lt;br /&gt;
                 1 &amp;amp; 0 \end{array}\right)&lt;br /&gt;
      \left(\begin{array}{cc}&lt;br /&gt;
                 1 &amp;amp; 0 \\&lt;br /&gt;
                 0 &amp;amp; -1 \end{array}\right) &lt;br /&gt;
= \left(\begin{array}{cc}&lt;br /&gt;
                 0\cdot 1 + 1\cdot 0 &amp;amp; 0\cdot 0 + 1\cdot (-1) \\&lt;br /&gt;
                 1\cdot 1 + 0\cdot 0 &amp;amp; 1\cdot 0 + 0\cdot (-1) \end{array}\right) &lt;br /&gt;
= \left(\begin{array}{cc}&lt;br /&gt;
                 0 &amp;amp; -1 \\&lt;br /&gt;
                 1 &amp;amp; 0 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
It is helpful to notice that this is &amp;lt;math&amp;gt;-iY&amp;lt;/math&amp;gt;; that is &amp;lt;math&amp;gt;XZ = -i Y&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Notation===&lt;br /&gt;
&lt;br /&gt;
There are many aspects of linear algebra that are quite useful in&lt;br /&gt;
quantum mechanics.  We will briefly discuss several of these aspects here.&lt;br /&gt;
First, some definitions and properties are provided that will&lt;br /&gt;
be useful.  Some familiarity with matrices&lt;br /&gt;
will be assumed, although many basic definitions are also included.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us denote some &amp;lt;math&amp;gt;m\times n\,\!&amp;lt;/math&amp;gt; matrix by &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;.  The set of all &amp;lt;math&amp;gt;m\times&lt;br /&gt;
n\,\!&amp;lt;/math&amp;gt; matrices with real entries is &amp;lt;math&amp;gt;M(m\times n,\mathbb{R})\,\!&amp;lt;/math&amp;gt;.  Such matrices&lt;br /&gt;
are said to be real since they have all real entries.  Similarly, the&lt;br /&gt;
set of &amp;lt;math&amp;gt;m\times n\,\!&amp;lt;/math&amp;gt; complex matrices is &amp;lt;math&amp;gt;M(m\times n,\mathbb{C})\,\!&amp;lt;/math&amp;gt;.  For the&lt;br /&gt;
set of square &amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; complex matrices, we simply write&lt;br /&gt;
&amp;lt;math&amp;gt;M(n,\mathbb{C})\,\!&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will also refer to the set of matrix elements, &amp;lt;math&amp;gt;a_{ij}\,\!&amp;lt;/math&amp;gt;, where the&lt;br /&gt;
first index (&amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; in this case) labels the row and the second &amp;lt;math&amp;gt;(j)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
labels the column.  Thus the element &amp;lt;math&amp;gt;a_{23}\,\!&amp;lt;/math&amp;gt; is the element in the&lt;br /&gt;
second row and third column.  A comma is inserted if there is some&lt;br /&gt;
ambiguity.  For example, in a large matrix the element in the&lt;br /&gt;
2nd row and 12th&lt;br /&gt;
column is written as &amp;lt;math&amp;gt;a_{2,12}\,\!&amp;lt;/math&amp;gt; to distinguish between the&lt;br /&gt;
21st row and 2nd column.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The Identity Matrix===&lt;br /&gt;
&lt;br /&gt;
An identity matrix has the property that when it is multiplied by any matrix, that matrix is unchanged.  That is, for any matrix &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbb{I}A = A\mathbb{I} = A.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Such an identity matrix always has ones along the diagonal and zeroes everywhere else.  For example, the &amp;lt;math&amp;gt;3 \times 3\,\!&amp;lt;/math&amp;gt; identity matrix is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbb{I} = \left(\begin{array}{ccc}&lt;br /&gt;
        1 &amp;amp; 0 &amp;amp; 0 \\&lt;br /&gt;
        0 &amp;amp; 1 &amp;amp; 0 \\&lt;br /&gt;
        0 &amp;amp; 0 &amp;amp; 1 \end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
It is straight-forward to verify that any &amp;lt;math&amp;gt;3 \times 3\,\!&amp;lt;/math&amp;gt; matrix is not changed when multiplied by the identity matrix.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The Inverse of a Matrix===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inverse &amp;lt;!-- \index{inverse}--&amp;gt; of an &amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; square matrix &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; is another &amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; square matrix,&lt;br /&gt;
denoted &amp;lt;math&amp;gt;A^{-1}\,\!&amp;lt;/math&amp;gt;, such that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
AA^{-1} = A^{-1}A = \mathbb{I},&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbb{I}\,\!&amp;lt;/math&amp;gt; is the identity matrix consisting of zeroes everywhere&lt;br /&gt;
except the diagonal, which has ones.  For example, the &amp;lt;math&amp;gt;3\times 3\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
identity matrix is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbb{I}_3 = \left(\begin{array}{ccc} 1 &amp;amp; 0 &amp;amp; 0 \\ 0 &amp;amp; 1 &amp;amp; 0 \\ 0 &amp;amp; 0 &amp;amp; 1&lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is important to note that ''a matrix is invertible if and only if its determinant is nonzero.''  Thus one only needs to calculate the&lt;br /&gt;
determinant to see if a matrix has an inverse or not.&lt;br /&gt;
&lt;br /&gt;
===Complex Conjugate===&lt;br /&gt;
&lt;br /&gt;
The ''complex conjugate of a matrix'' &amp;lt;!-- \index{complex conjugate!of a matrix}--&amp;gt;&lt;br /&gt;
is the matrix with each element replaced by its complex conjugate.  In&lt;br /&gt;
other words, to take the complex conjugate of a matrix, one takes the&lt;br /&gt;
complex conjugate of each entry in the matrix.  We denote the complex&lt;br /&gt;
conjugate with a star, like this: &amp;lt;math&amp;gt;A^*\,\!&amp;lt;/math&amp;gt;.  For example,&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
A^* &amp;amp;=&amp;amp; \left(\begin{array}{ccc}&lt;br /&gt;
        a_{11} &amp;amp; a_{12} &amp;amp; a_{13} \\&lt;br /&gt;
        a_{21} &amp;amp; a_{22} &amp;amp; a_{23} \\&lt;br /&gt;
        a_{31} &amp;amp; a_{32} &amp;amp; a_{33} \end{array}\right)^*  \\&lt;br /&gt;
    &amp;amp;=&amp;amp; \left(\begin{array}{ccc}&lt;br /&gt;
        a_{11}^* &amp;amp; a_{12}^* &amp;amp; a_{13}^* \\&lt;br /&gt;
        a_{21}^* &amp;amp; a_{22}^* &amp;amp; a_{23}^* \\&lt;br /&gt;
        a_{31}^* &amp;amp; a_{32}^* &amp;amp; a_{33}^* \end{array}\right). &lt;br /&gt;
\end{align}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.2}}&lt;br /&gt;
(Notice that the notation for a matrix is a capital letter, whereas&lt;br /&gt;
the entries are represented by lower case&lt;br /&gt;
letters.)&lt;br /&gt;
&lt;br /&gt;
===Transpose===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ''transpose'' &amp;lt;!-- \index{transpose} --&amp;gt; of a matrix is the same set of&lt;br /&gt;
elements, but now the first row becomes the first column, the second row&lt;br /&gt;
becomes the second column, and so on.  Thus the rows and columns are&lt;br /&gt;
interchanged.  For example, for a square &amp;lt;math&amp;gt;3\times 3\,\!&amp;lt;/math&amp;gt; matrix, the&lt;br /&gt;
transpose is given by&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
A^T &amp;amp;=&amp;amp; \left(\begin{array}{ccc}&lt;br /&gt;
        a_{11} &amp;amp; a_{12} &amp;amp; a_{13} \\&lt;br /&gt;
        a_{21} &amp;amp; a_{22} &amp;amp; a_{23} \\&lt;br /&gt;
        a_{31} &amp;amp; a_{32} &amp;amp; a_{33} \end{array}\right)^T \\&lt;br /&gt;
    &amp;amp;=&amp;amp; \left(\begin{array}{ccc}&lt;br /&gt;
        a_{11} &amp;amp; a_{21} &amp;amp; a_{31} \\&lt;br /&gt;
        a_{12} &amp;amp; a_{22} &amp;amp; a_{32} \\&lt;br /&gt;
        a_{13} &amp;amp; a_{23} &amp;amp; a_{33} \end{array}\right). &lt;br /&gt;
\end{align}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.3}}&lt;br /&gt;
&lt;br /&gt;
===Hermitian Conjugate===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The complex conjugate and transpose of a matrix is called the ''Hermitian conjugate'', or simply the ''dagger'' of a matrix.  It is called the dagger because the symbol used to denote it,&lt;br /&gt;
(&amp;lt;math&amp;gt;\dagger\,\!&amp;lt;/math&amp;gt;):&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
(A^T)^* = (A^*)^T \equiv A^\dagger.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.4}}&lt;br /&gt;
For our &amp;lt;math&amp;gt;3\times 3\,\!&amp;lt;/math&amp;gt; example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
A^\dagger = \left(\begin{array}{ccc}&lt;br /&gt;
        a_{11}^* &amp;amp; a_{21}^* &amp;amp; a_{31}^* \\&lt;br /&gt;
        a_{12}^* &amp;amp; a_{22}^* &amp;amp; a_{32}^* \\&lt;br /&gt;
        a_{13}^* &amp;amp; a_{23}^* &amp;amp; a_{33}^* \end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If a matrix is its own Hermitian conjugate, i.e. &amp;lt;math&amp;gt;A^\dagger = A\,\!&amp;lt;/math&amp;gt;, then&lt;br /&gt;
we call it a ''Hermitian matrix''.  &amp;lt;!-- \index{Hermitian matrix}--&amp;gt;&lt;br /&gt;
(Clearly this is only possible for square matrices.) Hermitian&lt;br /&gt;
matrices are very important in quantum mechanics since their&lt;br /&gt;
eigenvalues are real.  (See Sec.([[Appendix C - Vectors and Linear Algebra#Eigenvalues and Eigenvectors|Eigenvalues and Eigenvectors]]).)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Index Notation===&lt;br /&gt;
&lt;br /&gt;
Very often we write the product of two matrices &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt; simply as&lt;br /&gt;
&amp;lt;math&amp;gt;AB\,\!&amp;lt;/math&amp;gt; and let &amp;lt;math&amp;gt;C=AB\,\!&amp;lt;/math&amp;gt;.  However, it is also quite useful to write this&lt;br /&gt;
in component form.  In this case, if these are &amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; matrices, the component form will be &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
c_{ik} = \sum_{j=1}^n a_{ij}b_{jk}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
This says that the element in the &amp;lt;math&amp;gt;i^{\mbox{th}}\,\!&amp;lt;/math&amp;gt; row and&lt;br /&gt;
&amp;lt;math&amp;gt;j^{\mbox{th}}\,\!&amp;lt;/math&amp;gt; column of the matrix &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt; is the sum &amp;lt;math&amp;gt;\sum_{j=1}^n&lt;br /&gt;
a_{ij}b_{jk}\,\!&amp;lt;/math&amp;gt;.  The transpose of &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt; has elements&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
c_{ki} = \sum_{j=1}^n a_{kj}b_{ji}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now if we were to transpose &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt; as well, this would read&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
c_{ki} = \sum_{j=1}^n (a_{jk})^T (b_{ij})^T = \sum_{j=1}^n b^T_{ij} a^T_{jk}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
This gives us a way of seeing the general rule that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
C^T = B^TA^T.  &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
It follows that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
C^\dagger = B^\dagger A^\dagger.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===The Trace===&lt;br /&gt;
&lt;br /&gt;
The ''trace'' --&amp;gt;&amp;lt;!-- \index{trace}--&amp;gt;&amp;lt;!-- of a matrix is the sum of the diagonal&lt;br /&gt;
elements and is denoted &amp;lt;math&amp;gt;\mbox{Tr}\,\!&amp;lt;/math&amp;gt;.  So for example, the trace of an&lt;br /&gt;
&amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; matrix &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mbox{Tr}(A) = \sum_{i=1}^n a_{ii}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;.&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some useful properties of the trace are the following:&lt;br /&gt;
#&amp;lt;math&amp;gt;\mbox{Tr}(AB) = \mbox{Tr}(BA)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
#&amp;lt;math&amp;gt;\mbox{Tr}(A + B) = \mbox{Tr}(A) + \mbox{Tr}(B)\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
Using the first of these results,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mbox{Tr}(UAU^{-1}) = \mbox{Tr}(U^{-1}UA) = \mbox{Tr}(A).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
This relation is used so often that we state it here explicitly.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The Determinant===&lt;br /&gt;
&lt;br /&gt;
For a square matrix, the determinant is quite a useful thing.  For&lt;br /&gt;
example, an &amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; matrix is invertible if and only if its&lt;br /&gt;
determinant is not zero.  So let us define the determinant and give&lt;br /&gt;
some properties and examples.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ''determinant''&amp;lt;!--\index{determinant}--&amp;gt; of a &amp;lt;math&amp;gt;2\times 2\,\!&amp;lt;/math&amp;gt; matrix, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
N = \left(\begin{array}{cc}&lt;br /&gt;
                 a &amp;amp; b \\&lt;br /&gt;
                 c &amp;amp; d \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.5}}&lt;br /&gt;
is given by&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\det(N) = ad-bc.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.6}}&lt;br /&gt;
Higher-order determinants can be written in terms of smaller ones in a recursive way.  For example, let &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
M = \left(\begin{array}{ccc}&lt;br /&gt;
                 m_{11} &amp;amp; m_{12} &amp;amp; m_{13} \\&lt;br /&gt;
                 m_{21} &amp;amp; m_{22} &amp;amp; m_{23} \\&lt;br /&gt;
                 m_{31} &amp;amp; m_{32} &amp;amp; m_{33}\end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\det(M) = m_{11}\det\left(\begin{array}{cc}&lt;br /&gt;
                 m_{22} &amp;amp; m_{23} \\&lt;br /&gt;
                 m_{32} &amp;amp; m_{33} \end{array}\right) &lt;br /&gt;
- m_{12}\det\left(\begin{array}{cc}&lt;br /&gt;
                 m_{21} &amp;amp; m_{23} \\&lt;br /&gt;
                 m_{31} &amp;amp; m_{33} \end{array}\right)&lt;br /&gt;
+m_{13}\det\left(\begin{array}{cc}&lt;br /&gt;
                 m_{21} &amp;amp; m_{22} \\&lt;br /&gt;
                 m_{31} &amp;amp; m_{32} \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
The ''determinant''--&amp;gt;&amp;lt;!-- \index{determinant}--&amp;gt;&amp;lt;!-- of a matrix &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; can be&lt;br /&gt;
also be written in terms of its components as &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\det(A) = \sum_{i,j,k,l,...} \epsilon_{ijkl...}&lt;br /&gt;
a_{1i}a_{2j}a_{3k}a_{4l} ...,&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.7}}&lt;br /&gt;
where the symbol &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon_{ijkl...} = \begin{cases}&lt;br /&gt;
                       +1, \; \mbox{if } \; ijkl... = 1234... (\mbox{in order, or any even number of permutations}),\\&lt;br /&gt;
                       -1, \; \mbox{if } \; ijkl... = 2134... (\mbox{or any odd number of permutations}),\\&lt;br /&gt;
                       \;\;\; 0, \; \mbox{otherwise}, \; (\mbox{meaning any index is repeated}).&lt;br /&gt;
                      \end{cases}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.8}}&lt;br /&gt;
&lt;br /&gt;
Let us consider the example of the &amp;lt;math&amp;gt;3\times 3\,\!&amp;lt;/math&amp;gt; matrix &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; given&lt;br /&gt;
above.  The determinant can be calculated by&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\det(A) = \sum_{i,j,k} \epsilon_{ijk}&lt;br /&gt;
a_{1i}a_{2j}a_{3k},&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where, explicitly, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon_{ijk} = \begin{cases}&lt;br /&gt;
                       +1, \;\mbox{if }\; ijk= 123,231,\; \mbox{or}\; 312, (\mbox{These are even permutations of }123),\\&lt;br /&gt;
                       -1, \;\mbox{if }\; ijk = 213,132,\;\mbox{or}\;321(\mbox{These are odd permuations of }123),\\&lt;br /&gt;
                    \;\;\;  0, \; \mbox{otherwise}, \; (\mbox{meaning any index is repeated}),&lt;br /&gt;
                 \end{cases}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.9}}&lt;br /&gt;
so that &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\det(A) &amp;amp;=&amp;amp; \epsilon_{123}a_{11}a_{22}a_{33} &lt;br /&gt;
         +\epsilon_{132}a_{11}a_{23}a_{32}&lt;br /&gt;
         +\epsilon_{231}a_{12}a_{23}a_{31}  \\&lt;br /&gt;
       &amp;amp;&amp;amp;+\epsilon_{213}a_{12}a_{21}a_{33}&lt;br /&gt;
         +\epsilon_{312}a_{13}a_{21}a_{32}&lt;br /&gt;
         +\epsilon_{321}a_{13}a_{22}a_{31}.&lt;br /&gt;
\end{align}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.10}}&lt;br /&gt;
Now given the values of &amp;lt;math&amp;gt;\epsilon_{ijk}\,\!&amp;lt;/math&amp;gt; in [[#eqC.9|Eq. C.9]],&lt;br /&gt;
this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\det(A) = a_{11}a_{22}a_{33} - a_{11}a_{23}a_{32} + a_{12}a_{23}a_{31} &lt;br /&gt;
         - a_{12}a_{21}a_{33} + a_{13}a_{21}a_{32} - a_{13}a_{22}a_{31}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The determinant has several properties that are useful to know.  A few are listed here:  &lt;br /&gt;
#The determinant of the transpose of a matrix is the same as the determinant of the matrix itself: &amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \det(A) = \det(A^T).\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
#The determinant of a product is the product of determinants:    &amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \det(AB) = \det(A)\det(B).\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
From this last property, another specific property can be derived.&lt;br /&gt;
If we take the determinant of the product of a matrix and its&lt;br /&gt;
inverse, we find&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\det(U U^{-1}) = \det(U)\det(U^{-1}) = \det(\mathbb{I}) = 1,&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
since the determinant of the identity is one.  This implies that&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\det(U^{-1}) = \frac{1}{\det(U)}.  &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Hermitian Matrices===&lt;br /&gt;
&lt;br /&gt;
Hermitian matrices are important for a variety of reasons; primarily, it is because their eigenvalues are real.  Thus Hermitian matrices are used to represent density operators and density matrices, as well as Hamiltonians.  The density operator is a positive semi-definite Hermitian matrix (it has no negative eigenvalues) that has its trace equal to one.  In any case, it is often desirable to represent &amp;lt;math&amp;gt;N\times N\,\!&amp;lt;/math&amp;gt; Hermitian matrices using a real linear combination of a complete set of &amp;lt;math&amp;gt;N\times N\,\!&amp;lt;/math&amp;gt; Hermitian matrices.  A set of &amp;lt;math&amp;gt;N\times N\,\!&amp;lt;/math&amp;gt; Hermitian matrices is complete if any Hermitian matrix can be represented in terms of the set.  Let &amp;lt;math&amp;gt;\{\lambda_i\}\,\!&amp;lt;/math&amp;gt; be a complete set.  Then any Hermitian matrix can be represented by &amp;lt;math&amp;gt;\sum_i a_i \lambda_i\,\!&amp;lt;/math&amp;gt;.  The set can always be taken to be a set of traceless Hermitian matrices and the identity matrix.  This is convenient for the density matrix (its trace is one) because the identity part of an &amp;lt;math&amp;gt;N\times N\,\!&amp;lt;/math&amp;gt; Hermitian matrix is &amp;lt;math&amp;gt;(1/N)\mathbb{I}\,\!&amp;lt;/math&amp;gt; if we take all others in the set to be traceless.  For the Hamiltonian, the set consists of a traceless part and an identity part where identity part just gives an overall phase which can often be neglected.  &lt;br /&gt;
&lt;br /&gt;
One example of such a set which is extremely useful is the set of Pauli matrices.  These are discussed in detail in [[Chapter 2 - Qubits and Collections of Qubits|Chapter 2]] and in particular in [[Chapter 2 - Qubits and Collections of Qubits#The Pauli Matrices|Section 2.4]].&lt;br /&gt;
&lt;br /&gt;
===Unitary Matrices===&lt;br /&gt;
&lt;br /&gt;
A ''unitary matrix'' &amp;lt;!-- \index{unitary matrix} --&amp;gt; &amp;lt;math&amp;gt;U\,\!&amp;lt;/math&amp;gt; is one whose&lt;br /&gt;
inverse is also its Hermitian conjugate, &amp;lt;math&amp;gt;U^\dagger = U^{-1}\,\!&amp;lt;/math&amp;gt;, so that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
U^\dagger U = UU^\dagger = \mathbb{I}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If the unitary matrix also has determinant one, it is said to be ''a special unitary matrix''.&amp;lt;!-- \index{special unitary matrix}--&amp;gt;  The set of&lt;br /&gt;
&amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; unitary matrices is denoted&lt;br /&gt;
&amp;lt;math&amp;gt;U(n)\,\!&amp;lt;/math&amp;gt; and the set of special unitary matrices is denoted &amp;lt;math&amp;gt;SU(n)\,\!&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
Unitary matrices are particularly important in quantum mechanics&lt;br /&gt;
because they describe the evolution of quantum states.&lt;br /&gt;
They have this ability due to the fact that the rows and columns of unitary matrices (viewed as vectors) are orthonormal. (This is made clear in an example below.)  This means that when&lt;br /&gt;
they act on a basis vector of the form&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt; \left\vert j\right\rangle = &lt;br /&gt;
 \left(\begin{array}{c} 0 \\ 0 \\ \vdots \\ 1 \\ \vdots \\ 0 &lt;br /&gt;
  \end{array}\right), &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.11}}&lt;br /&gt;
with a single 1, in say the &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt;th spot, and zeroes everywhere else, the result is a normalized complex vector.  Acting on a set of&lt;br /&gt;
orthonormal vectors of the form given in Eq.[[#eqC.11|(C.11)]]&lt;br /&gt;
will produce another orthonormal set.  &lt;br /&gt;
&lt;br /&gt;
Let us consider the example of a &amp;lt;math&amp;gt;2\times 2\,\!&amp;lt;/math&amp;gt; unitary matrix, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
U = \left(\begin{array}{cc} &lt;br /&gt;
              a &amp;amp; b \\ &lt;br /&gt;
              c &amp;amp; d &lt;br /&gt;
           \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.12}}&lt;br /&gt;
The inverse of this matrix is the Hermitian conjugate, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
U ^{-1} = U^\dagger = \left(\begin{array}{cc} &lt;br /&gt;
                         a^* &amp;amp; c^* \\ &lt;br /&gt;
                         b^* &amp;amp; d^* &lt;br /&gt;
                       \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.13}}&lt;br /&gt;
provided that the matrix &amp;lt;math&amp;gt;U\,\!&amp;lt;/math&amp;gt; satisfies the constraints&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
|a|^2 + |b|^2 = 1, \; &amp;amp; \; ac^*+bd^* =0  \\&lt;br /&gt;
ca^*+db^*=0,  \;      &amp;amp;  \; |c|^2 + |d|^2 =1,&lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;|C.14}}&lt;br /&gt;
and&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
|a|^2 + |c|^2 = 1, \; &amp;amp; \; ba^*+dc^* =0  \\&lt;br /&gt;
b^*a+d^*c=0,  \;      &amp;amp;  \; |b|^2 + |d|^2 =1.&lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;|C.15}}&lt;br /&gt;
Looking at each row as a vector, the constraints in&lt;br /&gt;
Eq.[[#eqC.14|(C.14)]] are the orthonormality conditions for the&lt;br /&gt;
vectors forming the rows.  Similarly, the constraints in&lt;br /&gt;
Eq.[[#eqC.15|(C.15)]] are the orthonormality conditions for the&lt;br /&gt;
vectors forming the columns.&lt;br /&gt;
&lt;br /&gt;
===Inner and Outer Products===&lt;br /&gt;
&lt;br /&gt;
It is very helpful to note that a column vector with &amp;lt;math&amp;gt;n\times 1\,\!&amp;lt;/math&amp;gt; matrix.  A row vector is a &amp;lt;math&amp;gt;1\times n\,\!&amp;lt;/math&amp;gt; matrix.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now that we have a definition for the Hermitian conjugate, consider the&lt;br /&gt;
case for a &amp;lt;math&amp;gt;n\times 1\,\!&amp;lt;/math&amp;gt; matrix, i.e. a vector.  In Dirac notation, this is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert\psi\right\rangle = \left(\begin{array}{c} \alpha \\ \beta&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The Hermitian conjugate comes up so often that we use the following&lt;br /&gt;
notation for vectors:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\langle \psi\right\vert = (\left\vert\psi\right\rangle)^\dagger = \left(\begin{array}{c} \alpha \\&lt;br /&gt;
    \beta \end{array}\right)^\dagger &lt;br /&gt;
 = \left( \alpha^*, \; \beta^* \right).  &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
This is a row vector and in ''Dirac notation'' is denoted by the symbol &amp;lt;math&amp;gt;\left\langle\cdot \right\vert\!&amp;lt;/math&amp;gt;, which is called a ''bra''.  Let us consider a second complex vector, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert\phi\right\rangle = \left(\begin{array}{c} \gamma \\ \delta&lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The ''inner product'' &amp;lt;!-- \index{inner product}--&amp;gt; between &amp;lt;math&amp;gt;\left\vert\psi\right\rangle\,\!&amp;lt;/math&amp;gt; and &lt;br /&gt;
&amp;lt;math&amp;gt;\left\vert\phi\right\rangle\,\!&amp;lt;/math&amp;gt; is computed as follows:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 \left\langle\phi\mid\psi\right\rangle &amp;amp; \equiv (\left\vert\phi\right\rangle)^\dagger\left\vert\psi \right\rangle   \\&lt;br /&gt;
                  &amp;amp;= (\gamma^*,\delta^*) \left(\begin{array}{c} \alpha \\ \beta&lt;br /&gt;
  \end{array}\right)   \\&lt;br /&gt;
                  &amp;amp;= \gamma^*\alpha + \delta^*\beta.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;|C.16}}&lt;br /&gt;
The vector &amp;lt;math&amp;gt;\left|\cdot \right\rangle\!&amp;lt;/math&amp;gt; is called a ''ket''.  When you put a ''bra'' together with a ''ket'', you get a ''bracket''.  This is the origin of the terms.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ''outer product'' between these same two vectors is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
\begin{align} (\left\vert \phi \right\rangle )(\left\vert \psi \right\rangle)^\dagger &lt;br /&gt;
 &amp;amp;=  \left\vert \phi \right\rangle \left\langle \psi \right\vert \\&lt;br /&gt;
&amp;amp;= \left(\begin{array}{c} \gamma \\ \delta \end{array}\right)&lt;br /&gt;
\left(\begin{array}{c} \alpha \\ \beta   \end{array}\right)^\dagger \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \gamma \\ \delta \end{array}\right) \left(\begin{array}{cc} \alpha^* &amp;amp; \beta^*   \end{array}\right) \\  &lt;br /&gt;
           &amp;amp;=   \left(\begin{array}{cc} \gamma\alpha^* &amp;amp; \gamma\beta^* \\  \delta\alpha^* &amp;amp; \delta\beta^*  \end{array}\right) \end{align}\;\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This type of product is also called a ''Kronecker product'' or a ''tensor product''.  Vectors and matrices can be considered special cases of the more general class of ''tensors''.  A tensor can have any number of indices indicating rows, columns, and depth, for the case of a three index tensor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Unitary Matrices===&lt;br /&gt;
&lt;br /&gt;
A ''unitary matrix'' &amp;lt;!-- \index{unitary matrix} --&amp;gt; &amp;lt;math&amp;gt;U\,\!&amp;lt;/math&amp;gt; is one whose&lt;br /&gt;
inverse is also its Hermitian conjugate, &amp;lt;math&amp;gt;U^\dagger = U^{-1}\,\!&amp;lt;/math&amp;gt;, so that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
U^\dagger U = UU^\dagger = \mathbb{I}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If the unitary matrix also has determinant one, it is said to be ''a special unitary matrix''.&amp;lt;!-- \index{special unitary matrix}--&amp;gt;  The set of&lt;br /&gt;
&amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; unitary matrices is denoted&lt;br /&gt;
&amp;lt;math&amp;gt;U(n)\,\!&amp;lt;/math&amp;gt; and the set of special unitary matrices is denoted &amp;lt;math&amp;gt;SU(n)\,\!&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
Unitary matrices are particularly important in quantum mechanics&lt;br /&gt;
because they describe the evolution of quantum states.&lt;br /&gt;
They have this ability due to the fact that the rows and columns of unitary matrices (viewed as vectors) are orthonormal. (This is made clear in an example below.)  This means that when&lt;br /&gt;
they act on a basis vector of the form&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt; \left\vert j\right\rangle = &lt;br /&gt;
 \left(\begin{array}{c} 0 \\ 0 \\ \vdots \\ 1 \\ \vdots \\ 0 &lt;br /&gt;
  \end{array}\right), &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.11}}&lt;br /&gt;
with a single 1, in say the &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt;th spot, and zeroes everywhere else, the result is a normalized complex vector.  Acting on a set of&lt;br /&gt;
orthonormal vectors of the form given in Eq.[[#eqC.11|(C.11)]]&lt;br /&gt;
will produce another orthonormal set.  &lt;br /&gt;
&lt;br /&gt;
Let us consider the example of a &amp;lt;math&amp;gt;2\times 2\,\!&amp;lt;/math&amp;gt; unitary matrix, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
U = \left(\begin{array}{cc} &lt;br /&gt;
              a &amp;amp; b \\ &lt;br /&gt;
              c &amp;amp; d &lt;br /&gt;
           \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.12}}&lt;br /&gt;
The inverse of this matrix is the Hermitian conjugate, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
U ^{-1} = U^\dagger = \left(\begin{array}{cc} &lt;br /&gt;
                         a^* &amp;amp; c^* \\ &lt;br /&gt;
                         b^* &amp;amp; d^* &lt;br /&gt;
                       \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.13}}&lt;br /&gt;
provided that the matrix &amp;lt;math&amp;gt;U\,\!&amp;lt;/math&amp;gt; satisfies the constraints&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
|a|^2 + |b|^2 = 1, \; &amp;amp; \; ac^*+bd^* =0  \\&lt;br /&gt;
ca^*+db^*=0,  \;      &amp;amp;  \; |c|^2 + |d|^2 =1,&lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;|C.14}}&lt;br /&gt;
and&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
|a|^2 + |c|^2 = 1, \; &amp;amp; \; ba^*+dc^* =0  \\&lt;br /&gt;
b^*a+d^*c=0,  \;      &amp;amp;  \; |b|^2 + |d|^2 =1.&lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;|C.15}}&lt;br /&gt;
Looking at each row as a vector, the constraints in&lt;br /&gt;
Eq.[[#eqC.14|(C.14)]] are the orthonormality conditions for the&lt;br /&gt;
vectors forming the rows.  Similarly, the constraints in&lt;br /&gt;
Eq.[[#eqC.15|(C.15)]] are the orthonormality conditions for the&lt;br /&gt;
vectors forming the columns.&lt;br /&gt;
&lt;br /&gt;
Unitary matrices are very important because the preserve the magnitude of a complex vector.  In other words, if if the magnitude of a vector is one, for example &amp;lt;math&amp;gt; \big\vert\big\vert  \left\vert\psi\right\rangle\big\vert\big\vert = 1\,\!&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt; \big\vert\big\vert  U\left\vert\psi\right\rangle   \big\vert\big\vert = 1\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt; z_1 = 5+2i \,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; z_2 = 3+i \,\!&amp;lt;/math&amp;gt;.  For 2-6, write the answer in terms of the real and complex components, i.e., in the form &amp;lt;math&amp;gt; x+iy \,\!&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt; x \,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; y \,\!&amp;lt;/math&amp;gt; are real numbers.&lt;br /&gt;
&lt;br /&gt;
# Find &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; using the quadratic equation:   &amp;lt;math&amp;gt; \;\; &lt;br /&gt;
\frac{1}{2}x^2-x+1=0 \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
# What is &amp;lt;math&amp;gt; z_1+z_2 \,\!&amp;lt;/math&amp;gt;?&lt;br /&gt;
# What is &amp;lt;math&amp;gt; z_1-z_2 \,\!&amp;lt;/math&amp;gt;?&lt;br /&gt;
# Calculate &amp;lt;math&amp;gt; z_1z_2^* \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
# What is &amp;lt;math&amp;gt; 3z_1 \,\!&amp;lt;/math&amp;gt;?&lt;br /&gt;
# Find &amp;lt;math&amp;gt; |z_1| \,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
# Find &amp;lt;math&amp;gt; |z_2|^2 \,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
# Write &amp;lt;math&amp;gt; z_1 \,\!&amp;lt;/math&amp;gt; as Equation [[#eqB.5|(B.5)]] using Equation [[#eqB.4|(B.4)]].&lt;br /&gt;
&lt;br /&gt;
Further Problems:&lt;br /&gt;
# Show that &amp;lt;math&amp;gt; |z_1z_2|=|z_1||z_2| \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
# Show that &amp;lt;math&amp;gt;(z_1z_2)^*=z_1^* z_2^* \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Matrices:_A_beginner%27s_guide&amp;diff=3099</id>
		<title>Matrices: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Matrices:_A_beginner%27s_guide&amp;diff=3099"/>
		<updated>2023-02-13T20:44:13Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* The Identity Matrix */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
==Matrices as Operations on Quantum States==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The states of a quantum system can be written as&lt;br /&gt;
{{Equation | &amp;lt;math&amp;gt;\left\vert{\psi}\right\rangle = \alpha_0\left\vert{0}\right\rangle + \alpha_1\left\vert{1}\right\rangle,&amp;lt;/math&amp;gt; |m.1}}&lt;br /&gt;
where &amp;lt;math&amp;gt;\alpha_0\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\alpha_1\,\!&amp;lt;/math&amp;gt; are complex numbers.  These states are used to represent quantum systems that can be used to store information.  Because &amp;lt;math&amp;gt;|\alpha_0|^2\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;|\alpha_1|^2 \,\!&amp;lt;/math&amp;gt; are probabilities and must add up to one, &lt;br /&gt;
{{Equation | &amp;lt;math&amp;gt;|\alpha_0|^2 + |\alpha_1|^2 = 1.\,\!&amp;lt;/math&amp;gt; |m.2}}&lt;br /&gt;
This means that this vector is ''normalized,'' i.e. its magnitude (or length) is one.  ([[Appendix B - Complex Numbers|Appendix B]] contains a basic introduction to complex numbers.) The basis vectors for such a space are the two vectors &amp;lt;math&amp;gt;\left\vert{0}\right\rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\left\vert{1}\right\rangle&amp;lt;/math&amp;gt; which are called ''computational basis'' states. These two basis states are represented by &lt;br /&gt;
{{Equation | &amp;lt;math&amp;gt;\left\vert{0}\right\rangle = \left(\begin{array}{c} 1 \\ 0\end{array}\right), \;\;\left\vert{1}\right\rangle = \left(\begin{array}{c} 0 \\ 1\end{array}\right).&amp;lt;/math&amp;gt; |m.3}}&lt;br /&gt;
Thus, the qubit state can be rewritten as&lt;br /&gt;
{{Equation |&amp;lt;math&amp;gt;\left\vert{\psi}\right\rangle = \left(\begin{array}{c} \alpha_0 \\ \alpha_1\end{array}\right).&amp;lt;/math&amp;gt; |m.4}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A very common operation in computing is to change a &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to a &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; and a &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; to a &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;.  The operation that does this is denoted a &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;.  This operator does both.  It changes &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; a &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;.  So we write, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
X \left|0\right\rangle = \left|1\right\rangle, \mbox{ and } X \left|1\right\rangle = \left|0\right\rangle.  &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
Notice that this means that acting with &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; again means that you get back the original state.  Matrices, which are arrays of numbers, are the mathematical incarnation of these operations.  It turns out that matrices are the way to represent almost all of operations in quantum computing and this will be shown in this section.  &lt;br /&gt;
&lt;br /&gt;
Let us list some important matrices that will be used as examples below:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
X = \left(\begin{array}{cc}&lt;br /&gt;
                 0 &amp;amp; 1 \\&lt;br /&gt;
                 1 &amp;amp; 0 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
Z = \left(\begin{array}{cc}&lt;br /&gt;
                 1 &amp;amp; 0 \\&lt;br /&gt;
                 0 &amp;amp; -1 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.2}}&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
Y = \left(\begin{array}{cc}&lt;br /&gt;
                 0 &amp;amp; -i \\&lt;br /&gt;
                 i &amp;amp; 0 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.3}}&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
H = \left(\begin{array}{cc}&lt;br /&gt;
                 1/\sqrt{2} &amp;amp; 1/\sqrt{2} \\&lt;br /&gt;
                 1/\sqrt{2} &amp;amp; -1/\sqrt{2} \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.3}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These all have the general form&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
M = \left(\begin{array}{cc}&lt;br /&gt;
                 a &amp;amp; b \\&lt;br /&gt;
                 c &amp;amp; d \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.4}}&lt;br /&gt;
where the numbers &amp;lt;math&amp;gt;a,b,c,d&amp;lt;/math&amp;gt; can be complex numbers.&lt;br /&gt;
&lt;br /&gt;
==Matrices==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Basic Definition and Representations===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A matrix is an array of numbers of the following form with columns, col. 1, col. 2, etc., and rows, row 1, row 2, etc.  The entries for the matrix are labeled by the row and column.  So the entry of a matrix &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; will be &amp;lt;math&amp;gt;a_{ij}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; is the row and &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; is the column where the number &amp;lt;math&amp;gt;a_{ij}&amp;lt;/math&amp;gt; is found.  This is how it looks:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
A = \begin{array}{c} {\scriptstyle{row \; 1}}  \\ {\scriptstyle{row \; 2}}  \\  \vdots  \\  {\scriptstyle{row \; m}}\end{array} \overset{{\scriptstyle{col. \; 1 }} \;\;\; {\scriptstyle{col.\; 2 }} \;\;\;\; {\displaystyle{\cdots}} \;\;\;\;\; {\scriptstyle{col.\; n }}}{\left(\begin{array}{cccc} &lt;br /&gt;
a_{11} &amp;amp; a_{12} &amp;amp; \cdots &amp;amp; a_{1n} \\ &lt;br /&gt;
a_{21} &amp;amp; a_{22} &amp;amp; \cdots &amp;amp; a_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
a_{m1} &amp;amp; a_{m2} &amp;amp; \cdots &amp;amp; a_{mn}  &lt;br /&gt;
\end{array}\right)}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notice that we represent the whole matrix with a capital letter &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;.  The matrix &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; has &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; rows and &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; columns, so we say that &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; is an &amp;lt;math&amp;gt;m\times n&amp;lt;/math&amp;gt; matrix.  We could also represent it using all of the entries, this array of numbers seen in the equation above.  Another way to represent it is to write it as &amp;lt;math&amp;gt;(a_{ij})&amp;lt;/math&amp;gt;.  By this we mean that it is the array of numbers in the parentheses.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
The matrix above, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
X = \left(\begin{array}{cc}&lt;br /&gt;
                 0 &amp;amp; 1 \\&lt;br /&gt;
                 1 &amp;amp; 0 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
is a &amp;lt;math&amp;gt;2\times 2&amp;lt;/math&amp;gt; matrix.  &lt;br /&gt;
&lt;br /&gt;
The matrix &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
L = \left(\begin{array}{ccc}&lt;br /&gt;
                 3 &amp;amp; 2 &amp;amp; 5 \\&lt;br /&gt;
                 1 &amp;amp; 0 &amp;amp; 4\end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
is &amp;lt;math&amp;gt;2\times 3&amp;lt;/math&amp;gt; and &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
K = \left(\begin{array}{cc}&lt;br /&gt;
                 2 &amp;amp; 5  \\&lt;br /&gt;
                 1 &amp;amp; 4  \\&lt;br /&gt;
                 7 &amp;amp; 0  \\&lt;br /&gt;
                 8 &amp;amp; 3\end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
is a &amp;lt;math&amp;gt;4\times 2&amp;lt;/math&amp;gt; matrix.&lt;br /&gt;
&lt;br /&gt;
===Matrix Addition===&lt;br /&gt;
&lt;br /&gt;
Matrix addition is performed by adding each element of one matrix with the corresponding element in another matrix.  Let our two matrices be &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as above, and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;.  To represent these in an array, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
A = \left(\begin{array}{cccc} &lt;br /&gt;
a_{11} &amp;amp; a_{12} &amp;amp; \cdots &amp;amp; a_{1n} \\ &lt;br /&gt;
a_{21} &amp;amp; a_{22} &amp;amp; \cdots &amp;amp; a_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
a_{m1} &amp;amp; a_{m2} &amp;amp; \cdots &amp;amp; a_{mn}  &lt;br /&gt;
\end{array}\right), \;\;\;\;&lt;br /&gt;
B = \left(\begin{array}{cccc} &lt;br /&gt;
b_{11} &amp;amp; b_{12} &amp;amp; \cdots &amp;amp; b_{1n} \\ &lt;br /&gt;
b_{21} &amp;amp; b_{22} &amp;amp; \cdots &amp;amp; b_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
b_{m1} &amp;amp; b_{m2} &amp;amp; \cdots &amp;amp; b_{mn}  &lt;br /&gt;
\end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The the sum, which we could call &amp;lt;math&amp;gt;C= A+B&amp;lt;/math&amp;gt; is given by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
A + B = \left(\begin{array}{cccc} &lt;br /&gt;
a_{11} &amp;amp; a_{12} &amp;amp; \cdots &amp;amp; a_{1n} \\ &lt;br /&gt;
a_{21} &amp;amp; a_{22} &amp;amp; \cdots &amp;amp; a_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
a_{m1} &amp;amp; a_{m2} &amp;amp; \cdots &amp;amp; a_{mn}  &lt;br /&gt;
\end{array}\right) &lt;br /&gt;
+ &lt;br /&gt;
\left(\begin{array}{cccc} &lt;br /&gt;
b_{11} &amp;amp; b_{12} &amp;amp; \cdots &amp;amp; b_{1n} \\ &lt;br /&gt;
b_{21} &amp;amp; b_{22} &amp;amp; \cdots &amp;amp; b_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
b_{m1} &amp;amp; b_{m2} &amp;amp; \cdots &amp;amp; b_{mn}  &lt;br /&gt;
\end{array}\right) &lt;br /&gt;
=&lt;br /&gt;
\left(\begin{array}{cccc} &lt;br /&gt;
a_{11} + b_{11} &amp;amp; a_{12}+b_{12} &amp;amp; \cdots &amp;amp; a_{1n}+b_{1n} \\ &lt;br /&gt;
a_{21}+b_{21} &amp;amp; a_{22}+b_{22} &amp;amp; \cdots &amp;amp; a_{2n}+b_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
a_{m1}+b_{m1} &amp;amp; a_{m2}+b_{m2} &amp;amp; \cdots &amp;amp; a_{mn}+b_{mn}  &lt;br /&gt;
\end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In other words, the sum gives &amp;lt;math&amp;gt;c_{11} = a_{11} + b_{11}\,\!&amp;lt;/math&amp;gt;, etc.  We add them component by component like we do vectors.&lt;br /&gt;
&lt;br /&gt;
Change the font color or type in order to highlight the entries that are being added.&lt;br /&gt;
&lt;br /&gt;
===Multiplying a Matrix by a Number ===&lt;br /&gt;
&lt;br /&gt;
When multiplying a matrix by a number, each element of the matrix gets multiplied by that number.  Seem familiar?  This is what was done for vectors.  &lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; be some number.  Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
kA = k\left(\begin{array}{cccc} &lt;br /&gt;
a_{11} &amp;amp; a_{12} &amp;amp; \cdots &amp;amp; a_{1n} \\ &lt;br /&gt;
a_{21} &amp;amp; a_{22} &amp;amp; \cdots &amp;amp; a_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
a_{m1} &amp;amp; a_{m2} &amp;amp; \cdots &amp;amp; a_{mn}  &lt;br /&gt;
\end{array}\right) &lt;br /&gt;
= \left(\begin{array}{cccc} &lt;br /&gt;
ka_{11} &amp;amp; ka_{12} &amp;amp; \cdots &amp;amp; ka_{1n} \\ &lt;br /&gt;
ka_{21} &amp;amp; ka_{22} &amp;amp; \cdots &amp;amp; ka_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
ka_{m1} &amp;amp; ka_{m2} &amp;amp; \cdots &amp;amp; ka_{mn}  &lt;br /&gt;
\end{array}\right) &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Multiplying two Matrices===&lt;br /&gt;
&lt;br /&gt;
The the product, which we could call &amp;lt;math&amp;gt;C= AB&amp;lt;/math&amp;gt; is given by &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:MatrixMult2.jpg|600px]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
A = \left(\begin{array}{cc}&lt;br /&gt;
                 2 &amp;amp; 3 \\&lt;br /&gt;
                 5 &amp;amp; 6 \end{array}\right),&lt;br /&gt;
\mbox{ and }&lt;br /&gt;
B = \left(\begin{array}{cc}&lt;br /&gt;
                 1 &amp;amp; 4 \\&lt;br /&gt;
                 7 &amp;amp; 2 \end{array}\right)&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
Then &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
A B = \left(\begin{array}{cc}&lt;br /&gt;
                 2 &amp;amp; 3 \\&lt;br /&gt;
                 5 &amp;amp; 6 \end{array}\right)\left(\begin{array}{cc}&lt;br /&gt;
                 1 &amp;amp; 4 \\&lt;br /&gt;
                 7 &amp;amp; 2 \end{array}\right) &lt;br /&gt;
= \left(\begin{array}{cc}&lt;br /&gt;
                 2\cdot 1 + 3\cdot 7 &amp;amp; 2\cdot 4 + 3\cdot 2 \\&lt;br /&gt;
                 5\cdot 1 + 6\cdot 7 &amp;amp; 5\cdot 4 + 6\cdot 2 \end{array}\right) &lt;br /&gt;
= \left(\begin{array}{cc}&lt;br /&gt;
                 23 &amp;amp; 14 \\&lt;br /&gt;
                 47 &amp;amp; 32 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us multiply &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Z&amp;lt;/math&amp;gt; from above, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
X Z = \left(\begin{array}{cc}&lt;br /&gt;
                 0 &amp;amp; 1 \\&lt;br /&gt;
                 1 &amp;amp; 0 \end{array}\right)&lt;br /&gt;
      \left(\begin{array}{cc}&lt;br /&gt;
                 1 &amp;amp; 0 \\&lt;br /&gt;
                 0 &amp;amp; -1 \end{array}\right) &lt;br /&gt;
= \left(\begin{array}{cc}&lt;br /&gt;
                 0\cdot 1 + 1\cdot 0 &amp;amp; 0\cdot 0 + 1\cdot (-1) \\&lt;br /&gt;
                 1\cdot 1 + 0\cdot 0 &amp;amp; 1\cdot 0 + 0\cdot (-1) \end{array}\right) &lt;br /&gt;
= \left(\begin{array}{cc}&lt;br /&gt;
                 0 &amp;amp; -1 \\&lt;br /&gt;
                 1 &amp;amp; 0 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
It is helpful to notice that this is &amp;lt;math&amp;gt;-iY&amp;lt;/math&amp;gt;; that is &amp;lt;math&amp;gt;XZ = -i Y&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Notation===&lt;br /&gt;
&lt;br /&gt;
There are many aspects of linear algebra that are quite useful in&lt;br /&gt;
quantum mechanics.  We will briefly discuss several of these aspects here.&lt;br /&gt;
First, some definitions and properties are provided that will&lt;br /&gt;
be useful.  Some familiarity with matrices&lt;br /&gt;
will be assumed, although many basic definitions are also included.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us denote some &amp;lt;math&amp;gt;m\times n\,\!&amp;lt;/math&amp;gt; matrix by &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;.  The set of all &amp;lt;math&amp;gt;m\times&lt;br /&gt;
n\,\!&amp;lt;/math&amp;gt; matrices with real entries is &amp;lt;math&amp;gt;M(m\times n,\mathbb{R})\,\!&amp;lt;/math&amp;gt;.  Such matrices&lt;br /&gt;
are said to be real since they have all real entries.  Similarly, the&lt;br /&gt;
set of &amp;lt;math&amp;gt;m\times n\,\!&amp;lt;/math&amp;gt; complex matrices is &amp;lt;math&amp;gt;M(m\times n,\mathbb{C})\,\!&amp;lt;/math&amp;gt;.  For the&lt;br /&gt;
set of square &amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; complex matrices, we simply write&lt;br /&gt;
&amp;lt;math&amp;gt;M(n,\mathbb{C})\,\!&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will also refer to the set of matrix elements, &amp;lt;math&amp;gt;a_{ij}\,\!&amp;lt;/math&amp;gt;, where the&lt;br /&gt;
first index (&amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; in this case) labels the row and the second &amp;lt;math&amp;gt;(j)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
labels the column.  Thus the element &amp;lt;math&amp;gt;a_{23}\,\!&amp;lt;/math&amp;gt; is the element in the&lt;br /&gt;
second row and third column.  A comma is inserted if there is some&lt;br /&gt;
ambiguity.  For example, in a large matrix the element in the&lt;br /&gt;
2nd row and 12th&lt;br /&gt;
column is written as &amp;lt;math&amp;gt;a_{2,12}\,\!&amp;lt;/math&amp;gt; to distinguish between the&lt;br /&gt;
21st row and 2nd column.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The Identity Matrix===&lt;br /&gt;
&lt;br /&gt;
An identity matrix has the property that when it is multiplied by any matrix, that matrix is unchanged.  That is, for any matrix &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbb{I}A = A\mathbb{I} = A.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Such an identity matrix always has ones along the diagonal and zeroes everywhere else.  For example, the &amp;lt;math&amp;gt;3 \times 3\,\!&amp;lt;/math&amp;gt; identity matrix is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbb{I} = \left(\begin{array}{ccc}&lt;br /&gt;
        1 &amp;amp; 0 &amp;amp; 0 \\&lt;br /&gt;
        0 &amp;amp; 1 &amp;amp; 0 \\&lt;br /&gt;
        0 &amp;amp; 0 &amp;amp; 1 \end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
It is straight-forward to verify that any &amp;lt;math&amp;gt;3 \times 3\,\!&amp;lt;/math&amp;gt; matrix is not changed when multiplied by the identity matrix.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The Inverse of a Matrix===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inverse &amp;lt;!-- \index{inverse}--&amp;gt; of an &amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; square matrix &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; is another &amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; square matrix,&lt;br /&gt;
denoted &amp;lt;math&amp;gt;A^{-1}\,\!&amp;lt;/math&amp;gt;, such that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
AA^{-1} = A^{-1}A = \mathbb{I},&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbb{I}\,\!&amp;lt;/math&amp;gt; is the identity matrix consisting of zeroes everywhere&lt;br /&gt;
except the diagonal, which has ones.  For example, the &amp;lt;math&amp;gt;3\times 3\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
identity matrix is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbb{I}_3 = \left(\begin{array}{ccc} 1 &amp;amp; 0 &amp;amp; 0 \\ 0 &amp;amp; 1 &amp;amp; 0 \\ 0 &amp;amp; 0 &amp;amp; 1&lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is important to note that ''a matrix is invertible if and only if its determinant is nonzero.''  Thus one only needs to calculate the&lt;br /&gt;
determinant to see if a matrix has an inverse or not.&lt;br /&gt;
&lt;br /&gt;
===Complex Conjugate===&lt;br /&gt;
&lt;br /&gt;
The ''complex conjugate of a matrix'' &amp;lt;!-- \index{complex conjugate!of a matrix}--&amp;gt;&lt;br /&gt;
is the matrix with each element replaced by its complex conjugate.  In&lt;br /&gt;
other words, to take the complex conjugate of a matrix, one takes the&lt;br /&gt;
complex conjugate of each entry in the matrix.  We denote the complex&lt;br /&gt;
conjugate with a star, like this: &amp;lt;math&amp;gt;A^*\,\!&amp;lt;/math&amp;gt;.  For example,&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
A^* &amp;amp;=&amp;amp; \left(\begin{array}{ccc}&lt;br /&gt;
        a_{11} &amp;amp; a_{12} &amp;amp; a_{13} \\&lt;br /&gt;
        a_{21} &amp;amp; a_{22} &amp;amp; a_{23} \\&lt;br /&gt;
        a_{31} &amp;amp; a_{32} &amp;amp; a_{33} \end{array}\right)^*  \\&lt;br /&gt;
    &amp;amp;=&amp;amp; \left(\begin{array}{ccc}&lt;br /&gt;
        a_{11}^* &amp;amp; a_{12}^* &amp;amp; a_{13}^* \\&lt;br /&gt;
        a_{21}^* &amp;amp; a_{22}^* &amp;amp; a_{23}^* \\&lt;br /&gt;
        a_{31}^* &amp;amp; a_{32}^* &amp;amp; a_{33}^* \end{array}\right). &lt;br /&gt;
\end{align}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.2}}&lt;br /&gt;
(Notice that the notation for a matrix is a capital letter, whereas&lt;br /&gt;
the entries are represented by lower case&lt;br /&gt;
letters.)&lt;br /&gt;
&lt;br /&gt;
===Transpose===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ''transpose'' &amp;lt;!-- \index{transpose} --&amp;gt; of a matrix is the same set of&lt;br /&gt;
elements, but now the first row becomes the first column, the second row&lt;br /&gt;
becomes the second column, and so on.  Thus the rows and columns are&lt;br /&gt;
interchanged.  For example, for a square &amp;lt;math&amp;gt;3\times 3\,\!&amp;lt;/math&amp;gt; matrix, the&lt;br /&gt;
transpose is given by&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
A^T &amp;amp;=&amp;amp; \left(\begin{array}{ccc}&lt;br /&gt;
        a_{11} &amp;amp; a_{12} &amp;amp; a_{13} \\&lt;br /&gt;
        a_{21} &amp;amp; a_{22} &amp;amp; a_{23} \\&lt;br /&gt;
        a_{31} &amp;amp; a_{32} &amp;amp; a_{33} \end{array}\right)^T \\&lt;br /&gt;
    &amp;amp;=&amp;amp; \left(\begin{array}{ccc}&lt;br /&gt;
        a_{11} &amp;amp; a_{21} &amp;amp; a_{31} \\&lt;br /&gt;
        a_{12} &amp;amp; a_{22} &amp;amp; a_{32} \\&lt;br /&gt;
        a_{13} &amp;amp; a_{23} &amp;amp; a_{33} \end{array}\right). &lt;br /&gt;
\end{align}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.3}}&lt;br /&gt;
&lt;br /&gt;
===Hermitian Conjugate===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The complex conjugate and transpose of a matrix is called the ''Hermitian conjugate'', or simply the ''dagger'' of a matrix.  It is called the dagger because the symbol used to denote it,&lt;br /&gt;
(&amp;lt;math&amp;gt;\dagger\,\!&amp;lt;/math&amp;gt;):&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
(A^T)^* = (A^*)^T \equiv A^\dagger.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.4}}&lt;br /&gt;
For our &amp;lt;math&amp;gt;3\times 3\,\!&amp;lt;/math&amp;gt; example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
A^\dagger = \left(\begin{array}{ccc}&lt;br /&gt;
        a_{11}^* &amp;amp; a_{21}^* &amp;amp; a_{31}^* \\&lt;br /&gt;
        a_{12}^* &amp;amp; a_{22}^* &amp;amp; a_{32}^* \\&lt;br /&gt;
        a_{13}^* &amp;amp; a_{23}^* &amp;amp; a_{33}^* \end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If a matrix is its own Hermitian conjugate, i.e. &amp;lt;math&amp;gt;A^\dagger = A\,\!&amp;lt;/math&amp;gt;, then&lt;br /&gt;
we call it a ''Hermitian matrix''.  &amp;lt;!-- \index{Hermitian matrix}--&amp;gt;&lt;br /&gt;
(Clearly this is only possible for square matrices.) Hermitian&lt;br /&gt;
matrices are very important in quantum mechanics since their&lt;br /&gt;
eigenvalues are real.  (See Sec.([[Appendix C - Vectors and Linear Algebra#Eigenvalues and Eigenvectors|Eigenvalues and Eigenvectors]]).)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Index Notation===&lt;br /&gt;
&lt;br /&gt;
Very often we write the product of two matrices &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt; simply as&lt;br /&gt;
&amp;lt;math&amp;gt;AB\,\!&amp;lt;/math&amp;gt; and let &amp;lt;math&amp;gt;C=AB\,\!&amp;lt;/math&amp;gt;.  However, it is also quite useful to write this&lt;br /&gt;
in component form.  In this case, if these are &amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; matrices, the component form will be &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
c_{ik} = \sum_{j=1}^n a_{ij}b_{jk}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
This says that the element in the &amp;lt;math&amp;gt;i^{\mbox{th}}\,\!&amp;lt;/math&amp;gt; row and&lt;br /&gt;
&amp;lt;math&amp;gt;j^{\mbox{th}}\,\!&amp;lt;/math&amp;gt; column of the matrix &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt; is the sum &amp;lt;math&amp;gt;\sum_{j=1}^n&lt;br /&gt;
a_{ij}b_{jk}\,\!&amp;lt;/math&amp;gt;.  The transpose of &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt; has elements&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
c_{ki} = \sum_{j=1}^n a_{kj}b_{ji}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now if we were to transpose &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt; as well, this would read&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
c_{ki} = \sum_{j=1}^n (a_{jk})^T (b_{ij})^T = \sum_{j=1}^n b^T_{ij} a^T_{jk}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
This gives us a way of seeing the general rule that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
C^T = B^TA^T.  &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
It follows that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
C^\dagger = B^\dagger A^\dagger.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===The Trace===&lt;br /&gt;
&lt;br /&gt;
The ''trace'' --&amp;gt;&amp;lt;!-- \index{trace}--&amp;gt;&amp;lt;!-- of a matrix is the sum of the diagonal&lt;br /&gt;
elements and is denoted &amp;lt;math&amp;gt;\mbox{Tr}\,\!&amp;lt;/math&amp;gt;.  So for example, the trace of an&lt;br /&gt;
&amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; matrix &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mbox{Tr}(A) = \sum_{i=1}^n a_{ii}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;.&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some useful properties of the trace are the following:&lt;br /&gt;
#&amp;lt;math&amp;gt;\mbox{Tr}(AB) = \mbox{Tr}(BA)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
#&amp;lt;math&amp;gt;\mbox{Tr}(A + B) = \mbox{Tr}(A) + \mbox{Tr}(B)\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
Using the first of these results,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mbox{Tr}(UAU^{-1}) = \mbox{Tr}(U^{-1}UA) = \mbox{Tr}(A).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
This relation is used so often that we state it here explicitly.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The Determinant===&lt;br /&gt;
&lt;br /&gt;
For a square matrix, the determinant is quite a useful thing.  For&lt;br /&gt;
example, an &amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; matrix is invertible if and only if its&lt;br /&gt;
determinant is not zero.  So let us define the determinant and give&lt;br /&gt;
some properties and examples.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ''determinant''&amp;lt;!--\index{determinant}--&amp;gt; of a &amp;lt;math&amp;gt;2\times 2\,\!&amp;lt;/math&amp;gt; matrix, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
N = \left(\begin{array}{cc}&lt;br /&gt;
                 a &amp;amp; b \\&lt;br /&gt;
                 c &amp;amp; d \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.5}}&lt;br /&gt;
is given by&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\det(N) = ad-bc.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.6}}&lt;br /&gt;
Higher-order determinants can be written in terms of smaller ones in a recursive way.  For example, let &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
M = \left(\begin{array}{ccc}&lt;br /&gt;
                 m_{11} &amp;amp; m_{12} &amp;amp; m_{13} \\&lt;br /&gt;
                 m_{21} &amp;amp; m_{22} &amp;amp; m_{23} \\&lt;br /&gt;
                 m_{31} &amp;amp; m_{32} &amp;amp; m_{33}\end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\det(M) = m_{11}\det\left(\begin{array}{cc}&lt;br /&gt;
                 m_{22} &amp;amp; m_{23} \\&lt;br /&gt;
                 m_{32} &amp;amp; m_{33} \end{array}\right) &lt;br /&gt;
- m_{12}\det\left(\begin{array}{cc}&lt;br /&gt;
                 m_{21} &amp;amp; m_{23} \\&lt;br /&gt;
                 m_{31} &amp;amp; m_{33} \end{array}\right)&lt;br /&gt;
+m_{13}\det\left(\begin{array}{cc}&lt;br /&gt;
                 m_{21} &amp;amp; m_{22} \\&lt;br /&gt;
                 m_{31} &amp;amp; m_{32} \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
The ''determinant''--&amp;gt;&amp;lt;!-- \index{determinant}--&amp;gt;&amp;lt;!-- of a matrix &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; can be&lt;br /&gt;
also be written in terms of its components as &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\det(A) = \sum_{i,j,k,l,...} \epsilon_{ijkl...}&lt;br /&gt;
a_{1i}a_{2j}a_{3k}a_{4l} ...,&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.7}}&lt;br /&gt;
where the symbol &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon_{ijkl...} = \begin{cases}&lt;br /&gt;
                       +1, \; \mbox{if } \; ijkl... = 1234... (\mbox{in order, or any even number of permutations}),\\&lt;br /&gt;
                       -1, \; \mbox{if } \; ijkl... = 2134... (\mbox{or any odd number of permutations}),\\&lt;br /&gt;
                       \;\;\; 0, \; \mbox{otherwise}, \; (\mbox{meaning any index is repeated}).&lt;br /&gt;
                      \end{cases}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.8}}&lt;br /&gt;
&lt;br /&gt;
Let us consider the example of the &amp;lt;math&amp;gt;3\times 3\,\!&amp;lt;/math&amp;gt; matrix &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; given&lt;br /&gt;
above.  The determinant can be calculated by&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\det(A) = \sum_{i,j,k} \epsilon_{ijk}&lt;br /&gt;
a_{1i}a_{2j}a_{3k},&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where, explicitly, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon_{ijk} = \begin{cases}&lt;br /&gt;
                       +1, \;\mbox{if }\; ijk= 123,231,\; \mbox{or}\; 312, (\mbox{These are even permutations of }123),\\&lt;br /&gt;
                       -1, \;\mbox{if }\; ijk = 213,132,\;\mbox{or}\;321(\mbox{These are odd permuations of }123),\\&lt;br /&gt;
                    \;\;\;  0, \; \mbox{otherwise}, \; (\mbox{meaning any index is repeated}),&lt;br /&gt;
                 \end{cases}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.9}}&lt;br /&gt;
so that &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\det(A) &amp;amp;=&amp;amp; \epsilon_{123}a_{11}a_{22}a_{33} &lt;br /&gt;
         +\epsilon_{132}a_{11}a_{23}a_{32}&lt;br /&gt;
         +\epsilon_{231}a_{12}a_{23}a_{31}  \\&lt;br /&gt;
       &amp;amp;&amp;amp;+\epsilon_{213}a_{12}a_{21}a_{33}&lt;br /&gt;
         +\epsilon_{312}a_{13}a_{21}a_{32}&lt;br /&gt;
         +\epsilon_{321}a_{13}a_{22}a_{31}.&lt;br /&gt;
\end{align}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.10}}&lt;br /&gt;
Now given the values of &amp;lt;math&amp;gt;\epsilon_{ijk}\,\!&amp;lt;/math&amp;gt; in [[#eqC.9|Eq. C.9]],&lt;br /&gt;
this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\det(A) = a_{11}a_{22}a_{33} - a_{11}a_{23}a_{32} + a_{12}a_{23}a_{31} &lt;br /&gt;
         - a_{12}a_{21}a_{33} + a_{13}a_{21}a_{32} - a_{13}a_{22}a_{31}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The determinant has several properties that are useful to know.  A few are listed here:  &lt;br /&gt;
#The determinant of the transpose of a matrix is the same as the determinant of the matrix itself: &amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \det(A) = \det(A^T).\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
#The determinant of a product is the product of determinants:    &amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \det(AB) = \det(A)\det(B).\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
From this last property, another specific property can be derived.&lt;br /&gt;
If we take the determinant of the product of a matrix and its&lt;br /&gt;
inverse, we find&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\det(U U^{-1}) = \det(U)\det(U^{-1}) = \det(\mathbb{I}) = 1,&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
since the determinant of the identity is one.  This implies that&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\det(U^{-1}) = \frac{1}{\det(U)}.  &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Hermitian Matrices===&lt;br /&gt;
&lt;br /&gt;
Hermitian matrices are important for a variety of reasons; primarily, it is because their eigenvalues are real.  Thus Hermitian matrices are used to represent density operators and density matrices, as well as Hamiltonians.  The density operator is a positive semi-definite Hermitian matrix (it has no negative eigenvalues) that has its trace equal to one.  In any case, it is often desirable to represent &amp;lt;math&amp;gt;N\times N\,\!&amp;lt;/math&amp;gt; Hermitian matrices using a real linear combination of a complete set of &amp;lt;math&amp;gt;N\times N\,\!&amp;lt;/math&amp;gt; Hermitian matrices.  A set of &amp;lt;math&amp;gt;N\times N\,\!&amp;lt;/math&amp;gt; Hermitian matrices is complete if any Hermitian matrix can be represented in terms of the set.  Let &amp;lt;math&amp;gt;\{\lambda_i\}\,\!&amp;lt;/math&amp;gt; be a complete set.  Then any Hermitian matrix can be represented by &amp;lt;math&amp;gt;\sum_i a_i \lambda_i\,\!&amp;lt;/math&amp;gt;.  The set can always be taken to be a set of traceless Hermitian matrices and the identity matrix.  This is convenient for the density matrix (its trace is one) because the identity part of an &amp;lt;math&amp;gt;N\times N\,\!&amp;lt;/math&amp;gt; Hermitian matrix is &amp;lt;math&amp;gt;(1/N)\mathbb{I}\,\!&amp;lt;/math&amp;gt; if we take all others in the set to be traceless.  For the Hamiltonian, the set consists of a traceless part and an identity part where identity part just gives an overall phase which can often be neglected.  &lt;br /&gt;
&lt;br /&gt;
One example of such a set which is extremely useful is the set of Pauli matrices.  These are discussed in detail in [[Chapter 2 - Qubits and Collections of Qubits|Chapter 2]] and in particular in [[Chapter 2 - Qubits and Collections of Qubits#The Pauli Matrices|Section 2.4]].&lt;br /&gt;
&lt;br /&gt;
===Unitary Matrices===&lt;br /&gt;
&lt;br /&gt;
A ''unitary matrix'' &amp;lt;!-- \index{unitary matrix} --&amp;gt; &amp;lt;math&amp;gt;U\,\!&amp;lt;/math&amp;gt; is one whose&lt;br /&gt;
inverse is also its Hermitian conjugate, &amp;lt;math&amp;gt;U^\dagger = U^{-1}\,\!&amp;lt;/math&amp;gt;, so that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
U^\dagger U = UU^\dagger = \mathbb{I}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If the unitary matrix also has determinant one, it is said to be ''a special unitary matrix''.&amp;lt;!-- \index{special unitary matrix}--&amp;gt;  The set of&lt;br /&gt;
&amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; unitary matrices is denoted&lt;br /&gt;
&amp;lt;math&amp;gt;U(n)\,\!&amp;lt;/math&amp;gt; and the set of special unitary matrices is denoted &amp;lt;math&amp;gt;SU(n)\,\!&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
Unitary matrices are particularly important in quantum mechanics&lt;br /&gt;
because they describe the evolution of quantum states.&lt;br /&gt;
They have this ability due to the fact that the rows and columns of unitary matrices (viewed as vectors) are orthonormal. (This is made clear in an example below.)  This means that when&lt;br /&gt;
they act on a basis vector of the form&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt; \left\vert j\right\rangle = &lt;br /&gt;
 \left(\begin{array}{c} 0 \\ 0 \\ \vdots \\ 1 \\ \vdots \\ 0 &lt;br /&gt;
  \end{array}\right), &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.11}}&lt;br /&gt;
with a single 1, in say the &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt;th spot, and zeroes everywhere else, the result is a normalized complex vector.  Acting on a set of&lt;br /&gt;
orthonormal vectors of the form given in Eq.[[#eqC.11|(C.11)]]&lt;br /&gt;
will produce another orthonormal set.  &lt;br /&gt;
&lt;br /&gt;
Let us consider the example of a &amp;lt;math&amp;gt;2\times 2\,\!&amp;lt;/math&amp;gt; unitary matrix, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
U = \left(\begin{array}{cc} &lt;br /&gt;
              a &amp;amp; b \\ &lt;br /&gt;
              c &amp;amp; d &lt;br /&gt;
           \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.12}}&lt;br /&gt;
The inverse of this matrix is the Hermitian conjugate, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
U ^{-1} = U^\dagger = \left(\begin{array}{cc} &lt;br /&gt;
                         a^* &amp;amp; c^* \\ &lt;br /&gt;
                         b^* &amp;amp; d^* &lt;br /&gt;
                       \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.13}}&lt;br /&gt;
provided that the matrix &amp;lt;math&amp;gt;U\,\!&amp;lt;/math&amp;gt; satisfies the constraints&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
|a|^2 + |b|^2 = 1, \; &amp;amp; \; ac^*+bd^* =0  \\&lt;br /&gt;
ca^*+db^*=0,  \;      &amp;amp;  \; |c|^2 + |d|^2 =1,&lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;|C.14}}&lt;br /&gt;
and&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
|a|^2 + |c|^2 = 1, \; &amp;amp; \; ba^*+dc^* =0  \\&lt;br /&gt;
b^*a+d^*c=0,  \;      &amp;amp;  \; |b|^2 + |d|^2 =1.&lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;|C.15}}&lt;br /&gt;
Looking at each row as a vector, the constraints in&lt;br /&gt;
Eq.[[#eqC.14|(C.14)]] are the orthonormality conditions for the&lt;br /&gt;
vectors forming the rows.  Similarly, the constraints in&lt;br /&gt;
Eq.[[#eqC.15|(C.15)]] are the orthonormality conditions for the&lt;br /&gt;
vectors forming the columns.&lt;br /&gt;
&lt;br /&gt;
===Inner and Outer Products===&lt;br /&gt;
&lt;br /&gt;
It is very helpful to note that a column vector with &amp;lt;math&amp;gt;n\times 1\,\!&amp;lt;/math&amp;gt; matrix.  A row vector is a &amp;lt;math&amp;gt;1\times n\,\!&amp;lt;/math&amp;gt; matrix.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now that we have a definition for the Hermitian conjugate, consider the&lt;br /&gt;
case for a &amp;lt;math&amp;gt;n\times 1\,\!&amp;lt;/math&amp;gt; matrix, i.e. a vector.  In Dirac notation, this is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert\psi\right\rangle = \left(\begin{array}{c} \alpha \\ \beta&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The Hermitian conjugate comes up so often that we use the following&lt;br /&gt;
notation for vectors:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\langle \psi\right\vert = (\left\vert\psi\right\rangle)^\dagger = \left(\begin{array}{c} \alpha \\&lt;br /&gt;
    \beta \end{array}\right)^\dagger &lt;br /&gt;
 = \left( \alpha^*, \; \beta^* \right).  &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
This is a row vector and in ''Dirac notation'' is denoted by the symbol &amp;lt;math&amp;gt;\left\langle\cdot \right\vert\!&amp;lt;/math&amp;gt;, which is called a ''bra''.  Let us consider a second complex vector, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert\phi\right\rangle = \left(\begin{array}{c} \gamma \\ \delta&lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The ''inner product'' &amp;lt;!-- \index{inner product}--&amp;gt; between &amp;lt;math&amp;gt;\left\vert\psi\right\rangle\,\!&amp;lt;/math&amp;gt; and &lt;br /&gt;
&amp;lt;math&amp;gt;\left\vert\phi\right\rangle\,\!&amp;lt;/math&amp;gt; is computed as follows:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 \left\langle\phi\mid\psi\right\rangle &amp;amp; \equiv (\left\vert\phi\right\rangle)^\dagger\left\vert\psi \right\rangle   \\&lt;br /&gt;
                  &amp;amp;= (\gamma^*,\delta^*) \left(\begin{array}{c} \alpha \\ \beta&lt;br /&gt;
  \end{array}\right)   \\&lt;br /&gt;
                  &amp;amp;= \gamma^*\alpha + \delta^*\beta.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;|C.16}}&lt;br /&gt;
The vector &amp;lt;math&amp;gt;\left|\cdot \right\rangle\!&amp;lt;/math&amp;gt; is called a ''ket''.  When you put a ''bra'' together with a ''ket'', you get a ''bracket''.  This is the origin of the terms.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ''outer product'' between these same two vectors is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
\begin{align} (\left\vert \phi \right\rangle )(\left\vert \psi \right\rangle)^\dagger &lt;br /&gt;
 &amp;amp;=  \left\vert \phi \right\rangle \left\langle \psi \right\vert \\&lt;br /&gt;
&amp;amp;= \left(\begin{array}{c} \gamma \\ \delta \end{array}\right)&lt;br /&gt;
\left(\begin{array}{c} \alpha \\ \beta   \end{array}\right)^\dagger \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \gamma \\ \delta \end{array}\right) \left(\begin{array}{cc} \alpha^* &amp;amp; \beta^*   \end{array}\right) \\  &lt;br /&gt;
           &amp;amp;=   \left(\begin{array}{cc} \gamma\alpha^* &amp;amp; \gamma\beta^* \\  \delta\alpha^* &amp;amp; \delta\beta^*  \end{array}\right) \end{align}\;\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This type of product is also called a ''Kronecker product'' or a ''tensor product''.  Vectors and matrices can be considered special cases of the more general class of ''tensors''.  A tensor can have any number of indices indicating rows, columns, and depth, for the case of a three index tensor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Unitary Matrices===&lt;br /&gt;
&lt;br /&gt;
A ''unitary matrix'' &amp;lt;!-- \index{unitary matrix} --&amp;gt; &amp;lt;math&amp;gt;U\,\!&amp;lt;/math&amp;gt; is one whose&lt;br /&gt;
inverse is also its Hermitian conjugate, &amp;lt;math&amp;gt;U^\dagger = U^{-1}\,\!&amp;lt;/math&amp;gt;, so that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
U^\dagger U = UU^\dagger = \mathbb{I}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If the unitary matrix also has determinant one, it is said to be ''a special unitary matrix''.&amp;lt;!-- \index{special unitary matrix}--&amp;gt;  The set of&lt;br /&gt;
&amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; unitary matrices is denoted&lt;br /&gt;
&amp;lt;math&amp;gt;U(n)\,\!&amp;lt;/math&amp;gt; and the set of special unitary matrices is denoted &amp;lt;math&amp;gt;SU(n)\,\!&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
Unitary matrices are particularly important in quantum mechanics&lt;br /&gt;
because they describe the evolution of quantum states.&lt;br /&gt;
They have this ability due to the fact that the rows and columns of unitary matrices (viewed as vectors) are orthonormal. (This is made clear in an example below.)  This means that when&lt;br /&gt;
they act on a basis vector of the form&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt; \left\vert j\right\rangle = &lt;br /&gt;
 \left(\begin{array}{c} 0 \\ 0 \\ \vdots \\ 1 \\ \vdots \\ 0 &lt;br /&gt;
  \end{array}\right), &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.11}}&lt;br /&gt;
with a single 1, in say the &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt;th spot, and zeroes everywhere else, the result is a normalized complex vector.  Acting on a set of&lt;br /&gt;
orthonormal vectors of the form given in Eq.[[#eqC.11|(C.11)]]&lt;br /&gt;
will produce another orthonormal set.  &lt;br /&gt;
&lt;br /&gt;
Let us consider the example of a &amp;lt;math&amp;gt;2\times 2\,\!&amp;lt;/math&amp;gt; unitary matrix, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
U = \left(\begin{array}{cc} &lt;br /&gt;
              a &amp;amp; b \\ &lt;br /&gt;
              c &amp;amp; d &lt;br /&gt;
           \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.12}}&lt;br /&gt;
The inverse of this matrix is the Hermitian conjugate, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
U ^{-1} = U^\dagger = \left(\begin{array}{cc} &lt;br /&gt;
                         a^* &amp;amp; c^* \\ &lt;br /&gt;
                         b^* &amp;amp; d^* &lt;br /&gt;
                       \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.13}}&lt;br /&gt;
provided that the matrix &amp;lt;math&amp;gt;U\,\!&amp;lt;/math&amp;gt; satisfies the constraints&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
|a|^2 + |b|^2 = 1, \; &amp;amp; \; ac^*+bd^* =0  \\&lt;br /&gt;
ca^*+db^*=0,  \;      &amp;amp;  \; |c|^2 + |d|^2 =1,&lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;|C.14}}&lt;br /&gt;
and&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
|a|^2 + |c|^2 = 1, \; &amp;amp; \; ba^*+dc^* =0  \\&lt;br /&gt;
b^*a+d^*c=0,  \;      &amp;amp;  \; |b|^2 + |d|^2 =1.&lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;|C.15}}&lt;br /&gt;
Looking at each row as a vector, the constraints in&lt;br /&gt;
Eq.[[#eqC.14|(C.14)]] are the orthonormality conditions for the&lt;br /&gt;
vectors forming the rows.  Similarly, the constraints in&lt;br /&gt;
Eq.[[#eqC.15|(C.15)]] are the orthonormality conditions for the&lt;br /&gt;
vectors forming the columns.&lt;br /&gt;
&lt;br /&gt;
Unitary matrices are very important because the preserve the magnitude of a complex vector.  In other words, if if the magnitude of a vector is one, for example &amp;lt;math&amp;gt; \big\vert\big\vert  \left\vert\psi\right\rangle\big\vert\big\vert = 1\,\!&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt; \big\vert\big\vert  U\left\vert\psi\right\rangle   \big\vert\big\vert = 1\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Matrices:_A_beginner%27s_guide&amp;diff=3098</id>
		<title>Matrices: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Matrices:_A_beginner%27s_guide&amp;diff=3098"/>
		<updated>2023-02-13T20:43:42Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* The Inverse of a Matrix */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
==Matrices as Operations on Quantum States==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The states of a quantum system can be written as&lt;br /&gt;
{{Equation | &amp;lt;math&amp;gt;\left\vert{\psi}\right\rangle = \alpha_0\left\vert{0}\right\rangle + \alpha_1\left\vert{1}\right\rangle,&amp;lt;/math&amp;gt; |m.1}}&lt;br /&gt;
where &amp;lt;math&amp;gt;\alpha_0\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\alpha_1\,\!&amp;lt;/math&amp;gt; are complex numbers.  These states are used to represent quantum systems that can be used to store information.  Because &amp;lt;math&amp;gt;|\alpha_0|^2\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;|\alpha_1|^2 \,\!&amp;lt;/math&amp;gt; are probabilities and must add up to one, &lt;br /&gt;
{{Equation | &amp;lt;math&amp;gt;|\alpha_0|^2 + |\alpha_1|^2 = 1.\,\!&amp;lt;/math&amp;gt; |m.2}}&lt;br /&gt;
This means that this vector is ''normalized,'' i.e. its magnitude (or length) is one.  ([[Appendix B - Complex Numbers|Appendix B]] contains a basic introduction to complex numbers.) The basis vectors for such a space are the two vectors &amp;lt;math&amp;gt;\left\vert{0}\right\rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\left\vert{1}\right\rangle&amp;lt;/math&amp;gt; which are called ''computational basis'' states. These two basis states are represented by &lt;br /&gt;
{{Equation | &amp;lt;math&amp;gt;\left\vert{0}\right\rangle = \left(\begin{array}{c} 1 \\ 0\end{array}\right), \;\;\left\vert{1}\right\rangle = \left(\begin{array}{c} 0 \\ 1\end{array}\right).&amp;lt;/math&amp;gt; |m.3}}&lt;br /&gt;
Thus, the qubit state can be rewritten as&lt;br /&gt;
{{Equation |&amp;lt;math&amp;gt;\left\vert{\psi}\right\rangle = \left(\begin{array}{c} \alpha_0 \\ \alpha_1\end{array}\right).&amp;lt;/math&amp;gt; |m.4}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A very common operation in computing is to change a &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to a &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; and a &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; to a &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;.  The operation that does this is denoted a &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;.  This operator does both.  It changes &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; a &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;.  So we write, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
X \left|0\right\rangle = \left|1\right\rangle, \mbox{ and } X \left|1\right\rangle = \left|0\right\rangle.  &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
Notice that this means that acting with &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; again means that you get back the original state.  Matrices, which are arrays of numbers, are the mathematical incarnation of these operations.  It turns out that matrices are the way to represent almost all of operations in quantum computing and this will be shown in this section.  &lt;br /&gt;
&lt;br /&gt;
Let us list some important matrices that will be used as examples below:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
X = \left(\begin{array}{cc}&lt;br /&gt;
                 0 &amp;amp; 1 \\&lt;br /&gt;
                 1 &amp;amp; 0 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
Z = \left(\begin{array}{cc}&lt;br /&gt;
                 1 &amp;amp; 0 \\&lt;br /&gt;
                 0 &amp;amp; -1 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.2}}&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
Y = \left(\begin{array}{cc}&lt;br /&gt;
                 0 &amp;amp; -i \\&lt;br /&gt;
                 i &amp;amp; 0 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.3}}&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
H = \left(\begin{array}{cc}&lt;br /&gt;
                 1/\sqrt{2} &amp;amp; 1/\sqrt{2} \\&lt;br /&gt;
                 1/\sqrt{2} &amp;amp; -1/\sqrt{2} \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.3}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These all have the general form&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
M = \left(\begin{array}{cc}&lt;br /&gt;
                 a &amp;amp; b \\&lt;br /&gt;
                 c &amp;amp; d \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.4}}&lt;br /&gt;
where the numbers &amp;lt;math&amp;gt;a,b,c,d&amp;lt;/math&amp;gt; can be complex numbers.&lt;br /&gt;
&lt;br /&gt;
==Matrices==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Basic Definition and Representations===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A matrix is an array of numbers of the following form with columns, col. 1, col. 2, etc., and rows, row 1, row 2, etc.  The entries for the matrix are labeled by the row and column.  So the entry of a matrix &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; will be &amp;lt;math&amp;gt;a_{ij}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; is the row and &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; is the column where the number &amp;lt;math&amp;gt;a_{ij}&amp;lt;/math&amp;gt; is found.  This is how it looks:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
A = \begin{array}{c} {\scriptstyle{row \; 1}}  \\ {\scriptstyle{row \; 2}}  \\  \vdots  \\  {\scriptstyle{row \; m}}\end{array} \overset{{\scriptstyle{col. \; 1 }} \;\;\; {\scriptstyle{col.\; 2 }} \;\;\;\; {\displaystyle{\cdots}} \;\;\;\;\; {\scriptstyle{col.\; n }}}{\left(\begin{array}{cccc} &lt;br /&gt;
a_{11} &amp;amp; a_{12} &amp;amp; \cdots &amp;amp; a_{1n} \\ &lt;br /&gt;
a_{21} &amp;amp; a_{22} &amp;amp; \cdots &amp;amp; a_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
a_{m1} &amp;amp; a_{m2} &amp;amp; \cdots &amp;amp; a_{mn}  &lt;br /&gt;
\end{array}\right)}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notice that we represent the whole matrix with a capital letter &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;.  The matrix &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; has &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; rows and &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; columns, so we say that &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; is an &amp;lt;math&amp;gt;m\times n&amp;lt;/math&amp;gt; matrix.  We could also represent it using all of the entries, this array of numbers seen in the equation above.  Another way to represent it is to write it as &amp;lt;math&amp;gt;(a_{ij})&amp;lt;/math&amp;gt;.  By this we mean that it is the array of numbers in the parentheses.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
The matrix above, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
X = \left(\begin{array}{cc}&lt;br /&gt;
                 0 &amp;amp; 1 \\&lt;br /&gt;
                 1 &amp;amp; 0 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
is a &amp;lt;math&amp;gt;2\times 2&amp;lt;/math&amp;gt; matrix.  &lt;br /&gt;
&lt;br /&gt;
The matrix &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
L = \left(\begin{array}{ccc}&lt;br /&gt;
                 3 &amp;amp; 2 &amp;amp; 5 \\&lt;br /&gt;
                 1 &amp;amp; 0 &amp;amp; 4\end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
is &amp;lt;math&amp;gt;2\times 3&amp;lt;/math&amp;gt; and &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
K = \left(\begin{array}{cc}&lt;br /&gt;
                 2 &amp;amp; 5  \\&lt;br /&gt;
                 1 &amp;amp; 4  \\&lt;br /&gt;
                 7 &amp;amp; 0  \\&lt;br /&gt;
                 8 &amp;amp; 3\end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
is a &amp;lt;math&amp;gt;4\times 2&amp;lt;/math&amp;gt; matrix.&lt;br /&gt;
&lt;br /&gt;
===Matrix Addition===&lt;br /&gt;
&lt;br /&gt;
Matrix addition is performed by adding each element of one matrix with the corresponding element in another matrix.  Let our two matrices be &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as above, and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;.  To represent these in an array, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
A = \left(\begin{array}{cccc} &lt;br /&gt;
a_{11} &amp;amp; a_{12} &amp;amp; \cdots &amp;amp; a_{1n} \\ &lt;br /&gt;
a_{21} &amp;amp; a_{22} &amp;amp; \cdots &amp;amp; a_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
a_{m1} &amp;amp; a_{m2} &amp;amp; \cdots &amp;amp; a_{mn}  &lt;br /&gt;
\end{array}\right), \;\;\;\;&lt;br /&gt;
B = \left(\begin{array}{cccc} &lt;br /&gt;
b_{11} &amp;amp; b_{12} &amp;amp; \cdots &amp;amp; b_{1n} \\ &lt;br /&gt;
b_{21} &amp;amp; b_{22} &amp;amp; \cdots &amp;amp; b_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
b_{m1} &amp;amp; b_{m2} &amp;amp; \cdots &amp;amp; b_{mn}  &lt;br /&gt;
\end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The the sum, which we could call &amp;lt;math&amp;gt;C= A+B&amp;lt;/math&amp;gt; is given by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
A + B = \left(\begin{array}{cccc} &lt;br /&gt;
a_{11} &amp;amp; a_{12} &amp;amp; \cdots &amp;amp; a_{1n} \\ &lt;br /&gt;
a_{21} &amp;amp; a_{22} &amp;amp; \cdots &amp;amp; a_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
a_{m1} &amp;amp; a_{m2} &amp;amp; \cdots &amp;amp; a_{mn}  &lt;br /&gt;
\end{array}\right) &lt;br /&gt;
+ &lt;br /&gt;
\left(\begin{array}{cccc} &lt;br /&gt;
b_{11} &amp;amp; b_{12} &amp;amp; \cdots &amp;amp; b_{1n} \\ &lt;br /&gt;
b_{21} &amp;amp; b_{22} &amp;amp; \cdots &amp;amp; b_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
b_{m1} &amp;amp; b_{m2} &amp;amp; \cdots &amp;amp; b_{mn}  &lt;br /&gt;
\end{array}\right) &lt;br /&gt;
=&lt;br /&gt;
\left(\begin{array}{cccc} &lt;br /&gt;
a_{11} + b_{11} &amp;amp; a_{12}+b_{12} &amp;amp; \cdots &amp;amp; a_{1n}+b_{1n} \\ &lt;br /&gt;
a_{21}+b_{21} &amp;amp; a_{22}+b_{22} &amp;amp; \cdots &amp;amp; a_{2n}+b_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
a_{m1}+b_{m1} &amp;amp; a_{m2}+b_{m2} &amp;amp; \cdots &amp;amp; a_{mn}+b_{mn}  &lt;br /&gt;
\end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In other words, the sum gives &amp;lt;math&amp;gt;c_{11} = a_{11} + b_{11}\,\!&amp;lt;/math&amp;gt;, etc.  We add them component by component like we do vectors.&lt;br /&gt;
&lt;br /&gt;
Change the font color or type in order to highlight the entries that are being added.&lt;br /&gt;
&lt;br /&gt;
===Multiplying a Matrix by a Number ===&lt;br /&gt;
&lt;br /&gt;
When multiplying a matrix by a number, each element of the matrix gets multiplied by that number.  Seem familiar?  This is what was done for vectors.  &lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; be some number.  Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
kA = k\left(\begin{array}{cccc} &lt;br /&gt;
a_{11} &amp;amp; a_{12} &amp;amp; \cdots &amp;amp; a_{1n} \\ &lt;br /&gt;
a_{21} &amp;amp; a_{22} &amp;amp; \cdots &amp;amp; a_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
a_{m1} &amp;amp; a_{m2} &amp;amp; \cdots &amp;amp; a_{mn}  &lt;br /&gt;
\end{array}\right) &lt;br /&gt;
= \left(\begin{array}{cccc} &lt;br /&gt;
ka_{11} &amp;amp; ka_{12} &amp;amp; \cdots &amp;amp; ka_{1n} \\ &lt;br /&gt;
ka_{21} &amp;amp; ka_{22} &amp;amp; \cdots &amp;amp; ka_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
ka_{m1} &amp;amp; ka_{m2} &amp;amp; \cdots &amp;amp; ka_{mn}  &lt;br /&gt;
\end{array}\right) &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Multiplying two Matrices===&lt;br /&gt;
&lt;br /&gt;
The the product, which we could call &amp;lt;math&amp;gt;C= AB&amp;lt;/math&amp;gt; is given by &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:MatrixMult2.jpg|600px]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
A = \left(\begin{array}{cc}&lt;br /&gt;
                 2 &amp;amp; 3 \\&lt;br /&gt;
                 5 &amp;amp; 6 \end{array}\right),&lt;br /&gt;
\mbox{ and }&lt;br /&gt;
B = \left(\begin{array}{cc}&lt;br /&gt;
                 1 &amp;amp; 4 \\&lt;br /&gt;
                 7 &amp;amp; 2 \end{array}\right)&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
Then &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
A B = \left(\begin{array}{cc}&lt;br /&gt;
                 2 &amp;amp; 3 \\&lt;br /&gt;
                 5 &amp;amp; 6 \end{array}\right)\left(\begin{array}{cc}&lt;br /&gt;
                 1 &amp;amp; 4 \\&lt;br /&gt;
                 7 &amp;amp; 2 \end{array}\right) &lt;br /&gt;
= \left(\begin{array}{cc}&lt;br /&gt;
                 2\cdot 1 + 3\cdot 7 &amp;amp; 2\cdot 4 + 3\cdot 2 \\&lt;br /&gt;
                 5\cdot 1 + 6\cdot 7 &amp;amp; 5\cdot 4 + 6\cdot 2 \end{array}\right) &lt;br /&gt;
= \left(\begin{array}{cc}&lt;br /&gt;
                 23 &amp;amp; 14 \\&lt;br /&gt;
                 47 &amp;amp; 32 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us multiply &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Z&amp;lt;/math&amp;gt; from above, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
X Z = \left(\begin{array}{cc}&lt;br /&gt;
                 0 &amp;amp; 1 \\&lt;br /&gt;
                 1 &amp;amp; 0 \end{array}\right)&lt;br /&gt;
      \left(\begin{array}{cc}&lt;br /&gt;
                 1 &amp;amp; 0 \\&lt;br /&gt;
                 0 &amp;amp; -1 \end{array}\right) &lt;br /&gt;
= \left(\begin{array}{cc}&lt;br /&gt;
                 0\cdot 1 + 1\cdot 0 &amp;amp; 0\cdot 0 + 1\cdot (-1) \\&lt;br /&gt;
                 1\cdot 1 + 0\cdot 0 &amp;amp; 1\cdot 0 + 0\cdot (-1) \end{array}\right) &lt;br /&gt;
= \left(\begin{array}{cc}&lt;br /&gt;
                 0 &amp;amp; -1 \\&lt;br /&gt;
                 1 &amp;amp; 0 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
It is helpful to notice that this is &amp;lt;math&amp;gt;-iY&amp;lt;/math&amp;gt;; that is &amp;lt;math&amp;gt;XZ = -i Y&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Notation===&lt;br /&gt;
&lt;br /&gt;
There are many aspects of linear algebra that are quite useful in&lt;br /&gt;
quantum mechanics.  We will briefly discuss several of these aspects here.&lt;br /&gt;
First, some definitions and properties are provided that will&lt;br /&gt;
be useful.  Some familiarity with matrices&lt;br /&gt;
will be assumed, although many basic definitions are also included.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us denote some &amp;lt;math&amp;gt;m\times n\,\!&amp;lt;/math&amp;gt; matrix by &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;.  The set of all &amp;lt;math&amp;gt;m\times&lt;br /&gt;
n\,\!&amp;lt;/math&amp;gt; matrices with real entries is &amp;lt;math&amp;gt;M(m\times n,\mathbb{R})\,\!&amp;lt;/math&amp;gt;.  Such matrices&lt;br /&gt;
are said to be real since they have all real entries.  Similarly, the&lt;br /&gt;
set of &amp;lt;math&amp;gt;m\times n\,\!&amp;lt;/math&amp;gt; complex matrices is &amp;lt;math&amp;gt;M(m\times n,\mathbb{C})\,\!&amp;lt;/math&amp;gt;.  For the&lt;br /&gt;
set of square &amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; complex matrices, we simply write&lt;br /&gt;
&amp;lt;math&amp;gt;M(n,\mathbb{C})\,\!&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will also refer to the set of matrix elements, &amp;lt;math&amp;gt;a_{ij}\,\!&amp;lt;/math&amp;gt;, where the&lt;br /&gt;
first index (&amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; in this case) labels the row and the second &amp;lt;math&amp;gt;(j)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
labels the column.  Thus the element &amp;lt;math&amp;gt;a_{23}\,\!&amp;lt;/math&amp;gt; is the element in the&lt;br /&gt;
second row and third column.  A comma is inserted if there is some&lt;br /&gt;
ambiguity.  For example, in a large matrix the element in the&lt;br /&gt;
2nd row and 12th&lt;br /&gt;
column is written as &amp;lt;math&amp;gt;a_{2,12}\,\!&amp;lt;/math&amp;gt; to distinguish between the&lt;br /&gt;
21st row and 2nd column.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The Identity Matrix===&lt;br /&gt;
&lt;br /&gt;
An identity matrix has the property that when it is multiplied by any matrix, that matrix is unchanged.  That is, for any matrix &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbb{I}A = A\mathbb{I} = A.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Such an identity matrix always has ones along the diagonal and zeroes everywhere else.  For example, the &amp;lt;math&amp;gt;3 \times 3\,\!&amp;lt;/math&amp;gt; identity matrix is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbb{I} = \left(\begin{array}{ccc}&lt;br /&gt;
        1 &amp;amp; 0 &amp;amp; 0 \\&lt;br /&gt;
        0 &amp;amp; 1 &amp;amp; 0 \\&lt;br /&gt;
        0 &amp;amp; 0 &amp;amp; 1 \end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
It is straight-forward to verify that any &amp;lt;math&amp;gt;3 \times 3\,\!&amp;lt;/math&amp;gt; matrix is not changed when multiplied by the identity matrix.&lt;br /&gt;
&lt;br /&gt;
===Complex Conjugate===&lt;br /&gt;
&lt;br /&gt;
The ''complex conjugate of a matrix'' &amp;lt;!-- \index{complex conjugate!of a matrix}--&amp;gt;&lt;br /&gt;
is the matrix with each element replaced by its complex conjugate.  In&lt;br /&gt;
other words, to take the complex conjugate of a matrix, one takes the&lt;br /&gt;
complex conjugate of each entry in the matrix.  We denote the complex&lt;br /&gt;
conjugate with a star, like this: &amp;lt;math&amp;gt;A^*\,\!&amp;lt;/math&amp;gt;.  For example,&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
A^* &amp;amp;=&amp;amp; \left(\begin{array}{ccc}&lt;br /&gt;
        a_{11} &amp;amp; a_{12} &amp;amp; a_{13} \\&lt;br /&gt;
        a_{21} &amp;amp; a_{22} &amp;amp; a_{23} \\&lt;br /&gt;
        a_{31} &amp;amp; a_{32} &amp;amp; a_{33} \end{array}\right)^*  \\&lt;br /&gt;
    &amp;amp;=&amp;amp; \left(\begin{array}{ccc}&lt;br /&gt;
        a_{11}^* &amp;amp; a_{12}^* &amp;amp; a_{13}^* \\&lt;br /&gt;
        a_{21}^* &amp;amp; a_{22}^* &amp;amp; a_{23}^* \\&lt;br /&gt;
        a_{31}^* &amp;amp; a_{32}^* &amp;amp; a_{33}^* \end{array}\right). &lt;br /&gt;
\end{align}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.2}}&lt;br /&gt;
(Notice that the notation for a matrix is a capital letter, whereas&lt;br /&gt;
the entries are represented by lower case&lt;br /&gt;
letters.)&lt;br /&gt;
&lt;br /&gt;
===Transpose===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ''transpose'' &amp;lt;!-- \index{transpose} --&amp;gt; of a matrix is the same set of&lt;br /&gt;
elements, but now the first row becomes the first column, the second row&lt;br /&gt;
becomes the second column, and so on.  Thus the rows and columns are&lt;br /&gt;
interchanged.  For example, for a square &amp;lt;math&amp;gt;3\times 3\,\!&amp;lt;/math&amp;gt; matrix, the&lt;br /&gt;
transpose is given by&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
A^T &amp;amp;=&amp;amp; \left(\begin{array}{ccc}&lt;br /&gt;
        a_{11} &amp;amp; a_{12} &amp;amp; a_{13} \\&lt;br /&gt;
        a_{21} &amp;amp; a_{22} &amp;amp; a_{23} \\&lt;br /&gt;
        a_{31} &amp;amp; a_{32} &amp;amp; a_{33} \end{array}\right)^T \\&lt;br /&gt;
    &amp;amp;=&amp;amp; \left(\begin{array}{ccc}&lt;br /&gt;
        a_{11} &amp;amp; a_{21} &amp;amp; a_{31} \\&lt;br /&gt;
        a_{12} &amp;amp; a_{22} &amp;amp; a_{32} \\&lt;br /&gt;
        a_{13} &amp;amp; a_{23} &amp;amp; a_{33} \end{array}\right). &lt;br /&gt;
\end{align}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.3}}&lt;br /&gt;
&lt;br /&gt;
===Hermitian Conjugate===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The complex conjugate and transpose of a matrix is called the ''Hermitian conjugate'', or simply the ''dagger'' of a matrix.  It is called the dagger because the symbol used to denote it,&lt;br /&gt;
(&amp;lt;math&amp;gt;\dagger\,\!&amp;lt;/math&amp;gt;):&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
(A^T)^* = (A^*)^T \equiv A^\dagger.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.4}}&lt;br /&gt;
For our &amp;lt;math&amp;gt;3\times 3\,\!&amp;lt;/math&amp;gt; example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
A^\dagger = \left(\begin{array}{ccc}&lt;br /&gt;
        a_{11}^* &amp;amp; a_{21}^* &amp;amp; a_{31}^* \\&lt;br /&gt;
        a_{12}^* &amp;amp; a_{22}^* &amp;amp; a_{32}^* \\&lt;br /&gt;
        a_{13}^* &amp;amp; a_{23}^* &amp;amp; a_{33}^* \end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If a matrix is its own Hermitian conjugate, i.e. &amp;lt;math&amp;gt;A^\dagger = A\,\!&amp;lt;/math&amp;gt;, then&lt;br /&gt;
we call it a ''Hermitian matrix''.  &amp;lt;!-- \index{Hermitian matrix}--&amp;gt;&lt;br /&gt;
(Clearly this is only possible for square matrices.) Hermitian&lt;br /&gt;
matrices are very important in quantum mechanics since their&lt;br /&gt;
eigenvalues are real.  (See Sec.([[Appendix C - Vectors and Linear Algebra#Eigenvalues and Eigenvectors|Eigenvalues and Eigenvectors]]).)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Index Notation===&lt;br /&gt;
&lt;br /&gt;
Very often we write the product of two matrices &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt; simply as&lt;br /&gt;
&amp;lt;math&amp;gt;AB\,\!&amp;lt;/math&amp;gt; and let &amp;lt;math&amp;gt;C=AB\,\!&amp;lt;/math&amp;gt;.  However, it is also quite useful to write this&lt;br /&gt;
in component form.  In this case, if these are &amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; matrices, the component form will be &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
c_{ik} = \sum_{j=1}^n a_{ij}b_{jk}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
This says that the element in the &amp;lt;math&amp;gt;i^{\mbox{th}}\,\!&amp;lt;/math&amp;gt; row and&lt;br /&gt;
&amp;lt;math&amp;gt;j^{\mbox{th}}\,\!&amp;lt;/math&amp;gt; column of the matrix &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt; is the sum &amp;lt;math&amp;gt;\sum_{j=1}^n&lt;br /&gt;
a_{ij}b_{jk}\,\!&amp;lt;/math&amp;gt;.  The transpose of &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt; has elements&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
c_{ki} = \sum_{j=1}^n a_{kj}b_{ji}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now if we were to transpose &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt; as well, this would read&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
c_{ki} = \sum_{j=1}^n (a_{jk})^T (b_{ij})^T = \sum_{j=1}^n b^T_{ij} a^T_{jk}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
This gives us a way of seeing the general rule that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
C^T = B^TA^T.  &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
It follows that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
C^\dagger = B^\dagger A^\dagger.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===The Trace===&lt;br /&gt;
&lt;br /&gt;
The ''trace'' --&amp;gt;&amp;lt;!-- \index{trace}--&amp;gt;&amp;lt;!-- of a matrix is the sum of the diagonal&lt;br /&gt;
elements and is denoted &amp;lt;math&amp;gt;\mbox{Tr}\,\!&amp;lt;/math&amp;gt;.  So for example, the trace of an&lt;br /&gt;
&amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; matrix &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mbox{Tr}(A) = \sum_{i=1}^n a_{ii}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;.&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some useful properties of the trace are the following:&lt;br /&gt;
#&amp;lt;math&amp;gt;\mbox{Tr}(AB) = \mbox{Tr}(BA)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
#&amp;lt;math&amp;gt;\mbox{Tr}(A + B) = \mbox{Tr}(A) + \mbox{Tr}(B)\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
Using the first of these results,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mbox{Tr}(UAU^{-1}) = \mbox{Tr}(U^{-1}UA) = \mbox{Tr}(A).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
This relation is used so often that we state it here explicitly.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The Determinant===&lt;br /&gt;
&lt;br /&gt;
For a square matrix, the determinant is quite a useful thing.  For&lt;br /&gt;
example, an &amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; matrix is invertible if and only if its&lt;br /&gt;
determinant is not zero.  So let us define the determinant and give&lt;br /&gt;
some properties and examples.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ''determinant''&amp;lt;!--\index{determinant}--&amp;gt; of a &amp;lt;math&amp;gt;2\times 2\,\!&amp;lt;/math&amp;gt; matrix, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
N = \left(\begin{array}{cc}&lt;br /&gt;
                 a &amp;amp; b \\&lt;br /&gt;
                 c &amp;amp; d \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.5}}&lt;br /&gt;
is given by&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\det(N) = ad-bc.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.6}}&lt;br /&gt;
Higher-order determinants can be written in terms of smaller ones in a recursive way.  For example, let &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
M = \left(\begin{array}{ccc}&lt;br /&gt;
                 m_{11} &amp;amp; m_{12} &amp;amp; m_{13} \\&lt;br /&gt;
                 m_{21} &amp;amp; m_{22} &amp;amp; m_{23} \\&lt;br /&gt;
                 m_{31} &amp;amp; m_{32} &amp;amp; m_{33}\end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\det(M) = m_{11}\det\left(\begin{array}{cc}&lt;br /&gt;
                 m_{22} &amp;amp; m_{23} \\&lt;br /&gt;
                 m_{32} &amp;amp; m_{33} \end{array}\right) &lt;br /&gt;
- m_{12}\det\left(\begin{array}{cc}&lt;br /&gt;
                 m_{21} &amp;amp; m_{23} \\&lt;br /&gt;
                 m_{31} &amp;amp; m_{33} \end{array}\right)&lt;br /&gt;
+m_{13}\det\left(\begin{array}{cc}&lt;br /&gt;
                 m_{21} &amp;amp; m_{22} \\&lt;br /&gt;
                 m_{31} &amp;amp; m_{32} \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
The ''determinant''--&amp;gt;&amp;lt;!-- \index{determinant}--&amp;gt;&amp;lt;!-- of a matrix &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; can be&lt;br /&gt;
also be written in terms of its components as &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\det(A) = \sum_{i,j,k,l,...} \epsilon_{ijkl...}&lt;br /&gt;
a_{1i}a_{2j}a_{3k}a_{4l} ...,&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.7}}&lt;br /&gt;
where the symbol &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon_{ijkl...} = \begin{cases}&lt;br /&gt;
                       +1, \; \mbox{if } \; ijkl... = 1234... (\mbox{in order, or any even number of permutations}),\\&lt;br /&gt;
                       -1, \; \mbox{if } \; ijkl... = 2134... (\mbox{or any odd number of permutations}),\\&lt;br /&gt;
                       \;\;\; 0, \; \mbox{otherwise}, \; (\mbox{meaning any index is repeated}).&lt;br /&gt;
                      \end{cases}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.8}}&lt;br /&gt;
&lt;br /&gt;
Let us consider the example of the &amp;lt;math&amp;gt;3\times 3\,\!&amp;lt;/math&amp;gt; matrix &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; given&lt;br /&gt;
above.  The determinant can be calculated by&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\det(A) = \sum_{i,j,k} \epsilon_{ijk}&lt;br /&gt;
a_{1i}a_{2j}a_{3k},&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where, explicitly, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon_{ijk} = \begin{cases}&lt;br /&gt;
                       +1, \;\mbox{if }\; ijk= 123,231,\; \mbox{or}\; 312, (\mbox{These are even permutations of }123),\\&lt;br /&gt;
                       -1, \;\mbox{if }\; ijk = 213,132,\;\mbox{or}\;321(\mbox{These are odd permuations of }123),\\&lt;br /&gt;
                    \;\;\;  0, \; \mbox{otherwise}, \; (\mbox{meaning any index is repeated}),&lt;br /&gt;
                 \end{cases}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.9}}&lt;br /&gt;
so that &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\det(A) &amp;amp;=&amp;amp; \epsilon_{123}a_{11}a_{22}a_{33} &lt;br /&gt;
         +\epsilon_{132}a_{11}a_{23}a_{32}&lt;br /&gt;
         +\epsilon_{231}a_{12}a_{23}a_{31}  \\&lt;br /&gt;
       &amp;amp;&amp;amp;+\epsilon_{213}a_{12}a_{21}a_{33}&lt;br /&gt;
         +\epsilon_{312}a_{13}a_{21}a_{32}&lt;br /&gt;
         +\epsilon_{321}a_{13}a_{22}a_{31}.&lt;br /&gt;
\end{align}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.10}}&lt;br /&gt;
Now given the values of &amp;lt;math&amp;gt;\epsilon_{ijk}\,\!&amp;lt;/math&amp;gt; in [[#eqC.9|Eq. C.9]],&lt;br /&gt;
this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\det(A) = a_{11}a_{22}a_{33} - a_{11}a_{23}a_{32} + a_{12}a_{23}a_{31} &lt;br /&gt;
         - a_{12}a_{21}a_{33} + a_{13}a_{21}a_{32} - a_{13}a_{22}a_{31}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The determinant has several properties that are useful to know.  A few are listed here:  &lt;br /&gt;
#The determinant of the transpose of a matrix is the same as the determinant of the matrix itself: &amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \det(A) = \det(A^T).\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
#The determinant of a product is the product of determinants:    &amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \det(AB) = \det(A)\det(B).\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
From this last property, another specific property can be derived.&lt;br /&gt;
If we take the determinant of the product of a matrix and its&lt;br /&gt;
inverse, we find&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\det(U U^{-1}) = \det(U)\det(U^{-1}) = \det(\mathbb{I}) = 1,&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
since the determinant of the identity is one.  This implies that&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\det(U^{-1}) = \frac{1}{\det(U)}.  &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Hermitian Matrices===&lt;br /&gt;
&lt;br /&gt;
Hermitian matrices are important for a variety of reasons; primarily, it is because their eigenvalues are real.  Thus Hermitian matrices are used to represent density operators and density matrices, as well as Hamiltonians.  The density operator is a positive semi-definite Hermitian matrix (it has no negative eigenvalues) that has its trace equal to one.  In any case, it is often desirable to represent &amp;lt;math&amp;gt;N\times N\,\!&amp;lt;/math&amp;gt; Hermitian matrices using a real linear combination of a complete set of &amp;lt;math&amp;gt;N\times N\,\!&amp;lt;/math&amp;gt; Hermitian matrices.  A set of &amp;lt;math&amp;gt;N\times N\,\!&amp;lt;/math&amp;gt; Hermitian matrices is complete if any Hermitian matrix can be represented in terms of the set.  Let &amp;lt;math&amp;gt;\{\lambda_i\}\,\!&amp;lt;/math&amp;gt; be a complete set.  Then any Hermitian matrix can be represented by &amp;lt;math&amp;gt;\sum_i a_i \lambda_i\,\!&amp;lt;/math&amp;gt;.  The set can always be taken to be a set of traceless Hermitian matrices and the identity matrix.  This is convenient for the density matrix (its trace is one) because the identity part of an &amp;lt;math&amp;gt;N\times N\,\!&amp;lt;/math&amp;gt; Hermitian matrix is &amp;lt;math&amp;gt;(1/N)\mathbb{I}\,\!&amp;lt;/math&amp;gt; if we take all others in the set to be traceless.  For the Hamiltonian, the set consists of a traceless part and an identity part where identity part just gives an overall phase which can often be neglected.  &lt;br /&gt;
&lt;br /&gt;
One example of such a set which is extremely useful is the set of Pauli matrices.  These are discussed in detail in [[Chapter 2 - Qubits and Collections of Qubits|Chapter 2]] and in particular in [[Chapter 2 - Qubits and Collections of Qubits#The Pauli Matrices|Section 2.4]].&lt;br /&gt;
&lt;br /&gt;
===Unitary Matrices===&lt;br /&gt;
&lt;br /&gt;
A ''unitary matrix'' &amp;lt;!-- \index{unitary matrix} --&amp;gt; &amp;lt;math&amp;gt;U\,\!&amp;lt;/math&amp;gt; is one whose&lt;br /&gt;
inverse is also its Hermitian conjugate, &amp;lt;math&amp;gt;U^\dagger = U^{-1}\,\!&amp;lt;/math&amp;gt;, so that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
U^\dagger U = UU^\dagger = \mathbb{I}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If the unitary matrix also has determinant one, it is said to be ''a special unitary matrix''.&amp;lt;!-- \index{special unitary matrix}--&amp;gt;  The set of&lt;br /&gt;
&amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; unitary matrices is denoted&lt;br /&gt;
&amp;lt;math&amp;gt;U(n)\,\!&amp;lt;/math&amp;gt; and the set of special unitary matrices is denoted &amp;lt;math&amp;gt;SU(n)\,\!&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
Unitary matrices are particularly important in quantum mechanics&lt;br /&gt;
because they describe the evolution of quantum states.&lt;br /&gt;
They have this ability due to the fact that the rows and columns of unitary matrices (viewed as vectors) are orthonormal. (This is made clear in an example below.)  This means that when&lt;br /&gt;
they act on a basis vector of the form&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt; \left\vert j\right\rangle = &lt;br /&gt;
 \left(\begin{array}{c} 0 \\ 0 \\ \vdots \\ 1 \\ \vdots \\ 0 &lt;br /&gt;
  \end{array}\right), &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.11}}&lt;br /&gt;
with a single 1, in say the &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt;th spot, and zeroes everywhere else, the result is a normalized complex vector.  Acting on a set of&lt;br /&gt;
orthonormal vectors of the form given in Eq.[[#eqC.11|(C.11)]]&lt;br /&gt;
will produce another orthonormal set.  &lt;br /&gt;
&lt;br /&gt;
Let us consider the example of a &amp;lt;math&amp;gt;2\times 2\,\!&amp;lt;/math&amp;gt; unitary matrix, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
U = \left(\begin{array}{cc} &lt;br /&gt;
              a &amp;amp; b \\ &lt;br /&gt;
              c &amp;amp; d &lt;br /&gt;
           \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.12}}&lt;br /&gt;
The inverse of this matrix is the Hermitian conjugate, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
U ^{-1} = U^\dagger = \left(\begin{array}{cc} &lt;br /&gt;
                         a^* &amp;amp; c^* \\ &lt;br /&gt;
                         b^* &amp;amp; d^* &lt;br /&gt;
                       \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.13}}&lt;br /&gt;
provided that the matrix &amp;lt;math&amp;gt;U\,\!&amp;lt;/math&amp;gt; satisfies the constraints&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
|a|^2 + |b|^2 = 1, \; &amp;amp; \; ac^*+bd^* =0  \\&lt;br /&gt;
ca^*+db^*=0,  \;      &amp;amp;  \; |c|^2 + |d|^2 =1,&lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;|C.14}}&lt;br /&gt;
and&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
|a|^2 + |c|^2 = 1, \; &amp;amp; \; ba^*+dc^* =0  \\&lt;br /&gt;
b^*a+d^*c=0,  \;      &amp;amp;  \; |b|^2 + |d|^2 =1.&lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;|C.15}}&lt;br /&gt;
Looking at each row as a vector, the constraints in&lt;br /&gt;
Eq.[[#eqC.14|(C.14)]] are the orthonormality conditions for the&lt;br /&gt;
vectors forming the rows.  Similarly, the constraints in&lt;br /&gt;
Eq.[[#eqC.15|(C.15)]] are the orthonormality conditions for the&lt;br /&gt;
vectors forming the columns.&lt;br /&gt;
&lt;br /&gt;
===Inner and Outer Products===&lt;br /&gt;
&lt;br /&gt;
It is very helpful to note that a column vector with &amp;lt;math&amp;gt;n\times 1\,\!&amp;lt;/math&amp;gt; matrix.  A row vector is a &amp;lt;math&amp;gt;1\times n\,\!&amp;lt;/math&amp;gt; matrix.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now that we have a definition for the Hermitian conjugate, consider the&lt;br /&gt;
case for a &amp;lt;math&amp;gt;n\times 1\,\!&amp;lt;/math&amp;gt; matrix, i.e. a vector.  In Dirac notation, this is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert\psi\right\rangle = \left(\begin{array}{c} \alpha \\ \beta&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The Hermitian conjugate comes up so often that we use the following&lt;br /&gt;
notation for vectors:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\langle \psi\right\vert = (\left\vert\psi\right\rangle)^\dagger = \left(\begin{array}{c} \alpha \\&lt;br /&gt;
    \beta \end{array}\right)^\dagger &lt;br /&gt;
 = \left( \alpha^*, \; \beta^* \right).  &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
This is a row vector and in ''Dirac notation'' is denoted by the symbol &amp;lt;math&amp;gt;\left\langle\cdot \right\vert\!&amp;lt;/math&amp;gt;, which is called a ''bra''.  Let us consider a second complex vector, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert\phi\right\rangle = \left(\begin{array}{c} \gamma \\ \delta&lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The ''inner product'' &amp;lt;!-- \index{inner product}--&amp;gt; between &amp;lt;math&amp;gt;\left\vert\psi\right\rangle\,\!&amp;lt;/math&amp;gt; and &lt;br /&gt;
&amp;lt;math&amp;gt;\left\vert\phi\right\rangle\,\!&amp;lt;/math&amp;gt; is computed as follows:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 \left\langle\phi\mid\psi\right\rangle &amp;amp; \equiv (\left\vert\phi\right\rangle)^\dagger\left\vert\psi \right\rangle   \\&lt;br /&gt;
                  &amp;amp;= (\gamma^*,\delta^*) \left(\begin{array}{c} \alpha \\ \beta&lt;br /&gt;
  \end{array}\right)   \\&lt;br /&gt;
                  &amp;amp;= \gamma^*\alpha + \delta^*\beta.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;|C.16}}&lt;br /&gt;
The vector &amp;lt;math&amp;gt;\left|\cdot \right\rangle\!&amp;lt;/math&amp;gt; is called a ''ket''.  When you put a ''bra'' together with a ''ket'', you get a ''bracket''.  This is the origin of the terms.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ''outer product'' between these same two vectors is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
\begin{align} (\left\vert \phi \right\rangle )(\left\vert \psi \right\rangle)^\dagger &lt;br /&gt;
 &amp;amp;=  \left\vert \phi \right\rangle \left\langle \psi \right\vert \\&lt;br /&gt;
&amp;amp;= \left(\begin{array}{c} \gamma \\ \delta \end{array}\right)&lt;br /&gt;
\left(\begin{array}{c} \alpha \\ \beta   \end{array}\right)^\dagger \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \gamma \\ \delta \end{array}\right) \left(\begin{array}{cc} \alpha^* &amp;amp; \beta^*   \end{array}\right) \\  &lt;br /&gt;
           &amp;amp;=   \left(\begin{array}{cc} \gamma\alpha^* &amp;amp; \gamma\beta^* \\  \delta\alpha^* &amp;amp; \delta\beta^*  \end{array}\right) \end{align}\;\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This type of product is also called a ''Kronecker product'' or a ''tensor product''.  Vectors and matrices can be considered special cases of the more general class of ''tensors''.  A tensor can have any number of indices indicating rows, columns, and depth, for the case of a three index tensor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Unitary Matrices===&lt;br /&gt;
&lt;br /&gt;
A ''unitary matrix'' &amp;lt;!-- \index{unitary matrix} --&amp;gt; &amp;lt;math&amp;gt;U\,\!&amp;lt;/math&amp;gt; is one whose&lt;br /&gt;
inverse is also its Hermitian conjugate, &amp;lt;math&amp;gt;U^\dagger = U^{-1}\,\!&amp;lt;/math&amp;gt;, so that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
U^\dagger U = UU^\dagger = \mathbb{I}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If the unitary matrix also has determinant one, it is said to be ''a special unitary matrix''.&amp;lt;!-- \index{special unitary matrix}--&amp;gt;  The set of&lt;br /&gt;
&amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; unitary matrices is denoted&lt;br /&gt;
&amp;lt;math&amp;gt;U(n)\,\!&amp;lt;/math&amp;gt; and the set of special unitary matrices is denoted &amp;lt;math&amp;gt;SU(n)\,\!&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
Unitary matrices are particularly important in quantum mechanics&lt;br /&gt;
because they describe the evolution of quantum states.&lt;br /&gt;
They have this ability due to the fact that the rows and columns of unitary matrices (viewed as vectors) are orthonormal. (This is made clear in an example below.)  This means that when&lt;br /&gt;
they act on a basis vector of the form&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt; \left\vert j\right\rangle = &lt;br /&gt;
 \left(\begin{array}{c} 0 \\ 0 \\ \vdots \\ 1 \\ \vdots \\ 0 &lt;br /&gt;
  \end{array}\right), &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.11}}&lt;br /&gt;
with a single 1, in say the &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt;th spot, and zeroes everywhere else, the result is a normalized complex vector.  Acting on a set of&lt;br /&gt;
orthonormal vectors of the form given in Eq.[[#eqC.11|(C.11)]]&lt;br /&gt;
will produce another orthonormal set.  &lt;br /&gt;
&lt;br /&gt;
Let us consider the example of a &amp;lt;math&amp;gt;2\times 2\,\!&amp;lt;/math&amp;gt; unitary matrix, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
U = \left(\begin{array}{cc} &lt;br /&gt;
              a &amp;amp; b \\ &lt;br /&gt;
              c &amp;amp; d &lt;br /&gt;
           \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.12}}&lt;br /&gt;
The inverse of this matrix is the Hermitian conjugate, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
U ^{-1} = U^\dagger = \left(\begin{array}{cc} &lt;br /&gt;
                         a^* &amp;amp; c^* \\ &lt;br /&gt;
                         b^* &amp;amp; d^* &lt;br /&gt;
                       \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.13}}&lt;br /&gt;
provided that the matrix &amp;lt;math&amp;gt;U\,\!&amp;lt;/math&amp;gt; satisfies the constraints&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
|a|^2 + |b|^2 = 1, \; &amp;amp; \; ac^*+bd^* =0  \\&lt;br /&gt;
ca^*+db^*=0,  \;      &amp;amp;  \; |c|^2 + |d|^2 =1,&lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;|C.14}}&lt;br /&gt;
and&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
|a|^2 + |c|^2 = 1, \; &amp;amp; \; ba^*+dc^* =0  \\&lt;br /&gt;
b^*a+d^*c=0,  \;      &amp;amp;  \; |b|^2 + |d|^2 =1.&lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;|C.15}}&lt;br /&gt;
Looking at each row as a vector, the constraints in&lt;br /&gt;
Eq.[[#eqC.14|(C.14)]] are the orthonormality conditions for the&lt;br /&gt;
vectors forming the rows.  Similarly, the constraints in&lt;br /&gt;
Eq.[[#eqC.15|(C.15)]] are the orthonormality conditions for the&lt;br /&gt;
vectors forming the columns.&lt;br /&gt;
&lt;br /&gt;
Unitary matrices are very important because the preserve the magnitude of a complex vector.  In other words, if if the magnitude of a vector is one, for example &amp;lt;math&amp;gt; \big\vert\big\vert  \left\vert\psi\right\rangle\big\vert\big\vert = 1\,\!&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt; \big\vert\big\vert  U\left\vert\psi\right\rangle   \big\vert\big\vert = 1\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Matrices:_A_beginner%27s_guide&amp;diff=3097</id>
		<title>Matrices: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Matrices:_A_beginner%27s_guide&amp;diff=3097"/>
		<updated>2023-02-13T20:42:34Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Hermitian Conjugate */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
==Matrices as Operations on Quantum States==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The states of a quantum system can be written as&lt;br /&gt;
{{Equation | &amp;lt;math&amp;gt;\left\vert{\psi}\right\rangle = \alpha_0\left\vert{0}\right\rangle + \alpha_1\left\vert{1}\right\rangle,&amp;lt;/math&amp;gt; |m.1}}&lt;br /&gt;
where &amp;lt;math&amp;gt;\alpha_0\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\alpha_1\,\!&amp;lt;/math&amp;gt; are complex numbers.  These states are used to represent quantum systems that can be used to store information.  Because &amp;lt;math&amp;gt;|\alpha_0|^2\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;|\alpha_1|^2 \,\!&amp;lt;/math&amp;gt; are probabilities and must add up to one, &lt;br /&gt;
{{Equation | &amp;lt;math&amp;gt;|\alpha_0|^2 + |\alpha_1|^2 = 1.\,\!&amp;lt;/math&amp;gt; |m.2}}&lt;br /&gt;
This means that this vector is ''normalized,'' i.e. its magnitude (or length) is one.  ([[Appendix B - Complex Numbers|Appendix B]] contains a basic introduction to complex numbers.) The basis vectors for such a space are the two vectors &amp;lt;math&amp;gt;\left\vert{0}\right\rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\left\vert{1}\right\rangle&amp;lt;/math&amp;gt; which are called ''computational basis'' states. These two basis states are represented by &lt;br /&gt;
{{Equation | &amp;lt;math&amp;gt;\left\vert{0}\right\rangle = \left(\begin{array}{c} 1 \\ 0\end{array}\right), \;\;\left\vert{1}\right\rangle = \left(\begin{array}{c} 0 \\ 1\end{array}\right).&amp;lt;/math&amp;gt; |m.3}}&lt;br /&gt;
Thus, the qubit state can be rewritten as&lt;br /&gt;
{{Equation |&amp;lt;math&amp;gt;\left\vert{\psi}\right\rangle = \left(\begin{array}{c} \alpha_0 \\ \alpha_1\end{array}\right).&amp;lt;/math&amp;gt; |m.4}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A very common operation in computing is to change a &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to a &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; and a &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; to a &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;.  The operation that does this is denoted a &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;.  This operator does both.  It changes &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; a &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;.  So we write, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
X \left|0\right\rangle = \left|1\right\rangle, \mbox{ and } X \left|1\right\rangle = \left|0\right\rangle.  &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
Notice that this means that acting with &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; again means that you get back the original state.  Matrices, which are arrays of numbers, are the mathematical incarnation of these operations.  It turns out that matrices are the way to represent almost all of operations in quantum computing and this will be shown in this section.  &lt;br /&gt;
&lt;br /&gt;
Let us list some important matrices that will be used as examples below:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
X = \left(\begin{array}{cc}&lt;br /&gt;
                 0 &amp;amp; 1 \\&lt;br /&gt;
                 1 &amp;amp; 0 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
Z = \left(\begin{array}{cc}&lt;br /&gt;
                 1 &amp;amp; 0 \\&lt;br /&gt;
                 0 &amp;amp; -1 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.2}}&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
Y = \left(\begin{array}{cc}&lt;br /&gt;
                 0 &amp;amp; -i \\&lt;br /&gt;
                 i &amp;amp; 0 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.3}}&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
H = \left(\begin{array}{cc}&lt;br /&gt;
                 1/\sqrt{2} &amp;amp; 1/\sqrt{2} \\&lt;br /&gt;
                 1/\sqrt{2} &amp;amp; -1/\sqrt{2} \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.3}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These all have the general form&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
M = \left(\begin{array}{cc}&lt;br /&gt;
                 a &amp;amp; b \\&lt;br /&gt;
                 c &amp;amp; d \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.4}}&lt;br /&gt;
where the numbers &amp;lt;math&amp;gt;a,b,c,d&amp;lt;/math&amp;gt; can be complex numbers.&lt;br /&gt;
&lt;br /&gt;
==Matrices==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Basic Definition and Representations===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A matrix is an array of numbers of the following form with columns, col. 1, col. 2, etc., and rows, row 1, row 2, etc.  The entries for the matrix are labeled by the row and column.  So the entry of a matrix &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; will be &amp;lt;math&amp;gt;a_{ij}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; is the row and &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; is the column where the number &amp;lt;math&amp;gt;a_{ij}&amp;lt;/math&amp;gt; is found.  This is how it looks:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
A = \begin{array}{c} {\scriptstyle{row \; 1}}  \\ {\scriptstyle{row \; 2}}  \\  \vdots  \\  {\scriptstyle{row \; m}}\end{array} \overset{{\scriptstyle{col. \; 1 }} \;\;\; {\scriptstyle{col.\; 2 }} \;\;\;\; {\displaystyle{\cdots}} \;\;\;\;\; {\scriptstyle{col.\; n }}}{\left(\begin{array}{cccc} &lt;br /&gt;
a_{11} &amp;amp; a_{12} &amp;amp; \cdots &amp;amp; a_{1n} \\ &lt;br /&gt;
a_{21} &amp;amp; a_{22} &amp;amp; \cdots &amp;amp; a_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
a_{m1} &amp;amp; a_{m2} &amp;amp; \cdots &amp;amp; a_{mn}  &lt;br /&gt;
\end{array}\right)}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notice that we represent the whole matrix with a capital letter &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;.  The matrix &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; has &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; rows and &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; columns, so we say that &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; is an &amp;lt;math&amp;gt;m\times n&amp;lt;/math&amp;gt; matrix.  We could also represent it using all of the entries, this array of numbers seen in the equation above.  Another way to represent it is to write it as &amp;lt;math&amp;gt;(a_{ij})&amp;lt;/math&amp;gt;.  By this we mean that it is the array of numbers in the parentheses.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
The matrix above, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
X = \left(\begin{array}{cc}&lt;br /&gt;
                 0 &amp;amp; 1 \\&lt;br /&gt;
                 1 &amp;amp; 0 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
is a &amp;lt;math&amp;gt;2\times 2&amp;lt;/math&amp;gt; matrix.  &lt;br /&gt;
&lt;br /&gt;
The matrix &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
L = \left(\begin{array}{ccc}&lt;br /&gt;
                 3 &amp;amp; 2 &amp;amp; 5 \\&lt;br /&gt;
                 1 &amp;amp; 0 &amp;amp; 4\end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
is &amp;lt;math&amp;gt;2\times 3&amp;lt;/math&amp;gt; and &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
K = \left(\begin{array}{cc}&lt;br /&gt;
                 2 &amp;amp; 5  \\&lt;br /&gt;
                 1 &amp;amp; 4  \\&lt;br /&gt;
                 7 &amp;amp; 0  \\&lt;br /&gt;
                 8 &amp;amp; 3\end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
is a &amp;lt;math&amp;gt;4\times 2&amp;lt;/math&amp;gt; matrix.&lt;br /&gt;
&lt;br /&gt;
===Matrix Addition===&lt;br /&gt;
&lt;br /&gt;
Matrix addition is performed by adding each element of one matrix with the corresponding element in another matrix.  Let our two matrices be &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as above, and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;.  To represent these in an array, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
A = \left(\begin{array}{cccc} &lt;br /&gt;
a_{11} &amp;amp; a_{12} &amp;amp; \cdots &amp;amp; a_{1n} \\ &lt;br /&gt;
a_{21} &amp;amp; a_{22} &amp;amp; \cdots &amp;amp; a_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
a_{m1} &amp;amp; a_{m2} &amp;amp; \cdots &amp;amp; a_{mn}  &lt;br /&gt;
\end{array}\right), \;\;\;\;&lt;br /&gt;
B = \left(\begin{array}{cccc} &lt;br /&gt;
b_{11} &amp;amp; b_{12} &amp;amp; \cdots &amp;amp; b_{1n} \\ &lt;br /&gt;
b_{21} &amp;amp; b_{22} &amp;amp; \cdots &amp;amp; b_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
b_{m1} &amp;amp; b_{m2} &amp;amp; \cdots &amp;amp; b_{mn}  &lt;br /&gt;
\end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The the sum, which we could call &amp;lt;math&amp;gt;C= A+B&amp;lt;/math&amp;gt; is given by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
A + B = \left(\begin{array}{cccc} &lt;br /&gt;
a_{11} &amp;amp; a_{12} &amp;amp; \cdots &amp;amp; a_{1n} \\ &lt;br /&gt;
a_{21} &amp;amp; a_{22} &amp;amp; \cdots &amp;amp; a_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
a_{m1} &amp;amp; a_{m2} &amp;amp; \cdots &amp;amp; a_{mn}  &lt;br /&gt;
\end{array}\right) &lt;br /&gt;
+ &lt;br /&gt;
\left(\begin{array}{cccc} &lt;br /&gt;
b_{11} &amp;amp; b_{12} &amp;amp; \cdots &amp;amp; b_{1n} \\ &lt;br /&gt;
b_{21} &amp;amp; b_{22} &amp;amp; \cdots &amp;amp; b_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
b_{m1} &amp;amp; b_{m2} &amp;amp; \cdots &amp;amp; b_{mn}  &lt;br /&gt;
\end{array}\right) &lt;br /&gt;
=&lt;br /&gt;
\left(\begin{array}{cccc} &lt;br /&gt;
a_{11} + b_{11} &amp;amp; a_{12}+b_{12} &amp;amp; \cdots &amp;amp; a_{1n}+b_{1n} \\ &lt;br /&gt;
a_{21}+b_{21} &amp;amp; a_{22}+b_{22} &amp;amp; \cdots &amp;amp; a_{2n}+b_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
a_{m1}+b_{m1} &amp;amp; a_{m2}+b_{m2} &amp;amp; \cdots &amp;amp; a_{mn}+b_{mn}  &lt;br /&gt;
\end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In other words, the sum gives &amp;lt;math&amp;gt;c_{11} = a_{11} + b_{11}\,\!&amp;lt;/math&amp;gt;, etc.  We add them component by component like we do vectors.&lt;br /&gt;
&lt;br /&gt;
Change the font color or type in order to highlight the entries that are being added.&lt;br /&gt;
&lt;br /&gt;
===Multiplying a Matrix by a Number ===&lt;br /&gt;
&lt;br /&gt;
When multiplying a matrix by a number, each element of the matrix gets multiplied by that number.  Seem familiar?  This is what was done for vectors.  &lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; be some number.  Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
kA = k\left(\begin{array}{cccc} &lt;br /&gt;
a_{11} &amp;amp; a_{12} &amp;amp; \cdots &amp;amp; a_{1n} \\ &lt;br /&gt;
a_{21} &amp;amp; a_{22} &amp;amp; \cdots &amp;amp; a_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
a_{m1} &amp;amp; a_{m2} &amp;amp; \cdots &amp;amp; a_{mn}  &lt;br /&gt;
\end{array}\right) &lt;br /&gt;
= \left(\begin{array}{cccc} &lt;br /&gt;
ka_{11} &amp;amp; ka_{12} &amp;amp; \cdots &amp;amp; ka_{1n} \\ &lt;br /&gt;
ka_{21} &amp;amp; ka_{22} &amp;amp; \cdots &amp;amp; ka_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
ka_{m1} &amp;amp; ka_{m2} &amp;amp; \cdots &amp;amp; ka_{mn}  &lt;br /&gt;
\end{array}\right) &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Multiplying two Matrices===&lt;br /&gt;
&lt;br /&gt;
The the product, which we could call &amp;lt;math&amp;gt;C= AB&amp;lt;/math&amp;gt; is given by &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:MatrixMult2.jpg|600px]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
A = \left(\begin{array}{cc}&lt;br /&gt;
                 2 &amp;amp; 3 \\&lt;br /&gt;
                 5 &amp;amp; 6 \end{array}\right),&lt;br /&gt;
\mbox{ and }&lt;br /&gt;
B = \left(\begin{array}{cc}&lt;br /&gt;
                 1 &amp;amp; 4 \\&lt;br /&gt;
                 7 &amp;amp; 2 \end{array}\right)&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
Then &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
A B = \left(\begin{array}{cc}&lt;br /&gt;
                 2 &amp;amp; 3 \\&lt;br /&gt;
                 5 &amp;amp; 6 \end{array}\right)\left(\begin{array}{cc}&lt;br /&gt;
                 1 &amp;amp; 4 \\&lt;br /&gt;
                 7 &amp;amp; 2 \end{array}\right) &lt;br /&gt;
= \left(\begin{array}{cc}&lt;br /&gt;
                 2\cdot 1 + 3\cdot 7 &amp;amp; 2\cdot 4 + 3\cdot 2 \\&lt;br /&gt;
                 5\cdot 1 + 6\cdot 7 &amp;amp; 5\cdot 4 + 6\cdot 2 \end{array}\right) &lt;br /&gt;
= \left(\begin{array}{cc}&lt;br /&gt;
                 23 &amp;amp; 14 \\&lt;br /&gt;
                 47 &amp;amp; 32 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us multiply &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Z&amp;lt;/math&amp;gt; from above, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
X Z = \left(\begin{array}{cc}&lt;br /&gt;
                 0 &amp;amp; 1 \\&lt;br /&gt;
                 1 &amp;amp; 0 \end{array}\right)&lt;br /&gt;
      \left(\begin{array}{cc}&lt;br /&gt;
                 1 &amp;amp; 0 \\&lt;br /&gt;
                 0 &amp;amp; -1 \end{array}\right) &lt;br /&gt;
= \left(\begin{array}{cc}&lt;br /&gt;
                 0\cdot 1 + 1\cdot 0 &amp;amp; 0\cdot 0 + 1\cdot (-1) \\&lt;br /&gt;
                 1\cdot 1 + 0\cdot 0 &amp;amp; 1\cdot 0 + 0\cdot (-1) \end{array}\right) &lt;br /&gt;
= \left(\begin{array}{cc}&lt;br /&gt;
                 0 &amp;amp; -1 \\&lt;br /&gt;
                 1 &amp;amp; 0 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
It is helpful to notice that this is &amp;lt;math&amp;gt;-iY&amp;lt;/math&amp;gt;; that is &amp;lt;math&amp;gt;XZ = -i Y&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Notation===&lt;br /&gt;
&lt;br /&gt;
There are many aspects of linear algebra that are quite useful in&lt;br /&gt;
quantum mechanics.  We will briefly discuss several of these aspects here.&lt;br /&gt;
First, some definitions and properties are provided that will&lt;br /&gt;
be useful.  Some familiarity with matrices&lt;br /&gt;
will be assumed, although many basic definitions are also included.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us denote some &amp;lt;math&amp;gt;m\times n\,\!&amp;lt;/math&amp;gt; matrix by &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;.  The set of all &amp;lt;math&amp;gt;m\times&lt;br /&gt;
n\,\!&amp;lt;/math&amp;gt; matrices with real entries is &amp;lt;math&amp;gt;M(m\times n,\mathbb{R})\,\!&amp;lt;/math&amp;gt;.  Such matrices&lt;br /&gt;
are said to be real since they have all real entries.  Similarly, the&lt;br /&gt;
set of &amp;lt;math&amp;gt;m\times n\,\!&amp;lt;/math&amp;gt; complex matrices is &amp;lt;math&amp;gt;M(m\times n,\mathbb{C})\,\!&amp;lt;/math&amp;gt;.  For the&lt;br /&gt;
set of square &amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; complex matrices, we simply write&lt;br /&gt;
&amp;lt;math&amp;gt;M(n,\mathbb{C})\,\!&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will also refer to the set of matrix elements, &amp;lt;math&amp;gt;a_{ij}\,\!&amp;lt;/math&amp;gt;, where the&lt;br /&gt;
first index (&amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; in this case) labels the row and the second &amp;lt;math&amp;gt;(j)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
labels the column.  Thus the element &amp;lt;math&amp;gt;a_{23}\,\!&amp;lt;/math&amp;gt; is the element in the&lt;br /&gt;
second row and third column.  A comma is inserted if there is some&lt;br /&gt;
ambiguity.  For example, in a large matrix the element in the&lt;br /&gt;
2nd row and 12th&lt;br /&gt;
column is written as &amp;lt;math&amp;gt;a_{2,12}\,\!&amp;lt;/math&amp;gt; to distinguish between the&lt;br /&gt;
21st row and 2nd column.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The Identity Matrix===&lt;br /&gt;
&lt;br /&gt;
An identity matrix has the property that when it is multiplied by any matrix, that matrix is unchanged.  That is, for any matrix &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbb{I}A = A\mathbb{I} = A.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Such an identity matrix always has ones along the diagonal and zeroes everywhere else.  For example, the &amp;lt;math&amp;gt;3 \times 3\,\!&amp;lt;/math&amp;gt; identity matrix is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbb{I} = \left(\begin{array}{ccc}&lt;br /&gt;
        1 &amp;amp; 0 &amp;amp; 0 \\&lt;br /&gt;
        0 &amp;amp; 1 &amp;amp; 0 \\&lt;br /&gt;
        0 &amp;amp; 0 &amp;amp; 1 \end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
It is straight-forward to verify that any &amp;lt;math&amp;gt;3 \times 3\,\!&amp;lt;/math&amp;gt; matrix is not changed when multiplied by the identity matrix.&lt;br /&gt;
&lt;br /&gt;
===Complex Conjugate===&lt;br /&gt;
&lt;br /&gt;
The ''complex conjugate of a matrix'' &amp;lt;!-- \index{complex conjugate!of a matrix}--&amp;gt;&lt;br /&gt;
is the matrix with each element replaced by its complex conjugate.  In&lt;br /&gt;
other words, to take the complex conjugate of a matrix, one takes the&lt;br /&gt;
complex conjugate of each entry in the matrix.  We denote the complex&lt;br /&gt;
conjugate with a star, like this: &amp;lt;math&amp;gt;A^*\,\!&amp;lt;/math&amp;gt;.  For example,&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
A^* &amp;amp;=&amp;amp; \left(\begin{array}{ccc}&lt;br /&gt;
        a_{11} &amp;amp; a_{12} &amp;amp; a_{13} \\&lt;br /&gt;
        a_{21} &amp;amp; a_{22} &amp;amp; a_{23} \\&lt;br /&gt;
        a_{31} &amp;amp; a_{32} &amp;amp; a_{33} \end{array}\right)^*  \\&lt;br /&gt;
    &amp;amp;=&amp;amp; \left(\begin{array}{ccc}&lt;br /&gt;
        a_{11}^* &amp;amp; a_{12}^* &amp;amp; a_{13}^* \\&lt;br /&gt;
        a_{21}^* &amp;amp; a_{22}^* &amp;amp; a_{23}^* \\&lt;br /&gt;
        a_{31}^* &amp;amp; a_{32}^* &amp;amp; a_{33}^* \end{array}\right). &lt;br /&gt;
\end{align}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.2}}&lt;br /&gt;
(Notice that the notation for a matrix is a capital letter, whereas&lt;br /&gt;
the entries are represented by lower case&lt;br /&gt;
letters.)&lt;br /&gt;
&lt;br /&gt;
===Transpose===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ''transpose'' &amp;lt;!-- \index{transpose} --&amp;gt; of a matrix is the same set of&lt;br /&gt;
elements, but now the first row becomes the first column, the second row&lt;br /&gt;
becomes the second column, and so on.  Thus the rows and columns are&lt;br /&gt;
interchanged.  For example, for a square &amp;lt;math&amp;gt;3\times 3\,\!&amp;lt;/math&amp;gt; matrix, the&lt;br /&gt;
transpose is given by&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
A^T &amp;amp;=&amp;amp; \left(\begin{array}{ccc}&lt;br /&gt;
        a_{11} &amp;amp; a_{12} &amp;amp; a_{13} \\&lt;br /&gt;
        a_{21} &amp;amp; a_{22} &amp;amp; a_{23} \\&lt;br /&gt;
        a_{31} &amp;amp; a_{32} &amp;amp; a_{33} \end{array}\right)^T \\&lt;br /&gt;
    &amp;amp;=&amp;amp; \left(\begin{array}{ccc}&lt;br /&gt;
        a_{11} &amp;amp; a_{21} &amp;amp; a_{31} \\&lt;br /&gt;
        a_{12} &amp;amp; a_{22} &amp;amp; a_{32} \\&lt;br /&gt;
        a_{13} &amp;amp; a_{23} &amp;amp; a_{33} \end{array}\right). &lt;br /&gt;
\end{align}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.3}}&lt;br /&gt;
&lt;br /&gt;
===Hermitian Conjugate===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The complex conjugate and transpose of a matrix is called the ''Hermitian conjugate'', or simply the ''dagger'' of a matrix.  It is called the dagger because the symbol used to denote it,&lt;br /&gt;
(&amp;lt;math&amp;gt;\dagger\,\!&amp;lt;/math&amp;gt;):&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
(A^T)^* = (A^*)^T \equiv A^\dagger.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.4}}&lt;br /&gt;
For our &amp;lt;math&amp;gt;3\times 3\,\!&amp;lt;/math&amp;gt; example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
A^\dagger = \left(\begin{array}{ccc}&lt;br /&gt;
        a_{11}^* &amp;amp; a_{21}^* &amp;amp; a_{31}^* \\&lt;br /&gt;
        a_{12}^* &amp;amp; a_{22}^* &amp;amp; a_{32}^* \\&lt;br /&gt;
        a_{13}^* &amp;amp; a_{23}^* &amp;amp; a_{33}^* \end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If a matrix is its own Hermitian conjugate, i.e. &amp;lt;math&amp;gt;A^\dagger = A\,\!&amp;lt;/math&amp;gt;, then&lt;br /&gt;
we call it a ''Hermitian matrix''.  &amp;lt;!-- \index{Hermitian matrix}--&amp;gt;&lt;br /&gt;
(Clearly this is only possible for square matrices.) Hermitian&lt;br /&gt;
matrices are very important in quantum mechanics since their&lt;br /&gt;
eigenvalues are real.  (See Sec.([[Appendix C - Vectors and Linear Algebra#Eigenvalues and Eigenvectors|Eigenvalues and Eigenvectors]]).)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Index Notation===&lt;br /&gt;
&lt;br /&gt;
Very often we write the product of two matrices &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt; simply as&lt;br /&gt;
&amp;lt;math&amp;gt;AB\,\!&amp;lt;/math&amp;gt; and let &amp;lt;math&amp;gt;C=AB\,\!&amp;lt;/math&amp;gt;.  However, it is also quite useful to write this&lt;br /&gt;
in component form.  In this case, if these are &amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; matrices, the component form will be &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
c_{ik} = \sum_{j=1}^n a_{ij}b_{jk}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
This says that the element in the &amp;lt;math&amp;gt;i^{\mbox{th}}\,\!&amp;lt;/math&amp;gt; row and&lt;br /&gt;
&amp;lt;math&amp;gt;j^{\mbox{th}}\,\!&amp;lt;/math&amp;gt; column of the matrix &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt; is the sum &amp;lt;math&amp;gt;\sum_{j=1}^n&lt;br /&gt;
a_{ij}b_{jk}\,\!&amp;lt;/math&amp;gt;.  The transpose of &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt; has elements&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
c_{ki} = \sum_{j=1}^n a_{kj}b_{ji}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now if we were to transpose &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt; as well, this would read&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
c_{ki} = \sum_{j=1}^n (a_{jk})^T (b_{ij})^T = \sum_{j=1}^n b^T_{ij} a^T_{jk}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
This gives us a way of seeing the general rule that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
C^T = B^TA^T.  &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
It follows that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
C^\dagger = B^\dagger A^\dagger.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===The Trace===&lt;br /&gt;
&lt;br /&gt;
The ''trace'' --&amp;gt;&amp;lt;!-- \index{trace}--&amp;gt;&amp;lt;!-- of a matrix is the sum of the diagonal&lt;br /&gt;
elements and is denoted &amp;lt;math&amp;gt;\mbox{Tr}\,\!&amp;lt;/math&amp;gt;.  So for example, the trace of an&lt;br /&gt;
&amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; matrix &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mbox{Tr}(A) = \sum_{i=1}^n a_{ii}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;.&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some useful properties of the trace are the following:&lt;br /&gt;
#&amp;lt;math&amp;gt;\mbox{Tr}(AB) = \mbox{Tr}(BA)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
#&amp;lt;math&amp;gt;\mbox{Tr}(A + B) = \mbox{Tr}(A) + \mbox{Tr}(B)\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
Using the first of these results,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mbox{Tr}(UAU^{-1}) = \mbox{Tr}(U^{-1}UA) = \mbox{Tr}(A).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
This relation is used so often that we state it here explicitly.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The Determinant===&lt;br /&gt;
&lt;br /&gt;
For a square matrix, the determinant is quite a useful thing.  For&lt;br /&gt;
example, an &amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; matrix is invertible if and only if its&lt;br /&gt;
determinant is not zero.  So let us define the determinant and give&lt;br /&gt;
some properties and examples.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ''determinant''&amp;lt;!--\index{determinant}--&amp;gt; of a &amp;lt;math&amp;gt;2\times 2\,\!&amp;lt;/math&amp;gt; matrix, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
N = \left(\begin{array}{cc}&lt;br /&gt;
                 a &amp;amp; b \\&lt;br /&gt;
                 c &amp;amp; d \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.5}}&lt;br /&gt;
is given by&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\det(N) = ad-bc.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.6}}&lt;br /&gt;
Higher-order determinants can be written in terms of smaller ones in a recursive way.  For example, let &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
M = \left(\begin{array}{ccc}&lt;br /&gt;
                 m_{11} &amp;amp; m_{12} &amp;amp; m_{13} \\&lt;br /&gt;
                 m_{21} &amp;amp; m_{22} &amp;amp; m_{23} \\&lt;br /&gt;
                 m_{31} &amp;amp; m_{32} &amp;amp; m_{33}\end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\det(M) = m_{11}\det\left(\begin{array}{cc}&lt;br /&gt;
                 m_{22} &amp;amp; m_{23} \\&lt;br /&gt;
                 m_{32} &amp;amp; m_{33} \end{array}\right) &lt;br /&gt;
- m_{12}\det\left(\begin{array}{cc}&lt;br /&gt;
                 m_{21} &amp;amp; m_{23} \\&lt;br /&gt;
                 m_{31} &amp;amp; m_{33} \end{array}\right)&lt;br /&gt;
+m_{13}\det\left(\begin{array}{cc}&lt;br /&gt;
                 m_{21} &amp;amp; m_{22} \\&lt;br /&gt;
                 m_{31} &amp;amp; m_{32} \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
The ''determinant''--&amp;gt;&amp;lt;!-- \index{determinant}--&amp;gt;&amp;lt;!-- of a matrix &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; can be&lt;br /&gt;
also be written in terms of its components as &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\det(A) = \sum_{i,j,k,l,...} \epsilon_{ijkl...}&lt;br /&gt;
a_{1i}a_{2j}a_{3k}a_{4l} ...,&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.7}}&lt;br /&gt;
where the symbol &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon_{ijkl...} = \begin{cases}&lt;br /&gt;
                       +1, \; \mbox{if } \; ijkl... = 1234... (\mbox{in order, or any even number of permutations}),\\&lt;br /&gt;
                       -1, \; \mbox{if } \; ijkl... = 2134... (\mbox{or any odd number of permutations}),\\&lt;br /&gt;
                       \;\;\; 0, \; \mbox{otherwise}, \; (\mbox{meaning any index is repeated}).&lt;br /&gt;
                      \end{cases}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.8}}&lt;br /&gt;
&lt;br /&gt;
Let us consider the example of the &amp;lt;math&amp;gt;3\times 3\,\!&amp;lt;/math&amp;gt; matrix &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; given&lt;br /&gt;
above.  The determinant can be calculated by&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\det(A) = \sum_{i,j,k} \epsilon_{ijk}&lt;br /&gt;
a_{1i}a_{2j}a_{3k},&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where, explicitly, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon_{ijk} = \begin{cases}&lt;br /&gt;
                       +1, \;\mbox{if }\; ijk= 123,231,\; \mbox{or}\; 312, (\mbox{These are even permutations of }123),\\&lt;br /&gt;
                       -1, \;\mbox{if }\; ijk = 213,132,\;\mbox{or}\;321(\mbox{These are odd permuations of }123),\\&lt;br /&gt;
                    \;\;\;  0, \; \mbox{otherwise}, \; (\mbox{meaning any index is repeated}),&lt;br /&gt;
                 \end{cases}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.9}}&lt;br /&gt;
so that &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\det(A) &amp;amp;=&amp;amp; \epsilon_{123}a_{11}a_{22}a_{33} &lt;br /&gt;
         +\epsilon_{132}a_{11}a_{23}a_{32}&lt;br /&gt;
         +\epsilon_{231}a_{12}a_{23}a_{31}  \\&lt;br /&gt;
       &amp;amp;&amp;amp;+\epsilon_{213}a_{12}a_{21}a_{33}&lt;br /&gt;
         +\epsilon_{312}a_{13}a_{21}a_{32}&lt;br /&gt;
         +\epsilon_{321}a_{13}a_{22}a_{31}.&lt;br /&gt;
\end{align}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.10}}&lt;br /&gt;
Now given the values of &amp;lt;math&amp;gt;\epsilon_{ijk}\,\!&amp;lt;/math&amp;gt; in [[#eqC.9|Eq. C.9]],&lt;br /&gt;
this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\det(A) = a_{11}a_{22}a_{33} - a_{11}a_{23}a_{32} + a_{12}a_{23}a_{31} &lt;br /&gt;
         - a_{12}a_{21}a_{33} + a_{13}a_{21}a_{32} - a_{13}a_{22}a_{31}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The determinant has several properties that are useful to know.  A few are listed here:  &lt;br /&gt;
#The determinant of the transpose of a matrix is the same as the determinant of the matrix itself: &amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \det(A) = \det(A^T).\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
#The determinant of a product is the product of determinants:    &amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \det(AB) = \det(A)\det(B).\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
From this last property, another specific property can be derived.&lt;br /&gt;
If we take the determinant of the product of a matrix and its&lt;br /&gt;
inverse, we find&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\det(U U^{-1}) = \det(U)\det(U^{-1}) = \det(\mathbb{I}) = 1,&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
since the determinant of the identity is one.  This implies that&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\det(U^{-1}) = \frac{1}{\det(U)}.  &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===The Inverse of a Matrix===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inverse &amp;lt;!-- \index{inverse}--&amp;gt; of an &amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; square matrix &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; is another &amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; square matrix,&lt;br /&gt;
denoted &amp;lt;math&amp;gt;A^{-1}\,\!&amp;lt;/math&amp;gt;, such that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
AA^{-1} = A^{-1}A = \mathbb{I},&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbb{I}\,\!&amp;lt;/math&amp;gt; is the identity matrix consisting of zeroes everywhere&lt;br /&gt;
except the diagonal, which has ones.  For example, the &amp;lt;math&amp;gt;3\times 3\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
identity matrix is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbb{I}_3 = \left(\begin{array}{ccc} 1 &amp;amp; 0 &amp;amp; 0 \\ 0 &amp;amp; 1 &amp;amp; 0 \\ 0 &amp;amp; 0 &amp;amp; 1&lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is important to note that ''a matrix is invertible if and only if its determinant is nonzero.''  Thus one only needs to calculate the&lt;br /&gt;
determinant to see if a matrix has an inverse or not.&lt;br /&gt;
&lt;br /&gt;
===Hermitian Matrices===&lt;br /&gt;
&lt;br /&gt;
Hermitian matrices are important for a variety of reasons; primarily, it is because their eigenvalues are real.  Thus Hermitian matrices are used to represent density operators and density matrices, as well as Hamiltonians.  The density operator is a positive semi-definite Hermitian matrix (it has no negative eigenvalues) that has its trace equal to one.  In any case, it is often desirable to represent &amp;lt;math&amp;gt;N\times N\,\!&amp;lt;/math&amp;gt; Hermitian matrices using a real linear combination of a complete set of &amp;lt;math&amp;gt;N\times N\,\!&amp;lt;/math&amp;gt; Hermitian matrices.  A set of &amp;lt;math&amp;gt;N\times N\,\!&amp;lt;/math&amp;gt; Hermitian matrices is complete if any Hermitian matrix can be represented in terms of the set.  Let &amp;lt;math&amp;gt;\{\lambda_i\}\,\!&amp;lt;/math&amp;gt; be a complete set.  Then any Hermitian matrix can be represented by &amp;lt;math&amp;gt;\sum_i a_i \lambda_i\,\!&amp;lt;/math&amp;gt;.  The set can always be taken to be a set of traceless Hermitian matrices and the identity matrix.  This is convenient for the density matrix (its trace is one) because the identity part of an &amp;lt;math&amp;gt;N\times N\,\!&amp;lt;/math&amp;gt; Hermitian matrix is &amp;lt;math&amp;gt;(1/N)\mathbb{I}\,\!&amp;lt;/math&amp;gt; if we take all others in the set to be traceless.  For the Hamiltonian, the set consists of a traceless part and an identity part where identity part just gives an overall phase which can often be neglected.  &lt;br /&gt;
&lt;br /&gt;
One example of such a set which is extremely useful is the set of Pauli matrices.  These are discussed in detail in [[Chapter 2 - Qubits and Collections of Qubits|Chapter 2]] and in particular in [[Chapter 2 - Qubits and Collections of Qubits#The Pauli Matrices|Section 2.4]].&lt;br /&gt;
&lt;br /&gt;
===Unitary Matrices===&lt;br /&gt;
&lt;br /&gt;
A ''unitary matrix'' &amp;lt;!-- \index{unitary matrix} --&amp;gt; &amp;lt;math&amp;gt;U\,\!&amp;lt;/math&amp;gt; is one whose&lt;br /&gt;
inverse is also its Hermitian conjugate, &amp;lt;math&amp;gt;U^\dagger = U^{-1}\,\!&amp;lt;/math&amp;gt;, so that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
U^\dagger U = UU^\dagger = \mathbb{I}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If the unitary matrix also has determinant one, it is said to be ''a special unitary matrix''.&amp;lt;!-- \index{special unitary matrix}--&amp;gt;  The set of&lt;br /&gt;
&amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; unitary matrices is denoted&lt;br /&gt;
&amp;lt;math&amp;gt;U(n)\,\!&amp;lt;/math&amp;gt; and the set of special unitary matrices is denoted &amp;lt;math&amp;gt;SU(n)\,\!&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
Unitary matrices are particularly important in quantum mechanics&lt;br /&gt;
because they describe the evolution of quantum states.&lt;br /&gt;
They have this ability due to the fact that the rows and columns of unitary matrices (viewed as vectors) are orthonormal. (This is made clear in an example below.)  This means that when&lt;br /&gt;
they act on a basis vector of the form&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt; \left\vert j\right\rangle = &lt;br /&gt;
 \left(\begin{array}{c} 0 \\ 0 \\ \vdots \\ 1 \\ \vdots \\ 0 &lt;br /&gt;
  \end{array}\right), &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.11}}&lt;br /&gt;
with a single 1, in say the &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt;th spot, and zeroes everywhere else, the result is a normalized complex vector.  Acting on a set of&lt;br /&gt;
orthonormal vectors of the form given in Eq.[[#eqC.11|(C.11)]]&lt;br /&gt;
will produce another orthonormal set.  &lt;br /&gt;
&lt;br /&gt;
Let us consider the example of a &amp;lt;math&amp;gt;2\times 2\,\!&amp;lt;/math&amp;gt; unitary matrix, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
U = \left(\begin{array}{cc} &lt;br /&gt;
              a &amp;amp; b \\ &lt;br /&gt;
              c &amp;amp; d &lt;br /&gt;
           \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.12}}&lt;br /&gt;
The inverse of this matrix is the Hermitian conjugate, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
U ^{-1} = U^\dagger = \left(\begin{array}{cc} &lt;br /&gt;
                         a^* &amp;amp; c^* \\ &lt;br /&gt;
                         b^* &amp;amp; d^* &lt;br /&gt;
                       \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.13}}&lt;br /&gt;
provided that the matrix &amp;lt;math&amp;gt;U\,\!&amp;lt;/math&amp;gt; satisfies the constraints&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
|a|^2 + |b|^2 = 1, \; &amp;amp; \; ac^*+bd^* =0  \\&lt;br /&gt;
ca^*+db^*=0,  \;      &amp;amp;  \; |c|^2 + |d|^2 =1,&lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;|C.14}}&lt;br /&gt;
and&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
|a|^2 + |c|^2 = 1, \; &amp;amp; \; ba^*+dc^* =0  \\&lt;br /&gt;
b^*a+d^*c=0,  \;      &amp;amp;  \; |b|^2 + |d|^2 =1.&lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;|C.15}}&lt;br /&gt;
Looking at each row as a vector, the constraints in&lt;br /&gt;
Eq.[[#eqC.14|(C.14)]] are the orthonormality conditions for the&lt;br /&gt;
vectors forming the rows.  Similarly, the constraints in&lt;br /&gt;
Eq.[[#eqC.15|(C.15)]] are the orthonormality conditions for the&lt;br /&gt;
vectors forming the columns.&lt;br /&gt;
&lt;br /&gt;
===Inner and Outer Products===&lt;br /&gt;
&lt;br /&gt;
It is very helpful to note that a column vector with &amp;lt;math&amp;gt;n\times 1\,\!&amp;lt;/math&amp;gt; matrix.  A row vector is a &amp;lt;math&amp;gt;1\times n\,\!&amp;lt;/math&amp;gt; matrix.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now that we have a definition for the Hermitian conjugate, consider the&lt;br /&gt;
case for a &amp;lt;math&amp;gt;n\times 1\,\!&amp;lt;/math&amp;gt; matrix, i.e. a vector.  In Dirac notation, this is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert\psi\right\rangle = \left(\begin{array}{c} \alpha \\ \beta&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The Hermitian conjugate comes up so often that we use the following&lt;br /&gt;
notation for vectors:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\langle \psi\right\vert = (\left\vert\psi\right\rangle)^\dagger = \left(\begin{array}{c} \alpha \\&lt;br /&gt;
    \beta \end{array}\right)^\dagger &lt;br /&gt;
 = \left( \alpha^*, \; \beta^* \right).  &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
This is a row vector and in ''Dirac notation'' is denoted by the symbol &amp;lt;math&amp;gt;\left\langle\cdot \right\vert\!&amp;lt;/math&amp;gt;, which is called a ''bra''.  Let us consider a second complex vector, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert\phi\right\rangle = \left(\begin{array}{c} \gamma \\ \delta&lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The ''inner product'' &amp;lt;!-- \index{inner product}--&amp;gt; between &amp;lt;math&amp;gt;\left\vert\psi\right\rangle\,\!&amp;lt;/math&amp;gt; and &lt;br /&gt;
&amp;lt;math&amp;gt;\left\vert\phi\right\rangle\,\!&amp;lt;/math&amp;gt; is computed as follows:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 \left\langle\phi\mid\psi\right\rangle &amp;amp; \equiv (\left\vert\phi\right\rangle)^\dagger\left\vert\psi \right\rangle   \\&lt;br /&gt;
                  &amp;amp;= (\gamma^*,\delta^*) \left(\begin{array}{c} \alpha \\ \beta&lt;br /&gt;
  \end{array}\right)   \\&lt;br /&gt;
                  &amp;amp;= \gamma^*\alpha + \delta^*\beta.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;|C.16}}&lt;br /&gt;
The vector &amp;lt;math&amp;gt;\left|\cdot \right\rangle\!&amp;lt;/math&amp;gt; is called a ''ket''.  When you put a ''bra'' together with a ''ket'', you get a ''bracket''.  This is the origin of the terms.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ''outer product'' between these same two vectors is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
\begin{align} (\left\vert \phi \right\rangle )(\left\vert \psi \right\rangle)^\dagger &lt;br /&gt;
 &amp;amp;=  \left\vert \phi \right\rangle \left\langle \psi \right\vert \\&lt;br /&gt;
&amp;amp;= \left(\begin{array}{c} \gamma \\ \delta \end{array}\right)&lt;br /&gt;
\left(\begin{array}{c} \alpha \\ \beta   \end{array}\right)^\dagger \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \gamma \\ \delta \end{array}\right) \left(\begin{array}{cc} \alpha^* &amp;amp; \beta^*   \end{array}\right) \\  &lt;br /&gt;
           &amp;amp;=   \left(\begin{array}{cc} \gamma\alpha^* &amp;amp; \gamma\beta^* \\  \delta\alpha^* &amp;amp; \delta\beta^*  \end{array}\right) \end{align}\;\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This type of product is also called a ''Kronecker product'' or a ''tensor product''.  Vectors and matrices can be considered special cases of the more general class of ''tensors''.  A tensor can have any number of indices indicating rows, columns, and depth, for the case of a three index tensor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Unitary Matrices===&lt;br /&gt;
&lt;br /&gt;
A ''unitary matrix'' &amp;lt;!-- \index{unitary matrix} --&amp;gt; &amp;lt;math&amp;gt;U\,\!&amp;lt;/math&amp;gt; is one whose&lt;br /&gt;
inverse is also its Hermitian conjugate, &amp;lt;math&amp;gt;U^\dagger = U^{-1}\,\!&amp;lt;/math&amp;gt;, so that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
U^\dagger U = UU^\dagger = \mathbb{I}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If the unitary matrix also has determinant one, it is said to be ''a special unitary matrix''.&amp;lt;!-- \index{special unitary matrix}--&amp;gt;  The set of&lt;br /&gt;
&amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; unitary matrices is denoted&lt;br /&gt;
&amp;lt;math&amp;gt;U(n)\,\!&amp;lt;/math&amp;gt; and the set of special unitary matrices is denoted &amp;lt;math&amp;gt;SU(n)\,\!&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
Unitary matrices are particularly important in quantum mechanics&lt;br /&gt;
because they describe the evolution of quantum states.&lt;br /&gt;
They have this ability due to the fact that the rows and columns of unitary matrices (viewed as vectors) are orthonormal. (This is made clear in an example below.)  This means that when&lt;br /&gt;
they act on a basis vector of the form&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt; \left\vert j\right\rangle = &lt;br /&gt;
 \left(\begin{array}{c} 0 \\ 0 \\ \vdots \\ 1 \\ \vdots \\ 0 &lt;br /&gt;
  \end{array}\right), &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.11}}&lt;br /&gt;
with a single 1, in say the &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt;th spot, and zeroes everywhere else, the result is a normalized complex vector.  Acting on a set of&lt;br /&gt;
orthonormal vectors of the form given in Eq.[[#eqC.11|(C.11)]]&lt;br /&gt;
will produce another orthonormal set.  &lt;br /&gt;
&lt;br /&gt;
Let us consider the example of a &amp;lt;math&amp;gt;2\times 2\,\!&amp;lt;/math&amp;gt; unitary matrix, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
U = \left(\begin{array}{cc} &lt;br /&gt;
              a &amp;amp; b \\ &lt;br /&gt;
              c &amp;amp; d &lt;br /&gt;
           \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.12}}&lt;br /&gt;
The inverse of this matrix is the Hermitian conjugate, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
U ^{-1} = U^\dagger = \left(\begin{array}{cc} &lt;br /&gt;
                         a^* &amp;amp; c^* \\ &lt;br /&gt;
                         b^* &amp;amp; d^* &lt;br /&gt;
                       \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.13}}&lt;br /&gt;
provided that the matrix &amp;lt;math&amp;gt;U\,\!&amp;lt;/math&amp;gt; satisfies the constraints&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
|a|^2 + |b|^2 = 1, \; &amp;amp; \; ac^*+bd^* =0  \\&lt;br /&gt;
ca^*+db^*=0,  \;      &amp;amp;  \; |c|^2 + |d|^2 =1,&lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;|C.14}}&lt;br /&gt;
and&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
|a|^2 + |c|^2 = 1, \; &amp;amp; \; ba^*+dc^* =0  \\&lt;br /&gt;
b^*a+d^*c=0,  \;      &amp;amp;  \; |b|^2 + |d|^2 =1.&lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;|C.15}}&lt;br /&gt;
Looking at each row as a vector, the constraints in&lt;br /&gt;
Eq.[[#eqC.14|(C.14)]] are the orthonormality conditions for the&lt;br /&gt;
vectors forming the rows.  Similarly, the constraints in&lt;br /&gt;
Eq.[[#eqC.15|(C.15)]] are the orthonormality conditions for the&lt;br /&gt;
vectors forming the columns.&lt;br /&gt;
&lt;br /&gt;
Unitary matrices are very important because the preserve the magnitude of a complex vector.  In other words, if if the magnitude of a vector is one, for example &amp;lt;math&amp;gt; \big\vert\big\vert  \left\vert\psi\right\rangle\big\vert\big\vert = 1\,\!&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt; \big\vert\big\vert  U\left\vert\psi\right\rangle   \big\vert\big\vert = 1\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Matrices:_A_beginner%27s_guide&amp;diff=3096</id>
		<title>Matrices: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Matrices:_A_beginner%27s_guide&amp;diff=3096"/>
		<updated>2023-02-13T20:40:52Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Hermitian Conjugate */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
==Matrices as Operations on Quantum States==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The states of a quantum system can be written as&lt;br /&gt;
{{Equation | &amp;lt;math&amp;gt;\left\vert{\psi}\right\rangle = \alpha_0\left\vert{0}\right\rangle + \alpha_1\left\vert{1}\right\rangle,&amp;lt;/math&amp;gt; |m.1}}&lt;br /&gt;
where &amp;lt;math&amp;gt;\alpha_0\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\alpha_1\,\!&amp;lt;/math&amp;gt; are complex numbers.  These states are used to represent quantum systems that can be used to store information.  Because &amp;lt;math&amp;gt;|\alpha_0|^2\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;|\alpha_1|^2 \,\!&amp;lt;/math&amp;gt; are probabilities and must add up to one, &lt;br /&gt;
{{Equation | &amp;lt;math&amp;gt;|\alpha_0|^2 + |\alpha_1|^2 = 1.\,\!&amp;lt;/math&amp;gt; |m.2}}&lt;br /&gt;
This means that this vector is ''normalized,'' i.e. its magnitude (or length) is one.  ([[Appendix B - Complex Numbers|Appendix B]] contains a basic introduction to complex numbers.) The basis vectors for such a space are the two vectors &amp;lt;math&amp;gt;\left\vert{0}\right\rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\left\vert{1}\right\rangle&amp;lt;/math&amp;gt; which are called ''computational basis'' states. These two basis states are represented by &lt;br /&gt;
{{Equation | &amp;lt;math&amp;gt;\left\vert{0}\right\rangle = \left(\begin{array}{c} 1 \\ 0\end{array}\right), \;\;\left\vert{1}\right\rangle = \left(\begin{array}{c} 0 \\ 1\end{array}\right).&amp;lt;/math&amp;gt; |m.3}}&lt;br /&gt;
Thus, the qubit state can be rewritten as&lt;br /&gt;
{{Equation |&amp;lt;math&amp;gt;\left\vert{\psi}\right\rangle = \left(\begin{array}{c} \alpha_0 \\ \alpha_1\end{array}\right).&amp;lt;/math&amp;gt; |m.4}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A very common operation in computing is to change a &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to a &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; and a &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; to a &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;.  The operation that does this is denoted a &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;.  This operator does both.  It changes &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; a &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;.  So we write, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
X \left|0\right\rangle = \left|1\right\rangle, \mbox{ and } X \left|1\right\rangle = \left|0\right\rangle.  &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
Notice that this means that acting with &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; again means that you get back the original state.  Matrices, which are arrays of numbers, are the mathematical incarnation of these operations.  It turns out that matrices are the way to represent almost all of operations in quantum computing and this will be shown in this section.  &lt;br /&gt;
&lt;br /&gt;
Let us list some important matrices that will be used as examples below:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
X = \left(\begin{array}{cc}&lt;br /&gt;
                 0 &amp;amp; 1 \\&lt;br /&gt;
                 1 &amp;amp; 0 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
Z = \left(\begin{array}{cc}&lt;br /&gt;
                 1 &amp;amp; 0 \\&lt;br /&gt;
                 0 &amp;amp; -1 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.2}}&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
Y = \left(\begin{array}{cc}&lt;br /&gt;
                 0 &amp;amp; -i \\&lt;br /&gt;
                 i &amp;amp; 0 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.3}}&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
H = \left(\begin{array}{cc}&lt;br /&gt;
                 1/\sqrt{2} &amp;amp; 1/\sqrt{2} \\&lt;br /&gt;
                 1/\sqrt{2} &amp;amp; -1/\sqrt{2} \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.3}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These all have the general form&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
M = \left(\begin{array}{cc}&lt;br /&gt;
                 a &amp;amp; b \\&lt;br /&gt;
                 c &amp;amp; d \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.4}}&lt;br /&gt;
where the numbers &amp;lt;math&amp;gt;a,b,c,d&amp;lt;/math&amp;gt; can be complex numbers.&lt;br /&gt;
&lt;br /&gt;
==Matrices==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Basic Definition and Representations===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A matrix is an array of numbers of the following form with columns, col. 1, col. 2, etc., and rows, row 1, row 2, etc.  The entries for the matrix are labeled by the row and column.  So the entry of a matrix &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; will be &amp;lt;math&amp;gt;a_{ij}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; is the row and &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; is the column where the number &amp;lt;math&amp;gt;a_{ij}&amp;lt;/math&amp;gt; is found.  This is how it looks:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
A = \begin{array}{c} {\scriptstyle{row \; 1}}  \\ {\scriptstyle{row \; 2}}  \\  \vdots  \\  {\scriptstyle{row \; m}}\end{array} \overset{{\scriptstyle{col. \; 1 }} \;\;\; {\scriptstyle{col.\; 2 }} \;\;\;\; {\displaystyle{\cdots}} \;\;\;\;\; {\scriptstyle{col.\; n }}}{\left(\begin{array}{cccc} &lt;br /&gt;
a_{11} &amp;amp; a_{12} &amp;amp; \cdots &amp;amp; a_{1n} \\ &lt;br /&gt;
a_{21} &amp;amp; a_{22} &amp;amp; \cdots &amp;amp; a_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
a_{m1} &amp;amp; a_{m2} &amp;amp; \cdots &amp;amp; a_{mn}  &lt;br /&gt;
\end{array}\right)}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notice that we represent the whole matrix with a capital letter &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;.  The matrix &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; has &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; rows and &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; columns, so we say that &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; is an &amp;lt;math&amp;gt;m\times n&amp;lt;/math&amp;gt; matrix.  We could also represent it using all of the entries, this array of numbers seen in the equation above.  Another way to represent it is to write it as &amp;lt;math&amp;gt;(a_{ij})&amp;lt;/math&amp;gt;.  By this we mean that it is the array of numbers in the parentheses.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
The matrix above, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
X = \left(\begin{array}{cc}&lt;br /&gt;
                 0 &amp;amp; 1 \\&lt;br /&gt;
                 1 &amp;amp; 0 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
is a &amp;lt;math&amp;gt;2\times 2&amp;lt;/math&amp;gt; matrix.  &lt;br /&gt;
&lt;br /&gt;
The matrix &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
L = \left(\begin{array}{ccc}&lt;br /&gt;
                 3 &amp;amp; 2 &amp;amp; 5 \\&lt;br /&gt;
                 1 &amp;amp; 0 &amp;amp; 4\end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
is &amp;lt;math&amp;gt;2\times 3&amp;lt;/math&amp;gt; and &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
K = \left(\begin{array}{cc}&lt;br /&gt;
                 2 &amp;amp; 5  \\&lt;br /&gt;
                 1 &amp;amp; 4  \\&lt;br /&gt;
                 7 &amp;amp; 0  \\&lt;br /&gt;
                 8 &amp;amp; 3\end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
is a &amp;lt;math&amp;gt;4\times 2&amp;lt;/math&amp;gt; matrix.&lt;br /&gt;
&lt;br /&gt;
===Matrix Addition===&lt;br /&gt;
&lt;br /&gt;
Matrix addition is performed by adding each element of one matrix with the corresponding element in another matrix.  Let our two matrices be &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as above, and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;.  To represent these in an array, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
A = \left(\begin{array}{cccc} &lt;br /&gt;
a_{11} &amp;amp; a_{12} &amp;amp; \cdots &amp;amp; a_{1n} \\ &lt;br /&gt;
a_{21} &amp;amp; a_{22} &amp;amp; \cdots &amp;amp; a_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
a_{m1} &amp;amp; a_{m2} &amp;amp; \cdots &amp;amp; a_{mn}  &lt;br /&gt;
\end{array}\right), \;\;\;\;&lt;br /&gt;
B = \left(\begin{array}{cccc} &lt;br /&gt;
b_{11} &amp;amp; b_{12} &amp;amp; \cdots &amp;amp; b_{1n} \\ &lt;br /&gt;
b_{21} &amp;amp; b_{22} &amp;amp; \cdots &amp;amp; b_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
b_{m1} &amp;amp; b_{m2} &amp;amp; \cdots &amp;amp; b_{mn}  &lt;br /&gt;
\end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The the sum, which we could call &amp;lt;math&amp;gt;C= A+B&amp;lt;/math&amp;gt; is given by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
A + B = \left(\begin{array}{cccc} &lt;br /&gt;
a_{11} &amp;amp; a_{12} &amp;amp; \cdots &amp;amp; a_{1n} \\ &lt;br /&gt;
a_{21} &amp;amp; a_{22} &amp;amp; \cdots &amp;amp; a_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
a_{m1} &amp;amp; a_{m2} &amp;amp; \cdots &amp;amp; a_{mn}  &lt;br /&gt;
\end{array}\right) &lt;br /&gt;
+ &lt;br /&gt;
\left(\begin{array}{cccc} &lt;br /&gt;
b_{11} &amp;amp; b_{12} &amp;amp; \cdots &amp;amp; b_{1n} \\ &lt;br /&gt;
b_{21} &amp;amp; b_{22} &amp;amp; \cdots &amp;amp; b_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
b_{m1} &amp;amp; b_{m2} &amp;amp; \cdots &amp;amp; b_{mn}  &lt;br /&gt;
\end{array}\right) &lt;br /&gt;
=&lt;br /&gt;
\left(\begin{array}{cccc} &lt;br /&gt;
a_{11} + b_{11} &amp;amp; a_{12}+b_{12} &amp;amp; \cdots &amp;amp; a_{1n}+b_{1n} \\ &lt;br /&gt;
a_{21}+b_{21} &amp;amp; a_{22}+b_{22} &amp;amp; \cdots &amp;amp; a_{2n}+b_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
a_{m1}+b_{m1} &amp;amp; a_{m2}+b_{m2} &amp;amp; \cdots &amp;amp; a_{mn}+b_{mn}  &lt;br /&gt;
\end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In other words, the sum gives &amp;lt;math&amp;gt;c_{11} = a_{11} + b_{11}\,\!&amp;lt;/math&amp;gt;, etc.  We add them component by component like we do vectors.&lt;br /&gt;
&lt;br /&gt;
Change the font color or type in order to highlight the entries that are being added.&lt;br /&gt;
&lt;br /&gt;
===Multiplying a Matrix by a Number ===&lt;br /&gt;
&lt;br /&gt;
When multiplying a matrix by a number, each element of the matrix gets multiplied by that number.  Seem familiar?  This is what was done for vectors.  &lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; be some number.  Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
kA = k\left(\begin{array}{cccc} &lt;br /&gt;
a_{11} &amp;amp; a_{12} &amp;amp; \cdots &amp;amp; a_{1n} \\ &lt;br /&gt;
a_{21} &amp;amp; a_{22} &amp;amp; \cdots &amp;amp; a_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
a_{m1} &amp;amp; a_{m2} &amp;amp; \cdots &amp;amp; a_{mn}  &lt;br /&gt;
\end{array}\right) &lt;br /&gt;
= \left(\begin{array}{cccc} &lt;br /&gt;
ka_{11} &amp;amp; ka_{12} &amp;amp; \cdots &amp;amp; ka_{1n} \\ &lt;br /&gt;
ka_{21} &amp;amp; ka_{22} &amp;amp; \cdots &amp;amp; ka_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
ka_{m1} &amp;amp; ka_{m2} &amp;amp; \cdots &amp;amp; ka_{mn}  &lt;br /&gt;
\end{array}\right) &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Multiplying two Matrices===&lt;br /&gt;
&lt;br /&gt;
The the product, which we could call &amp;lt;math&amp;gt;C= AB&amp;lt;/math&amp;gt; is given by &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:MatrixMult2.jpg|600px]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
A = \left(\begin{array}{cc}&lt;br /&gt;
                 2 &amp;amp; 3 \\&lt;br /&gt;
                 5 &amp;amp; 6 \end{array}\right),&lt;br /&gt;
\mbox{ and }&lt;br /&gt;
B = \left(\begin{array}{cc}&lt;br /&gt;
                 1 &amp;amp; 4 \\&lt;br /&gt;
                 7 &amp;amp; 2 \end{array}\right)&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
Then &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
A B = \left(\begin{array}{cc}&lt;br /&gt;
                 2 &amp;amp; 3 \\&lt;br /&gt;
                 5 &amp;amp; 6 \end{array}\right)\left(\begin{array}{cc}&lt;br /&gt;
                 1 &amp;amp; 4 \\&lt;br /&gt;
                 7 &amp;amp; 2 \end{array}\right) &lt;br /&gt;
= \left(\begin{array}{cc}&lt;br /&gt;
                 2\cdot 1 + 3\cdot 7 &amp;amp; 2\cdot 4 + 3\cdot 2 \\&lt;br /&gt;
                 5\cdot 1 + 6\cdot 7 &amp;amp; 5\cdot 4 + 6\cdot 2 \end{array}\right) &lt;br /&gt;
= \left(\begin{array}{cc}&lt;br /&gt;
                 23 &amp;amp; 14 \\&lt;br /&gt;
                 47 &amp;amp; 32 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us multiply &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Z&amp;lt;/math&amp;gt; from above, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
X Z = \left(\begin{array}{cc}&lt;br /&gt;
                 0 &amp;amp; 1 \\&lt;br /&gt;
                 1 &amp;amp; 0 \end{array}\right)&lt;br /&gt;
      \left(\begin{array}{cc}&lt;br /&gt;
                 1 &amp;amp; 0 \\&lt;br /&gt;
                 0 &amp;amp; -1 \end{array}\right) &lt;br /&gt;
= \left(\begin{array}{cc}&lt;br /&gt;
                 0\cdot 1 + 1\cdot 0 &amp;amp; 0\cdot 0 + 1\cdot (-1) \\&lt;br /&gt;
                 1\cdot 1 + 0\cdot 0 &amp;amp; 1\cdot 0 + 0\cdot (-1) \end{array}\right) &lt;br /&gt;
= \left(\begin{array}{cc}&lt;br /&gt;
                 0 &amp;amp; -1 \\&lt;br /&gt;
                 1 &amp;amp; 0 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
It is helpful to notice that this is &amp;lt;math&amp;gt;-iY&amp;lt;/math&amp;gt;; that is &amp;lt;math&amp;gt;XZ = -i Y&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Notation===&lt;br /&gt;
&lt;br /&gt;
There are many aspects of linear algebra that are quite useful in&lt;br /&gt;
quantum mechanics.  We will briefly discuss several of these aspects here.&lt;br /&gt;
First, some definitions and properties are provided that will&lt;br /&gt;
be useful.  Some familiarity with matrices&lt;br /&gt;
will be assumed, although many basic definitions are also included.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us denote some &amp;lt;math&amp;gt;m\times n\,\!&amp;lt;/math&amp;gt; matrix by &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;.  The set of all &amp;lt;math&amp;gt;m\times&lt;br /&gt;
n\,\!&amp;lt;/math&amp;gt; matrices with real entries is &amp;lt;math&amp;gt;M(m\times n,\mathbb{R})\,\!&amp;lt;/math&amp;gt;.  Such matrices&lt;br /&gt;
are said to be real since they have all real entries.  Similarly, the&lt;br /&gt;
set of &amp;lt;math&amp;gt;m\times n\,\!&amp;lt;/math&amp;gt; complex matrices is &amp;lt;math&amp;gt;M(m\times n,\mathbb{C})\,\!&amp;lt;/math&amp;gt;.  For the&lt;br /&gt;
set of square &amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; complex matrices, we simply write&lt;br /&gt;
&amp;lt;math&amp;gt;M(n,\mathbb{C})\,\!&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will also refer to the set of matrix elements, &amp;lt;math&amp;gt;a_{ij}\,\!&amp;lt;/math&amp;gt;, where the&lt;br /&gt;
first index (&amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; in this case) labels the row and the second &amp;lt;math&amp;gt;(j)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
labels the column.  Thus the element &amp;lt;math&amp;gt;a_{23}\,\!&amp;lt;/math&amp;gt; is the element in the&lt;br /&gt;
second row and third column.  A comma is inserted if there is some&lt;br /&gt;
ambiguity.  For example, in a large matrix the element in the&lt;br /&gt;
2nd row and 12th&lt;br /&gt;
column is written as &amp;lt;math&amp;gt;a_{2,12}\,\!&amp;lt;/math&amp;gt; to distinguish between the&lt;br /&gt;
21st row and 2nd column.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The Identity Matrix===&lt;br /&gt;
&lt;br /&gt;
An identity matrix has the property that when it is multiplied by any matrix, that matrix is unchanged.  That is, for any matrix &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbb{I}A = A\mathbb{I} = A.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Such an identity matrix always has ones along the diagonal and zeroes everywhere else.  For example, the &amp;lt;math&amp;gt;3 \times 3\,\!&amp;lt;/math&amp;gt; identity matrix is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbb{I} = \left(\begin{array}{ccc}&lt;br /&gt;
        1 &amp;amp; 0 &amp;amp; 0 \\&lt;br /&gt;
        0 &amp;amp; 1 &amp;amp; 0 \\&lt;br /&gt;
        0 &amp;amp; 0 &amp;amp; 1 \end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
It is straight-forward to verify that any &amp;lt;math&amp;gt;3 \times 3\,\!&amp;lt;/math&amp;gt; matrix is not changed when multiplied by the identity matrix.&lt;br /&gt;
&lt;br /&gt;
===Complex Conjugate===&lt;br /&gt;
&lt;br /&gt;
The ''complex conjugate of a matrix'' &amp;lt;!-- \index{complex conjugate!of a matrix}--&amp;gt;&lt;br /&gt;
is the matrix with each element replaced by its complex conjugate.  In&lt;br /&gt;
other words, to take the complex conjugate of a matrix, one takes the&lt;br /&gt;
complex conjugate of each entry in the matrix.  We denote the complex&lt;br /&gt;
conjugate with a star, like this: &amp;lt;math&amp;gt;A^*\,\!&amp;lt;/math&amp;gt;.  For example,&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
A^* &amp;amp;=&amp;amp; \left(\begin{array}{ccc}&lt;br /&gt;
        a_{11} &amp;amp; a_{12} &amp;amp; a_{13} \\&lt;br /&gt;
        a_{21} &amp;amp; a_{22} &amp;amp; a_{23} \\&lt;br /&gt;
        a_{31} &amp;amp; a_{32} &amp;amp; a_{33} \end{array}\right)^*  \\&lt;br /&gt;
    &amp;amp;=&amp;amp; \left(\begin{array}{ccc}&lt;br /&gt;
        a_{11}^* &amp;amp; a_{12}^* &amp;amp; a_{13}^* \\&lt;br /&gt;
        a_{21}^* &amp;amp; a_{22}^* &amp;amp; a_{23}^* \\&lt;br /&gt;
        a_{31}^* &amp;amp; a_{32}^* &amp;amp; a_{33}^* \end{array}\right). &lt;br /&gt;
\end{align}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.2}}&lt;br /&gt;
(Notice that the notation for a matrix is a capital letter, whereas&lt;br /&gt;
the entries are represented by lower case&lt;br /&gt;
letters.)&lt;br /&gt;
&lt;br /&gt;
===Transpose===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ''transpose'' &amp;lt;!-- \index{transpose} --&amp;gt; of a matrix is the same set of&lt;br /&gt;
elements, but now the first row becomes the first column, the second row&lt;br /&gt;
becomes the second column, and so on.  Thus the rows and columns are&lt;br /&gt;
interchanged.  For example, for a square &amp;lt;math&amp;gt;3\times 3\,\!&amp;lt;/math&amp;gt; matrix, the&lt;br /&gt;
transpose is given by&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
A^T &amp;amp;=&amp;amp; \left(\begin{array}{ccc}&lt;br /&gt;
        a_{11} &amp;amp; a_{12} &amp;amp; a_{13} \\&lt;br /&gt;
        a_{21} &amp;amp; a_{22} &amp;amp; a_{23} \\&lt;br /&gt;
        a_{31} &amp;amp; a_{32} &amp;amp; a_{33} \end{array}\right)^T \\&lt;br /&gt;
    &amp;amp;=&amp;amp; \left(\begin{array}{ccc}&lt;br /&gt;
        a_{11} &amp;amp; a_{21} &amp;amp; a_{31} \\&lt;br /&gt;
        a_{12} &amp;amp; a_{22} &amp;amp; a_{32} \\&lt;br /&gt;
        a_{13} &amp;amp; a_{23} &amp;amp; a_{33} \end{array}\right). &lt;br /&gt;
\end{align}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.3}}&lt;br /&gt;
&lt;br /&gt;
===Hermitian Conjugate===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The complex conjugate and transpose of a matrix is called the ''Hermitian conjugate'', or simply the ''dagger'' of a matrix.  It is called the dagger because the symbol used to denote it,&lt;br /&gt;
(&amp;lt;math&amp;gt;\dagger\,\!&amp;lt;/math&amp;gt;):&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
(A^T)^* = (A^*)^T \equiv A^\dagger.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.4}}&lt;br /&gt;
For our &amp;lt;math&amp;gt;3\times 3\,\!&amp;lt;/math&amp;gt; example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
A^\dagger = \left(\begin{array}{ccc}&lt;br /&gt;
        a_{11}^* &amp;amp; a_{21}^* &amp;amp; a_{31}^* \\&lt;br /&gt;
        a_{12}^* &amp;amp; a_{22}^* &amp;amp; a_{32}^* \\&lt;br /&gt;
        a_{13}^* &amp;amp; a_{23}^* &amp;amp; a_{33}^* \end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If a matrix is its own Hermitian conjugate, i.e. &amp;lt;math&amp;gt;A^\dagger = A\,\!&amp;lt;/math&amp;gt;, then&lt;br /&gt;
we call it a ''Hermitian matrix''.  &amp;lt;!-- \index{Hermitian matrix}--&amp;gt;&lt;br /&gt;
(Clearly this is only possible for square matrices.) Hermitian&lt;br /&gt;
matrices are very important in quantum mechanics since their&lt;br /&gt;
eigenvalues are real.  (See Sec.([[Appendix C - Vectors and Linear Algebra#Eigenvalues and Eigenvectors|Eigenvalues and Eigenvectors]]).)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Index Notation===&lt;br /&gt;
&lt;br /&gt;
Very often we write the product of two matrices &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt; simply as&lt;br /&gt;
&amp;lt;math&amp;gt;AB\,\!&amp;lt;/math&amp;gt; and let &amp;lt;math&amp;gt;C=AB\,\!&amp;lt;/math&amp;gt;.  However, it is also quite useful to write this&lt;br /&gt;
in component form.  In this case, if these are &amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; matrices, the component form will be &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
c_{ik} = \sum_{j=1}^n a_{ij}b_{jk}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
This says that the element in the &amp;lt;math&amp;gt;i^{\mbox{th}}\,\!&amp;lt;/math&amp;gt; row and&lt;br /&gt;
&amp;lt;math&amp;gt;j^{\mbox{th}}\,\!&amp;lt;/math&amp;gt; column of the matrix &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt; is the sum &amp;lt;math&amp;gt;\sum_{j=1}^n&lt;br /&gt;
a_{ij}b_{jk}\,\!&amp;lt;/math&amp;gt;.  The transpose of &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt; has elements&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
c_{ki} = \sum_{j=1}^n a_{kj}b_{ji}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now if we were to transpose &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt; as well, this would read&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
c_{ki} = \sum_{j=1}^n (a_{jk})^T (b_{ij})^T = \sum_{j=1}^n b^T_{ij} a^T_{jk}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
This gives us a way of seeing the general rule that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
C^T = B^TA^T.  &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
It follows that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
C^\dagger = B^\dagger A^\dagger.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===The Trace===&lt;br /&gt;
&lt;br /&gt;
The ''trace'' --&amp;gt;&amp;lt;!-- \index{trace}--&amp;gt;&amp;lt;!-- of a matrix is the sum of the diagonal&lt;br /&gt;
elements and is denoted &amp;lt;math&amp;gt;\mbox{Tr}\,\!&amp;lt;/math&amp;gt;.  So for example, the trace of an&lt;br /&gt;
&amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; matrix &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mbox{Tr}(A) = \sum_{i=1}^n a_{ii}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;.&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some useful properties of the trace are the following:&lt;br /&gt;
#&amp;lt;math&amp;gt;\mbox{Tr}(AB) = \mbox{Tr}(BA)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
#&amp;lt;math&amp;gt;\mbox{Tr}(A + B) = \mbox{Tr}(A) + \mbox{Tr}(B)\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
Using the first of these results,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mbox{Tr}(UAU^{-1}) = \mbox{Tr}(U^{-1}UA) = \mbox{Tr}(A).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
This relation is used so often that we state it here explicitly.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===The Determinant===&lt;br /&gt;
&lt;br /&gt;
For a square matrix, the determinant is quite a useful thing.  For&lt;br /&gt;
example, an &amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; matrix is invertible if and only if its&lt;br /&gt;
determinant is not zero.  So let us define the determinant and give&lt;br /&gt;
some properties and examples.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ''determinant''--&amp;gt;&amp;lt;!--\index{determinant}--&amp;gt;&amp;lt;!-- of a &amp;lt;math&amp;gt;2\times 2\,\!&amp;lt;/math&amp;gt; matrix, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
N = \left(\begin{array}{cc}&lt;br /&gt;
                 a &amp;amp; b \\&lt;br /&gt;
                 c &amp;amp; d \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.5}}&lt;br /&gt;
is given by&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\det(N) = ad-bc.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.6}}&lt;br /&gt;
Higher-order determinants can be written in terms of smaller ones in a recursive way.  For example, let &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
M = \left(\begin{array}{ccc}&lt;br /&gt;
                 m_{11} &amp;amp; m_{12} &amp;amp; m_{13} \\&lt;br /&gt;
                 m_{21} &amp;amp; m_{22} &amp;amp; m_{23} \\&lt;br /&gt;
                 m_{31} &amp;amp; m_{32} &amp;amp; m_{33}\end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\det(M) = m_{11}\det\left(\begin{array}{cc}&lt;br /&gt;
                 m_{22} &amp;amp; m_{23} \\&lt;br /&gt;
                 m_{32} &amp;amp; m_{33} \end{array}\right) &lt;br /&gt;
- m_{12}\det\left(\begin{array}{cc}&lt;br /&gt;
                 m_{21} &amp;amp; m_{23} \\&lt;br /&gt;
                 m_{31} &amp;amp; m_{33} \end{array}\right)&lt;br /&gt;
+m_{13}\det\left(\begin{array}{cc}&lt;br /&gt;
                 m_{21} &amp;amp; m_{22} \\&lt;br /&gt;
                 m_{31} &amp;amp; m_{32} \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ''determinant''--&amp;gt;&amp;lt;!-- \index{determinant}--&amp;gt;&amp;lt;!-- of a matrix &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; can be&lt;br /&gt;
also be written in terms of its components as &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\det(A) = \sum_{i,j,k,l,...} \epsilon_{ijkl...}&lt;br /&gt;
a_{1i}a_{2j}a_{3k}a_{4l} ...,&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.7}}&lt;br /&gt;
where the symbol &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon_{ijkl...} = \begin{cases}&lt;br /&gt;
                       +1, \; \mbox{if } \; ijkl... = 1234... (\mbox{in order, or any even number of permutations}),\\&lt;br /&gt;
                       -1, \; \mbox{if } \; ijkl... = 2134... (\mbox{or any odd number of permutations}),\\&lt;br /&gt;
                       \;\;\; 0, \; \mbox{otherwise}, \; (\mbox{meaning any index is repeated}).&lt;br /&gt;
                      \end{cases}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.8}}&lt;br /&gt;
&lt;br /&gt;
Let us consider the example of the &amp;lt;math&amp;gt;3\times 3\,\!&amp;lt;/math&amp;gt; matrix &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; given&lt;br /&gt;
above.  The determinant can be calculated by&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\det(A) = \sum_{i,j,k} \epsilon_{ijk}&lt;br /&gt;
a_{1i}a_{2j}a_{3k},&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where, explicitly, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon_{ijk} = \begin{cases}&lt;br /&gt;
                       +1, \;\mbox{if }\; ijk= 123,231,\; \mbox{or}\; 312, (\mbox{These are even permutations of }123),\\&lt;br /&gt;
                       -1, \;\mbox{if }\; ijk = 213,132,\;\mbox{or}\;321(\mbox{These are odd permuations of }123),\\&lt;br /&gt;
                    \;\;\;  0, \; \mbox{otherwise}, \; (\mbox{meaning any index is repeated}),&lt;br /&gt;
                 \end{cases}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.9}}&lt;br /&gt;
so that &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\det(A) &amp;amp;=&amp;amp; \epsilon_{123}a_{11}a_{22}a_{33} &lt;br /&gt;
         +\epsilon_{132}a_{11}a_{23}a_{32}&lt;br /&gt;
         +\epsilon_{231}a_{12}a_{23}a_{31}  \\&lt;br /&gt;
       &amp;amp;&amp;amp;+\epsilon_{213}a_{12}a_{21}a_{33}&lt;br /&gt;
         +\epsilon_{312}a_{13}a_{21}a_{32}&lt;br /&gt;
         +\epsilon_{321}a_{13}a_{22}a_{31}.&lt;br /&gt;
\end{align}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.10}}&lt;br /&gt;
Now given the values of &amp;lt;math&amp;gt;\epsilon_{ijk}\,\!&amp;lt;/math&amp;gt; in [[#eqC.9|Eq. C.9]],&lt;br /&gt;
this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\det(A) = a_{11}a_{22}a_{33} - a_{11}a_{23}a_{32} + a_{12}a_{23}a_{31} &lt;br /&gt;
         - a_{12}a_{21}a_{33} + a_{13}a_{21}a_{32} - a_{13}a_{22}a_{31}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The determinant has several properties that are useful to know.  A few are listed here:  &lt;br /&gt;
#The determinant of the transpose of a matrix is the same as the determinant of the matrix itself: &amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \det(A) = \det(A^T).\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
#The determinant of a product is the product of determinants:    &amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \det(AB) = \det(A)\det(B).\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
From this last property, another specific property can be derived.&lt;br /&gt;
If we take the determinant of the product of a matrix and its&lt;br /&gt;
inverse, we find&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\det(U U^{-1}) = \det(U)\det(U^{-1}) = \det(\mathbb{I}) = 1,&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
since the determinant of the identity is one.  This implies that&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\det(U^{-1}) = \frac{1}{\det(U)}.  &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===The Inverse of a Matrix===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inverse &amp;lt;!-- \index{inverse}--&amp;gt; of an &amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; square matrix &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; is another &amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; square matrix,&lt;br /&gt;
denoted &amp;lt;math&amp;gt;A^{-1}\,\!&amp;lt;/math&amp;gt;, such that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
AA^{-1} = A^{-1}A = \mathbb{I},&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbb{I}\,\!&amp;lt;/math&amp;gt; is the identity matrix consisting of zeroes everywhere&lt;br /&gt;
except the diagonal, which has ones.  For example, the &amp;lt;math&amp;gt;3\times 3\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
identity matrix is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbb{I}_3 = \left(\begin{array}{ccc} 1 &amp;amp; 0 &amp;amp; 0 \\ 0 &amp;amp; 1 &amp;amp; 0 \\ 0 &amp;amp; 0 &amp;amp; 1&lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is important to note that ''a matrix is invertible if and only if its determinant is nonzero.''  Thus one only needs to calculate the&lt;br /&gt;
determinant to see if a matrix has an inverse or not.&lt;br /&gt;
&lt;br /&gt;
===Hermitian Matrices===&lt;br /&gt;
&lt;br /&gt;
Hermitian matrices are important for a variety of reasons; primarily, it is because their eigenvalues are real.  Thus Hermitian matrices are used to represent density operators and density matrices, as well as Hamiltonians.  The density operator is a positive semi-definite Hermitian matrix (it has no negative eigenvalues) that has its trace equal to one.  In any case, it is often desirable to represent &amp;lt;math&amp;gt;N\times N\,\!&amp;lt;/math&amp;gt; Hermitian matrices using a real linear combination of a complete set of &amp;lt;math&amp;gt;N\times N\,\!&amp;lt;/math&amp;gt; Hermitian matrices.  A set of &amp;lt;math&amp;gt;N\times N\,\!&amp;lt;/math&amp;gt; Hermitian matrices is complete if any Hermitian matrix can be represented in terms of the set.  Let &amp;lt;math&amp;gt;\{\lambda_i\}\,\!&amp;lt;/math&amp;gt; be a complete set.  Then any Hermitian matrix can be represented by &amp;lt;math&amp;gt;\sum_i a_i \lambda_i\,\!&amp;lt;/math&amp;gt;.  The set can always be taken to be a set of traceless Hermitian matrices and the identity matrix.  This is convenient for the density matrix (its trace is one) because the identity part of an &amp;lt;math&amp;gt;N\times N\,\!&amp;lt;/math&amp;gt; Hermitian matrix is &amp;lt;math&amp;gt;(1/N)\mathbb{I}\,\!&amp;lt;/math&amp;gt; if we take all others in the set to be traceless.  For the Hamiltonian, the set consists of a traceless part and an identity part where identity part just gives an overall phase which can often be neglected.  &lt;br /&gt;
&lt;br /&gt;
One example of such a set which is extremely useful is the set of Pauli matrices.  These are discussed in detail in [[Chapter 2 - Qubits and Collections of Qubits|Chapter 2]] and in particular in [[Chapter 2 - Qubits and Collections of Qubits#The Pauli Matrices|Section 2.4]].&lt;br /&gt;
&lt;br /&gt;
===Unitary Matrices===&lt;br /&gt;
&lt;br /&gt;
A ''unitary matrix'' &amp;lt;!-- \index{unitary matrix} --&amp;gt; &amp;lt;math&amp;gt;U\,\!&amp;lt;/math&amp;gt; is one whose&lt;br /&gt;
inverse is also its Hermitian conjugate, &amp;lt;math&amp;gt;U^\dagger = U^{-1}\,\!&amp;lt;/math&amp;gt;, so that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
U^\dagger U = UU^\dagger = \mathbb{I}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If the unitary matrix also has determinant one, it is said to be ''a special unitary matrix''.&amp;lt;!-- \index{special unitary matrix}--&amp;gt;  The set of&lt;br /&gt;
&amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; unitary matrices is denoted&lt;br /&gt;
&amp;lt;math&amp;gt;U(n)\,\!&amp;lt;/math&amp;gt; and the set of special unitary matrices is denoted &amp;lt;math&amp;gt;SU(n)\,\!&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
Unitary matrices are particularly important in quantum mechanics&lt;br /&gt;
because they describe the evolution of quantum states.&lt;br /&gt;
They have this ability due to the fact that the rows and columns of unitary matrices (viewed as vectors) are orthonormal. (This is made clear in an example below.)  This means that when&lt;br /&gt;
they act on a basis vector of the form&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt; \left\vert j\right\rangle = &lt;br /&gt;
 \left(\begin{array}{c} 0 \\ 0 \\ \vdots \\ 1 \\ \vdots \\ 0 &lt;br /&gt;
  \end{array}\right), &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.11}}&lt;br /&gt;
with a single 1, in say the &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt;th spot, and zeroes everywhere else, the result is a normalized complex vector.  Acting on a set of&lt;br /&gt;
orthonormal vectors of the form given in Eq.[[#eqC.11|(C.11)]]&lt;br /&gt;
will produce another orthonormal set.  &lt;br /&gt;
&lt;br /&gt;
Let us consider the example of a &amp;lt;math&amp;gt;2\times 2\,\!&amp;lt;/math&amp;gt; unitary matrix, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
U = \left(\begin{array}{cc} &lt;br /&gt;
              a &amp;amp; b \\ &lt;br /&gt;
              c &amp;amp; d &lt;br /&gt;
           \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.12}}&lt;br /&gt;
The inverse of this matrix is the Hermitian conjugate, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
U ^{-1} = U^\dagger = \left(\begin{array}{cc} &lt;br /&gt;
                         a^* &amp;amp; c^* \\ &lt;br /&gt;
                         b^* &amp;amp; d^* &lt;br /&gt;
                       \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.13}}&lt;br /&gt;
provided that the matrix &amp;lt;math&amp;gt;U\,\!&amp;lt;/math&amp;gt; satisfies the constraints&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
|a|^2 + |b|^2 = 1, \; &amp;amp; \; ac^*+bd^* =0  \\&lt;br /&gt;
ca^*+db^*=0,  \;      &amp;amp;  \; |c|^2 + |d|^2 =1,&lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;|C.14}}&lt;br /&gt;
and&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
|a|^2 + |c|^2 = 1, \; &amp;amp; \; ba^*+dc^* =0  \\&lt;br /&gt;
b^*a+d^*c=0,  \;      &amp;amp;  \; |b|^2 + |d|^2 =1.&lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;|C.15}}&lt;br /&gt;
Looking at each row as a vector, the constraints in&lt;br /&gt;
Eq.[[#eqC.14|(C.14)]] are the orthonormality conditions for the&lt;br /&gt;
vectors forming the rows.  Similarly, the constraints in&lt;br /&gt;
Eq.[[#eqC.15|(C.15)]] are the orthonormality conditions for the&lt;br /&gt;
vectors forming the columns.&lt;br /&gt;
&lt;br /&gt;
===Inner and Outer Products===&lt;br /&gt;
&lt;br /&gt;
It is very helpful to note that a column vector with &amp;lt;math&amp;gt;n\times 1\,\!&amp;lt;/math&amp;gt; matrix.  A row vector is a &amp;lt;math&amp;gt;1\times n\,\!&amp;lt;/math&amp;gt; matrix.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now that we have a definition for the Hermitian conjugate, consider the&lt;br /&gt;
case for a &amp;lt;math&amp;gt;n\times 1\,\!&amp;lt;/math&amp;gt; matrix, i.e. a vector.  In Dirac notation, this is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert\psi\right\rangle = \left(\begin{array}{c} \alpha \\ \beta&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The Hermitian conjugate comes up so often that we use the following&lt;br /&gt;
notation for vectors:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\langle \psi\right\vert = (\left\vert\psi\right\rangle)^\dagger = \left(\begin{array}{c} \alpha \\&lt;br /&gt;
    \beta \end{array}\right)^\dagger &lt;br /&gt;
 = \left( \alpha^*, \; \beta^* \right).  &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
This is a row vector and in ''Dirac notation'' is denoted by the symbol &amp;lt;math&amp;gt;\left\langle\cdot \right\vert\!&amp;lt;/math&amp;gt;, which is called a ''bra''.  Let us consider a second complex vector, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert\phi\right\rangle = \left(\begin{array}{c} \gamma \\ \delta&lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The ''inner product'' &amp;lt;!-- \index{inner product}--&amp;gt; between &amp;lt;math&amp;gt;\left\vert\psi\right\rangle\,\!&amp;lt;/math&amp;gt; and &lt;br /&gt;
&amp;lt;math&amp;gt;\left\vert\phi\right\rangle\,\!&amp;lt;/math&amp;gt; is computed as follows:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 \left\langle\phi\mid\psi\right\rangle &amp;amp; \equiv (\left\vert\phi\right\rangle)^\dagger\left\vert\psi \right\rangle   \\&lt;br /&gt;
                  &amp;amp;= (\gamma^*,\delta^*) \left(\begin{array}{c} \alpha \\ \beta&lt;br /&gt;
  \end{array}\right)   \\&lt;br /&gt;
                  &amp;amp;= \gamma^*\alpha + \delta^*\beta.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;|C.16}}&lt;br /&gt;
The vector &amp;lt;math&amp;gt;\left|\cdot \right\rangle\!&amp;lt;/math&amp;gt; is called a ''ket''.  When you put a ''bra'' together with a ''ket'', you get a ''bracket''.  This is the origin of the terms.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ''outer product'' between these same two vectors is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
\begin{align} (\left\vert \phi \right\rangle )(\left\vert \psi \right\rangle)^\dagger &lt;br /&gt;
 &amp;amp;=  \left\vert \phi \right\rangle \left\langle \psi \right\vert \\&lt;br /&gt;
&amp;amp;= \left(\begin{array}{c} \gamma \\ \delta \end{array}\right)&lt;br /&gt;
\left(\begin{array}{c} \alpha \\ \beta   \end{array}\right)^\dagger \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \gamma \\ \delta \end{array}\right) \left(\begin{array}{cc} \alpha^* &amp;amp; \beta^*   \end{array}\right) \\  &lt;br /&gt;
           &amp;amp;=   \left(\begin{array}{cc} \gamma\alpha^* &amp;amp; \gamma\beta^* \\  \delta\alpha^* &amp;amp; \delta\beta^*  \end{array}\right) \end{align}\;\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This type of product is also called a ''Kronecker product'' or a ''tensor product''.  Vectors and matrices can be considered special cases of the more general class of ''tensors''.  A tensor can have any number of indices indicating rows, columns, and depth, for the case of a three index tensor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Unitary Matrices===&lt;br /&gt;
&lt;br /&gt;
A ''unitary matrix'' &amp;lt;!-- \index{unitary matrix} --&amp;gt; &amp;lt;math&amp;gt;U\,\!&amp;lt;/math&amp;gt; is one whose&lt;br /&gt;
inverse is also its Hermitian conjugate, &amp;lt;math&amp;gt;U^\dagger = U^{-1}\,\!&amp;lt;/math&amp;gt;, so that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
U^\dagger U = UU^\dagger = \mathbb{I}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If the unitary matrix also has determinant one, it is said to be ''a special unitary matrix''.&amp;lt;!-- \index{special unitary matrix}--&amp;gt;  The set of&lt;br /&gt;
&amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; unitary matrices is denoted&lt;br /&gt;
&amp;lt;math&amp;gt;U(n)\,\!&amp;lt;/math&amp;gt; and the set of special unitary matrices is denoted &amp;lt;math&amp;gt;SU(n)\,\!&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
Unitary matrices are particularly important in quantum mechanics&lt;br /&gt;
because they describe the evolution of quantum states.&lt;br /&gt;
They have this ability due to the fact that the rows and columns of unitary matrices (viewed as vectors) are orthonormal. (This is made clear in an example below.)  This means that when&lt;br /&gt;
they act on a basis vector of the form&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt; \left\vert j\right\rangle = &lt;br /&gt;
 \left(\begin{array}{c} 0 \\ 0 \\ \vdots \\ 1 \\ \vdots \\ 0 &lt;br /&gt;
  \end{array}\right), &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.11}}&lt;br /&gt;
with a single 1, in say the &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt;th spot, and zeroes everywhere else, the result is a normalized complex vector.  Acting on a set of&lt;br /&gt;
orthonormal vectors of the form given in Eq.[[#eqC.11|(C.11)]]&lt;br /&gt;
will produce another orthonormal set.  &lt;br /&gt;
&lt;br /&gt;
Let us consider the example of a &amp;lt;math&amp;gt;2\times 2\,\!&amp;lt;/math&amp;gt; unitary matrix, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
U = \left(\begin{array}{cc} &lt;br /&gt;
              a &amp;amp; b \\ &lt;br /&gt;
              c &amp;amp; d &lt;br /&gt;
           \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.12}}&lt;br /&gt;
The inverse of this matrix is the Hermitian conjugate, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
U ^{-1} = U^\dagger = \left(\begin{array}{cc} &lt;br /&gt;
                         a^* &amp;amp; c^* \\ &lt;br /&gt;
                         b^* &amp;amp; d^* &lt;br /&gt;
                       \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.13}}&lt;br /&gt;
provided that the matrix &amp;lt;math&amp;gt;U\,\!&amp;lt;/math&amp;gt; satisfies the constraints&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
|a|^2 + |b|^2 = 1, \; &amp;amp; \; ac^*+bd^* =0  \\&lt;br /&gt;
ca^*+db^*=0,  \;      &amp;amp;  \; |c|^2 + |d|^2 =1,&lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;|C.14}}&lt;br /&gt;
and&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
|a|^2 + |c|^2 = 1, \; &amp;amp; \; ba^*+dc^* =0  \\&lt;br /&gt;
b^*a+d^*c=0,  \;      &amp;amp;  \; |b|^2 + |d|^2 =1.&lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;|C.15}}&lt;br /&gt;
Looking at each row as a vector, the constraints in&lt;br /&gt;
Eq.[[#eqC.14|(C.14)]] are the orthonormality conditions for the&lt;br /&gt;
vectors forming the rows.  Similarly, the constraints in&lt;br /&gt;
Eq.[[#eqC.15|(C.15)]] are the orthonormality conditions for the&lt;br /&gt;
vectors forming the columns.&lt;br /&gt;
&lt;br /&gt;
Unitary matrices are very important because the preserve the magnitude of a complex vector.  In other words, if if the magnitude of a vector is one, for example &amp;lt;math&amp;gt; \big\vert\big\vert  \left\vert\psi\right\rangle\big\vert\big\vert = 1\,\!&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt; \big\vert\big\vert  U\left\vert\psi\right\rangle   \big\vert\big\vert = 1\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Matrices:_A_beginner%27s_guide&amp;diff=3095</id>
		<title>Matrices: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Matrices:_A_beginner%27s_guide&amp;diff=3095"/>
		<updated>2023-02-13T20:37:25Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
==Matrices as Operations on Quantum States==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The states of a quantum system can be written as&lt;br /&gt;
{{Equation | &amp;lt;math&amp;gt;\left\vert{\psi}\right\rangle = \alpha_0\left\vert{0}\right\rangle + \alpha_1\left\vert{1}\right\rangle,&amp;lt;/math&amp;gt; |m.1}}&lt;br /&gt;
where &amp;lt;math&amp;gt;\alpha_0\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\alpha_1\,\!&amp;lt;/math&amp;gt; are complex numbers.  These states are used to represent quantum systems that can be used to store information.  Because &amp;lt;math&amp;gt;|\alpha_0|^2\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;|\alpha_1|^2 \,\!&amp;lt;/math&amp;gt; are probabilities and must add up to one, &lt;br /&gt;
{{Equation | &amp;lt;math&amp;gt;|\alpha_0|^2 + |\alpha_1|^2 = 1.\,\!&amp;lt;/math&amp;gt; |m.2}}&lt;br /&gt;
This means that this vector is ''normalized,'' i.e. its magnitude (or length) is one.  ([[Appendix B - Complex Numbers|Appendix B]] contains a basic introduction to complex numbers.) The basis vectors for such a space are the two vectors &amp;lt;math&amp;gt;\left\vert{0}\right\rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\left\vert{1}\right\rangle&amp;lt;/math&amp;gt; which are called ''computational basis'' states. These two basis states are represented by &lt;br /&gt;
{{Equation | &amp;lt;math&amp;gt;\left\vert{0}\right\rangle = \left(\begin{array}{c} 1 \\ 0\end{array}\right), \;\;\left\vert{1}\right\rangle = \left(\begin{array}{c} 0 \\ 1\end{array}\right).&amp;lt;/math&amp;gt; |m.3}}&lt;br /&gt;
Thus, the qubit state can be rewritten as&lt;br /&gt;
{{Equation |&amp;lt;math&amp;gt;\left\vert{\psi}\right\rangle = \left(\begin{array}{c} \alpha_0 \\ \alpha_1\end{array}\right).&amp;lt;/math&amp;gt; |m.4}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A very common operation in computing is to change a &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to a &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; and a &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; to a &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;.  The operation that does this is denoted a &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;.  This operator does both.  It changes &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; a &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;.  So we write, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
X \left|0\right\rangle = \left|1\right\rangle, \mbox{ and } X \left|1\right\rangle = \left|0\right\rangle.  &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
Notice that this means that acting with &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; again means that you get back the original state.  Matrices, which are arrays of numbers, are the mathematical incarnation of these operations.  It turns out that matrices are the way to represent almost all of operations in quantum computing and this will be shown in this section.  &lt;br /&gt;
&lt;br /&gt;
Let us list some important matrices that will be used as examples below:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
X = \left(\begin{array}{cc}&lt;br /&gt;
                 0 &amp;amp; 1 \\&lt;br /&gt;
                 1 &amp;amp; 0 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
Z = \left(\begin{array}{cc}&lt;br /&gt;
                 1 &amp;amp; 0 \\&lt;br /&gt;
                 0 &amp;amp; -1 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.2}}&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
Y = \left(\begin{array}{cc}&lt;br /&gt;
                 0 &amp;amp; -i \\&lt;br /&gt;
                 i &amp;amp; 0 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.3}}&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
H = \left(\begin{array}{cc}&lt;br /&gt;
                 1/\sqrt{2} &amp;amp; 1/\sqrt{2} \\&lt;br /&gt;
                 1/\sqrt{2} &amp;amp; -1/\sqrt{2} \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.3}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These all have the general form&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
M = \left(\begin{array}{cc}&lt;br /&gt;
                 a &amp;amp; b \\&lt;br /&gt;
                 c &amp;amp; d \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.4}}&lt;br /&gt;
where the numbers &amp;lt;math&amp;gt;a,b,c,d&amp;lt;/math&amp;gt; can be complex numbers.&lt;br /&gt;
&lt;br /&gt;
==Matrices==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Basic Definition and Representations===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A matrix is an array of numbers of the following form with columns, col. 1, col. 2, etc., and rows, row 1, row 2, etc.  The entries for the matrix are labeled by the row and column.  So the entry of a matrix &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; will be &amp;lt;math&amp;gt;a_{ij}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; is the row and &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; is the column where the number &amp;lt;math&amp;gt;a_{ij}&amp;lt;/math&amp;gt; is found.  This is how it looks:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
A = \begin{array}{c} {\scriptstyle{row \; 1}}  \\ {\scriptstyle{row \; 2}}  \\  \vdots  \\  {\scriptstyle{row \; m}}\end{array} \overset{{\scriptstyle{col. \; 1 }} \;\;\; {\scriptstyle{col.\; 2 }} \;\;\;\; {\displaystyle{\cdots}} \;\;\;\;\; {\scriptstyle{col.\; n }}}{\left(\begin{array}{cccc} &lt;br /&gt;
a_{11} &amp;amp; a_{12} &amp;amp; \cdots &amp;amp; a_{1n} \\ &lt;br /&gt;
a_{21} &amp;amp; a_{22} &amp;amp; \cdots &amp;amp; a_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
a_{m1} &amp;amp; a_{m2} &amp;amp; \cdots &amp;amp; a_{mn}  &lt;br /&gt;
\end{array}\right)}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notice that we represent the whole matrix with a capital letter &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;.  The matrix &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; has &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; rows and &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; columns, so we say that &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; is an &amp;lt;math&amp;gt;m\times n&amp;lt;/math&amp;gt; matrix.  We could also represent it using all of the entries, this array of numbers seen in the equation above.  Another way to represent it is to write it as &amp;lt;math&amp;gt;(a_{ij})&amp;lt;/math&amp;gt;.  By this we mean that it is the array of numbers in the parentheses.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
The matrix above, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
X = \left(\begin{array}{cc}&lt;br /&gt;
                 0 &amp;amp; 1 \\&lt;br /&gt;
                 1 &amp;amp; 0 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
is a &amp;lt;math&amp;gt;2\times 2&amp;lt;/math&amp;gt; matrix.  &lt;br /&gt;
&lt;br /&gt;
The matrix &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
L = \left(\begin{array}{ccc}&lt;br /&gt;
                 3 &amp;amp; 2 &amp;amp; 5 \\&lt;br /&gt;
                 1 &amp;amp; 0 &amp;amp; 4\end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
is &amp;lt;math&amp;gt;2\times 3&amp;lt;/math&amp;gt; and &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
K = \left(\begin{array}{cc}&lt;br /&gt;
                 2 &amp;amp; 5  \\&lt;br /&gt;
                 1 &amp;amp; 4  \\&lt;br /&gt;
                 7 &amp;amp; 0  \\&lt;br /&gt;
                 8 &amp;amp; 3\end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
is a &amp;lt;math&amp;gt;4\times 2&amp;lt;/math&amp;gt; matrix.&lt;br /&gt;
&lt;br /&gt;
===Matrix Addition===&lt;br /&gt;
&lt;br /&gt;
Matrix addition is performed by adding each element of one matrix with the corresponding element in another matrix.  Let our two matrices be &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as above, and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;.  To represent these in an array, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
A = \left(\begin{array}{cccc} &lt;br /&gt;
a_{11} &amp;amp; a_{12} &amp;amp; \cdots &amp;amp; a_{1n} \\ &lt;br /&gt;
a_{21} &amp;amp; a_{22} &amp;amp; \cdots &amp;amp; a_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
a_{m1} &amp;amp; a_{m2} &amp;amp; \cdots &amp;amp; a_{mn}  &lt;br /&gt;
\end{array}\right), \;\;\;\;&lt;br /&gt;
B = \left(\begin{array}{cccc} &lt;br /&gt;
b_{11} &amp;amp; b_{12} &amp;amp; \cdots &amp;amp; b_{1n} \\ &lt;br /&gt;
b_{21} &amp;amp; b_{22} &amp;amp; \cdots &amp;amp; b_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
b_{m1} &amp;amp; b_{m2} &amp;amp; \cdots &amp;amp; b_{mn}  &lt;br /&gt;
\end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The the sum, which we could call &amp;lt;math&amp;gt;C= A+B&amp;lt;/math&amp;gt; is given by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
A + B = \left(\begin{array}{cccc} &lt;br /&gt;
a_{11} &amp;amp; a_{12} &amp;amp; \cdots &amp;amp; a_{1n} \\ &lt;br /&gt;
a_{21} &amp;amp; a_{22} &amp;amp; \cdots &amp;amp; a_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
a_{m1} &amp;amp; a_{m2} &amp;amp; \cdots &amp;amp; a_{mn}  &lt;br /&gt;
\end{array}\right) &lt;br /&gt;
+ &lt;br /&gt;
\left(\begin{array}{cccc} &lt;br /&gt;
b_{11} &amp;amp; b_{12} &amp;amp; \cdots &amp;amp; b_{1n} \\ &lt;br /&gt;
b_{21} &amp;amp; b_{22} &amp;amp; \cdots &amp;amp; b_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
b_{m1} &amp;amp; b_{m2} &amp;amp; \cdots &amp;amp; b_{mn}  &lt;br /&gt;
\end{array}\right) &lt;br /&gt;
=&lt;br /&gt;
\left(\begin{array}{cccc} &lt;br /&gt;
a_{11} + b_{11} &amp;amp; a_{12}+b_{12} &amp;amp; \cdots &amp;amp; a_{1n}+b_{1n} \\ &lt;br /&gt;
a_{21}+b_{21} &amp;amp; a_{22}+b_{22} &amp;amp; \cdots &amp;amp; a_{2n}+b_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
a_{m1}+b_{m1} &amp;amp; a_{m2}+b_{m2} &amp;amp; \cdots &amp;amp; a_{mn}+b_{mn}  &lt;br /&gt;
\end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In other words, the sum gives &amp;lt;math&amp;gt;c_{11} = a_{11} + b_{11}\,\!&amp;lt;/math&amp;gt;, etc.  We add them component by component like we do vectors.&lt;br /&gt;
&lt;br /&gt;
Change the font color or type in order to highlight the entries that are being added.&lt;br /&gt;
&lt;br /&gt;
===Multiplying a Matrix by a Number ===&lt;br /&gt;
&lt;br /&gt;
When multiplying a matrix by a number, each element of the matrix gets multiplied by that number.  Seem familiar?  This is what was done for vectors.  &lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; be some number.  Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
kA = k\left(\begin{array}{cccc} &lt;br /&gt;
a_{11} &amp;amp; a_{12} &amp;amp; \cdots &amp;amp; a_{1n} \\ &lt;br /&gt;
a_{21} &amp;amp; a_{22} &amp;amp; \cdots &amp;amp; a_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
a_{m1} &amp;amp; a_{m2} &amp;amp; \cdots &amp;amp; a_{mn}  &lt;br /&gt;
\end{array}\right) &lt;br /&gt;
= \left(\begin{array}{cccc} &lt;br /&gt;
ka_{11} &amp;amp; ka_{12} &amp;amp; \cdots &amp;amp; ka_{1n} \\ &lt;br /&gt;
ka_{21} &amp;amp; ka_{22} &amp;amp; \cdots &amp;amp; ka_{2n} \\ &lt;br /&gt;
\vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
ka_{m1} &amp;amp; ka_{m2} &amp;amp; \cdots &amp;amp; ka_{mn}  &lt;br /&gt;
\end{array}\right) &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Multiplying two Matrices===&lt;br /&gt;
&lt;br /&gt;
The the product, which we could call &amp;lt;math&amp;gt;C= AB&amp;lt;/math&amp;gt; is given by &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:MatrixMult2.jpg|600px]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
A = \left(\begin{array}{cc}&lt;br /&gt;
                 2 &amp;amp; 3 \\&lt;br /&gt;
                 5 &amp;amp; 6 \end{array}\right),&lt;br /&gt;
\mbox{ and }&lt;br /&gt;
B = \left(\begin{array}{cc}&lt;br /&gt;
                 1 &amp;amp; 4 \\&lt;br /&gt;
                 7 &amp;amp; 2 \end{array}\right)&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
Then &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
A B = \left(\begin{array}{cc}&lt;br /&gt;
                 2 &amp;amp; 3 \\&lt;br /&gt;
                 5 &amp;amp; 6 \end{array}\right)\left(\begin{array}{cc}&lt;br /&gt;
                 1 &amp;amp; 4 \\&lt;br /&gt;
                 7 &amp;amp; 2 \end{array}\right) &lt;br /&gt;
= \left(\begin{array}{cc}&lt;br /&gt;
                 2\cdot 1 + 3\cdot 7 &amp;amp; 2\cdot 4 + 3\cdot 2 \\&lt;br /&gt;
                 5\cdot 1 + 6\cdot 7 &amp;amp; 5\cdot 4 + 6\cdot 2 \end{array}\right) &lt;br /&gt;
= \left(\begin{array}{cc}&lt;br /&gt;
                 23 &amp;amp; 14 \\&lt;br /&gt;
                 47 &amp;amp; 32 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us multiply &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Z&amp;lt;/math&amp;gt; from above, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
X Z = \left(\begin{array}{cc}&lt;br /&gt;
                 0 &amp;amp; 1 \\&lt;br /&gt;
                 1 &amp;amp; 0 \end{array}\right)&lt;br /&gt;
      \left(\begin{array}{cc}&lt;br /&gt;
                 1 &amp;amp; 0 \\&lt;br /&gt;
                 0 &amp;amp; -1 \end{array}\right) &lt;br /&gt;
= \left(\begin{array}{cc}&lt;br /&gt;
                 0\cdot 1 + 1\cdot 0 &amp;amp; 0\cdot 0 + 1\cdot (-1) \\&lt;br /&gt;
                 1\cdot 1 + 0\cdot 0 &amp;amp; 1\cdot 0 + 0\cdot (-1) \end{array}\right) &lt;br /&gt;
= \left(\begin{array}{cc}&lt;br /&gt;
                 0 &amp;amp; -1 \\&lt;br /&gt;
                 1 &amp;amp; 0 \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|m.1}}&lt;br /&gt;
It is helpful to notice that this is &amp;lt;math&amp;gt;-iY&amp;lt;/math&amp;gt;; that is &amp;lt;math&amp;gt;XZ = -i Y&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Notation===&lt;br /&gt;
&lt;br /&gt;
There are many aspects of linear algebra that are quite useful in&lt;br /&gt;
quantum mechanics.  We will briefly discuss several of these aspects here.&lt;br /&gt;
First, some definitions and properties are provided that will&lt;br /&gt;
be useful.  Some familiarity with matrices&lt;br /&gt;
will be assumed, although many basic definitions are also included.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us denote some &amp;lt;math&amp;gt;m\times n\,\!&amp;lt;/math&amp;gt; matrix by &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;.  The set of all &amp;lt;math&amp;gt;m\times&lt;br /&gt;
n\,\!&amp;lt;/math&amp;gt; matrices with real entries is &amp;lt;math&amp;gt;M(m\times n,\mathbb{R})\,\!&amp;lt;/math&amp;gt;.  Such matrices&lt;br /&gt;
are said to be real since they have all real entries.  Similarly, the&lt;br /&gt;
set of &amp;lt;math&amp;gt;m\times n\,\!&amp;lt;/math&amp;gt; complex matrices is &amp;lt;math&amp;gt;M(m\times n,\mathbb{C})\,\!&amp;lt;/math&amp;gt;.  For the&lt;br /&gt;
set of square &amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; complex matrices, we simply write&lt;br /&gt;
&amp;lt;math&amp;gt;M(n,\mathbb{C})\,\!&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will also refer to the set of matrix elements, &amp;lt;math&amp;gt;a_{ij}\,\!&amp;lt;/math&amp;gt;, where the&lt;br /&gt;
first index (&amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; in this case) labels the row and the second &amp;lt;math&amp;gt;(j)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
labels the column.  Thus the element &amp;lt;math&amp;gt;a_{23}\,\!&amp;lt;/math&amp;gt; is the element in the&lt;br /&gt;
second row and third column.  A comma is inserted if there is some&lt;br /&gt;
ambiguity.  For example, in a large matrix the element in the&lt;br /&gt;
2nd row and 12th&lt;br /&gt;
column is written as &amp;lt;math&amp;gt;a_{2,12}\,\!&amp;lt;/math&amp;gt; to distinguish between the&lt;br /&gt;
21st row and 2nd column.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The Identity Matrix===&lt;br /&gt;
&lt;br /&gt;
An identity matrix has the property that when it is multiplied by any matrix, that matrix is unchanged.  That is, for any matrix &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbb{I}A = A\mathbb{I} = A.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Such an identity matrix always has ones along the diagonal and zeroes everywhere else.  For example, the &amp;lt;math&amp;gt;3 \times 3\,\!&amp;lt;/math&amp;gt; identity matrix is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbb{I} = \left(\begin{array}{ccc}&lt;br /&gt;
        1 &amp;amp; 0 &amp;amp; 0 \\&lt;br /&gt;
        0 &amp;amp; 1 &amp;amp; 0 \\&lt;br /&gt;
        0 &amp;amp; 0 &amp;amp; 1 \end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
It is straight-forward to verify that any &amp;lt;math&amp;gt;3 \times 3\,\!&amp;lt;/math&amp;gt; matrix is not changed when multiplied by the identity matrix.&lt;br /&gt;
&lt;br /&gt;
===Complex Conjugate===&lt;br /&gt;
&lt;br /&gt;
The ''complex conjugate of a matrix'' &amp;lt;!-- \index{complex conjugate!of a matrix}--&amp;gt;&lt;br /&gt;
is the matrix with each element replaced by its complex conjugate.  In&lt;br /&gt;
other words, to take the complex conjugate of a matrix, one takes the&lt;br /&gt;
complex conjugate of each entry in the matrix.  We denote the complex&lt;br /&gt;
conjugate with a star, like this: &amp;lt;math&amp;gt;A^*\,\!&amp;lt;/math&amp;gt;.  For example,&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
A^* &amp;amp;=&amp;amp; \left(\begin{array}{ccc}&lt;br /&gt;
        a_{11} &amp;amp; a_{12} &amp;amp; a_{13} \\&lt;br /&gt;
        a_{21} &amp;amp; a_{22} &amp;amp; a_{23} \\&lt;br /&gt;
        a_{31} &amp;amp; a_{32} &amp;amp; a_{33} \end{array}\right)^*  \\&lt;br /&gt;
    &amp;amp;=&amp;amp; \left(\begin{array}{ccc}&lt;br /&gt;
        a_{11}^* &amp;amp; a_{12}^* &amp;amp; a_{13}^* \\&lt;br /&gt;
        a_{21}^* &amp;amp; a_{22}^* &amp;amp; a_{23}^* \\&lt;br /&gt;
        a_{31}^* &amp;amp; a_{32}^* &amp;amp; a_{33}^* \end{array}\right). &lt;br /&gt;
\end{align}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.2}}&lt;br /&gt;
(Notice that the notation for a matrix is a capital letter, whereas&lt;br /&gt;
the entries are represented by lower case&lt;br /&gt;
letters.)&lt;br /&gt;
&lt;br /&gt;
===Transpose===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ''transpose'' &amp;lt;!-- \index{transpose} --&amp;gt; of a matrix is the same set of&lt;br /&gt;
elements, but now the first row becomes the first column, the second row&lt;br /&gt;
becomes the second column, and so on.  Thus the rows and columns are&lt;br /&gt;
interchanged.  For example, for a square &amp;lt;math&amp;gt;3\times 3\,\!&amp;lt;/math&amp;gt; matrix, the&lt;br /&gt;
transpose is given by&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
A^T &amp;amp;=&amp;amp; \left(\begin{array}{ccc}&lt;br /&gt;
        a_{11} &amp;amp; a_{12} &amp;amp; a_{13} \\&lt;br /&gt;
        a_{21} &amp;amp; a_{22} &amp;amp; a_{23} \\&lt;br /&gt;
        a_{31} &amp;amp; a_{32} &amp;amp; a_{33} \end{array}\right)^T \\&lt;br /&gt;
    &amp;amp;=&amp;amp; \left(\begin{array}{ccc}&lt;br /&gt;
        a_{11} &amp;amp; a_{21} &amp;amp; a_{31} \\&lt;br /&gt;
        a_{12} &amp;amp; a_{22} &amp;amp; a_{32} \\&lt;br /&gt;
        a_{13} &amp;amp; a_{23} &amp;amp; a_{33} \end{array}\right). &lt;br /&gt;
\end{align}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.3}}&lt;br /&gt;
&lt;br /&gt;
===Hermitian Conjugate===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The complex conjugate and transpose of a matrix is called the ''Hermitian conjugate'', or simply the ''dagger'' of a matrix.  It is called the dagger because the symbol used to denote it,&lt;br /&gt;
(&amp;lt;math&amp;gt;\dagger\,\!&amp;lt;/math&amp;gt;):&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
(A^T)^* = (A^*)^T \equiv A^\dagger.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.4}}&lt;br /&gt;
For our &amp;lt;math&amp;gt;3\times 3\,\!&amp;lt;/math&amp;gt; example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
A^\dagger = \left(\begin{array}{ccc}&lt;br /&gt;
        a_{11}^* &amp;amp; a_{21}^* &amp;amp; a_{31}^* \\&lt;br /&gt;
        a_{12}^* &amp;amp; a_{22}^* &amp;amp; a_{32}^* \\&lt;br /&gt;
        a_{13}^* &amp;amp; a_{23}^* &amp;amp; a_{33}^* \end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If a matrix is its own Hermitian conjugate, i.e. &amp;lt;math&amp;gt;A^\dagger = A\,\!&amp;lt;/math&amp;gt;, then&lt;br /&gt;
we call it a ''Hermitian matrix''.  &amp;lt;!-- \index{Hermitian matrix}--&amp;gt;&lt;br /&gt;
(Clearly this is only possible for square matrices.) Hermitian&lt;br /&gt;
matrices are very important in quantum mechanics since their&lt;br /&gt;
eigenvalues are real.  (See Sec.([[Appendix C - Vectors and Linear Algebra#Eigenvalues and Eigenvectors|Eigenvalues and Eigenvectors]]).)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Index Notation===&lt;br /&gt;
&lt;br /&gt;
Very often we write the product of two matrices &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt; simply as&lt;br /&gt;
&amp;lt;math&amp;gt;AB\,\!&amp;lt;/math&amp;gt; and let &amp;lt;math&amp;gt;C=AB\,\!&amp;lt;/math&amp;gt;.  However, it is also quite useful to write this&lt;br /&gt;
in component form.  In this case, if these are &amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; matrices, the component form will be &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
c_{ik} = \sum_{j=1}^n a_{ij}b_{jk}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
This says that the element in the &amp;lt;math&amp;gt;i^{\mbox{th}}\,\!&amp;lt;/math&amp;gt; row and&lt;br /&gt;
&amp;lt;math&amp;gt;j^{\mbox{th}}\,\!&amp;lt;/math&amp;gt; column of the matrix &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt; is the sum &amp;lt;math&amp;gt;\sum_{j=1}^n&lt;br /&gt;
a_{ij}b_{jk}\,\!&amp;lt;/math&amp;gt;.  The transpose of &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt; has elements&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
c_{ki} = \sum_{j=1}^n a_{kj}b_{ji}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now if we were to transpose &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt; as well, this would read&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
c_{ki} = \sum_{j=1}^n (a_{jk})^T (b_{ij})^T = \sum_{j=1}^n b^T_{ij} a^T_{jk}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
This gives us a way of seeing the general rule that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
C^T = B^TA^T.  &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
It follows that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
C^\dagger = B^\dagger A^\dagger.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===The Trace===&lt;br /&gt;
&lt;br /&gt;
The ''trace'' &amp;lt;!-- \index{trace}--&amp;gt; of a matrix is the sum of the diagonal&lt;br /&gt;
elements and is denoted &amp;lt;math&amp;gt;\mbox{Tr}\,\!&amp;lt;/math&amp;gt;.  So for example, the trace of an&lt;br /&gt;
&amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; matrix &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mbox{Tr}(A) = \sum_{i=1}^n a_{ii}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;.&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some useful properties of the trace are the following:&lt;br /&gt;
#&amp;lt;math&amp;gt;\mbox{Tr}(AB) = \mbox{Tr}(BA)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
#&amp;lt;math&amp;gt;\mbox{Tr}(A + B) = \mbox{Tr}(A) + \mbox{Tr}(B)\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
Using the first of these results,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mbox{Tr}(UAU^{-1}) = \mbox{Tr}(U^{-1}UA) = \mbox{Tr}(A).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
This relation is used so often that we state it here explicitly.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===The Determinant===&lt;br /&gt;
&lt;br /&gt;
For a square matrix, the determinant is quite a useful thing.  For&lt;br /&gt;
example, an &amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; matrix is invertible if and only if its&lt;br /&gt;
determinant is not zero.  So let us define the determinant and give&lt;br /&gt;
some properties and examples.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ''determinant''&amp;lt;!--\index{determinant}--&amp;gt; of a &amp;lt;math&amp;gt;2\times 2\,\!&amp;lt;/math&amp;gt; matrix, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
N = \left(\begin{array}{cc}&lt;br /&gt;
                 a &amp;amp; b \\&lt;br /&gt;
                 c &amp;amp; d \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.5}}&lt;br /&gt;
is given by&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\det(N) = ad-bc.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.6}}&lt;br /&gt;
Higher-order determinants can be written in terms of smaller ones in a recursive way.  For example, let &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
M = \left(\begin{array}{ccc}&lt;br /&gt;
                 m_{11} &amp;amp; m_{12} &amp;amp; m_{13} \\&lt;br /&gt;
                 m_{21} &amp;amp; m_{22} &amp;amp; m_{23} \\&lt;br /&gt;
                 m_{31} &amp;amp; m_{32} &amp;amp; m_{33}\end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\det(M) = m_{11}\det\left(\begin{array}{cc}&lt;br /&gt;
                 m_{22} &amp;amp; m_{23} \\&lt;br /&gt;
                 m_{32} &amp;amp; m_{33} \end{array}\right) &lt;br /&gt;
- m_{12}\det\left(\begin{array}{cc}&lt;br /&gt;
                 m_{21} &amp;amp; m_{23} \\&lt;br /&gt;
                 m_{31} &amp;amp; m_{33} \end{array}\right)&lt;br /&gt;
+m_{13}\det\left(\begin{array}{cc}&lt;br /&gt;
                 m_{21} &amp;amp; m_{22} \\&lt;br /&gt;
                 m_{31} &amp;amp; m_{32} \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ''determinant''&amp;lt;!-- \index{determinant}--&amp;gt; of a matrix &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; can be&lt;br /&gt;
also be written in terms of its components as &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\det(A) = \sum_{i,j,k,l,...} \epsilon_{ijkl...}&lt;br /&gt;
a_{1i}a_{2j}a_{3k}a_{4l} ...,&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.7}}&lt;br /&gt;
where the symbol &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon_{ijkl...} = \begin{cases}&lt;br /&gt;
                       +1, \; \mbox{if } \; ijkl... = 1234... (\mbox{in order, or any even number of permutations}),\\&lt;br /&gt;
                       -1, \; \mbox{if } \; ijkl... = 2134... (\mbox{or any odd number of permutations}),\\&lt;br /&gt;
                       \;\;\; 0, \; \mbox{otherwise}, \; (\mbox{meaning any index is repeated}).&lt;br /&gt;
                      \end{cases}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.8}}&lt;br /&gt;
&lt;br /&gt;
Let us consider the example of the &amp;lt;math&amp;gt;3\times 3\,\!&amp;lt;/math&amp;gt; matrix &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; given&lt;br /&gt;
above.  The determinant can be calculated by&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\det(A) = \sum_{i,j,k} \epsilon_{ijk}&lt;br /&gt;
a_{1i}a_{2j}a_{3k},&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where, explicitly, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\epsilon_{ijk} = \begin{cases}&lt;br /&gt;
                       +1, \;\mbox{if }\; ijk= 123,231,\; \mbox{or}\; 312, (\mbox{These are even permutations of }123),\\&lt;br /&gt;
                       -1, \;\mbox{if }\; ijk = 213,132,\;\mbox{or}\;321(\mbox{These are odd permuations of }123),\\&lt;br /&gt;
                    \;\;\;  0, \; \mbox{otherwise}, \; (\mbox{meaning any index is repeated}),&lt;br /&gt;
                 \end{cases}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.9}}&lt;br /&gt;
so that &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\det(A) &amp;amp;=&amp;amp; \epsilon_{123}a_{11}a_{22}a_{33} &lt;br /&gt;
         +\epsilon_{132}a_{11}a_{23}a_{32}&lt;br /&gt;
         +\epsilon_{231}a_{12}a_{23}a_{31}  \\&lt;br /&gt;
       &amp;amp;&amp;amp;+\epsilon_{213}a_{12}a_{21}a_{33}&lt;br /&gt;
         +\epsilon_{312}a_{13}a_{21}a_{32}&lt;br /&gt;
         +\epsilon_{321}a_{13}a_{22}a_{31}.&lt;br /&gt;
\end{align}&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.10}}&lt;br /&gt;
Now given the values of &amp;lt;math&amp;gt;\epsilon_{ijk}\,\!&amp;lt;/math&amp;gt; in [[#eqC.9|Eq. C.9]],&lt;br /&gt;
this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\det(A) = a_{11}a_{22}a_{33} - a_{11}a_{23}a_{32} + a_{12}a_{23}a_{31} &lt;br /&gt;
         - a_{12}a_{21}a_{33} + a_{13}a_{21}a_{32} - a_{13}a_{22}a_{31}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The determinant has several properties that are useful to know.  A few are listed here:  &lt;br /&gt;
#The determinant of the transpose of a matrix is the same as the determinant of the matrix itself: &amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \det(A) = \det(A^T).\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
#The determinant of a product is the product of determinants:    &amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \det(AB) = \det(A)\det(B).\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
From this last property, another specific property can be derived.&lt;br /&gt;
If we take the determinant of the product of a matrix and its&lt;br /&gt;
inverse, we find&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\det(U U^{-1}) = \det(U)\det(U^{-1}) = \det(\mathbb{I}) = 1,&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
since the determinant of the identity is one.  This implies that&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\det(U^{-1}) = \frac{1}{\det(U)}.  &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===The Inverse of a Matrix===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inverse &amp;lt;!-- \index{inverse}--&amp;gt; of an &amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; square matrix &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; is another &amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; square matrix,&lt;br /&gt;
denoted &amp;lt;math&amp;gt;A^{-1}\,\!&amp;lt;/math&amp;gt;, such that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
AA^{-1} = A^{-1}A = \mathbb{I},&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbb{I}\,\!&amp;lt;/math&amp;gt; is the identity matrix consisting of zeroes everywhere&lt;br /&gt;
except the diagonal, which has ones.  For example, the &amp;lt;math&amp;gt;3\times 3\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
identity matrix is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbb{I}_3 = \left(\begin{array}{ccc} 1 &amp;amp; 0 &amp;amp; 0 \\ 0 &amp;amp; 1 &amp;amp; 0 \\ 0 &amp;amp; 0 &amp;amp; 1&lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is important to note that ''a matrix is invertible if and only if its determinant is nonzero.''  Thus one only needs to calculate the&lt;br /&gt;
determinant to see if a matrix has an inverse or not.&lt;br /&gt;
&lt;br /&gt;
===Hermitian Matrices===&lt;br /&gt;
&lt;br /&gt;
Hermitian matrices are important for a variety of reasons; primarily, it is because their eigenvalues are real.  Thus Hermitian matrices are used to represent density operators and density matrices, as well as Hamiltonians.  The density operator is a positive semi-definite Hermitian matrix (it has no negative eigenvalues) that has its trace equal to one.  In any case, it is often desirable to represent &amp;lt;math&amp;gt;N\times N\,\!&amp;lt;/math&amp;gt; Hermitian matrices using a real linear combination of a complete set of &amp;lt;math&amp;gt;N\times N\,\!&amp;lt;/math&amp;gt; Hermitian matrices.  A set of &amp;lt;math&amp;gt;N\times N\,\!&amp;lt;/math&amp;gt; Hermitian matrices is complete if any Hermitian matrix can be represented in terms of the set.  Let &amp;lt;math&amp;gt;\{\lambda_i\}\,\!&amp;lt;/math&amp;gt; be a complete set.  Then any Hermitian matrix can be represented by &amp;lt;math&amp;gt;\sum_i a_i \lambda_i\,\!&amp;lt;/math&amp;gt;.  The set can always be taken to be a set of traceless Hermitian matrices and the identity matrix.  This is convenient for the density matrix (its trace is one) because the identity part of an &amp;lt;math&amp;gt;N\times N\,\!&amp;lt;/math&amp;gt; Hermitian matrix is &amp;lt;math&amp;gt;(1/N)\mathbb{I}\,\!&amp;lt;/math&amp;gt; if we take all others in the set to be traceless.  For the Hamiltonian, the set consists of a traceless part and an identity part where identity part just gives an overall phase which can often be neglected.  &lt;br /&gt;
&lt;br /&gt;
One example of such a set which is extremely useful is the set of Pauli matrices.  These are discussed in detail in [[Chapter 2 - Qubits and Collections of Qubits|Chapter 2]] and in particular in [[Chapter 2 - Qubits and Collections of Qubits#The Pauli Matrices|Section 2.4]].&lt;br /&gt;
&lt;br /&gt;
===Unitary Matrices===&lt;br /&gt;
&lt;br /&gt;
A ''unitary matrix'' &amp;lt;!-- \index{unitary matrix} --&amp;gt; &amp;lt;math&amp;gt;U\,\!&amp;lt;/math&amp;gt; is one whose&lt;br /&gt;
inverse is also its Hermitian conjugate, &amp;lt;math&amp;gt;U^\dagger = U^{-1}\,\!&amp;lt;/math&amp;gt;, so that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
U^\dagger U = UU^\dagger = \mathbb{I}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If the unitary matrix also has determinant one, it is said to be ''a special unitary matrix''.&amp;lt;!-- \index{special unitary matrix}--&amp;gt;  The set of&lt;br /&gt;
&amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; unitary matrices is denoted&lt;br /&gt;
&amp;lt;math&amp;gt;U(n)\,\!&amp;lt;/math&amp;gt; and the set of special unitary matrices is denoted &amp;lt;math&amp;gt;SU(n)\,\!&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
Unitary matrices are particularly important in quantum mechanics&lt;br /&gt;
because they describe the evolution of quantum states.&lt;br /&gt;
They have this ability due to the fact that the rows and columns of unitary matrices (viewed as vectors) are orthonormal. (This is made clear in an example below.)  This means that when&lt;br /&gt;
they act on a basis vector of the form&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt; \left\vert j\right\rangle = &lt;br /&gt;
 \left(\begin{array}{c} 0 \\ 0 \\ \vdots \\ 1 \\ \vdots \\ 0 &lt;br /&gt;
  \end{array}\right), &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.11}}&lt;br /&gt;
with a single 1, in say the &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt;th spot, and zeroes everywhere else, the result is a normalized complex vector.  Acting on a set of&lt;br /&gt;
orthonormal vectors of the form given in Eq.[[#eqC.11|(C.11)]]&lt;br /&gt;
will produce another orthonormal set.  &lt;br /&gt;
&lt;br /&gt;
Let us consider the example of a &amp;lt;math&amp;gt;2\times 2\,\!&amp;lt;/math&amp;gt; unitary matrix, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
U = \left(\begin{array}{cc} &lt;br /&gt;
              a &amp;amp; b \\ &lt;br /&gt;
              c &amp;amp; d &lt;br /&gt;
           \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.12}}&lt;br /&gt;
The inverse of this matrix is the Hermitian conjugate, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
U ^{-1} = U^\dagger = \left(\begin{array}{cc} &lt;br /&gt;
                         a^* &amp;amp; c^* \\ &lt;br /&gt;
                         b^* &amp;amp; d^* &lt;br /&gt;
                       \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.13}}&lt;br /&gt;
provided that the matrix &amp;lt;math&amp;gt;U\,\!&amp;lt;/math&amp;gt; satisfies the constraints&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
|a|^2 + |b|^2 = 1, \; &amp;amp; \; ac^*+bd^* =0  \\&lt;br /&gt;
ca^*+db^*=0,  \;      &amp;amp;  \; |c|^2 + |d|^2 =1,&lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;|C.14}}&lt;br /&gt;
and&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
|a|^2 + |c|^2 = 1, \; &amp;amp; \; ba^*+dc^* =0  \\&lt;br /&gt;
b^*a+d^*c=0,  \;      &amp;amp;  \; |b|^2 + |d|^2 =1.&lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;|C.15}}&lt;br /&gt;
Looking at each row as a vector, the constraints in&lt;br /&gt;
Eq.[[#eqC.14|(C.14)]] are the orthonormality conditions for the&lt;br /&gt;
vectors forming the rows.  Similarly, the constraints in&lt;br /&gt;
Eq.[[#eqC.15|(C.15)]] are the orthonormality conditions for the&lt;br /&gt;
vectors forming the columns.&lt;br /&gt;
&lt;br /&gt;
===Inner and Outer Products===&lt;br /&gt;
&lt;br /&gt;
It is very helpful to note that a column vector with &amp;lt;math&amp;gt;n\times 1\,\!&amp;lt;/math&amp;gt; matrix.  A row vector is a &amp;lt;math&amp;gt;1\times n\,\!&amp;lt;/math&amp;gt; matrix.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now that we have a definition for the Hermitian conjugate, consider the&lt;br /&gt;
case for a &amp;lt;math&amp;gt;n\times 1\,\!&amp;lt;/math&amp;gt; matrix, i.e. a vector.  In Dirac notation, this is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert\psi\right\rangle = \left(\begin{array}{c} \alpha \\ \beta&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The Hermitian conjugate comes up so often that we use the following&lt;br /&gt;
notation for vectors:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\langle \psi\right\vert = (\left\vert\psi\right\rangle)^\dagger = \left(\begin{array}{c} \alpha \\&lt;br /&gt;
    \beta \end{array}\right)^\dagger &lt;br /&gt;
 = \left( \alpha^*, \; \beta^* \right).  &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
This is a row vector and in ''Dirac notation'' is denoted by the symbol &amp;lt;math&amp;gt;\left\langle\cdot \right\vert\!&amp;lt;/math&amp;gt;, which is called a ''bra''.  Let us consider a second complex vector, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert\phi\right\rangle = \left(\begin{array}{c} \gamma \\ \delta&lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The ''inner product'' &amp;lt;!-- \index{inner product}--&amp;gt; between &amp;lt;math&amp;gt;\left\vert\psi\right\rangle\,\!&amp;lt;/math&amp;gt; and &lt;br /&gt;
&amp;lt;math&amp;gt;\left\vert\phi\right\rangle\,\!&amp;lt;/math&amp;gt; is computed as follows:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 \left\langle\phi\mid\psi\right\rangle &amp;amp; \equiv (\left\vert\phi\right\rangle)^\dagger\left\vert\psi \right\rangle   \\&lt;br /&gt;
                  &amp;amp;= (\gamma^*,\delta^*) \left(\begin{array}{c} \alpha \\ \beta&lt;br /&gt;
  \end{array}\right)   \\&lt;br /&gt;
                  &amp;amp;= \gamma^*\alpha + \delta^*\beta.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;|C.16}}&lt;br /&gt;
The vector &amp;lt;math&amp;gt;\left|\cdot \right\rangle\!&amp;lt;/math&amp;gt; is called a ''ket''.  When you put a ''bra'' together with a ''ket'', you get a ''bracket''.  This is the origin of the terms.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ''outer product'' between these same two vectors is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
\begin{align} (\left\vert \phi \right\rangle )(\left\vert \psi \right\rangle)^\dagger &lt;br /&gt;
 &amp;amp;=  \left\vert \phi \right\rangle \left\langle \psi \right\vert \\&lt;br /&gt;
&amp;amp;= \left(\begin{array}{c} \gamma \\ \delta \end{array}\right)&lt;br /&gt;
\left(\begin{array}{c} \alpha \\ \beta   \end{array}\right)^\dagger \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \gamma \\ \delta \end{array}\right) \left(\begin{array}{cc} \alpha^* &amp;amp; \beta^*   \end{array}\right) \\  &lt;br /&gt;
           &amp;amp;=   \left(\begin{array}{cc} \gamma\alpha^* &amp;amp; \gamma\beta^* \\  \delta\alpha^* &amp;amp; \delta\beta^*  \end{array}\right) \end{align}\;\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This type of product is also called a ''Kronecker product'' or a ''tensor product''.  Vectors and matrices can be considered special cases of the more general class of ''tensors''.  A tensor can have any number of indices indicating rows, columns, and depth, for the case of a three index tensor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Unitary Matrices===&lt;br /&gt;
&lt;br /&gt;
A ''unitary matrix'' &amp;lt;!-- \index{unitary matrix} --&amp;gt; &amp;lt;math&amp;gt;U\,\!&amp;lt;/math&amp;gt; is one whose&lt;br /&gt;
inverse is also its Hermitian conjugate, &amp;lt;math&amp;gt;U^\dagger = U^{-1}\,\!&amp;lt;/math&amp;gt;, so that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
U^\dagger U = UU^\dagger = \mathbb{I}.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If the unitary matrix also has determinant one, it is said to be ''a special unitary matrix''.&amp;lt;!-- \index{special unitary matrix}--&amp;gt;  The set of&lt;br /&gt;
&amp;lt;math&amp;gt;n\times n\,\!&amp;lt;/math&amp;gt; unitary matrices is denoted&lt;br /&gt;
&amp;lt;math&amp;gt;U(n)\,\!&amp;lt;/math&amp;gt; and the set of special unitary matrices is denoted &amp;lt;math&amp;gt;SU(n)\,\!&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
Unitary matrices are particularly important in quantum mechanics&lt;br /&gt;
because they describe the evolution of quantum states.&lt;br /&gt;
They have this ability due to the fact that the rows and columns of unitary matrices (viewed as vectors) are orthonormal. (This is made clear in an example below.)  This means that when&lt;br /&gt;
they act on a basis vector of the form&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt; \left\vert j\right\rangle = &lt;br /&gt;
 \left(\begin{array}{c} 0 \\ 0 \\ \vdots \\ 1 \\ \vdots \\ 0 &lt;br /&gt;
  \end{array}\right), &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.11}}&lt;br /&gt;
with a single 1, in say the &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt;th spot, and zeroes everywhere else, the result is a normalized complex vector.  Acting on a set of&lt;br /&gt;
orthonormal vectors of the form given in Eq.[[#eqC.11|(C.11)]]&lt;br /&gt;
will produce another orthonormal set.  &lt;br /&gt;
&lt;br /&gt;
Let us consider the example of a &amp;lt;math&amp;gt;2\times 2\,\!&amp;lt;/math&amp;gt; unitary matrix, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
U = \left(\begin{array}{cc} &lt;br /&gt;
              a &amp;amp; b \\ &lt;br /&gt;
              c &amp;amp; d &lt;br /&gt;
           \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.12}}&lt;br /&gt;
The inverse of this matrix is the Hermitian conjugate, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
U ^{-1} = U^\dagger = \left(\begin{array}{cc} &lt;br /&gt;
                         a^* &amp;amp; c^* \\ &lt;br /&gt;
                         b^* &amp;amp; d^* &lt;br /&gt;
                       \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|C.13}}&lt;br /&gt;
provided that the matrix &amp;lt;math&amp;gt;U\,\!&amp;lt;/math&amp;gt; satisfies the constraints&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
|a|^2 + |b|^2 = 1, \; &amp;amp; \; ac^*+bd^* =0  \\&lt;br /&gt;
ca^*+db^*=0,  \;      &amp;amp;  \; |c|^2 + |d|^2 =1,&lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;|C.14}}&lt;br /&gt;
and&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
|a|^2 + |c|^2 = 1, \; &amp;amp; \; ba^*+dc^* =0  \\&lt;br /&gt;
b^*a+d^*c=0,  \;      &amp;amp;  \; |b|^2 + |d|^2 =1.&lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;|C.15}}&lt;br /&gt;
Looking at each row as a vector, the constraints in&lt;br /&gt;
Eq.[[#eqC.14|(C.14)]] are the orthonormality conditions for the&lt;br /&gt;
vectors forming the rows.  Similarly, the constraints in&lt;br /&gt;
Eq.[[#eqC.15|(C.15)]] are the orthonormality conditions for the&lt;br /&gt;
vectors forming the columns.&lt;br /&gt;
&lt;br /&gt;
Unitary matrices are very important because the preserve the magnitude of a complex vector.  In other words, if if the magnitude of a vector is one, for example &amp;lt;math&amp;gt; \big\vert\big\vert  \left\vert\psi\right\rangle\big\vert\big\vert = 1\,\!&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt; \big\vert\big\vert  U\left\vert\psi\right\rangle   \big\vert\big\vert = 1\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3094</id>
		<title>Vectors: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3094"/>
		<updated>2022-09-04T20:35:28Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Exercises */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vector &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|V.1}} &lt;br /&gt;
where&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;|V.2}} &lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|V.3}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|V.4}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This enables the inner product between two vectors to be written as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\langle{v}|)(|{w}\rangle) = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and the inner product of a vector with itself&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\langle\psi|\psi\rangle = \alpha^*\alpha + \beta^*\beta.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Basis Vectors====&lt;br /&gt;
&lt;br /&gt;
'''Basis vectors''' are vectors that can be used to write '''any other vector'''.  For example, any two-dimensional vector such as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be written in terms of the two basis vectors &amp;lt;math&amp;gt;\left|0\right\rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\left|1\right\rangle&amp;lt;/math&amp;gt;.  That is because &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right) + \beta\left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)\\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\beta&amp;lt;/math&amp;gt; can be any numbers.  So any vector can be written in terms of these.  &lt;br /&gt;
&lt;br /&gt;
It turns out that any pair of vectors that are orthogonal can serve as basis vectors.  (In fact, any two that are not in the same direction.)  Most of the time, it is best to use vectors that are orthogonal and normalized (have magnitude one).  These are called orhtonormal vectors.  The set of such vectors is called an orthonormal set and such a set can be found for any dimension.  (The dimension is also the same number as the minimal number of vectors that we need in the set in order to be able to write any vector in terms of the basis vectors.)    &lt;br /&gt;
&lt;br /&gt;
It is easy to check that the vectors &amp;lt;math&amp;gt;\left|0\right\rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\left|1\right\rangle&amp;lt;/math&amp;gt; are orthonormal.  Another set of orthonormal vectors that are commonly used in quantum computing is the set&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} &lt;br /&gt;
\left\vert + \right\rangle &amp;amp;= \frac{1}{\sqrt{2}}\left(\begin{array}{c} 1 \\ 1 &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\frac{1}{\sqrt{2}}( \left\vert 0\right\rangle + \left\vert 1\right\rangle ),  \\&lt;br /&gt;
\left\vert - \right\rangle &amp;amp;=\frac{1}{\sqrt{2}} \left(\begin{array}{c} 1 \\ -1 \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\frac{1}{\sqrt{2}}(\left\vert 0\right\rangle - \left\vert 1\right\rangle).\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
It is also easy to show that these two are also orthonormal.  In addition, note that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} &lt;br /&gt;
\left\vert 0 \right\rangle &amp;amp;=\frac{1}{\sqrt{2}}( \left\vert +\right\rangle + \left\vert -\right\rangle ),  \\&lt;br /&gt;
\left\vert 1 \right\rangle &amp;amp;=\frac{1}{\sqrt{2}}(\left\vert +\right\rangle - \left\vert -\right\rangle).\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left|r\right\rangle = \left(\begin{array}{c} 1 \\ i &lt;br /&gt;
  \end{array}\right), \;\; \left|s\right\rangle = \left(\begin{array}{c} 1+i \\ 3&lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\left|t\right\rangle = \left(\begin{array}{c} -2i \\ 2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the complex conjugate of &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the magnitudes of all three vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Normalize &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \mbox{ and } \left|t\right\rangle &amp;lt;/math&amp;gt;.  Confirm that they are now unit vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the Hermitian conjugate (dagger) of all three vectors.&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras, kets, and brackets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner product &amp;lt;math&amp;gt;\left\langle s | t\right\rangle&amp;lt;/math&amp;gt;, between &amp;lt;math&amp;gt;\left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner products among all three vectors normalized versions of the vectors.  Is there any pair that is orthogonal?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;What can you say about the magnitude of the inner products in relation to the magnitudes of the individual vectors?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Find the inner product between &amp;lt;math&amp;gt;\left|0\right\rangle, \mbox{ and } \left|1\right\rangle &amp;lt;/math&amp;gt; from Eq.[[#eqV.3|(V.2)]].  &amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Challenge Questions&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Show that any vector can be written in terms of &amp;lt;math&amp;gt;\left|+\right\rangle, \; \mbox{and} \left|-\right\rangle.&amp;lt;/math&amp;gt;  &amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3093</id>
		<title>Vectors: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3093"/>
		<updated>2022-09-04T20:33:18Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Basis Vectors */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vector &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|V.1}} &lt;br /&gt;
where&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;|V.2}} &lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|V.3}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|V.4}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This enables the inner product between two vectors to be written as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\langle{v}|)(|{w}\rangle) = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and the inner product of a vector with itself&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\langle\psi|\psi\rangle = \alpha^*\alpha + \beta^*\beta.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Basis Vectors====&lt;br /&gt;
&lt;br /&gt;
'''Basis vectors''' are vectors that can be used to write '''any other vector'''.  For example, any two-dimensional vector such as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be written in terms of the two basis vectors &amp;lt;math&amp;gt;\left|0\right\rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\left|1\right\rangle&amp;lt;/math&amp;gt;.  That is because &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right) + \beta\left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)\\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\beta&amp;lt;/math&amp;gt; can be any numbers.  So any vector can be written in terms of these.  &lt;br /&gt;
&lt;br /&gt;
It turns out that any pair of vectors that are orthogonal can serve as basis vectors.  (In fact, any two that are not in the same direction.)  Most of the time, it is best to use vectors that are orthogonal and normalized (have magnitude one).  These are called orhtonormal vectors.  The set of such vectors is called an orthonormal set and such a set can be found for any dimension.  (The dimension is also the same number as the minimal number of vectors that we need in the set in order to be able to write any vector in terms of the basis vectors.)    &lt;br /&gt;
&lt;br /&gt;
It is easy to check that the vectors &amp;lt;math&amp;gt;\left|0\right\rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\left|1\right\rangle&amp;lt;/math&amp;gt; are orthonormal.  Another set of orthonormal vectors that are commonly used in quantum computing is the set&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} &lt;br /&gt;
\left\vert + \right\rangle &amp;amp;= \frac{1}{\sqrt{2}}\left(\begin{array}{c} 1 \\ 1 &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\frac{1}{\sqrt{2}}( \left\vert 0\right\rangle + \left\vert 1\right\rangle ),  \\&lt;br /&gt;
\left\vert - \right\rangle &amp;amp;=\frac{1}{\sqrt{2}} \left(\begin{array}{c} 1 \\ -1 \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\frac{1}{\sqrt{2}}(\left\vert 0\right\rangle - \left\vert 1\right\rangle).\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
It is also easy to show that these two are also orthonormal.  In addition, note that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} &lt;br /&gt;
\left\vert 0 \right\rangle &amp;amp;=\frac{1}{\sqrt{2}}( \left\vert +\right\rangle + \left\vert -\right\rangle ),  \\&lt;br /&gt;
\left\vert 1 \right\rangle &amp;amp;=\frac{1}{\sqrt{2}}(\left\vert +\right\rangle - \left\vert -\right\rangle).\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left|r\right\rangle = \left(\begin{array}{c} 1 \\ i &lt;br /&gt;
  \end{array}\right), \;\; \left|s\right\rangle = \left(\begin{array}{c} 1+i \\ 3&lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\left|t\right\rangle = \left(\begin{array}{c} -2i \\ 2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the complex conjugate of &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the magnitudes of all three vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Normalize &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \mbox{ and } \left|t\right\rangle &amp;lt;/math&amp;gt;.  Confirm that they are now unit vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the Hermitian conjugate (dagger) of all three vectors.&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras, kets, and brackets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner product &amp;lt;math&amp;gt;\left\langle s | t\right\rangle&amp;lt;/math&amp;gt;, between &amp;lt;math&amp;gt;\left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner products among all three vectors normalized versions of the vectors.  Is there any pair that is orthogonal?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;What can you say about the magnitude of the inner products in relation to the magnitudes of the individual vectors?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Find the inner product between &amp;lt;math&amp;gt;\left|0\right\rangle, \mbox{ and } \left|1\right\rangle &amp;lt;/math&amp;gt; from Eq.[[#eqV.3|(V.2)]].  &amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3092</id>
		<title>Vectors: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3092"/>
		<updated>2022-09-04T20:32:40Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Basis Vectors */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vector &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|V.1}} &lt;br /&gt;
where&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;|V.2}} &lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|V.3}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|V.4}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This enables the inner product between two vectors to be written as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\langle{v}|)(|{w}\rangle) = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and the inner product of a vector with itself&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\langle\psi|\psi\rangle = \alpha^*\alpha + \beta^*\beta.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Basis Vectors====&lt;br /&gt;
&lt;br /&gt;
'''Basis vectors''' are vectors that can be used to write '''any other vector'''.  For example, any two-dimensional vector such as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be written in terms of the two basis vectors &amp;lt;math&amp;gt;\left|0\right\rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\left|1\right\rangle&amp;lt;/math&amp;gt;.  That is because &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right) + \beta\left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)\\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\beta&amp;lt;/math&amp;gt; can be any numbers.  So any vector can be written in terms of these.  &lt;br /&gt;
&lt;br /&gt;
It turns out that any pair of vectors that are orthogonal can serve as basis vectors.  (In fact, any two that are not in the same direction.)  Most of the time, it is best to use vectors that are orthogonal and normalized (have magnitude one).  These are called orhtonormal vectors.  The set of such vectors is called an orthonormal set and such a set can be found for any dimension.  (The dimension is also the same number as the minimal number of vectors that we need in the set in order to be able to write any vector in terms of the basis vectors.)    &lt;br /&gt;
&lt;br /&gt;
It is easy to check that the vectors &amp;lt;math&amp;gt;\left|0\right\rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\left|1\right\rangle&amp;lt;/math&amp;gt; are orthonormal.  Another set of orthonormal vectors that are commonly used in quantum computing is the set&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} &lt;br /&gt;
\left\vert + \right\rangle &amp;amp;= \frac{1}{\sqrt{2}}\left(\begin{array}{c} 1 \\ 1 &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\frac{1}{\sqrt{2}}( \left\vert 0\right\rangle + \left\vert 1\right\rangle )  \\&lt;br /&gt;
\left\vert - \right\rangle &amp;amp;=\frac{1}{\sqrt{2}} \left(\begin{array}{c} 1 \\ -1 \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\frac{1}{\sqrt{2}}(\left\vert 0\right\rangle - \left\vert 1\right\rangle),\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
It is also easy to show that these two are also orthonormal.  In addition, note that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} &lt;br /&gt;
\left\vert 0 \right\rangle &amp;amp;=\frac{1}{\sqrt{2}}( \left\vert +\right\rangle + \left\vert -\right\rangle )  \\&lt;br /&gt;
\left\vert 1 \right\rangle &amp;amp;=\frac{1}{\sqrt{2}}(\left\vert +\right\rangle - \left\vert -\right\rangle),\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
====Basis Vectors====&lt;br /&gt;
&lt;br /&gt;
'''Basis vectors''' are vectors that can be used to write '''any other vector'''.  For example, any two-dimensional vector such as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be written in terms of the two basis vectors &amp;lt;math&amp;gt;\left|0\right\rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\left|1\right\rangle&amp;lt;/math&amp;gt;.  That is because &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right) + \beta\left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)\\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\beta&amp;lt;/math&amp;gt; can be any numbers.  So any vector can be written in terms of these.  &lt;br /&gt;
&lt;br /&gt;
It turns out that any pair of vectors that are orthogonal can serve as basis vectors.  (In fact, any two that are not in the same direction.)  Most of the time, it is best to use vectors that are orthogonal and normalized (have magnitude one).  These are called orhtonormal vectors.  The set of such vectors is called an orthonormal set and such a set can be found for any dimension.  (The dimension is also the same number as the minimal number of vectors that we need in the set in order to be able to write any vector in terms of the basis vectors.)    &lt;br /&gt;
&lt;br /&gt;
It is easy to check that the vectors &amp;lt;math&amp;gt;\left|0\right\rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\left|1\right\rangle&amp;lt;/math&amp;gt; are orthonormal.  Another set of orthonormal vectors that are commonly used in quantum computing is the set&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} &lt;br /&gt;
\left\vert + \right\rangle &amp;amp;= \frac{1}{\sqrt{2}}\left(\begin{array}{c} 1 \\ 1 &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\frac{1}{\sqrt{2}}( \left\vert 0\right\rangle + \left\vert 1\right\rangle ),  \\&lt;br /&gt;
\left\vert - \right\rangle &amp;amp;=\frac{1}{\sqrt{2}} \left(\begin{array}{c} 1 \\ -1 \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\frac{1}{\sqrt{2}}(\left\vert 0\right\rangle - \left\vert 1\right\rangle).\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
It is also easy to show that these two are also orthonormal.  In addition, note that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} &lt;br /&gt;
\left\vert 0 \right\rangle &amp;amp;=\frac{1}{\sqrt{2}}( \left\vert +\right\rangle + \left\vert -\right\rangle ),  \\&lt;br /&gt;
\left\vert 1 \right\rangle &amp;amp;=\frac{1}{\sqrt{2}}(\left\vert +\right\rangle - \left\vert -\right\rangle).\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left|r\right\rangle = \left(\begin{array}{c} 1 \\ i &lt;br /&gt;
  \end{array}\right), \;\; \left|s\right\rangle = \left(\begin{array}{c} 1+i \\ 3&lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\left|t\right\rangle = \left(\begin{array}{c} -2i \\ 2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the complex conjugate of &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the magnitudes of all three vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Normalize &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \mbox{ and } \left|t\right\rangle &amp;lt;/math&amp;gt;.  Confirm that they are now unit vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the Hermitian conjugate (dagger) of all three vectors.&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras, kets, and brackets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner product &amp;lt;math&amp;gt;\left\langle s | t\right\rangle&amp;lt;/math&amp;gt;, between &amp;lt;math&amp;gt;\left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner products among all three vectors normalized versions of the vectors.  Is there any pair that is orthogonal?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;What can you say about the magnitude of the inner products in relation to the magnitudes of the individual vectors?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Find the inner product between &amp;lt;math&amp;gt;\left|0\right\rangle, \mbox{ and } \left|1\right\rangle &amp;lt;/math&amp;gt; from Eq.[[#eqV.3|(V.2)]].  &amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3091</id>
		<title>Vectors: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3091"/>
		<updated>2022-09-04T20:30:38Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Basis Vectors */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vector &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|V.1}} &lt;br /&gt;
where&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;|V.2}} &lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|V.3}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|V.4}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This enables the inner product between two vectors to be written as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\langle{v}|)(|{w}\rangle) = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and the inner product of a vector with itself&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\langle\psi|\psi\rangle = \alpha^*\alpha + \beta^*\beta.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Basis Vectors====&lt;br /&gt;
&lt;br /&gt;
'''Basis vectors''' are vectors that can be used to write '''any other vector'''.  For example, any two-dimensional vector such as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be written in terms of the two basis vectors &amp;lt;math&amp;gt;\left|0\right\rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\left|1\right\rangle&amp;lt;/math&amp;gt;.  That is because &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right) + \beta\left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)\\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\beta&amp;lt;/math&amp;gt; can be any numbers.  So any vector can be written in terms of these.  &lt;br /&gt;
&lt;br /&gt;
It turns out that any pair of vectors that are orthogonal can serve as basis vectors.  (In fact, any two that are not in the same direction.)  Most of the time, it is best to use vectors that are orthogonal and normalized (have magnitude one).  These are called orhtonormal vectors.  The set of such vectors is called an orthonormal set and such a set can be found for any dimension.  (The dimension is also the same number as the minimal number of vectors that we need in the set in order to be able to write any vector in terms of the basis vectors.)    &lt;br /&gt;
&lt;br /&gt;
It is easy to check that the vectors &amp;lt;math&amp;gt;\left|0\right\rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\left|1\right\rangle&amp;lt;/math&amp;gt; are orthonormal.  Another set of orthonormal vectors that are commonly used in quantum computing is the set&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} &lt;br /&gt;
\left\vert + \right\rangle &amp;amp;= \frac{1}{\sqrt{2}}\left(\begin{array}{c} 1 \\ 1 &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\frac{1}{\sqrt{2}}( \left\vert 0\right\rangle + \left\vert 1\right\rangle )  \\&lt;br /&gt;
\left\vert - \right\rangle &amp;amp;=\frac{1}{\sqrt{2}} \left(\begin{array}{c} 1 \\ -1 \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\frac{1}{\sqrt{2}}(\left\vert 0\right\rangle - \left\vert 1\right\rangle),\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
It is also easy to show that these two are also orthonormal.  In addition, note that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} &lt;br /&gt;
\left\vert 0 \right\rangle &amp;amp;=\frac{1}{\sqrt{2}}( \left\vert +\right\rangle + \left\vert -\right\rangle )  \\&lt;br /&gt;
\left\vert 1 \right\rangle &amp;amp;=\frac{1}{\sqrt{2}}(\left\vert +\right\rangle - \left\vert -\right\rangle),\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left|r\right\rangle = \left(\begin{array}{c} 1 \\ i &lt;br /&gt;
  \end{array}\right), \;\; \left|s\right\rangle = \left(\begin{array}{c} 1+i \\ 3&lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\left|t\right\rangle = \left(\begin{array}{c} -2i \\ 2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the complex conjugate of &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the magnitudes of all three vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Normalize &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \mbox{ and } \left|t\right\rangle &amp;lt;/math&amp;gt;.  Confirm that they are now unit vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the Hermitian conjugate (dagger) of all three vectors.&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras, kets, and brackets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner product &amp;lt;math&amp;gt;\left\langle s | t\right\rangle&amp;lt;/math&amp;gt;, between &amp;lt;math&amp;gt;\left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner products among all three vectors normalized versions of the vectors.  Is there any pair that is orthogonal?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;What can you say about the magnitude of the inner products in relation to the magnitudes of the individual vectors?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Find the inner product between &amp;lt;math&amp;gt;\left|0\right\rangle, \mbox{ and } \left|1\right\rangle &amp;lt;/math&amp;gt; from Eq.[[#eqV.3|(V.2)]].  &amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3090</id>
		<title>Vectors: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3090"/>
		<updated>2022-09-04T20:27:59Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Basis Vectors */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vector &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|V.1}} &lt;br /&gt;
where&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;|V.2}} &lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|V.3}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|V.4}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This enables the inner product between two vectors to be written as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\langle{v}|)(|{w}\rangle) = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and the inner product of a vector with itself&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\langle\psi|\psi\rangle = \alpha^*\alpha + \beta^*\beta.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Basis Vectors====&lt;br /&gt;
&lt;br /&gt;
'''Basis vectors''' are vectors that can be used to write '''any other vector'''.  For example, any two-dimensional vector such as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be written in terms of the two basis vectors &amp;lt;math&amp;gt;\left|0\right\rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\left|1\right\rangle&amp;lt;/math&amp;gt;.  That is because &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right) + \beta\left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)\\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\beta&amp;lt;/math&amp;gt; can be any numbers.  So any vector can be written in terms of these.  &lt;br /&gt;
&lt;br /&gt;
It turns out that any pair of vectors that are orthogonal can serve as basis vectors.  (In fact, any two that are not in the same direction.)  Most of the time, it is best to use vectors that are orthogonal and normalized (have magnitude one).  These are called orhtonormal vectors.  The set of such vectors is called an orthonormal set and such a set can be found for any dimension.  (The dimension is also the same number as the minimal number of vectors that we need in the set in order to be able to write any vector in terms of the basis vectors.)    &lt;br /&gt;
&lt;br /&gt;
It is easy to check that the vectors &amp;lt;math&amp;gt;\left|0\right\rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\left|1\right\rangle&amp;lt;/math&amp;gt; are orthonormal.  Another set of orthonormal vectors that are commonly used in quantum computing is the set&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} &lt;br /&gt;
\left\vert + \right\rangle &amp;amp;= \frac{1}{\sqrt{2}}\left(\begin{array}{c} 1 \\ 1 &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\frac{1}{\sqrt{2}}( \left\vert 0\right\rangle + \left\vert 1\right\rangle )  \\&lt;br /&gt;
\left\vert - \right\rangle &amp;amp;=\frac{1}{\sqrt{2}} \left(\begin{array}{c} 1 \\ -1 \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\frac{1}{\sqrt{2}}(\left\vert 0\right\rangle - \left\vert 1\right\rangle),\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left|r\right\rangle = \left(\begin{array}{c} 1 \\ i &lt;br /&gt;
  \end{array}\right), \;\; \left|s\right\rangle = \left(\begin{array}{c} 1+i \\ 3&lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\left|t\right\rangle = \left(\begin{array}{c} -2i \\ 2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the complex conjugate of &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the magnitudes of all three vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Normalize &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \mbox{ and } \left|t\right\rangle &amp;lt;/math&amp;gt;.  Confirm that they are now unit vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the Hermitian conjugate (dagger) of all three vectors.&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras, kets, and brackets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner product &amp;lt;math&amp;gt;\left\langle s | t\right\rangle&amp;lt;/math&amp;gt;, between &amp;lt;math&amp;gt;\left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner products among all three vectors normalized versions of the vectors.  Is there any pair that is orthogonal?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;What can you say about the magnitude of the inner products in relation to the magnitudes of the individual vectors?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Find the inner product between &amp;lt;math&amp;gt;\left|0\right\rangle, \mbox{ and } \left|1\right\rangle &amp;lt;/math&amp;gt; from Eq.[[#eqV.3|(V.2)]].  &amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3089</id>
		<title>Vectors: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3089"/>
		<updated>2022-09-04T20:27:37Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Basis Vectors */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vector &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|V.1}} &lt;br /&gt;
where&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;|V.2}} &lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|V.3}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|V.4}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This enables the inner product between two vectors to be written as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\langle{v}|)(|{w}\rangle) = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and the inner product of a vector with itself&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\langle\psi|\psi\rangle = \alpha^*\alpha + \beta^*\beta.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Basis Vectors====&lt;br /&gt;
&lt;br /&gt;
'''Basis vectors''' are vectors that can be used to write '''any other vector'''.  For example, any two-dimensional vector such as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be written in terms of the two basis vectors &amp;lt;math&amp;gt;\left|0\right\rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\left|1\right\rangle&amp;lt;/math&amp;gt;.  That is because &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right) + \beta\left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)\\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\beta&amp;lt;/math&amp;gt; can be any numbers.  So any vector can be written in terms of these.  &lt;br /&gt;
&lt;br /&gt;
It turns out that any pair of vectors that are orthogonal can serve as basis vectors.  (In fact, any two that are not in the same direction.)  Most of the time, it is best to use vectors that are orthogonal and normalized (have magnitude one).  These are called orhtonormal vectors.  The set of such vectors is called an orthonormal set and such a set can be found for any dimension.  (The dimension is also the same number as the minimal number of vectors that we need in the set in order to be able to write any vector in terms of the basis vectors.)    &lt;br /&gt;
&lt;br /&gt;
It is easy to check that the vectors &amp;lt;math&amp;gt;\left|0\right\rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\left|1\right\rangle&amp;lt;/math&amp;gt; are orthonormal.  Another set of orthonormal vectors that are commonly used in quantum computing is the set&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} &lt;br /&gt;
\left\vert + \right\rangle &amp;amp;= \frac{1}{\sqrt{2}}\left(\begin{array}{c} 1 \\ 1 &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\frac{1}{\sqrt{2}}( \left\vert 0\right\rangle + \left\vert 1\right\rangle )  \\&lt;br /&gt;
\left\vert - \right\rangle &amp;amp;=\frac{1}{\sqrt{2}} \left(\begin{array}{c} 1 \\ -1 \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\frac{1}{\sqrt{2}}(\left\vert 0\right\rangle + \left\vert 1\right\rangle),\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left|r\right\rangle = \left(\begin{array}{c} 1 \\ i &lt;br /&gt;
  \end{array}\right), \;\; \left|s\right\rangle = \left(\begin{array}{c} 1+i \\ 3&lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\left|t\right\rangle = \left(\begin{array}{c} -2i \\ 2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the complex conjugate of &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the magnitudes of all three vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Normalize &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \mbox{ and } \left|t\right\rangle &amp;lt;/math&amp;gt;.  Confirm that they are now unit vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the Hermitian conjugate (dagger) of all three vectors.&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras, kets, and brackets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner product &amp;lt;math&amp;gt;\left\langle s | t\right\rangle&amp;lt;/math&amp;gt;, between &amp;lt;math&amp;gt;\left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner products among all three vectors normalized versions of the vectors.  Is there any pair that is orthogonal?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;What can you say about the magnitude of the inner products in relation to the magnitudes of the individual vectors?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Find the inner product between &amp;lt;math&amp;gt;\left|0\right\rangle, \mbox{ and } \left|1\right\rangle &amp;lt;/math&amp;gt; from Eq.[[#eqV.3|(V.2)]].  &amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3088</id>
		<title>Vectors: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3088"/>
		<updated>2022-09-04T20:26:32Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Basis Vectors */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vector &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|V.1}} &lt;br /&gt;
where&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;|V.2}} &lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|V.3}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|V.4}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This enables the inner product between two vectors to be written as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\langle{v}|)(|{w}\rangle) = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and the inner product of a vector with itself&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\langle\psi|\psi\rangle = \alpha^*\alpha + \beta^*\beta.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Basis Vectors====&lt;br /&gt;
&lt;br /&gt;
'''Basis vectors''' are vectors that can be used to write '''any other vector'''.  For example, any two-dimensional vector such as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be written in terms of the two basis vectors &amp;lt;math&amp;gt;\left|0\right\rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\left|1\right\rangle&amp;lt;/math&amp;gt;.  That is because &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right) + \beta\left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)\\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\beta&amp;lt;/math&amp;gt; can be any numbers.  So any vector can be written in terms of these.  &lt;br /&gt;
&lt;br /&gt;
It turns out that any pair of vectors that are orthogonal can serve as basis vectors.  (In fact, any two that are not in the same direction.)  Most of the time, it is best to use vectors that are orthogonal and normalized (have magnitude one).  These are called orhtonormal vectors.  The set of such vectors is called an orthonormal set and such a set can be found for any dimension.  (The dimension is also the same number as the minimal number of vectors that we need in the set in order to be able to write any vector in terms of the basis vectors.)    &lt;br /&gt;
&lt;br /&gt;
It is easy to check that the vectors &amp;lt;math&amp;gt;\left|0\right\rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\left|1\right\rangle&amp;lt;/math&amp;gt; are orthonormal.  Another set of orthonormal vectors that are commonly used in quantum computing is the set&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} &lt;br /&gt;
\left\vert + \right\rangle &amp;amp;= \frac{1}{\sqrt{2}}\left(\begin{array}{c} 1 \\ 1 &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\frac{1}{\sqrt{2}}( \left\vert 0\right\rangle + \left\vert 1\right\rangle )  \\&lt;br /&gt;
\left\vert - \right\rangle &amp;amp;=\alpha \left(\begin{array}{c} 1 \\ -1 \end{array}\right) + \beta\left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)\\&lt;br /&gt;
           &amp;amp;=\frac{1}{\sqrt{2}}(\left\vert 0\right\rangle + \left\vert 1\right\rangle),\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left|r\right\rangle = \left(\begin{array}{c} 1 \\ i &lt;br /&gt;
  \end{array}\right), \;\; \left|s\right\rangle = \left(\begin{array}{c} 1+i \\ 3&lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\left|t\right\rangle = \left(\begin{array}{c} -2i \\ 2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the complex conjugate of &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the magnitudes of all three vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Normalize &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \mbox{ and } \left|t\right\rangle &amp;lt;/math&amp;gt;.  Confirm that they are now unit vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the Hermitian conjugate (dagger) of all three vectors.&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras, kets, and brackets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner product &amp;lt;math&amp;gt;\left\langle s | t\right\rangle&amp;lt;/math&amp;gt;, between &amp;lt;math&amp;gt;\left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner products among all three vectors normalized versions of the vectors.  Is there any pair that is orthogonal?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;What can you say about the magnitude of the inner products in relation to the magnitudes of the individual vectors?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Find the inner product between &amp;lt;math&amp;gt;\left|0\right\rangle, \mbox{ and } \left|1\right\rangle &amp;lt;/math&amp;gt; from Eq.[[#eqV.3|(V.2)]].  &amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3087</id>
		<title>Vectors: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3087"/>
		<updated>2022-09-04T20:13:26Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Basis Vectors */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vector &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|V.1}} &lt;br /&gt;
where&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;|V.2}} &lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|V.3}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|V.4}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This enables the inner product between two vectors to be written as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\langle{v}|)(|{w}\rangle) = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and the inner product of a vector with itself&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\langle\psi|\psi\rangle = \alpha^*\alpha + \beta^*\beta.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Basis Vectors====&lt;br /&gt;
&lt;br /&gt;
'''Basis vectors''' are vectors that can be used to write '''any other vector'''.  For example, any two-dimensional vector such as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be written in terms of the two basis vectors &amp;lt;math&amp;gt;\left|0\right\rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\left|1\right\rangle&amp;lt;/math&amp;gt;.  That is because &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right) + \beta\left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)\\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align},&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left|r\right\rangle = \left(\begin{array}{c} 1 \\ i &lt;br /&gt;
  \end{array}\right), \;\; \left|s\right\rangle = \left(\begin{array}{c} 1+i \\ 3&lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\left|t\right\rangle = \left(\begin{array}{c} -2i \\ 2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the complex conjugate of &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the magnitudes of all three vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Normalize &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \mbox{ and } \left|t\right\rangle &amp;lt;/math&amp;gt;.  Confirm that they are now unit vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the Hermitian conjugate (dagger) of all three vectors.&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras, kets, and brackets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner product &amp;lt;math&amp;gt;\left\langle s | t\right\rangle&amp;lt;/math&amp;gt;, between &amp;lt;math&amp;gt;\left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner products among all three vectors normalized versions of the vectors.  Is there any pair that is orthogonal?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;What can you say about the magnitude of the inner products in relation to the magnitudes of the individual vectors?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Find the inner product between &amp;lt;math&amp;gt;\left|0\right\rangle, \mbox{ and } \left|1\right\rangle &amp;lt;/math&amp;gt; from Eq.[[#eqV.3|(V.2)]].  &amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3086</id>
		<title>Vectors: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3086"/>
		<updated>2022-09-04T20:11:31Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Basis Vectors */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vector &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|V.1}} &lt;br /&gt;
where&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;|V.2}} &lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|V.3}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|V.4}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This enables the inner product between two vectors to be written as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\langle{v}|)(|{w}\rangle) = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and the inner product of a vector with itself&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\langle\psi|\psi\rangle = \alpha^*\alpha + \beta^*\beta.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Basis Vectors====&lt;br /&gt;
&lt;br /&gt;
'''Basis vectors''' are vectors that can be used to write '''any other vector'''.  For example, any two-dimensional vector such as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be written in terms of the two basis vectors &amp;lt;math&amp;gt;\left|0\right\rangle&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\left|1\right\rangle&amp;lt;/math&amp;gt;.  That is because &lt;br /&gt;
&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right) + \beta\left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right),\end{align} \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align},&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left|r\right\rangle = \left(\begin{array}{c} 1 \\ i &lt;br /&gt;
  \end{array}\right), \;\; \left|s\right\rangle = \left(\begin{array}{c} 1+i \\ 3&lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\left|t\right\rangle = \left(\begin{array}{c} -2i \\ 2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the complex conjugate of &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the magnitudes of all three vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Normalize &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \mbox{ and } \left|t\right\rangle &amp;lt;/math&amp;gt;.  Confirm that they are now unit vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the Hermitian conjugate (dagger) of all three vectors.&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras, kets, and brackets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner product &amp;lt;math&amp;gt;\left\langle s | t\right\rangle&amp;lt;/math&amp;gt;, between &amp;lt;math&amp;gt;\left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner products among all three vectors normalized versions of the vectors.  Is there any pair that is orthogonal?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;What can you say about the magnitude of the inner products in relation to the magnitudes of the individual vectors?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Find the inner product between &amp;lt;math&amp;gt;\left|0\right\rangle, \mbox{ and } \left|1\right\rangle &amp;lt;/math&amp;gt; from Eq.[[#eqV.3|(V.2)]].  &amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3085</id>
		<title>Vectors: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3085"/>
		<updated>2022-09-04T20:06:44Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Complex Inner Product */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vector &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|V.1}} &lt;br /&gt;
where&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;|V.2}} &lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|V.3}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|V.4}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This enables the inner product between two vectors to be written as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\langle{v}|)(|{w}\rangle) = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and the inner product of a vector with itself&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\langle\psi|\psi\rangle = \alpha^*\alpha + \beta^*\beta.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Basis Vectors====&lt;br /&gt;
&lt;br /&gt;
Basis vectors are vectors that can be used to write '''any other vector'''.  For example, any two-dimensional vector such as&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left|r\right\rangle = \left(\begin{array}{c} 1 \\ i &lt;br /&gt;
  \end{array}\right), \;\; \left|s\right\rangle = \left(\begin{array}{c} 1+i \\ 3&lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\left|t\right\rangle = \left(\begin{array}{c} -2i \\ 2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the complex conjugate of &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the magnitudes of all three vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Normalize &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \mbox{ and } \left|t\right\rangle &amp;lt;/math&amp;gt;.  Confirm that they are now unit vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the Hermitian conjugate (dagger) of all three vectors.&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras, kets, and brackets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner product &amp;lt;math&amp;gt;\left\langle s | t\right\rangle&amp;lt;/math&amp;gt;, between &amp;lt;math&amp;gt;\left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner products among all three vectors normalized versions of the vectors.  Is there any pair that is orthogonal?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;What can you say about the magnitude of the inner products in relation to the magnitudes of the individual vectors?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Find the inner product between &amp;lt;math&amp;gt;\left|0\right\rangle, \mbox{ and } \left|1\right\rangle &amp;lt;/math&amp;gt; from Eq.[[#eqV.3|(V.2)]].  &amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3084</id>
		<title>Vectors: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3084"/>
		<updated>2022-09-04T19:32:27Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Exercises */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vector &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|V.1}} &lt;br /&gt;
where&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;|V.2}} &lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|V.3}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|V.4}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This enables the inner product between two vectors to be written as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\langle{v}|)(|{w}\rangle) = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and the inner product of a vector with itself&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\langle\psi|\psi\rangle = \alpha^*\alpha + \beta^*\beta.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left|r\right\rangle = \left(\begin{array}{c} 1 \\ i &lt;br /&gt;
  \end{array}\right), \;\; \left|s\right\rangle = \left(\begin{array}{c} 1+i \\ 3&lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\left|t\right\rangle = \left(\begin{array}{c} -2i \\ 2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the complex conjugate of &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the magnitudes of all three vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Normalize &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \mbox{ and } \left|t\right\rangle &amp;lt;/math&amp;gt;.  Confirm that they are now unit vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the Hermitian conjugate (dagger) of all three vectors.&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras, kets, and brackets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner product &amp;lt;math&amp;gt;\left\langle s | t\right\rangle&amp;lt;/math&amp;gt;, between &amp;lt;math&amp;gt;\left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner products among all three vectors normalized versions of the vectors.  Is there any pair that is orthogonal?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;What can you say about the magnitude of the inner products in relation to the magnitudes of the individual vectors?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Find the inner product between &amp;lt;math&amp;gt;\left|0\right\rangle, \mbox{ and } \left|1\right\rangle &amp;lt;/math&amp;gt; from Eq.[[#eqV.3|(V.2)]].  &amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3083</id>
		<title>Vectors: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3083"/>
		<updated>2022-09-04T19:31:58Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Exercises */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vector &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|V.1}} &lt;br /&gt;
where&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;|V.2}} &lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|V.3}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|V.4}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This enables the inner product between two vectors to be written as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\langle{v}|)(|{w}\rangle) = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and the inner product of a vector with itself&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\langle\psi|\psi\rangle = \alpha^*\alpha + \beta^*\beta.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left|r\right\rangle = \left(\begin{array}{c} 1 \\ i &lt;br /&gt;
  \end{array}\right), \;\; \left|s\right\rangle = \left(\begin{array}{c} 1+i \\ 3&lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\left|t\right\rangle = \left(\begin{array}{c} -2i \\ 2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the complex conjugate of &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the magnitudes of all three vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Normalize &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \mbox{ and } \left|t\right\rangle &amp;lt;/math&amp;gt;.  Confirm that they are now unit vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the Hermitian conjugate (dagger) of all three vectors.&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras, kets, and brackets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner product &amp;lt;math&amp;gt;\left\langle s | t\right\rangle&amp;lt;/math&amp;gt;, between &amp;lt;math&amp;gt;\left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner products among all three vectors normalized versions of the vectors.  Is there any pair that is orthogonal?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;What can you say about the magnitude of the inner products in relation to the magnitudes of the individual vectors?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Find the inner product between &amp;lt;math&amp;gt;\left|0\right\rangle, \mbox{ and } \left|1\right\rangle &amp;lt;/math&amp;gt; from Eq.[[#eqV.3|(V.3)]].  &amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3082</id>
		<title>Vectors: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3082"/>
		<updated>2022-09-04T19:27:08Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vector &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|V.1}} &lt;br /&gt;
where&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;|V.2}} &lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|V.3}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|V.4}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This enables the inner product between two vectors to be written as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\langle{v}|)(|{w}\rangle) = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and the inner product of a vector with itself&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\langle\psi|\psi\rangle = \alpha^*\alpha + \beta^*\beta.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left|r\right\rangle = \left(\begin{array}{c} 1 \\ i &lt;br /&gt;
  \end{array}\right), \;\; \left|s\right\rangle = \left(\begin{array}{c} 1+i \\ 3&lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\left|t\right\rangle = \left(\begin{array}{c} -2i \\ 2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the complex conjugate of &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the magnitudes of all three vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Normalize &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \mbox{ and } \left|t\right\rangle &amp;lt;/math&amp;gt;.  Confirm that they are now unit vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the Hermitian conjugate (dagger) of all three vectors.&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras, kets, and brackets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner product &amp;lt;math&amp;gt;\left\langle s | t\right\rangle&amp;lt;/math&amp;gt;, between &amp;lt;math&amp;gt;\left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner products among all three vectors normalized versions of the vectors.  Is there any pair that is orthogonal?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;What can you say about the magnitude of the inner products in relation to the magnitudes of the individual vectors?&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Quantum_Computation_and_Quantum_Error_Prevention&amp;diff=3081</id>
		<title>Quantum Computation and Quantum Error Prevention</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Quantum_Computation_and_Quantum_Error_Prevention&amp;diff=3081"/>
		<updated>2022-09-04T19:24:58Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Appendices */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;QUNET IS FREE TO READ!  If you would like to ''contribute'' to the qunet wiki book, in other words, if you want to edit QUNET, you must have an account.   Click [https://qunet.physics.siu.edu/submit/requestform.html here] to request one.  &lt;br /&gt;
&lt;br /&gt;
NOTICE -- This site is incomplete.  There is no doubt that it has small mistakes and typos and the citations are far from complete. Also, this is a living document so a final form may never exist.  Please email errors, typos, corrections and/or comments to Mark Byrd.&lt;br /&gt;
&lt;br /&gt;
Please see the [[Appendix G - NOTES and CREDITS|Notes and Credits]] for further information and a list of contributors.  &lt;br /&gt;
&lt;br /&gt;
===Table of Contents: Part I -- The Basics===&lt;br /&gt;
&lt;br /&gt;
:&amp;amp;nbsp;&amp;amp;nbsp; &amp;lt;big&amp;gt;[[Preface]]&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Chapter 1 - Introduction]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 1 - Introduction#Introduction|Introduction]]&lt;br /&gt;
##[[Chapter 1 - Introduction#An Introduction to Quantum Computation|An Introduction to Quantum Computation]]&lt;br /&gt;
##[[Chapter 1 - Introduction#Bits and qubits: An Introduction|Bits and qubits: An Introduction]]&lt;br /&gt;
##[[Chapter 1 - Introduction#Obstacles to Building a Reliable Quantum Computer|Obstacles to Building a Reliable Quantum Computer]]&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Chapter 2 - Qubits and Collections of Qubits]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 2 - Qubits and Collections of Qubits#Introduction|Introduction]]&lt;br /&gt;
##[[Chapter 2 - Qubits and Collections of Qubits#Qubit States|Qubit States]]&lt;br /&gt;
##[[Chapter 2 - Qubits and Collections of Qubits#Qubit Gates|Qubit Gates]]&lt;br /&gt;
##[[Chapter 2 - Qubits and Collections of Qubits#The Pauli Matrices|The Pauli Matrices]]&lt;br /&gt;
##[[Chapter 2 - Qubits and Collections of Qubits#States of Many Qubits|States of Many Qubits]]&lt;br /&gt;
##[[Chapter 2 - Qubits and Collections of Qubits#Quantum Gates for Many Qubits|Quantum Gates for Many Qubits]]&lt;br /&gt;
##[[Chapter 2 - Qubits and Collections of Qubits#Measurement|Measurement]]&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Chapter 3 - Physics of Quantum Information]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 3 - Physics of Quantum Information#Introduction|Introduction]]&lt;br /&gt;
##[[Chapter 3 - Physics of Quantum Information#Schrodinger.27s_Equation|Schrodinger’s Equation]]&lt;br /&gt;
##[[Chapter 3 - Physics of Quantum Information#Density Matrix for Pure States|Density Matrix for Pure States]]&lt;br /&gt;
##[[Chapter 3 - Physics of Quantum Information#Measurements Revisited|Measurements Revisited]]&lt;br /&gt;
##[[Chapter 3 - Physics of Quantum Information#Density Matrix for Mixed States|Density Matrix for a Mixed State]]&lt;br /&gt;
##[[Chapter 3 - Physics of Quantum Information#Expectation Values|Expectation Values]]&lt;br /&gt;
&amp;lt;!--##[[Chapter 3 - Physics of Quantum Information#Types of Two-state Systems|Types of Two-state Systems]]--&amp;gt;&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Chapter 4 - Entanglement]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 4 - Entanglement#Introduction|Introduction]]&lt;br /&gt;
##[[Chapter 4 - Entanglement#Entangled Pure States|Entangled Pure States]]&lt;br /&gt;
##[[Chapter 4 - Entanglement#Entangled Mixed States|Entangled Mixed States]]&lt;br /&gt;
##[[Chapter 4 - Entanglement#Extensions and Open Problems|Extensions and Open Problems]]&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Chapter 5 - Quantum Information: Basics and Simple Examples]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basics and Simple Examples#Introduction|Introduction]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basics and Simple Examples#No Cloning!|No Cloning!]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basics and Simple Examples#Uncertainty Principle|Uncertainty Principle]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basics and Simple Examples#Quantum Dense Coding|Quantum Dense Coding]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basics and Simple Examples#Teleporting a Quantum State|Teleporting a Quantum State]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basics and Simple Examples#QKD: BB84|QKD: BB84]]&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Chapter 6 - Noise in Quantum Systems]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 6 - Noise in Quantum Systems#Introduction|Introduction]]&lt;br /&gt;
##[[Chapter 6 - Noise in Quantum Systems#SMR Representation or Operator-Sum Representation|SMR Representation or Operator-Sum Representation]]&lt;br /&gt;
##[[Chapter 6 - Noise in Quantum Systems#Modelling Open System Evolution|Modelling Open System Evolution]]&lt;br /&gt;
##[[Chapter 6 - Noise in Quantum Systems#Unitary Degree of Freedom in the OSR|Unitary Degree of Freedom in the OSR]]&lt;br /&gt;
##[[Chapter 6 - Noise in Quantum Systems#Examples|Examples]]&lt;br /&gt;
##[[Chapter 6 - Noise in Quantum Systems#Notes|Notes]]&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Chapter 7 - Quantum Error Correcting Codes]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 7 - Quantum Error Correcting Codes#Introduction|Introduction]]&lt;br /&gt;
##[[Chapter 7 - Quantum Error Correcting Codes#Shor's Nine-Qubit Quantum Error Correcting Code|Shor's Nine-Qubit Quantum Error Correcting Code]]&lt;br /&gt;
##[[Chapter 7 - Quantum Error Correcting Codes#Quantum Error Correcting Codes: General Properties|Quantum Error Correcting Codes: General Properties]]&lt;br /&gt;
##[[Chapter 7 - Quantum Error Correcting Codes#Stabilizer Codes|Stabilizer Codes]]&lt;br /&gt;
##[[Chapter 7 - Quantum Error Correcting Codes#CSS Codes|CSS codes]]&lt;br /&gt;
##[[Chapter 7 - Quantum Error Correcting Codes#Steane's Seven Qubit Code|Steane's Seven Qubit Code]]&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Chapter 8 - Decoherence-Free/Noiseless Subsystems]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 8 - Decoherence-Free/Noiseless Subsystems#Introduction|Introduction]]&lt;br /&gt;
##[[Chapter 8 - Decoherence-Free/Noiseless Subsystems#General Considerations|General Considerations]]&lt;br /&gt;
##[[Chapter 8 - Decoherence-Free/Noiseless Subsystems#DNS Examples|DNS Examples]]&lt;br /&gt;
##[[Chapter 8 - Decoherence-Free/Noiseless Subsystems#Quantum Computing on a DNS|Quantum Computing on a DNS]]&lt;br /&gt;
##[[Chapter 8 - Decoherence-Free/Noiseless Subsystems#QC Examples|QC Examples]]&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Chapter 9 - Dynamical Decoupling Controls]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 9 - Dynamical Decoupling Controls#Introduction|Introduction]]&lt;br /&gt;
##[[Chapter 9 - Dynamical Decoupling Controls#General Conditions|General Conditions]]&lt;br /&gt;
##[[Chapter 9 - Dynamical Decoupling Controls#The Magnus Expansion|The Magnus Expansion]]&lt;br /&gt;
##[[Chapter 9 - Dynamical Decoupling Controls#First-Order Theory|First-Order Theory]]&lt;br /&gt;
##[[Chapter 9 - Dynamical Decoupling Controls#The Single Qubit Case|The Single Qubit Case]]&lt;br /&gt;
##[[Chapter 9 - Dynamical Decoupling Controls#Extensions|Extensions]]&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Chapter 10 - Fault-Tolerant Quantum Computing|Chapter 10 - Fault-Tolerant Quantum Computing]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 10 - Fault-Tolerant Quantum Computing|Introduction]]&lt;br /&gt;
##[[Chapter 10 - Fault-Tolerant Quantum Computing|Requirements for Fault-Tolerance]]&lt;br /&gt;
##[[Chapter 10 - Fault-Tolerant Quantum Computing|Concatenated Codes]]&lt;br /&gt;
##[[Chapter 10 - Fault-Tolerant Quantum Computing|Fault-Tolerant Quantum Computing for the Steane Code]]&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Chapter 11 - Hybrid Methods of Quantum Error Prevention]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 11 - Hybrid Methods of Quantum Error Prevention|Introduction]]&lt;br /&gt;
##[[Chapter 11 - Hybrid Methods of Quantum Error Prevention|General Principles for Combining Error Prevention Methods]]&lt;br /&gt;
##[[Chapter 11 - Hybrid Methods of Quantum Error Prevention|Examples of Hybrid Error Prevention]]&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Chapter 12 - Conclusions and Further Study]]&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Table of Contents: Part II -- Advanced Topics===&lt;br /&gt;
&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Chapter 13 - Topological Quantum Error Correction]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 13 - Topological Quantum Error Correction|Introduction]]&lt;br /&gt;
##[[Chapter 13 - Topological Quantum Error Correction|The Surface Code]]&lt;br /&gt;
&lt;br /&gt;
===Appendices===&lt;br /&gt;
&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Appendix A - Basic Probability Concepts]]&amp;lt;/big&amp;gt;&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Appendix B - Complex Numbers]]&amp;lt;/big&amp;gt;&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Appendix C - Vectors and Linear Algebra]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Appendix C - Vectors and Linear Algebra#Introduction|Introduction]]&lt;br /&gt;
##[[Appendix C - Vectors and Linear Algebra#Vectors|Vectors]]&lt;br /&gt;
##[[Appendix C - Vectors and Linear Algebra#Linear Algebra: Matrices|Linear Algebra: Matrices]]&lt;br /&gt;
##[[Appendix C - Vectors and Linear Algebra#More Dirac Notation|More Dirac Notation]]&lt;br /&gt;
##[[Appendix C - Vectors and Linear Algebra#Transformations|Transformations]]&lt;br /&gt;
##[[Appendix C - Vectors and Linear Algebra#Eigenvalues and Eigenvectors|Eigenvalues and Eigenvectors]]&lt;br /&gt;
##[[Appendix C - Vectors and Linear Algebra#Tensor Products|Tensor Products]]&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Appendix D - Group Theory]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Appendix D - Group Theory#Introduction|Introduction]]&lt;br /&gt;
##[[Appendix D - Group Theory#Definitions and Examples|Definitions and Examples]]&lt;br /&gt;
##[[Appendix D - Group Theory#Comparing Groups: Homomorphisms and Isomorphisms|Comparing Groups: Homomorphisms and Isomorphisms]]&lt;br /&gt;
##[[Appendix D - Group Theory#Discussion|Discussion]]&lt;br /&gt;
##[[Appendix D - Group Theory#Applications to Physics|Applications to Physics]]&lt;br /&gt;
##[[Appendix D - Group Theory#A Little Representation Theory|A Little Representation Theory]]&lt;br /&gt;
##[[Appendix D - Group Theory#Infinite Order Groups: Lie Groups|Infinite Order Groups: Lie Groups]]&lt;br /&gt;
##[[Appendix D - Group Theory#More Representation Theory|More Representation Theory]]&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Appendix E - Density Operator: Extensions]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Appendix E - Density Operator: Extensions#Introduction|Introduction]]&lt;br /&gt;
##[[Appendix E - Density Operator: Extensions#An N-dimensional Generalization of the Polarization Vector|An N-dimensional Generalization of the Polarization Vector]]&lt;br /&gt;
##[[Appendix E - Density Operator: Extensions#The Density Matrix for Two Qubits|The Density Matrix for Two Qubits]]&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Appendix F - Classical Error Correcting Codes]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Appendix F - Classical Error Correcting Codes#Introduction|Introduction]]&lt;br /&gt;
##[[Appendix F - Classical Error Correcting Codes#Binary Operations|Binary Operations]]&lt;br /&gt;
##[[Appendix F - Classical Error Correcting Codes#Definitions and Basics|Definitions and Basics]]&lt;br /&gt;
##[[Appendix F - Classical Error Correcting Codes#Linear Codes|Linear Codes]]&lt;br /&gt;
##[[Appendix F - Classical Error Correcting Codes#Errors|Errors]]&lt;br /&gt;
##[[Appendix F - Classical Error Correcting Codes#The Disjointness Condition and Correcting Errors|The Disjointness Condition and Correcting Errors]]&lt;br /&gt;
##[[Appendix F - Classical Error Correcting Codes#The Hamming Bound|The Hamming Bound]]&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Appendix G - NOTES and CREDITS]]&amp;lt;/big&amp;gt;&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Appendix H: Topics in Quantum Mechanics]]&amp;lt;/big&amp;gt;&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Vectors: A beginner's guide]]&amp;lt;/big&amp;gt;&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Matrices: A beginner's guide]]&amp;lt;/big&amp;gt;&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Binary]]&amp;lt;/big&amp;gt;&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Testing]]&amp;lt;/big&amp;gt;&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Simulation Testing]]&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;!--#&amp;lt;big&amp;gt;[[Vectors and Matrices: A new beginning]]&amp;lt;/big&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Glossary===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;[[Glossary]]&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Index===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;[[Index]]&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Bibliography===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;[[Bibliography]]&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Notation===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;[[Notation]]&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
''Much of this material is based upon work supported by the National Science Foundation under Grant No. 0545798.  However, any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3080</id>
		<title>Vectors: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3080"/>
		<updated>2022-09-04T19:23:11Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Complex Vectors */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vector &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
where&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This enables the inner product between two vectors to be written as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\langle{v}|)(|{w}\rangle) = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and the inner product of a vector with itself&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\langle\psi|\psi\rangle = \alpha^*\alpha + \beta^*\beta.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left|r\right\rangle = \left(\begin{array}{c} 1 \\ i &lt;br /&gt;
  \end{array}\right), \;\; \left|s\right\rangle = \left(\begin{array}{c} 1+i \\ 3&lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\left|t\right\rangle = \left(\begin{array}{c} -2i \\ 2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the complex conjugate of &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the magnitudes of all three vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Normalize &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \mbox{ and } \left|t\right\rangle &amp;lt;/math&amp;gt;.  Confirm that they are now unit vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the Hermitian conjugate (dagger) of all three vectors.&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras, kets, and brackets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner product &amp;lt;math&amp;gt;\left\langle s | t\right\rangle&amp;lt;/math&amp;gt;, between &amp;lt;math&amp;gt;\left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner products among all three vectors normalized versions of the vectors.  Is there any pair that is orthogonal?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;What can you say about the magnitude of the inner products in relation to the magnitudes of the individual vectors?&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3079</id>
		<title>Vectors: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3079"/>
		<updated>2022-09-04T19:20:20Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Exercises */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vector &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This enables the inner product between two vectors to be written as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\langle{v}|)(|{w}\rangle) = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and the inner product of a vector with itself&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\langle\psi|\psi\rangle = \alpha^*\alpha + \beta^*\beta.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left|r\right\rangle = \left(\begin{array}{c} 1 \\ i &lt;br /&gt;
  \end{array}\right), \;\; \left|s\right\rangle = \left(\begin{array}{c} 1+i \\ 3&lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\left|t\right\rangle = \left(\begin{array}{c} -2i \\ 2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the complex conjugate of &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the magnitudes of all three vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Normalize &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \mbox{ and } \left|t\right\rangle &amp;lt;/math&amp;gt;.  Confirm that they are now unit vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the Hermitian conjugate (dagger) of all three vectors.&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras, kets, and brackets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner product &amp;lt;math&amp;gt;\left\langle s | t\right\rangle&amp;lt;/math&amp;gt;, between &amp;lt;math&amp;gt;\left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner products among all three vectors normalized versions of the vectors.  Is there any pair that is orthogonal?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;What can you say about the magnitude of the inner products in relation to the magnitudes of the individual vectors?&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3078</id>
		<title>Vectors: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3078"/>
		<updated>2022-09-04T19:19:40Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Exercises */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vector &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This enables the inner product between two vectors to be written as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\langle{v}|)(|{w}\rangle) = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and the inner product of a vector with itself&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\langle\psi|\psi\rangle = \alpha^*\alpha + \beta^*\beta.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left|r\right\rangle = \left(\begin{array}{c} 1 \\ i &lt;br /&gt;
  \end{array}\right), \;\; \left|s\right\rangle = \left(\begin{array}{c} 1+i \\ 3&lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\left|t\right\rangle = \left(\begin{array}{c} -2i \\ 2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the complex conjugate of &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the magnitudes of all three vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Normalize &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \mbox{ and } \left|t\right\rangle &amp;lt;/math&amp;gt;.  Confirm that they are now unit vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the Hermitian conjugate (dagger) of all three vectors.&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras, kets, and brackets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner product &amp;lt;math&amp;gt;\left\langle s | t\right\rangle&amp;lt;/math&amp;gt;, between \left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner products among all three vectors normalized versions of the vectors.  Is there any pair that is orthogonal?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;What can you say about the magnitude of the inner products in relation to the magnitudes of the individual vectors?&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3077</id>
		<title>Vectors: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3077"/>
		<updated>2022-08-29T19:07:11Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Exercises */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vector &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This enables the inner product between two vectors to be written as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\langle{v}|)(|{w}\rangle) = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and the inner product of a vector with itself&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\langle\psi|\psi\rangle = \alpha^*\alpha + \beta^*\beta.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left|r\right\rangle = \left(\begin{array}{c} 1 \\ i &lt;br /&gt;
  \end{array}\right), \;\; \left|s\right\rangle = \left(\begin{array}{c} 1+i \\ 3&lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\left|t\right\rangle = \left(\begin{array}{c} -2i \\ 2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the complex conjugate of &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the magnitudes of all three vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Normalize &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \mbox{ and } \left|t\right\rangle &amp;lt;/math&amp;gt;.  Confirm that they are now unit vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the Hermitian conjugate (dagger) of all three vectors.&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras, kets, and brackets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Write down &amp;lt;math&amp;gt;\left\langle s\right|&amp;lt;/math&amp;gt; from your calculations above. &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate &amp;lt;math&amp;gt;\left\langle s | t\right\rangle&amp;lt;/math&amp;gt;  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner products among all three vectors normalized versions of the vectors.  Is there any pair that is orthogonal?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;What can you say about the magnitude of the inner products?&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3076</id>
		<title>Vectors: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3076"/>
		<updated>2022-08-29T19:06:03Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Exercises */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vector &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This enables the inner product between two vectors to be written as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\langle{v}|)(|{w}\rangle) = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and the inner product of a vector with itself&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\langle\psi|\psi\rangle = \alpha^*\alpha + \beta^*\beta.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left|r\right\rangle = \left(\begin{array}{c} 1 \\ i &lt;br /&gt;
  \end{array}\right), \;\; \left|s\right\rangle = \left(\begin{array}{c} 1+i \\ 3&lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\left|t\right\rangle = \left(\begin{array}{c} -2i \\ 2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the complex conjugate of &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Normalize &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \mbox{ and } \left|t\right\rangle &amp;lt;/math&amp;gt;.  Confirm that they are now unit vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the Hermitian conjugate (dagger) of all three vectors.&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras, kets, and brackets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Write down &amp;lt;math&amp;gt;\left\langle s\right|&amp;lt;/math&amp;gt; from your calculations above. &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate &amp;lt;math&amp;gt;\left\langle s | t\right\rangle&amp;lt;/math&amp;gt;  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner products among all three vectors normalized versions of the vectors.  Is there any pair that is orthogonal?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;What can you say about the magnitude of the inner products?&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3075</id>
		<title>Vectors: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3075"/>
		<updated>2022-08-29T19:05:30Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Exercises */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vector &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This enables the inner product between two vectors to be written as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\langle{v}|)(|{w}\rangle) = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and the inner product of a vector with itself&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\langle\psi|\psi\rangle = \alpha^*\alpha + \beta^*\beta.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left|r\right\rangle = \left(\begin{array}{c} 1 \\ i &lt;br /&gt;
  \end{array}\right), \;\; \left|s\right\rangle = \left(\begin{array}{c} 1+i \\ 3&lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\left|t\right\rangle = \left(\begin{array}{c} -2i \\ 2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the complex conjugate of &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Normalize &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \mbox{ and } \left|t\right\rangle &amp;lt;/math&amp;gt;.  Confirm that they are now unit vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the Hermitian conjugate (dagger) of all three vectors.&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras and kets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Write down &amp;lt;math&amp;gt;\left\langle s\right|&amp;lt;/math&amp;gt; from your calculations above. &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate &amp;lt;math&amp;gt;\left\langle s | t\right\rangle&amp;lt;/math&amp;gt;  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner products among all three vectors normalized versions of the vectors.  Is there any pair that is orthogonal?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;What can you say about the magnitude of the inner products?&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3074</id>
		<title>Vectors: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3074"/>
		<updated>2022-08-29T19:04:29Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Exercises */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vector &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This enables the inner product between two vectors to be written as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\langle{v}|)(|{w}\rangle) = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and the inner product of a vector with itself&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\langle\psi|\psi\rangle = \alpha^*\alpha + \beta^*\beta.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left|r\right\rangle = \left(\begin{array}{c} 1 \\ i &lt;br /&gt;
  \end{array}\right), \;\; \left|s\right\rangle = \left(\begin{array}{c} 1+i \\ 3&lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\left|t\right\rangle = \left(\begin{array}{c} -2i \\ 2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the complex conjugate of &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \; \mbox{and} \left|t\right\rangle.&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Normalize &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \mbox{ and } \left|t\right\rangle &amp;lt;/math&amp;gt;.  Confirm that they are now unit vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the Hermitian conjugate (dagger) of all three vectors.&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras and kets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Write down &amp;lt;math&amp;gt;\left\langle s\right|&amp;lt;/math&amp;gt; from your calculations above. &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate &amp;lt;math&amp;gt;\left\langle s\right|&amp;lt;/math&amp;gt;  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner products among all three vectors normalized versions of the vectors.  Is there any pair that is orthogonal?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;What can you say about the magnitude of the inner products?&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3073</id>
		<title>Vectors: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3073"/>
		<updated>2022-08-29T19:03:59Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Exercises */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vector &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This enables the inner product between two vectors to be written as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\langle{v}|)(|{w}\rangle) = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and the inner product of a vector with itself&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\langle\psi|\psi\rangle = \alpha^*\alpha + \beta^*\beta.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left|r\right\rangle = \left(\begin{array}{c} 1 \\ i &lt;br /&gt;
  \end{array}\right), \;\; \left|s\right\rangle = \left(\begin{array}{c} 1+i \\ 3&lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\left|t\right\rangle = \left(\begin{array}{c} -2i \\ 2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the complex conjugate of &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \; \mbox{and} \left|t\right\rangle&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;.&lt;br /&gt;
       &amp;lt;li&amp;gt;Normalize &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \mbox{ and } \left|t\right\rangle &amp;lt;/math&amp;gt;.  Confirm that they are now unit vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the Hermitian conjugate (dagger) of all three vectors.&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras and kets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Write down &amp;lt;math&amp;gt;\left\langle s\right|&amp;lt;/math&amp;gt; from your calculations above. &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate &amp;lt;math&amp;gt;\left\langle s\right|&amp;lt;/math&amp;gt;  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner products among all three vectors normalized versions of the vectors.  Is there any pair that is orthogonal?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;What can you say about the magnitude of the inner products?&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3072</id>
		<title>Vectors: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3072"/>
		<updated>2022-08-29T18:59:28Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Exercises */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vector &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This enables the inner product between two vectors to be written as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\langle{v}|)(|{w}\rangle) = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and the inner product of a vector with itself&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\langle\psi|\psi\rangle = \alpha^*\alpha + \beta^*\beta.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left|r\right\rangle = \left(\begin{array}{c} 1 \\ i &lt;br /&gt;
  \end{array}\right), \;\; \left|s\right\rangle = \left(\begin{array}{c} 1+i \\ 3&lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\left|t\right\rangle = \left(\begin{array}{c} -2i \\ 2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the complex conjugate of &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \; \mbox{and} \left|t\right\rangle&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;.&lt;br /&gt;
       &amp;lt;li&amp;gt;Normalize &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \mbox{ and } \left|t\right\rangle &amp;lt;/math&amp;gt;.  Confirm that they are now unit vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner products among all three vectors normalized versions of the vectors.  Is there any pair that is orthogonal?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;What can you say about the magnitude of the inner products?&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Matrices&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras and kets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transformations&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Eigenvalues and Eigenvectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Tensor Products&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3071</id>
		<title>Vectors: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3071"/>
		<updated>2022-08-29T18:59:06Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Exercises */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vector &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This enables the inner product between two vectors to be written as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\langle{v}|)(|{w}\rangle) = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and the inner product of a vector with itself&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\langle\psi|\psi\rangle = \alpha^*\alpha + \beta^*\beta.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left|r\right\rangle = \left(\begin{array}{c} 1 \\ i &lt;br /&gt;
  \end{array}\right), \;\; \left|s\right\rangle = \left(\begin{array}{c} 1+i \\ 3&lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\left|t\right\rangle = \left(\begin{array}{c} -2i \\ 2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the complex conjugate of &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \; \mbox{and} \left|t\right\rangle&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Normalize &amp;lt;math&amp;gt;\left|r\right\rangle, \; \left|s\right\rangle, \mbox{ and } \left|t\right\rangle &amp;lt;/math&amp;gt;.  Confirm that they are now unit vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner products among all three vectors normalized versions of the vectors.  Is there any pair that is orthogonal?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;What can you say about the magnitude of the inner products?&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Matrices&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras and kets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transformations&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Eigenvalues and Eigenvectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Tensor Products&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3070</id>
		<title>Vectors: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3070"/>
		<updated>2022-08-29T18:58:19Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Exercises */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vector &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This enables the inner product between two vectors to be written as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\langle{v}|)(|{w}\rangle) = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and the inner product of a vector with itself&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\langle\psi|\psi\rangle = \alpha^*\alpha + \beta^*\beta.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left|r\right\rangle = \left(\begin{array}{c} 1 \\ i &lt;br /&gt;
  \end{array}\right), \;\; \left|s\right\rangle = \left(\begin{array}{c} 1+i \\ 3&lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\left|t\right\rangle = \left(\begin{array}{c} -2i \\ 2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the complex conjugate of &amp;lt;math&amp;gt;\left|r\right\rangle, \;\; \left|s\right\rangle, \;\;\mbox{and} \left|t\right\rangle&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Normalize &amp;lt;math&amp;gt;\left|r\right\rangle, \;\; \left|s\right\rangle, \mbox{ and } \left|t\right\rangle &amp;lt;/math&amp;gt;.  Confirm that they are now unit vectors.  &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the inner products among all three vectors normalized versions of the vectors.  Is there any pair that is orthogonal?&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;What can you say about the magnitude of the inner products?&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Matrices&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras and kets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transformations&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Eigenvalues and Eigenvectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Tensor Products&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3069</id>
		<title>Vectors: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3069"/>
		<updated>2022-08-29T18:53:04Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Exercises */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vector &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This enables the inner product between two vectors to be written as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\langle{v}|)(|{w}\rangle) = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and the inner product of a vector with itself&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\langle\psi|\psi\rangle = \alpha^*\alpha + \beta^*\beta.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left|r\right\rangle = \left(\begin{array}{c} 1 \\ i &lt;br /&gt;
  \end{array}\right), \left|s\right\rangle = \left(\begin{array}{c} 1+i \\ 3&lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\left|t\right\rangle = \left(\begin{array}{c} -2i \\ 2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Calculate the complex conjugate of &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Matrices&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras and kets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transformations&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Eigenvalues and Eigenvectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Tensor Products&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3068</id>
		<title>Vectors: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3068"/>
		<updated>2022-08-29T17:12:39Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Exercises */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vector &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This enables the inner product between two vectors to be written as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\langle{v}|)(|{w}\rangle) = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and the inner product of a vector with itself&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\langle\psi|\psi\rangle = \alpha^*\alpha + \beta^*\beta.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} 1 \\ i &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} 2i \\ 3&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Matrices&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras and kets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transformations&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Eigenvalues and Eigenvectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Tensor Products&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3067</id>
		<title>Vectors: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3067"/>
		<updated>2022-08-29T17:10:59Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Exercises */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vector &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This enables the inner product between two vectors to be written as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\langle{v}|)(|{w}\rangle) = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and the inner product of a vector with itself&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\langle\psi|\psi\rangle = \alpha^*\alpha + \beta^*\beta.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Matrices&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras and kets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transformations&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Eigenvalues and Eigenvectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Tensor Products&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3066</id>
		<title>Vectors: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3066"/>
		<updated>2022-08-29T16:06:27Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Vectors of Length One, Unit Vectors */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vector &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This enables the inner product between two vectors to be written as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\langle{v}|)(|{w}\rangle) = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and the inner product of a vector with itself&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\langle\psi|\psi\rangle = \alpha^*\alpha + \beta^*\beta.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Matrices&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras and kets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transformations&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Eigenvalues and Eigenvectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Tensor Products&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3065</id>
		<title>Vectors: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3065"/>
		<updated>2022-08-29T16:02:12Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Complex Inner Product */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vecto &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This enables the inner product between two vectors to be written as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\langle{v}|)(|{w}\rangle) = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and the inner product of a vector with itself&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\langle\psi|\psi\rangle = \alpha^*\alpha + \beta^*\beta.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Matrices&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras and kets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transformations&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Eigenvalues and Eigenvectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Tensor Products&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3064</id>
		<title>Vectors: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3064"/>
		<updated>2022-08-27T20:03:03Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Vectors of Length One, Unit Vectors */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vecto &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Matrices&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras and kets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transformations&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Eigenvalues and Eigenvectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Tensor Products&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3063</id>
		<title>Vectors: A beginner's guide</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Vectors:_A_beginner%27s_guide&amp;diff=3063"/>
		<updated>2022-08-27T19:38:17Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Vectors of Length One, Unit Vectors */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Here we introduce vectors and the notation that we use for vectors.  We then give some facts about real vectors before discussing the complex vectors used in quantum mechanics. &lt;br /&gt;
&lt;br /&gt;
===Vectors:  Defining and Representing===&lt;br /&gt;
&lt;br /&gt;
You may have heard of the definition of a vector as a quantity with both magnitude and direction.  While this is true and often used in science classes, our purpose is different.  So we will simply define a vector as a set of numbers that is written in an row or a column.  When the vector is written as a row of numbers, it is called a row vector and when it is written as a set of numbers in a column, it is called a column vector.  As we will see, these two can have the same set of numbers, but each can be used in a slightly different way.  &lt;br /&gt;
&lt;br /&gt;
Note that a vector with two entries, or two numbers, is called a two-dimensional vector.  One with three entries is called a three-dimensional vector, etc.  &lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{s} = (1,6). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a two-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{u} = \left(\begin{array}{c} 7 \\ 2  \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional row vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{v} = (2,4,3). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of a three-dimensional column vector&lt;br /&gt;
&amp;lt;math&amp;gt;\vec{w} = \left(\begin{array}{c} 1 \\ 5 \\ 4 \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Real Vectors===&lt;br /&gt;
&lt;br /&gt;
(If you are not familiar with vectors, you can skip this subsection.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are familiar with vectors, the simple definition of a vector --- an object that has magnitude and direction --- is helpful to keep in mind even when dealing with complex vectors (vectors with complex, i.e., imaginary numbers as entries) as we will here.  However, this is not necessary and we will see how to perform all of the operations that we need just using arrays of numbers that we call vectors.  In three dimensional space, a vector is often written as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_x\hat{x} + v_y \hat{y} + v_z\hat{z},&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where the hat (&amp;lt;math&amp;gt;\hat{\cdot}\,\!&amp;lt;/math&amp;gt;) denotes a unit vector and the components&lt;br /&gt;
&amp;lt;math&amp;gt;v_i\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i = x,y,z\,\!&amp;lt;/math&amp;gt; are just numbers.  The unit vectors are also&lt;br /&gt;
known as ''basis'' vectors. &amp;lt;!-- \index{basis vectors!real} --&amp;gt; &lt;br /&gt;
This is because any vector&lt;br /&gt;
in real three-dimensional space can be written in terms of these unit/basis vectors.  In this vector, one can associate a point where the coordinate of the point is &amp;lt;math&amp;gt;(x,y,z)&amp;lt;/math&amp;gt;.  That is, a point a distance &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-axis, a distance &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;-axis, and a distance &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; from the origin along the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-axis.  In&lt;br /&gt;
some sense, unit vectors are the basic components of any vector.  Other basis&lt;br /&gt;
vectors could be used.  But this will be discussed elsewhere.&lt;br /&gt;
&lt;br /&gt;
===Vector Operations===&lt;br /&gt;
&lt;br /&gt;
To illustrate vector operations, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, let &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Vector Addition=====&lt;br /&gt;
&lt;br /&gt;
Vectors can be added.  To do this, each element of one vector is added to the corresponding element of the other vector.  In general, for a row vector, they add as &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\vec{v}+\vec{w} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)+\left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} v_1+w_1 \\ v_2+w_2&lt;br /&gt;
  \end{array}\right). &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The addition of row vectors is similar.  They are added component by component.  &lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s}+\vec{u} = \left(s_1, s_2\right)+\left(u_1, u_2\right) = \left(s_1+u_1, s_2 + u_2\right).&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since the way vectors are added is component to corresponding component, it is important to note that you can only add vectors if they are the same type.  (No adding &amp;quot;apples and oranges&amp;quot; so to speak.)  So you can add two vectors that are both column vectors and have three entries.  You can't add a column vector to a row vector and you can't add a vector with two components to a vector with three components.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Adding two vectors &amp;lt;math&amp;gt;\vec{v}_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}_1\,\!&amp;lt;/math&amp;gt; with &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\vec{w}_1 = \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right),&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
we get &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}_1 + \vec{w}_1 = \left(\begin{array}{c} 1 \\ 5&lt;br /&gt;
  \end{array}\right) + \left(\begin{array}{c} 4 \\ 2&lt;br /&gt;
  \end{array}\right) = \left(\begin{array}{c} 5 \\ 7&lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Multiplication by a Number=====&lt;br /&gt;
&lt;br /&gt;
When a vector is multiplied by a number, each component is multiplied by that same number.  For example, suppose&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Then &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
a\vec{v} = a\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)= \left(\begin{array}{c} av_1 \\ av_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Length or Magnitude of a Vector====&lt;br /&gt;
&lt;br /&gt;
Consider the vector  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can calculate the length of a vector the same way that one calculates the hypotenuse of a right triangle.  The magnitude is the square root of the sum of the squares of the entries.  For example, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|= \sqrt{(v_1)^2 + (v_1)^2}. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure V.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:VectorMagnitude.jpg|400px]]&lt;br /&gt;
Figure V.1: The magnitude of a vector in terms of its entries.  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Vectors of Length One, Unit Vectors====&lt;br /&gt;
&lt;br /&gt;
Vectors of length, or magnitude &amp;lt;math&amp;gt;= 1&amp;lt;/math&amp;gt; are quite useful.  These are also called &amp;quot;unit vectors&amp;quot;.  As we will see, they are used as &amp;quot;basis vectors&amp;quot; and also for quantum states.  If a vector does not have length one, but it should have, then we can &amp;quot;normalize&amp;quot; it by dividing by the magnitude.  When this is done, the vector of length one is often denoted with a &amp;quot;hat&amp;quot; &amp;lt;math&amp;gt;\hat{v}&amp;lt;/math&amp;gt; instead of the arrow &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt;.  So  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{1}{|\vec{v}|}\vec{v} = \frac{1}{|\vec{v}|}\left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The magnitude of this vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\hat{v}| = \sqrt{v_1^2 + v_2^2}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then to see that the vecto &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; is normalized,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
|\hat{v}| &amp;amp;= \sqrt{\frac{\vec{v}}{|\vec{v}|}} \\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \sqrt{ \left(\frac{v_1}{|\vec{v}|}\right)^2 + \left(\frac{v_2}{|\vec{v}|}\right)^2 }\\ &amp;amp; \\&lt;br /&gt;
          &amp;amp;= \frac{1}{|\vec{v}|} \sqrt{(v_1)^2 + (v_2)^2} = 1.  &lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, in general, if the vector is multiplied by a number &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; that is positive, then the magnitude of the vector is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|a\vec{v}|= \sqrt{(av_1)^2 + (av_1)^2} = \sqrt{a^2(v_1^2+v_2^2)} = |a||\vec{v}|. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
So multiplying a vector by a number just changes the length, or magnitude, of the vector is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is positive.  If &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is negative, it changes the directions of the components and therefore of the vector itself and also changes the magnitude.&lt;br /&gt;
&lt;br /&gt;
====Dot Products or Inner Products====&lt;br /&gt;
&lt;br /&gt;
The ''inner product'',&amp;lt;!-- \index{inner product}--&amp;gt; or ''dot product'',&amp;lt;!--\index{dot product}--&amp;gt; for two real two-dimensional vectors,&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right), \mbox{  and  }  &lt;br /&gt;
\vec{w} = \left(\begin{array}{c} w_1 \\ w_2&lt;br /&gt;
  \end{array}\right)  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{s} = \left(s_1, s_2\right), \mbox{  and  }  &lt;br /&gt;
\vec{u} = \left(u_1, u_2\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
can be computed as follows:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = v_1w_1 + v_2w_2, \mbox{  and  }  \vec{s}\cdot\vec{u} = s_1u_1 + s_2u_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the inner product of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; with itself, we get the square of&lt;br /&gt;
the magnitude of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, denoted &amp;lt;math&amp;gt;|\vec{v}|^2\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\vec{v}|^2 = \vec{v}\cdot\vec{v} = v_1v_1 + v_2v_2 = v_1^2+v_2^2. &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
If we want a unit vector in the direction of &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt;, we can simply divide it&lt;br /&gt;
by its magnitude:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{v} = \frac{\vec{v}}{|\vec{v}|}.  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Now, of course, &amp;lt;math&amp;gt;\hat{v}\cdot\hat{v}= 1\,\!&amp;lt;/math&amp;gt;, which can easily be checked.  &lt;br /&gt;
&lt;br /&gt;
There are several ways to represent a vector.  The ones we will use&lt;br /&gt;
most often are column and row vector notations.  So, for example, we&lt;br /&gt;
could write the vector above as&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
In this case, our unit vectors are represented by the following: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\hat{e}_1 = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;  &lt;br /&gt;
\hat{e}_2 = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;e_1\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;e_2\,\!&amp;lt;/math&amp;gt; are called basis vectors.  Notice they are unit vectors.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any vector can be rewritten in terms of these basis vectors.  For example,  &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = v_1\hat{e}_1+v_2\hat{e}_2 = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right). &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We next turn to the subject of complex vectors and the relevant&lt;br /&gt;
notation. &lt;br /&gt;
We will see how to compute the inner product later, since some other&lt;br /&gt;
definitions are required.&lt;br /&gt;
&lt;br /&gt;
===Complex Vectors===&lt;br /&gt;
&lt;br /&gt;
A complex vector is one that has complex numbers for entries.  For complex vectors in quantum mechanics, Dirac notation is used most often.  This notation uses a &amp;lt;math&amp;gt;\left\vert \cdot \right\rangle\,\!&amp;lt;/math&amp;gt;, &lt;br /&gt;
called a ''ket'', for a vector.  So our vector &amp;lt;math&amp;gt;\vec{v}\,\!&amp;lt;/math&amp;gt; would be&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert v \right\rangle  = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For qubits, i.e. two-state quantum systems, complex vectors will often be used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} \left\vert \psi \right\rangle &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right) \\&lt;br /&gt;
           &amp;amp;=\alpha \left\vert 0\right\rangle + \beta\left\vert 1\right\rangle,\end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert 0\right\rangle = \left(\begin{array}{c} 1 \\ 0 &lt;br /&gt;
  \end{array}\right), \;\;\mbox{and} \;\;&lt;br /&gt;
\left\vert 1\right\rangle = \left(\begin{array}{c} 0 \\ 1 &lt;br /&gt;
  \end{array}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
are the basis vectors.  The two numbers &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers, so the vector is said to&lt;br /&gt;
be a complex vector.  Recall from [[Chapter 1 - Introduction#Figure1.1|Chapter 1]] &lt;br /&gt;
that quantum states are represented by complex vectors, such as the quantum particle being in one of two different wells.&lt;br /&gt;
&lt;br /&gt;
====The Complex Conjugate of a Vector====&lt;br /&gt;
&lt;br /&gt;
To take the complex conjugate of a vector, each element of the vector has to be complex conjugated.  So, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^* &amp;amp;= \left(\begin{array}{c} \alpha \\ \beta &lt;br /&gt;
  \end{array}\right)^* \\&lt;br /&gt;
           &amp;amp;= \left(\begin{array}{c} \alpha^* \\ \beta^*  \end{array}\right)\\&lt;br /&gt;
 &amp;amp;=\alpha^* \left\vert 0\right\rangle + \beta^* \left\vert 1\right\rangle.&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Transpose of a Vector====&lt;br /&gt;
&lt;br /&gt;
Let us reconsider the vector from above, &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v} = \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right).  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
To transpose this vector, the vector will be turned into a row vector.  It is the almost the same vector, just made into a row vector.  The transpose is denoted with a superscript  &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\vec{v}^T &amp;amp;= \left(\begin{array}{c} v_1 \\ v_2 &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1, &amp;amp; v_2 &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====The Hermitian Conjugate, or &amp;quot;Dagger&amp;quot;, of a Vector====&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;dagger&amp;quot; of a vector, which is also called the hermitian conjugate, is the transpose ''and'' complex conjugate.  This is denoted by a &amp;quot;dagger&amp;quot; superscript &amp;lt;math&amp;gt;^\dagger&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
(\vec{v}^*)^T &amp;amp;= \left(\begin{array}{c} v_1^* \\ v_2^* &lt;br /&gt;
  \end{array}\right)^T \\&lt;br /&gt;
          &amp;amp;=  \left( \begin{array}{cc} v_1^*, &amp;amp; v_2^* &lt;br /&gt;
  \end{array}\right).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the case of complex vectors, the following notation is used:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align} (\left\vert \psi \right\rangle)^\dagger &amp;amp;= \left\langle \psi \right\vert \\&lt;br /&gt;
            &amp;amp;=\left(\begin{array}{c} \alpha \\ \beta  \end{array}\right)^\dagger \\&lt;br /&gt;
            &amp;amp;= \left(\begin{array}{cc} \alpha^*,&amp;amp; \beta^*  \end{array}\right).&lt;br /&gt;
 \end{align}&amp;lt;/math&amp;gt;|C.1}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Complex Inner Product====&lt;br /&gt;
&lt;br /&gt;
To calculate the inner product of two complex, two-dimensional vectors, the complex conjugate of one is multiplied, term by term with the second. So if vectors &amp;lt;math&amp;gt;\vec{v}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{w}&amp;lt;/math&amp;gt; are complex vectors, the inner product, or dot product, is calculated by &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\vec{v}\cdot\vec{w} = \vec{v}^\dagger \vec{w} = v_1^*w_1 + v_2^*w_2.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercises===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Vectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Matrices&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Dirac Notation (bras and kets)&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Transformations&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Eigenvalues and Eigenvectors&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Tensor Products&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;About the author&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''BKR Collaboration'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=File:BinaryAdd.jpg&amp;diff=3062</id>
		<title>File:BinaryAdd.jpg</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=File:BinaryAdd.jpg&amp;diff=3062"/>
		<updated>2022-08-26T19:18:57Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: Mbyrd uploaded a new version of File:BinaryAdd.jpg&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Binary&amp;diff=3061</id>
		<title>Binary</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Binary&amp;diff=3061"/>
		<updated>2022-08-25T14:51:09Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Exercises */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
==Why We Need (why we use) Binary==&lt;br /&gt;
&lt;br /&gt;
Classical computers only have 2 states, or output options, and therefore can only use two symbols to represent those two states. More complicated questions are the combination of multiple yes and no questions in a series. Computers often use binary code, using just 0 and 1 to store the data.  These are referred to as bits.&lt;br /&gt;
&lt;br /&gt;
But here is an interesting shift of perspective:  because &amp;quot;1&amp;quot; and &amp;quot;0&amp;quot; are just symbols you can read them as representing a different kind of thing.  One important reading of the symbols is to read &amp;quot;1&amp;quot; as &amp;quot;Yes&amp;quot; and &amp;quot;0&amp;quot; as &amp;quot;No&amp;quot; to a given Yes/No question.  A string of binary numbers such as &amp;quot;101&amp;quot; can thus be perceived as &amp;quot;Yes, No, Yes&amp;quot; to three Yes/No questions:  e.g., &amp;quot;101&amp;quot; may stand for &amp;quot;Yes, it is Sunday; No, it is not raining; Yes, it is hot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Binary expressions can also be used to represent numbers:  e.g., 101 stands for the number five.  So, when the computer stores &amp;quot;101&amp;quot; in its bit registers, you can think of the computer as storing the number five. This section will address how to convert binary numbers and the more common decimal numbers back and forth.&lt;br /&gt;
&lt;br /&gt;
The binary number system is thus useful in computing and it is the way how computers represent and store a series of values or a numbers.&lt;br /&gt;
&lt;br /&gt;
==Numbering Systems==&lt;br /&gt;
&lt;br /&gt;
While numbers seem like absolutes, there are actually several different ways to write these values.  One main difference in numbering systems is what we use as the base of the number.  The decimal system uses a base 10, meaning that there are 10 symbols (0-9) that are used.  Once you get past 9, you round up to a 1 in the tens position and start over at 0 in the ones position. A symbol in this instance is any single letter, number, or other symbol. &lt;br /&gt;
There are many other base systems, including Base 16 (hexabase), Base 8 (octobase), and Base 2 (binary).  Base 8 only uses 8 symbols (0-7) and binary only uses 2 symbols (0-1).  Base 16 is a bit more complex as the 16 symbols that are used include the number 0-9 as well as the letters A-F.&lt;br /&gt;
These base systems can still be used to represent the same numbers, and can be converted back and forth.  Specifically converting between base 10 and base 2 (decimal to binary) is helpful.&lt;br /&gt;
&lt;br /&gt;
The system you already understand very well is the decimal system, i.e. base 10, where we use 10 symbols (0,1,2,3,4,5,6,7,8,9). When keeping track of values larger than 9, multiple digits are necessary, where each digit represents a power of 10.  For example, the value &amp;lt;math&amp;gt;1067&amp;lt;/math&amp;gt; can be expanded to make this explicit: &lt;br /&gt;
­&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:Dec.jpg|325px]] &lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now consider the binary system, i.e. base 2, where we only use 2 symbols to describe any value (0 and 1). When keeping track of values larger than 1, multiple digits are necessary, where each digit represents a power of 2. For example, the value &amp;lt;math&amp;gt;10110_2&amp;lt;/math&amp;gt; can be expanded to make this explicit (Note: the subscript &amp;quot;2&amp;quot; following the number means it is in base 2):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:Bin.jpg|325px]] &lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Decimal to Binary Conversion===&lt;br /&gt;
&lt;br /&gt;
Since we (as humans) have been trained to count and keep track of stuff using decimal symbols, and the computer needs to use binary symbols, it is useful to know how to convert between the two.  For example, consider the decimal numerals 0 through 7, and the corresponding binary representation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;div id=&amp;quot;TableB.1&amp;quot;&amp;gt;&amp;lt;big&amp;gt;'''TABLE B.1'''&amp;lt;/big&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;bottom&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
|Binary&lt;br /&gt;
|Decimal&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|000&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|001&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|010&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|2&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|011&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|3&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|100&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|4&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|101&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|5&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|110&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|6&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|111&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|7&lt;br /&gt;
|}&lt;br /&gt;
Table B1: ''Examples of Binary/Decimal Correspondence.''&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''To convert a decimal number into a binary number, one can follow these steps:'''&lt;br /&gt;
&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;divide the decimal number by 2 to get the WHOLE number quotient. If the number is odd, you will be left with a remainder of 1; If the decimal number is even, then you will have a remainder of 0. ''The remainder is the resulting binary digit.''&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Take the quotient from step 1 and repeat.&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Keep doing this until you get to a quotient of 0.&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This procedure is shown in the following examples:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; convert &amp;lt;math&amp;gt;12_{10}&amp;lt;/math&amp;gt; to binary:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;bottom&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
|Division by 2&lt;br /&gt;
|Quotient&lt;br /&gt;
|Remainder&lt;br /&gt;
|Binary digit&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|12&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|6&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1st&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|6&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|3&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|2nd&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|3&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|3rd&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|4th&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; so &amp;lt;math&amp;gt;12_{10} = 1100_2&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; convert &amp;lt;math&amp;gt;21_{10}&amp;lt;/math&amp;gt; to binary:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;bottom&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
|Division by 2&lt;br /&gt;
|Quotient&lt;br /&gt;
|Remainder&lt;br /&gt;
|Binary digit&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|21&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|10&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1st&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|10&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|5&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|2nd&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|5&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|2&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|3rd&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|2&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|4th&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|5th&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; so &amp;lt;math&amp;gt;21_{10} = 10101_2&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Binary to Decimal Conversion===&lt;br /&gt;
&lt;br /&gt;
To convert a binary number into the corresponding decimal number, recall that each digit in a binary number corresponds to to a power of 2. '''''(see above, put a link here?)'''''&lt;br /&gt;
&lt;br /&gt;
For example, consider the binary number &amp;lt;math&amp;gt;10111_2&amp;lt;/math&amp;gt;. Each digit corresponds to a power of 2 as shown in the following table:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;bottom&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
|Binary number&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|-&lt;br /&gt;
|power of 2&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;2^4&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;2^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;2^2&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;2^1&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;2^0&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{align}10111_2 &amp;amp; = 1 \cdot 2^4 + 0 \cdot 2^3 + 1 \cdot 2^2 + 1 \cdot 2^1 + 1 \cdot 2^0 \\&lt;br /&gt;
  &amp;amp; = 1 \cdot 16 + 0 \cdot 8 + 1 \cdot 4 + 1\cdot 2 + 1 \cdot 1 \\&lt;br /&gt;
  &amp;amp; = 16 + 0 + 4 + 2 + 1 \\&lt;br /&gt;
  &amp;amp; = 23_{10}\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Binary Addition===&lt;br /&gt;
&lt;br /&gt;
Adding binary numbers, by hand, is identical to the process one learns in gradeschool when adding decimal numbers. In decimal addition, if you add 5 + 5 then you get 10. When computing this sum, you get a digit of 0 and a carry digit of 1. If adding 6 + 6, then you get a digit of 2 with a carry digit of 1, and thus an answer of 12.&lt;br /&gt;
&lt;br /&gt;
In binary, if you add 1 + 1, the sum is written as 10, because after summing 1 + 1 you get a digit of 0 and a carry of 1:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 + 0 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 + 0 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 + 1 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \;\; 1 + 1 = 10 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When adding binary numbers with multiple digits, the same approach is applied, as demonstrated in the following examples:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure B.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:BinaryAdd.jpg|470px]]&lt;br /&gt;
&amp;lt;!-- How to add binary numbers when carrying is necessary.--&amp;gt;  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===ASCII (American Standard Code for Information Interchange)===&lt;br /&gt;
&lt;br /&gt;
The computer needs to use binary strings to represent any characters, not just numerical values. How to rpresent the letter &amp;quot;w&amp;quot;? or the uppercase &amp;quot;W&amp;quot;? and so on... this was originally handled by using the American Staqndard for Information Interchange (ASCII, pronounced &amp;quot;ass-key, lol). This system uses 7 bits (i.e. binary numbers with 7 digits) to describe all the buttons on the keyboard: 33 of them are non-printable, such as the Ctrl key, the Shift key, etc., and the other 95 printable characters can be found here: [[Media:ASCII.Symbols.jpg|ASCII Binary Codes]]&lt;br /&gt;
&lt;br /&gt;
==Conclusion (gearing up for logic gates)==&lt;br /&gt;
&lt;br /&gt;
We have just studied how to use binary expressions to represent numbers:  e.g., 101 stands for the number five.  So, when the computer stores &amp;quot;101&amp;quot; in its bit registers, you can think of the computer as storing the number five.&lt;br /&gt;
&lt;br /&gt;
But here is an interesting shift of perspective:  because &amp;quot;1&amp;quot; and &amp;quot;0&amp;quot; are just symbols and &amp;quot;101&amp;quot; is just a bunch of symbols, you can read them as representing a different kind of thing.  One important reading of the symbols is to read &amp;quot;1&amp;quot; as &amp;quot;Yes&amp;quot; and &amp;quot;0&amp;quot; as &amp;quot;No&amp;quot; to a given Yes/No question, and &amp;quot;101&amp;quot; as &amp;quot;Yes, No, Yes&amp;quot; to three Yes/No questions:  e.g., &amp;quot;101&amp;quot; may stand for &amp;quot;Yes, it is Sunday; No, it is not raining; Yes, it is hot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Computers are good at manipulating binary numbers.  This, combined with the &amp;quot;Yes/No&amp;quot; perspective, means that computers are also good at calculating answers to Yes/No questions:  e.g., given &amp;quot;Yes, it is Sunday; No, it is not raining; Yes, it is hot&amp;quot;, the computer can now calculate what the answer is to the question &amp;quot;Is it hot Sunday?&amp;quot; (the answer is Yes).  This sort of &amp;quot;Yes/No&amp;quot; calculation is called &amp;quot;logic&amp;quot;, and computers execute it by applying &amp;quot;logic gates&amp;quot; to bit registers.  Indeed, that is how computers manipulate numbers --- computers execute operations such as addition of two numbers by actually applying logic gates and executing very complicated logic calculations!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Binary Logic==&lt;br /&gt;
&lt;br /&gt;
When considering zero and one to be yes/no or true/false, there is an algebra (called Boolean algebra) that helps to designate how to combine these values.  The main combinations are ''AND'' &amp;lt;math&amp;gt;\wedge&amp;lt;/math&amp;gt;, ''OR'' &amp;lt;math&amp;gt;\vee&amp;lt;/math&amp;gt;, and ''NOT'' &amp;lt;math&amp;gt;\neg&amp;lt;/math&amp;gt;.  The ''NOT'' gives &amp;lt;math&amp;gt;\neg 0 =1&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\neg 1 = 0&amp;lt;/math&amp;gt;.  The ''AND'' operation gives &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \wedge 0 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \wedge 0 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \wedge 1 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \wedge 1 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The ''OR'' operation gives &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \vee 0 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \vee 0 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \vee 1 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \vee 1 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
One operation that we will use often is the ''exclusive OR'', sometimes written as XOR.  The symbol for the combination is &amp;lt;math&amp;gt;\oplus&amp;lt;/math&amp;gt; and it gives the following values: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \oplus 0 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \oplus 0 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \oplus 1 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \oplus 1 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As we will see, these operations are performed very explicitly in quantum computing using matrices and vectors.&lt;br /&gt;
&lt;br /&gt;
Sometimes this type of &amp;quot;addition&amp;quot; is used for what is called &amp;quot;bit-wise binary addition&amp;quot; which takes the sum of each individual digit and adds them according to these rules.  For example, consider the bit-wise binary addition of the two bit strings, 0110010 and 1101001.  The sum would be&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{array}{cccccccc}&lt;br /&gt;
         &amp;amp;0&amp;amp;1&amp;amp;1&amp;amp;0&amp;amp;0&amp;amp;1&amp;amp;0 \\&lt;br /&gt;
\oplus &amp;amp;1&amp;amp;1&amp;amp;0&amp;amp;1&amp;amp;0&amp;amp;0&amp;amp;1 \\&lt;br /&gt;
\hline&lt;br /&gt;
         &amp;amp;1&amp;amp;0&amp;amp;1&amp;amp;1&amp;amp;0&amp;amp;1&amp;amp;1&lt;br /&gt;
\end{array}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Further Reading==&lt;br /&gt;
&lt;br /&gt;
[[Bibliography#Wong|Thomas Wong's book [49]]] is an excellent introductory resource for both classical and quantum computing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Exercises==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- '''''(can we gamify this?? Ask the Arts team about non-traditional/creative assessments, and find real-world applications)''''' --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Convert the following decimal numbers to binary:&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;108&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;3047&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Convert the following binary numbers to decimal &amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;1001_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;11011_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;1011001_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Add these binary numbers&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;1001_2+10110_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;110_2+101_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;110011_2+1110_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Challenge Questions&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Convert the following binary number into base 3: &amp;lt;math&amp;gt;11011_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''QuSTEAM'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Binary&amp;diff=3060</id>
		<title>Binary</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Binary&amp;diff=3060"/>
		<updated>2022-08-25T03:40:01Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Binary Logic */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
==Why We Need (why we use) Binary==&lt;br /&gt;
&lt;br /&gt;
Classical computers only have 2 states, or output options, and therefore can only use two symbols to represent those two states. More complicated questions are the combination of multiple yes and no questions in a series. Computers often use binary code, using just 0 and 1 to store the data.  These are referred to as bits.&lt;br /&gt;
&lt;br /&gt;
But here is an interesting shift of perspective:  because &amp;quot;1&amp;quot; and &amp;quot;0&amp;quot; are just symbols you can read them as representing a different kind of thing.  One important reading of the symbols is to read &amp;quot;1&amp;quot; as &amp;quot;Yes&amp;quot; and &amp;quot;0&amp;quot; as &amp;quot;No&amp;quot; to a given Yes/No question.  A string of binary numbers such as &amp;quot;101&amp;quot; can thus be perceived as &amp;quot;Yes, No, Yes&amp;quot; to three Yes/No questions:  e.g., &amp;quot;101&amp;quot; may stand for &amp;quot;Yes, it is Sunday; No, it is not raining; Yes, it is hot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Binary expressions can also be used to represent numbers:  e.g., 101 stands for the number five.  So, when the computer stores &amp;quot;101&amp;quot; in its bit registers, you can think of the computer as storing the number five. This section will address how to convert binary numbers and the more common decimal numbers back and forth.&lt;br /&gt;
&lt;br /&gt;
The binary number system is thus useful in computing and it is the way how computers represent and store a series of values or a numbers.&lt;br /&gt;
&lt;br /&gt;
==Numbering Systems==&lt;br /&gt;
&lt;br /&gt;
While numbers seem like absolutes, there are actually several different ways to write these values.  One main difference in numbering systems is what we use as the base of the number.  The decimal system uses a base 10, meaning that there are 10 symbols (0-9) that are used.  Once you get past 9, you round up to a 1 in the tens position and start over at 0 in the ones position. A symbol in this instance is any single letter, number, or other symbol. &lt;br /&gt;
There are many other base systems, including Base 16 (hexabase), Base 8 (octobase), and Base 2 (binary).  Base 8 only uses 8 symbols (0-7) and binary only uses 2 symbols (0-1).  Base 16 is a bit more complex as the 16 symbols that are used include the number 0-9 as well as the letters A-F.&lt;br /&gt;
These base systems can still be used to represent the same numbers, and can be converted back and forth.  Specifically converting between base 10 and base 2 (decimal to binary) is helpful.&lt;br /&gt;
&lt;br /&gt;
The system you already understand very well is the decimal system, i.e. base 10, where we use 10 symbols (0,1,2,3,4,5,6,7,8,9). When keeping track of values larger than 9, multiple digits are necessary, where each digit represents a power of 10.  For example, the value &amp;lt;math&amp;gt;1067&amp;lt;/math&amp;gt; can be expanded to make this explicit: &lt;br /&gt;
­&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:Dec.jpg|325px]] &lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now consider the binary system, i.e. base 2, where we only use 2 symbols to describe any value (0 and 1). When keeping track of values larger than 1, multiple digits are necessary, where each digit represents a power of 2. For example, the value &amp;lt;math&amp;gt;10110_2&amp;lt;/math&amp;gt; can be expanded to make this explicit (Note: the subscript &amp;quot;2&amp;quot; following the number means it is in base 2):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:Bin.jpg|325px]] &lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Decimal to Binary Conversion===&lt;br /&gt;
&lt;br /&gt;
Since we (as humans) have been trained to count and keep track of stuff using decimal symbols, and the computer needs to use binary symbols, it is useful to know how to convert between the two.  For example, consider the decimal numerals 0 through 7, and the corresponding binary representation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;div id=&amp;quot;TableB.1&amp;quot;&amp;gt;&amp;lt;big&amp;gt;'''TABLE B.1'''&amp;lt;/big&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;bottom&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
|Binary&lt;br /&gt;
|Decimal&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|000&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|001&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|010&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|2&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|011&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|3&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|100&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|4&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|101&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|5&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|110&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|6&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|111&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|7&lt;br /&gt;
|}&lt;br /&gt;
Table B1: ''Examples of Binary/Decimal Correspondence.''&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''To convert a decimal number into a binary number, one can follow these steps:'''&lt;br /&gt;
&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;divide the decimal number by 2 to get the WHOLE number quotient. If the number is odd, you will be left with a remainder of 1; If the decimal number is even, then you will have a remainder of 0. ''The remainder is the resulting binary digit.''&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Take the quotient from step 1 and repeat.&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Keep doing this until you get to a quotient of 0.&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This procedure is shown in the following examples:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; convert &amp;lt;math&amp;gt;12_{10}&amp;lt;/math&amp;gt; to binary:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;bottom&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
|Division by 2&lt;br /&gt;
|Quotient&lt;br /&gt;
|Remainder&lt;br /&gt;
|Binary digit&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|12&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|6&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1st&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|6&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|3&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|2nd&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|3&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|3rd&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|4th&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; so &amp;lt;math&amp;gt;12_{10} = 1100_2&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; convert &amp;lt;math&amp;gt;21_{10}&amp;lt;/math&amp;gt; to binary:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;bottom&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
|Division by 2&lt;br /&gt;
|Quotient&lt;br /&gt;
|Remainder&lt;br /&gt;
|Binary digit&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|21&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|10&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1st&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|10&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|5&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|2nd&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|5&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|2&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|3rd&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|2&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|4th&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|5th&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; so &amp;lt;math&amp;gt;21_{10} = 10101_2&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Binary to Decimal Conversion===&lt;br /&gt;
&lt;br /&gt;
To convert a binary number into the corresponding decimal number, recall that each digit in a binary number corresponds to to a power of 2. '''''(see above, put a link here?)'''''&lt;br /&gt;
&lt;br /&gt;
For example, consider the binary number &amp;lt;math&amp;gt;10111_2&amp;lt;/math&amp;gt;. Each digit corresponds to a power of 2 as shown in the following table:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;bottom&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
|Binary number&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|-&lt;br /&gt;
|power of 2&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;2^4&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;2^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;2^2&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;2^1&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;2^0&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{align}10111_2 &amp;amp; = 1 \cdot 2^4 + 0 \cdot 2^3 + 1 \cdot 2^2 + 1 \cdot 2^1 + 1 \cdot 2^0 \\&lt;br /&gt;
  &amp;amp; = 1 \cdot 16 + 0 \cdot 8 + 1 \cdot 4 + 1\cdot 2 + 1 \cdot 1 \\&lt;br /&gt;
  &amp;amp; = 16 + 0 + 4 + 2 + 1 \\&lt;br /&gt;
  &amp;amp; = 23_{10}\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Binary Addition===&lt;br /&gt;
&lt;br /&gt;
Adding binary numbers, by hand, is identical to the process one learns in gradeschool when adding decimal numbers. In decimal addition, if you add 5 + 5 then you get 10. When computing this sum, you get a digit of 0 and a carry digit of 1. If adding 6 + 6, then you get a digit of 2 with a carry digit of 1, and thus an answer of 12.&lt;br /&gt;
&lt;br /&gt;
In binary, if you add 1 + 1, the sum is written as 10, because after summing 1 + 1 you get a digit of 0 and a carry of 1:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 + 0 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 + 0 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 + 1 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \;\; 1 + 1 = 10 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When adding binary numbers with multiple digits, the same approach is applied, as demonstrated in the following examples:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure B.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:BinaryAdd.jpg|470px]]&lt;br /&gt;
&amp;lt;!-- How to add binary numbers when carrying is necessary.--&amp;gt;  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===ASCII (American Standard Code for Information Interchange)===&lt;br /&gt;
&lt;br /&gt;
The computer needs to use binary strings to represent any characters, not just numerical values. How to rpresent the letter &amp;quot;w&amp;quot;? or the uppercase &amp;quot;W&amp;quot;? and so on... this was originally handled by using the American Staqndard for Information Interchange (ASCII, pronounced &amp;quot;ass-key, lol). This system uses 7 bits (i.e. binary numbers with 7 digits) to describe all the buttons on the keyboard: 33 of them are non-printable, such as the Ctrl key, the Shift key, etc., and the other 95 printable characters can be found here: [[Media:ASCII.Symbols.jpg|ASCII Binary Codes]]&lt;br /&gt;
&lt;br /&gt;
==Conclusion (gearing up for logic gates)==&lt;br /&gt;
&lt;br /&gt;
We have just studied how to use binary expressions to represent numbers:  e.g., 101 stands for the number five.  So, when the computer stores &amp;quot;101&amp;quot; in its bit registers, you can think of the computer as storing the number five.&lt;br /&gt;
&lt;br /&gt;
But here is an interesting shift of perspective:  because &amp;quot;1&amp;quot; and &amp;quot;0&amp;quot; are just symbols and &amp;quot;101&amp;quot; is just a bunch of symbols, you can read them as representing a different kind of thing.  One important reading of the symbols is to read &amp;quot;1&amp;quot; as &amp;quot;Yes&amp;quot; and &amp;quot;0&amp;quot; as &amp;quot;No&amp;quot; to a given Yes/No question, and &amp;quot;101&amp;quot; as &amp;quot;Yes, No, Yes&amp;quot; to three Yes/No questions:  e.g., &amp;quot;101&amp;quot; may stand for &amp;quot;Yes, it is Sunday; No, it is not raining; Yes, it is hot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Computers are good at manipulating binary numbers.  This, combined with the &amp;quot;Yes/No&amp;quot; perspective, means that computers are also good at calculating answers to Yes/No questions:  e.g., given &amp;quot;Yes, it is Sunday; No, it is not raining; Yes, it is hot&amp;quot;, the computer can now calculate what the answer is to the question &amp;quot;Is it hot Sunday?&amp;quot; (the answer is Yes).  This sort of &amp;quot;Yes/No&amp;quot; calculation is called &amp;quot;logic&amp;quot;, and computers execute it by applying &amp;quot;logic gates&amp;quot; to bit registers.  Indeed, that is how computers manipulate numbers --- computers execute operations such as addition of two numbers by actually applying logic gates and executing very complicated logic calculations!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Binary Logic==&lt;br /&gt;
&lt;br /&gt;
When considering zero and one to be yes/no or true/false, there is an algebra (called Boolean algebra) that helps to designate how to combine these values.  The main combinations are ''AND'' &amp;lt;math&amp;gt;\wedge&amp;lt;/math&amp;gt;, ''OR'' &amp;lt;math&amp;gt;\vee&amp;lt;/math&amp;gt;, and ''NOT'' &amp;lt;math&amp;gt;\neg&amp;lt;/math&amp;gt;.  The ''NOT'' gives &amp;lt;math&amp;gt;\neg 0 =1&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\neg 1 = 0&amp;lt;/math&amp;gt;.  The ''AND'' operation gives &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \wedge 0 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \wedge 0 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \wedge 1 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \wedge 1 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The ''OR'' operation gives &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \vee 0 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \vee 0 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \vee 1 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \vee 1 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
One operation that we will use often is the ''exclusive OR'', sometimes written as XOR.  The symbol for the combination is &amp;lt;math&amp;gt;\oplus&amp;lt;/math&amp;gt; and it gives the following values: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \oplus 0 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \oplus 0 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \oplus 1 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \oplus 1 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As we will see, these operations are performed very explicitly in quantum computing using matrices and vectors.&lt;br /&gt;
&lt;br /&gt;
Sometimes this type of &amp;quot;addition&amp;quot; is used for what is called &amp;quot;bit-wise binary addition&amp;quot; which takes the sum of each individual digit and adds them according to these rules.  For example, consider the bit-wise binary addition of the two bit strings, 0110010 and 1101001.  The sum would be&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{array}{cccccccc}&lt;br /&gt;
         &amp;amp;0&amp;amp;1&amp;amp;1&amp;amp;0&amp;amp;0&amp;amp;1&amp;amp;0 \\&lt;br /&gt;
\oplus &amp;amp;1&amp;amp;1&amp;amp;0&amp;amp;1&amp;amp;0&amp;amp;0&amp;amp;1 \\&lt;br /&gt;
\hline&lt;br /&gt;
         &amp;amp;1&amp;amp;0&amp;amp;1&amp;amp;1&amp;amp;0&amp;amp;1&amp;amp;1&lt;br /&gt;
\end{array}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Further Reading==&lt;br /&gt;
&lt;br /&gt;
[[Bibliography#Wong|Thomas Wong's book [49]]] is an excellent introductory resource for both classical and quantum computing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Exercises==&lt;br /&gt;
&lt;br /&gt;
'''''(can we gamify this?? Ask the Arts team about non-traditional/creative assessments, and find real-world applications)'''''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Convert the following decimal numbers to binary:&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;108&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;3047&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Convert the following binary numbers to decimal &amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;1001_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;11011_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;1011001_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Add these binary numbers&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;1001_2+10110_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;110_2+101_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;110011_2+1110_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Challenge Questions&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Convert the following binary number into base 3: &amp;lt;math&amp;gt;11011_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''QuSTEAM'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Binary&amp;diff=3059</id>
		<title>Binary</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Binary&amp;diff=3059"/>
		<updated>2022-08-25T03:39:00Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Binary Logic */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
==Why We Need (why we use) Binary==&lt;br /&gt;
&lt;br /&gt;
Classical computers only have 2 states, or output options, and therefore can only use two symbols to represent those two states. More complicated questions are the combination of multiple yes and no questions in a series. Computers often use binary code, using just 0 and 1 to store the data.  These are referred to as bits.&lt;br /&gt;
&lt;br /&gt;
But here is an interesting shift of perspective:  because &amp;quot;1&amp;quot; and &amp;quot;0&amp;quot; are just symbols you can read them as representing a different kind of thing.  One important reading of the symbols is to read &amp;quot;1&amp;quot; as &amp;quot;Yes&amp;quot; and &amp;quot;0&amp;quot; as &amp;quot;No&amp;quot; to a given Yes/No question.  A string of binary numbers such as &amp;quot;101&amp;quot; can thus be perceived as &amp;quot;Yes, No, Yes&amp;quot; to three Yes/No questions:  e.g., &amp;quot;101&amp;quot; may stand for &amp;quot;Yes, it is Sunday; No, it is not raining; Yes, it is hot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Binary expressions can also be used to represent numbers:  e.g., 101 stands for the number five.  So, when the computer stores &amp;quot;101&amp;quot; in its bit registers, you can think of the computer as storing the number five. This section will address how to convert binary numbers and the more common decimal numbers back and forth.&lt;br /&gt;
&lt;br /&gt;
The binary number system is thus useful in computing and it is the way how computers represent and store a series of values or a numbers.&lt;br /&gt;
&lt;br /&gt;
==Numbering Systems==&lt;br /&gt;
&lt;br /&gt;
While numbers seem like absolutes, there are actually several different ways to write these values.  One main difference in numbering systems is what we use as the base of the number.  The decimal system uses a base 10, meaning that there are 10 symbols (0-9) that are used.  Once you get past 9, you round up to a 1 in the tens position and start over at 0 in the ones position. A symbol in this instance is any single letter, number, or other symbol. &lt;br /&gt;
There are many other base systems, including Base 16 (hexabase), Base 8 (octobase), and Base 2 (binary).  Base 8 only uses 8 symbols (0-7) and binary only uses 2 symbols (0-1).  Base 16 is a bit more complex as the 16 symbols that are used include the number 0-9 as well as the letters A-F.&lt;br /&gt;
These base systems can still be used to represent the same numbers, and can be converted back and forth.  Specifically converting between base 10 and base 2 (decimal to binary) is helpful.&lt;br /&gt;
&lt;br /&gt;
The system you already understand very well is the decimal system, i.e. base 10, where we use 10 symbols (0,1,2,3,4,5,6,7,8,9). When keeping track of values larger than 9, multiple digits are necessary, where each digit represents a power of 10.  For example, the value &amp;lt;math&amp;gt;1067&amp;lt;/math&amp;gt; can be expanded to make this explicit: &lt;br /&gt;
­&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:Dec.jpg|325px]] &lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now consider the binary system, i.e. base 2, where we only use 2 symbols to describe any value (0 and 1). When keeping track of values larger than 1, multiple digits are necessary, where each digit represents a power of 2. For example, the value &amp;lt;math&amp;gt;10110_2&amp;lt;/math&amp;gt; can be expanded to make this explicit (Note: the subscript &amp;quot;2&amp;quot; following the number means it is in base 2):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:Bin.jpg|325px]] &lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Decimal to Binary Conversion===&lt;br /&gt;
&lt;br /&gt;
Since we (as humans) have been trained to count and keep track of stuff using decimal symbols, and the computer needs to use binary symbols, it is useful to know how to convert between the two.  For example, consider the decimal numerals 0 through 7, and the corresponding binary representation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;div id=&amp;quot;TableB.1&amp;quot;&amp;gt;&amp;lt;big&amp;gt;'''TABLE B.1'''&amp;lt;/big&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;bottom&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
|Binary&lt;br /&gt;
|Decimal&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|000&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|001&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|010&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|2&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|011&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|3&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|100&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|4&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|101&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|5&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|110&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|6&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|111&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|7&lt;br /&gt;
|}&lt;br /&gt;
Table B1: ''Examples of Binary/Decimal Correspondence.''&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''To convert a decimal number into a binary number, one can follow these steps:'''&lt;br /&gt;
&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;divide the decimal number by 2 to get the WHOLE number quotient. If the number is odd, you will be left with a remainder of 1; If the decimal number is even, then you will have a remainder of 0. ''The remainder is the resulting binary digit.''&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Take the quotient from step 1 and repeat.&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Keep doing this until you get to a quotient of 0.&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This procedure is shown in the following examples:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; convert &amp;lt;math&amp;gt;12_{10}&amp;lt;/math&amp;gt; to binary:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;bottom&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
|Division by 2&lt;br /&gt;
|Quotient&lt;br /&gt;
|Remainder&lt;br /&gt;
|Binary digit&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|12&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|6&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1st&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|6&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|3&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|2nd&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|3&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|3rd&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|4th&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; so &amp;lt;math&amp;gt;12_{10} = 1100_2&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; convert &amp;lt;math&amp;gt;21_{10}&amp;lt;/math&amp;gt; to binary:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;bottom&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
|Division by 2&lt;br /&gt;
|Quotient&lt;br /&gt;
|Remainder&lt;br /&gt;
|Binary digit&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|21&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|10&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1st&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|10&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|5&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|2nd&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|5&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|2&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|3rd&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|2&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|4th&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|5th&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; so &amp;lt;math&amp;gt;21_{10} = 10101_2&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Binary to Decimal Conversion===&lt;br /&gt;
&lt;br /&gt;
To convert a binary number into the corresponding decimal number, recall that each digit in a binary number corresponds to to a power of 2. '''''(see above, put a link here?)'''''&lt;br /&gt;
&lt;br /&gt;
For example, consider the binary number &amp;lt;math&amp;gt;10111_2&amp;lt;/math&amp;gt;. Each digit corresponds to a power of 2 as shown in the following table:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;bottom&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
|Binary number&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|-&lt;br /&gt;
|power of 2&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;2^4&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;2^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;2^2&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;2^1&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;2^0&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{align}10111_2 &amp;amp; = 1 \cdot 2^4 + 0 \cdot 2^3 + 1 \cdot 2^2 + 1 \cdot 2^1 + 1 \cdot 2^0 \\&lt;br /&gt;
  &amp;amp; = 1 \cdot 16 + 0 \cdot 8 + 1 \cdot 4 + 1\cdot 2 + 1 \cdot 1 \\&lt;br /&gt;
  &amp;amp; = 16 + 0 + 4 + 2 + 1 \\&lt;br /&gt;
  &amp;amp; = 23_{10}\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Binary Addition===&lt;br /&gt;
&lt;br /&gt;
Adding binary numbers, by hand, is identical to the process one learns in gradeschool when adding decimal numbers. In decimal addition, if you add 5 + 5 then you get 10. When computing this sum, you get a digit of 0 and a carry digit of 1. If adding 6 + 6, then you get a digit of 2 with a carry digit of 1, and thus an answer of 12.&lt;br /&gt;
&lt;br /&gt;
In binary, if you add 1 + 1, the sum is written as 10, because after summing 1 + 1 you get a digit of 0 and a carry of 1:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 + 0 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 + 0 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 + 1 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \;\; 1 + 1 = 10 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When adding binary numbers with multiple digits, the same approach is applied, as demonstrated in the following examples:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure B.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:BinaryAdd.jpg|470px]]&lt;br /&gt;
&amp;lt;!-- How to add binary numbers when carrying is necessary.--&amp;gt;  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===ASCII (American Standard Code for Information Interchange)===&lt;br /&gt;
&lt;br /&gt;
The computer needs to use binary strings to represent any characters, not just numerical values. How to rpresent the letter &amp;quot;w&amp;quot;? or the uppercase &amp;quot;W&amp;quot;? and so on... this was originally handled by using the American Staqndard for Information Interchange (ASCII, pronounced &amp;quot;ass-key, lol). This system uses 7 bits (i.e. binary numbers with 7 digits) to describe all the buttons on the keyboard: 33 of them are non-printable, such as the Ctrl key, the Shift key, etc., and the other 95 printable characters can be found here: [[Media:ASCII.Symbols.jpg|ASCII Binary Codes]]&lt;br /&gt;
&lt;br /&gt;
==Conclusion (gearing up for logic gates)==&lt;br /&gt;
&lt;br /&gt;
We have just studied how to use binary expressions to represent numbers:  e.g., 101 stands for the number five.  So, when the computer stores &amp;quot;101&amp;quot; in its bit registers, you can think of the computer as storing the number five.&lt;br /&gt;
&lt;br /&gt;
But here is an interesting shift of perspective:  because &amp;quot;1&amp;quot; and &amp;quot;0&amp;quot; are just symbols and &amp;quot;101&amp;quot; is just a bunch of symbols, you can read them as representing a different kind of thing.  One important reading of the symbols is to read &amp;quot;1&amp;quot; as &amp;quot;Yes&amp;quot; and &amp;quot;0&amp;quot; as &amp;quot;No&amp;quot; to a given Yes/No question, and &amp;quot;101&amp;quot; as &amp;quot;Yes, No, Yes&amp;quot; to three Yes/No questions:  e.g., &amp;quot;101&amp;quot; may stand for &amp;quot;Yes, it is Sunday; No, it is not raining; Yes, it is hot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Computers are good at manipulating binary numbers.  This, combined with the &amp;quot;Yes/No&amp;quot; perspective, means that computers are also good at calculating answers to Yes/No questions:  e.g., given &amp;quot;Yes, it is Sunday; No, it is not raining; Yes, it is hot&amp;quot;, the computer can now calculate what the answer is to the question &amp;quot;Is it hot Sunday?&amp;quot; (the answer is Yes).  This sort of &amp;quot;Yes/No&amp;quot; calculation is called &amp;quot;logic&amp;quot;, and computers execute it by applying &amp;quot;logic gates&amp;quot; to bit registers.  Indeed, that is how computers manipulate numbers --- computers execute operations such as addition of two numbers by actually applying logic gates and executing very complicated logic calculations!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Binary Logic==&lt;br /&gt;
&lt;br /&gt;
When considering zero and one to be yes/no or true/false, there is an algebra (called Boolean algebra) that helps to designate how to combine these values.  The main combinations are ''AND'' &amp;lt;math&amp;gt;\wedge&amp;lt;/math&amp;gt;, ''OR'' &amp;lt;math&amp;gt;\vee&amp;lt;/math&amp;gt;, and ''NOT'' &amp;lt;math&amp;gt;\neg&amp;lt;/math&amp;gt;.  The ''NOT'' gives &amp;lt;math&amp;gt;\neg 0 =1&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\neg 1 = 0&amp;lt;/math&amp;gt;.  The ''AND'' operation gives &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \wedge 0 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \wedge 0 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \wedge 1 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \wedge 1 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The ''OR'' operation gives &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \vee 0 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \vee 0 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \vee 1 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \vee 1 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
One operation that we will use often is the ''exclusive OR'', sometimes written as XOR.  The symbol for the combination is &amp;lt;math&amp;gt;\oplus&amp;lt;/math&amp;gt; and it gives the following values: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \oplus 0 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \oplus 0 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \oplus 1 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \oplus 1 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As we will see, these operations are performed very explicitly in quantum computing using matrices and vectors.&lt;br /&gt;
&lt;br /&gt;
Sometimes this type of &amp;quot;addition&amp;quot; is used for what is called &amp;quot;bit-wise binary addition&amp;quot; which takes the sum of each individual digit and adds them according to these rules.  For example, consider the bit-wise binary addition of the two bit strings, 0110010 and 1101001.  The sum would be&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{array}{cccccccc}&lt;br /&gt;
         &amp;amp;0&amp;amp;1&amp;amp;1&amp;amp;0&amp;amp;0&amp;amp;1&amp;amp;0 \\&lt;br /&gt;
\oplus &amp;amp;1&amp;amp;1&amp;amp;0&amp;amp;1&amp;amp;0&amp;amp;0&amp;amp;1 \\&lt;br /&gt;
\hline&lt;br /&gt;
         &amp;amp;1&amp;amp;0&amp;amp;1&amp;amp;1&amp;amp;0&amp;amp;1&amp;amp;1&lt;br /&gt;
\end{array}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Further Reading==&lt;br /&gt;
&lt;br /&gt;
[[Bibliography#Wong|Thomas Wong's book [49]]] is an excellent introductory resource for both classical and quantum computing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Exercises==&lt;br /&gt;
&lt;br /&gt;
'''''(can we gamify this?? Ask the Arts team about non-traditional/creative assessments, and find real-world applications)'''''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Convert the following decimal numbers to binary:&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;108&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;3047&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Convert the following binary numbers to decimal &amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;1001_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;11011_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;1011001_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Add these binary numbers&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;1001_2+10110_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;110_2+101_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;110011_2+1110_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Challenge Questions&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Convert the following binary number into base 3: &amp;lt;math&amp;gt;11011_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''QuSTEAM'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Binary&amp;diff=3058</id>
		<title>Binary</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Binary&amp;diff=3058"/>
		<updated>2022-08-25T03:34:21Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Binary Logic */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
==Why We Need (why we use) Binary==&lt;br /&gt;
&lt;br /&gt;
Classical computers only have 2 states, or output options, and therefore can only use two symbols to represent those two states. More complicated questions are the combination of multiple yes and no questions in a series. Computers often use binary code, using just 0 and 1 to store the data.  These are referred to as bits.&lt;br /&gt;
&lt;br /&gt;
But here is an interesting shift of perspective:  because &amp;quot;1&amp;quot; and &amp;quot;0&amp;quot; are just symbols you can read them as representing a different kind of thing.  One important reading of the symbols is to read &amp;quot;1&amp;quot; as &amp;quot;Yes&amp;quot; and &amp;quot;0&amp;quot; as &amp;quot;No&amp;quot; to a given Yes/No question.  A string of binary numbers such as &amp;quot;101&amp;quot; can thus be perceived as &amp;quot;Yes, No, Yes&amp;quot; to three Yes/No questions:  e.g., &amp;quot;101&amp;quot; may stand for &amp;quot;Yes, it is Sunday; No, it is not raining; Yes, it is hot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Binary expressions can also be used to represent numbers:  e.g., 101 stands for the number five.  So, when the computer stores &amp;quot;101&amp;quot; in its bit registers, you can think of the computer as storing the number five. This section will address how to convert binary numbers and the more common decimal numbers back and forth.&lt;br /&gt;
&lt;br /&gt;
The binary number system is thus useful in computing and it is the way how computers represent and store a series of values or a numbers.&lt;br /&gt;
&lt;br /&gt;
==Numbering Systems==&lt;br /&gt;
&lt;br /&gt;
While numbers seem like absolutes, there are actually several different ways to write these values.  One main difference in numbering systems is what we use as the base of the number.  The decimal system uses a base 10, meaning that there are 10 symbols (0-9) that are used.  Once you get past 9, you round up to a 1 in the tens position and start over at 0 in the ones position. A symbol in this instance is any single letter, number, or other symbol. &lt;br /&gt;
There are many other base systems, including Base 16 (hexabase), Base 8 (octobase), and Base 2 (binary).  Base 8 only uses 8 symbols (0-7) and binary only uses 2 symbols (0-1).  Base 16 is a bit more complex as the 16 symbols that are used include the number 0-9 as well as the letters A-F.&lt;br /&gt;
These base systems can still be used to represent the same numbers, and can be converted back and forth.  Specifically converting between base 10 and base 2 (decimal to binary) is helpful.&lt;br /&gt;
&lt;br /&gt;
The system you already understand very well is the decimal system, i.e. base 10, where we use 10 symbols (0,1,2,3,4,5,6,7,8,9). When keeping track of values larger than 9, multiple digits are necessary, where each digit represents a power of 10.  For example, the value &amp;lt;math&amp;gt;1067&amp;lt;/math&amp;gt; can be expanded to make this explicit: &lt;br /&gt;
­&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:Dec.jpg|325px]] &lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now consider the binary system, i.e. base 2, where we only use 2 symbols to describe any value (0 and 1). When keeping track of values larger than 1, multiple digits are necessary, where each digit represents a power of 2. For example, the value &amp;lt;math&amp;gt;10110_2&amp;lt;/math&amp;gt; can be expanded to make this explicit (Note: the subscript &amp;quot;2&amp;quot; following the number means it is in base 2):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:Bin.jpg|325px]] &lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Decimal to Binary Conversion===&lt;br /&gt;
&lt;br /&gt;
Since we (as humans) have been trained to count and keep track of stuff using decimal symbols, and the computer needs to use binary symbols, it is useful to know how to convert between the two.  For example, consider the decimal numerals 0 through 7, and the corresponding binary representation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;div id=&amp;quot;TableB.1&amp;quot;&amp;gt;&amp;lt;big&amp;gt;'''TABLE B.1'''&amp;lt;/big&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;bottom&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
|Binary&lt;br /&gt;
|Decimal&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|000&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|001&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|010&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|2&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|011&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|3&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|100&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|4&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|101&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|5&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|110&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|6&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|111&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|7&lt;br /&gt;
|}&lt;br /&gt;
Table B1: ''Examples of Binary/Decimal Correspondence.''&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''To convert a decimal number into a binary number, one can follow these steps:'''&lt;br /&gt;
&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;divide the decimal number by 2 to get the WHOLE number quotient. If the number is odd, you will be left with a remainder of 1; If the decimal number is even, then you will have a remainder of 0. ''The remainder is the resulting binary digit.''&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Take the quotient from step 1 and repeat.&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Keep doing this until you get to a quotient of 0.&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This procedure is shown in the following examples:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; convert &amp;lt;math&amp;gt;12_{10}&amp;lt;/math&amp;gt; to binary:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;bottom&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
|Division by 2&lt;br /&gt;
|Quotient&lt;br /&gt;
|Remainder&lt;br /&gt;
|Binary digit&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|12&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|6&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1st&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|6&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|3&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|2nd&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|3&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|3rd&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|4th&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; so &amp;lt;math&amp;gt;12_{10} = 1100_2&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; convert &amp;lt;math&amp;gt;21_{10}&amp;lt;/math&amp;gt; to binary:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;bottom&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
|Division by 2&lt;br /&gt;
|Quotient&lt;br /&gt;
|Remainder&lt;br /&gt;
|Binary digit&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|21&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|10&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1st&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|10&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|5&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|2nd&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|5&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|2&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|3rd&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|2&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|4th&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|5th&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; so &amp;lt;math&amp;gt;21_{10} = 10101_2&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Binary to Decimal Conversion===&lt;br /&gt;
&lt;br /&gt;
To convert a binary number into the corresponding decimal number, recall that each digit in a binary number corresponds to to a power of 2. '''''(see above, put a link here?)'''''&lt;br /&gt;
&lt;br /&gt;
For example, consider the binary number &amp;lt;math&amp;gt;10111_2&amp;lt;/math&amp;gt;. Each digit corresponds to a power of 2 as shown in the following table:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;bottom&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
|Binary number&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|-&lt;br /&gt;
|power of 2&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;2^4&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;2^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;2^2&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;2^1&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;2^0&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{align}10111_2 &amp;amp; = 1 \cdot 2^4 + 0 \cdot 2^3 + 1 \cdot 2^2 + 1 \cdot 2^1 + 1 \cdot 2^0 \\&lt;br /&gt;
  &amp;amp; = 1 \cdot 16 + 0 \cdot 8 + 1 \cdot 4 + 1\cdot 2 + 1 \cdot 1 \\&lt;br /&gt;
  &amp;amp; = 16 + 0 + 4 + 2 + 1 \\&lt;br /&gt;
  &amp;amp; = 23_{10}\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Binary Addition===&lt;br /&gt;
&lt;br /&gt;
Adding binary numbers, by hand, is identical to the process one learns in gradeschool when adding decimal numbers. In decimal addition, if you add 5 + 5 then you get 10. When computing this sum, you get a digit of 0 and a carry digit of 1. If adding 6 + 6, then you get a digit of 2 with a carry digit of 1, and thus an answer of 12.&lt;br /&gt;
&lt;br /&gt;
In binary, if you add 1 + 1, the sum is written as 10, because after summing 1 + 1 you get a digit of 0 and a carry of 1:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 + 0 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 + 0 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 + 1 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \;\; 1 + 1 = 10 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When adding binary numbers with multiple digits, the same approach is applied, as demonstrated in the following examples:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure B.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:BinaryAdd.jpg|470px]]&lt;br /&gt;
&amp;lt;!-- How to add binary numbers when carrying is necessary.--&amp;gt;  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===ASCII (American Standard Code for Information Interchange)===&lt;br /&gt;
&lt;br /&gt;
The computer needs to use binary strings to represent any characters, not just numerical values. How to rpresent the letter &amp;quot;w&amp;quot;? or the uppercase &amp;quot;W&amp;quot;? and so on... this was originally handled by using the American Staqndard for Information Interchange (ASCII, pronounced &amp;quot;ass-key, lol). This system uses 7 bits (i.e. binary numbers with 7 digits) to describe all the buttons on the keyboard: 33 of them are non-printable, such as the Ctrl key, the Shift key, etc., and the other 95 printable characters can be found here: [[Media:ASCII.Symbols.jpg|ASCII Binary Codes]]&lt;br /&gt;
&lt;br /&gt;
==Conclusion (gearing up for logic gates)==&lt;br /&gt;
&lt;br /&gt;
We have just studied how to use binary expressions to represent numbers:  e.g., 101 stands for the number five.  So, when the computer stores &amp;quot;101&amp;quot; in its bit registers, you can think of the computer as storing the number five.&lt;br /&gt;
&lt;br /&gt;
But here is an interesting shift of perspective:  because &amp;quot;1&amp;quot; and &amp;quot;0&amp;quot; are just symbols and &amp;quot;101&amp;quot; is just a bunch of symbols, you can read them as representing a different kind of thing.  One important reading of the symbols is to read &amp;quot;1&amp;quot; as &amp;quot;Yes&amp;quot; and &amp;quot;0&amp;quot; as &amp;quot;No&amp;quot; to a given Yes/No question, and &amp;quot;101&amp;quot; as &amp;quot;Yes, No, Yes&amp;quot; to three Yes/No questions:  e.g., &amp;quot;101&amp;quot; may stand for &amp;quot;Yes, it is Sunday; No, it is not raining; Yes, it is hot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Computers are good at manipulating binary numbers.  This, combined with the &amp;quot;Yes/No&amp;quot; perspective, means that computers are also good at calculating answers to Yes/No questions:  e.g., given &amp;quot;Yes, it is Sunday; No, it is not raining; Yes, it is hot&amp;quot;, the computer can now calculate what the answer is to the question &amp;quot;Is it hot Sunday?&amp;quot; (the answer is Yes).  This sort of &amp;quot;Yes/No&amp;quot; calculation is called &amp;quot;logic&amp;quot;, and computers execute it by applying &amp;quot;logic gates&amp;quot; to bit registers.  Indeed, that is how computers manipulate numbers --- computers execute operations such as addition of two numbers by actually applying logic gates and executing very complicated logic calculations!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Binary Logic==&lt;br /&gt;
&lt;br /&gt;
When considering zero and one to be yes/no or true/false, there is an algebra (called Boolean algebra) that helps to designate how to combine these values.  The main combinations are ''AND'' &amp;lt;math&amp;gt;\wedge&amp;lt;/math&amp;gt;, ''OR'' &amp;lt;math&amp;gt;\vee&amp;lt;/math&amp;gt;, and ''NOT'' &amp;lt;math&amp;gt;\neg&amp;lt;/math&amp;gt;.  The ''NOT'' gives &amp;lt;math&amp;gt;\neg 0 =1&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\neg 1 = 0&amp;lt;/math&amp;gt;.  The ''AND'' operation gives &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \wedge 0 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \wedge 0 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \wedge 1 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \wedge 1 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The ''OR'' operation gives &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \vee 0 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \vee 0 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \vee 1 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \vee 1 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
One operation that we will use often is the ''exclusive OR'', sometimes written as XOR.  The symbol for the combination is &amp;lt;math&amp;gt;\oplus&amp;lt;/math&amp;gt; and it gives the following values: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \oplus 0 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \oplus 0 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \oplus 1 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \oplus 1 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As we will see, these operations are performed very explicitly in quantum computing using matrices and vectors.&lt;br /&gt;
&lt;br /&gt;
Sometimes this type of &amp;quot;addition&amp;quot; is used for what is called &amp;quot;bit-wise binary addition&amp;quot; which takes the sum of each individual digit and adds them according to these rules.  For example, consider the bit-wise binary addition of the two bit strings, 0110010 and 1101001.  The sum would be&lt;br /&gt;
&lt;br /&gt;
\begin{tabular}{cccccccc}&lt;br /&gt;
         &amp;amp;0&amp;amp;1&amp;amp;1&amp;amp;0&amp;amp;0&amp;amp;1&amp;amp;0 \\&lt;br /&gt;
&amp;lt;math&amp;gt;\oplus&amp;lt;/math&amp;gt; &amp;amp;1&amp;amp;1&amp;amp;0&amp;amp;1&amp;amp;0&amp;amp;0&amp;amp;1 \\&lt;br /&gt;
\hline&lt;br /&gt;
         &amp;amp;1&amp;amp;0&amp;amp;1&amp;amp;1&amp;amp;0&amp;amp;1&amp;amp;1&lt;br /&gt;
\end{tabular}&lt;br /&gt;
&lt;br /&gt;
==Further Reading==&lt;br /&gt;
&lt;br /&gt;
[[Bibliography#Wong|Thomas Wong's book [49]]] is an excellent introductory resource for both classical and quantum computing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Exercises==&lt;br /&gt;
&lt;br /&gt;
'''''(can we gamify this?? Ask the Arts team about non-traditional/creative assessments, and find real-world applications)'''''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Convert the following decimal numbers to binary:&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;108&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;3047&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Convert the following binary numbers to decimal &amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;1001_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;11011_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;1011001_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Add these binary numbers&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;1001_2+10110_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;110_2+101_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;110011_2+1110_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Challenge Questions&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Convert the following binary number into base 3: &amp;lt;math&amp;gt;11011_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''QuSTEAM'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Binary&amp;diff=3057</id>
		<title>Binary</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Binary&amp;diff=3057"/>
		<updated>2022-08-25T03:29:30Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: /* Binary Logic */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
==Why We Need (why we use) Binary==&lt;br /&gt;
&lt;br /&gt;
Classical computers only have 2 states, or output options, and therefore can only use two symbols to represent those two states. More complicated questions are the combination of multiple yes and no questions in a series. Computers often use binary code, using just 0 and 1 to store the data.  These are referred to as bits.&lt;br /&gt;
&lt;br /&gt;
But here is an interesting shift of perspective:  because &amp;quot;1&amp;quot; and &amp;quot;0&amp;quot; are just symbols you can read them as representing a different kind of thing.  One important reading of the symbols is to read &amp;quot;1&amp;quot; as &amp;quot;Yes&amp;quot; and &amp;quot;0&amp;quot; as &amp;quot;No&amp;quot; to a given Yes/No question.  A string of binary numbers such as &amp;quot;101&amp;quot; can thus be perceived as &amp;quot;Yes, No, Yes&amp;quot; to three Yes/No questions:  e.g., &amp;quot;101&amp;quot; may stand for &amp;quot;Yes, it is Sunday; No, it is not raining; Yes, it is hot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Binary expressions can also be used to represent numbers:  e.g., 101 stands for the number five.  So, when the computer stores &amp;quot;101&amp;quot; in its bit registers, you can think of the computer as storing the number five. This section will address how to convert binary numbers and the more common decimal numbers back and forth.&lt;br /&gt;
&lt;br /&gt;
The binary number system is thus useful in computing and it is the way how computers represent and store a series of values or a numbers.&lt;br /&gt;
&lt;br /&gt;
==Numbering Systems==&lt;br /&gt;
&lt;br /&gt;
While numbers seem like absolutes, there are actually several different ways to write these values.  One main difference in numbering systems is what we use as the base of the number.  The decimal system uses a base 10, meaning that there are 10 symbols (0-9) that are used.  Once you get past 9, you round up to a 1 in the tens position and start over at 0 in the ones position. A symbol in this instance is any single letter, number, or other symbol. &lt;br /&gt;
There are many other base systems, including Base 16 (hexabase), Base 8 (octobase), and Base 2 (binary).  Base 8 only uses 8 symbols (0-7) and binary only uses 2 symbols (0-1).  Base 16 is a bit more complex as the 16 symbols that are used include the number 0-9 as well as the letters A-F.&lt;br /&gt;
These base systems can still be used to represent the same numbers, and can be converted back and forth.  Specifically converting between base 10 and base 2 (decimal to binary) is helpful.&lt;br /&gt;
&lt;br /&gt;
The system you already understand very well is the decimal system, i.e. base 10, where we use 10 symbols (0,1,2,3,4,5,6,7,8,9). When keeping track of values larger than 9, multiple digits are necessary, where each digit represents a power of 10.  For example, the value &amp;lt;math&amp;gt;1067&amp;lt;/math&amp;gt; can be expanded to make this explicit: &lt;br /&gt;
­&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:Dec.jpg|325px]] &lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now consider the binary system, i.e. base 2, where we only use 2 symbols to describe any value (0 and 1). When keeping track of values larger than 1, multiple digits are necessary, where each digit represents a power of 2. For example, the value &amp;lt;math&amp;gt;10110_2&amp;lt;/math&amp;gt; can be expanded to make this explicit (Note: the subscript &amp;quot;2&amp;quot; following the number means it is in base 2):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:Bin.jpg|325px]] &lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Decimal to Binary Conversion===&lt;br /&gt;
&lt;br /&gt;
Since we (as humans) have been trained to count and keep track of stuff using decimal symbols, and the computer needs to use binary symbols, it is useful to know how to convert between the two.  For example, consider the decimal numerals 0 through 7, and the corresponding binary representation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;div id=&amp;quot;TableB.1&amp;quot;&amp;gt;&amp;lt;big&amp;gt;'''TABLE B.1'''&amp;lt;/big&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;bottom&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
|Binary&lt;br /&gt;
|Decimal&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|000&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|001&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|010&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|2&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|011&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|3&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|100&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|4&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|101&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|5&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|110&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|6&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|111&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|7&lt;br /&gt;
|}&lt;br /&gt;
Table B1: ''Examples of Binary/Decimal Correspondence.''&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''To convert a decimal number into a binary number, one can follow these steps:'''&lt;br /&gt;
&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;divide the decimal number by 2 to get the WHOLE number quotient. If the number is odd, you will be left with a remainder of 1; If the decimal number is even, then you will have a remainder of 0. ''The remainder is the resulting binary digit.''&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Take the quotient from step 1 and repeat.&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Keep doing this until you get to a quotient of 0.&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This procedure is shown in the following examples:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; convert &amp;lt;math&amp;gt;12_{10}&amp;lt;/math&amp;gt; to binary:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;bottom&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
|Division by 2&lt;br /&gt;
|Quotient&lt;br /&gt;
|Remainder&lt;br /&gt;
|Binary digit&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|12&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|6&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1st&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|6&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|3&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|2nd&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|3&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|3rd&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|4th&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; so &amp;lt;math&amp;gt;12_{10} = 1100_2&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; convert &amp;lt;math&amp;gt;21_{10}&amp;lt;/math&amp;gt; to binary:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;bottom&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
|Division by 2&lt;br /&gt;
|Quotient&lt;br /&gt;
|Remainder&lt;br /&gt;
|Binary digit&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|21&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|10&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1st&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|10&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|5&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|2nd&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|5&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|2&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|3rd&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|2&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|4th&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|5th&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; so &amp;lt;math&amp;gt;21_{10} = 10101_2&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Binary to Decimal Conversion===&lt;br /&gt;
&lt;br /&gt;
To convert a binary number into the corresponding decimal number, recall that each digit in a binary number corresponds to to a power of 2. '''''(see above, put a link here?)'''''&lt;br /&gt;
&lt;br /&gt;
For example, consider the binary number &amp;lt;math&amp;gt;10111_2&amp;lt;/math&amp;gt;. Each digit corresponds to a power of 2 as shown in the following table:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;bottom&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
|Binary number&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|-&lt;br /&gt;
|power of 2&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;2^4&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;2^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;2^2&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;2^1&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;2^0&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{align}10111_2 &amp;amp; = 1 \cdot 2^4 + 0 \cdot 2^3 + 1 \cdot 2^2 + 1 \cdot 2^1 + 1 \cdot 2^0 \\&lt;br /&gt;
  &amp;amp; = 1 \cdot 16 + 0 \cdot 8 + 1 \cdot 4 + 1\cdot 2 + 1 \cdot 1 \\&lt;br /&gt;
  &amp;amp; = 16 + 0 + 4 + 2 + 1 \\&lt;br /&gt;
  &amp;amp; = 23_{10}\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Binary Addition===&lt;br /&gt;
&lt;br /&gt;
Adding binary numbers, by hand, is identical to the process one learns in gradeschool when adding decimal numbers. In decimal addition, if you add 5 + 5 then you get 10. When computing this sum, you get a digit of 0 and a carry digit of 1. If adding 6 + 6, then you get a digit of 2 with a carry digit of 1, and thus an answer of 12.&lt;br /&gt;
&lt;br /&gt;
In binary, if you add 1 + 1, the sum is written as 10, because after summing 1 + 1 you get a digit of 0 and a carry of 1:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 + 0 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 + 0 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 + 1 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \;\; 1 + 1 = 10 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When adding binary numbers with multiple digits, the same approach is applied, as demonstrated in the following examples:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure B.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:BinaryAdd.jpg|470px]]&lt;br /&gt;
&amp;lt;!-- How to add binary numbers when carrying is necessary.--&amp;gt;  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===ASCII (American Standard Code for Information Interchange)===&lt;br /&gt;
&lt;br /&gt;
The computer needs to use binary strings to represent any characters, not just numerical values. How to rpresent the letter &amp;quot;w&amp;quot;? or the uppercase &amp;quot;W&amp;quot;? and so on... this was originally handled by using the American Staqndard for Information Interchange (ASCII, pronounced &amp;quot;ass-key, lol). This system uses 7 bits (i.e. binary numbers with 7 digits) to describe all the buttons on the keyboard: 33 of them are non-printable, such as the Ctrl key, the Shift key, etc., and the other 95 printable characters can be found here: [[Media:ASCII.Symbols.jpg|ASCII Binary Codes]]&lt;br /&gt;
&lt;br /&gt;
==Conclusion (gearing up for logic gates)==&lt;br /&gt;
&lt;br /&gt;
We have just studied how to use binary expressions to represent numbers:  e.g., 101 stands for the number five.  So, when the computer stores &amp;quot;101&amp;quot; in its bit registers, you can think of the computer as storing the number five.&lt;br /&gt;
&lt;br /&gt;
But here is an interesting shift of perspective:  because &amp;quot;1&amp;quot; and &amp;quot;0&amp;quot; are just symbols and &amp;quot;101&amp;quot; is just a bunch of symbols, you can read them as representing a different kind of thing.  One important reading of the symbols is to read &amp;quot;1&amp;quot; as &amp;quot;Yes&amp;quot; and &amp;quot;0&amp;quot; as &amp;quot;No&amp;quot; to a given Yes/No question, and &amp;quot;101&amp;quot; as &amp;quot;Yes, No, Yes&amp;quot; to three Yes/No questions:  e.g., &amp;quot;101&amp;quot; may stand for &amp;quot;Yes, it is Sunday; No, it is not raining; Yes, it is hot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Computers are good at manipulating binary numbers.  This, combined with the &amp;quot;Yes/No&amp;quot; perspective, means that computers are also good at calculating answers to Yes/No questions:  e.g., given &amp;quot;Yes, it is Sunday; No, it is not raining; Yes, it is hot&amp;quot;, the computer can now calculate what the answer is to the question &amp;quot;Is it hot Sunday?&amp;quot; (the answer is Yes).  This sort of &amp;quot;Yes/No&amp;quot; calculation is called &amp;quot;logic&amp;quot;, and computers execute it by applying &amp;quot;logic gates&amp;quot; to bit registers.  Indeed, that is how computers manipulate numbers --- computers execute operations such as addition of two numbers by actually applying logic gates and executing very complicated logic calculations!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Binary Logic==&lt;br /&gt;
&lt;br /&gt;
When considering zero and one to be yes/no or true/false, there is an algebra (called Boolean algebra) that helps to designate how to combine these values.  The main combinations are ''AND'' &amp;lt;math&amp;gt;\wedge&amp;lt;/math&amp;gt;, ''OR'' &amp;lt;math&amp;gt;\vee&amp;lt;/math&amp;gt;, and ''NOT'' &amp;lt;math&amp;gt;\neg&amp;lt;/math&amp;gt;.  The ''NOT'' gives &amp;lt;math&amp;gt;\neg 0 =1&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\neg 1 = 0&amp;lt;/math&amp;gt;.  The ''AND'' operation gives &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \wedge 0 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \wedge 0 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \wedge 1 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \wedge 1 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The ''OR'' operation gives &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \vee 0 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \vee 0 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \vee 1 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \vee 1 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
One operation that we will use often is the ''exclusive OR'', sometimes written as XOR.  The symbol for the combination is &amp;lt;math&amp;gt;\oplus&amp;lt;/math&amp;gt; and it gives the following values: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \oplus 0 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \oplus 0 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \oplus 1 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \oplus 1 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As we will see, these operations are performed very explicitly in quantum computing using matrices and vectors.&lt;br /&gt;
&lt;br /&gt;
Sometimes this type of &amp;quot;addition&amp;quot; is used for what is called &amp;quot;bit-wise binary addition&amp;quot; which takes the sum of each individual digit and adds them according to these rules.  For example, consider the bit-wise binary addition of the two bit strings, 0110010 and 1101001.  The sum would be&lt;br /&gt;
&lt;br /&gt;
==Further Reading==&lt;br /&gt;
&lt;br /&gt;
[[Bibliography#Wong|Thomas Wong's book [49]]] is an excellent introductory resource for both classical and quantum computing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Exercises==&lt;br /&gt;
&lt;br /&gt;
'''''(can we gamify this?? Ask the Arts team about non-traditional/creative assessments, and find real-world applications)'''''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Convert the following decimal numbers to binary:&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;108&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;3047&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Convert the following binary numbers to decimal &amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;1001_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;11011_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;1011001_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Add these binary numbers&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;1001_2+10110_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;110_2+101_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;110011_2+1110_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Challenge Questions&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Convert the following binary number into base 3: &amp;lt;math&amp;gt;11011_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''QuSTEAM'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Binary&amp;diff=3056</id>
		<title>Binary</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Binary&amp;diff=3056"/>
		<updated>2022-08-25T03:13:30Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
==Why We Need (why we use) Binary==&lt;br /&gt;
&lt;br /&gt;
Classical computers only have 2 states, or output options, and therefore can only use two symbols to represent those two states. More complicated questions are the combination of multiple yes and no questions in a series. Computers often use binary code, using just 0 and 1 to store the data.  These are referred to as bits.&lt;br /&gt;
&lt;br /&gt;
But here is an interesting shift of perspective:  because &amp;quot;1&amp;quot; and &amp;quot;0&amp;quot; are just symbols you can read them as representing a different kind of thing.  One important reading of the symbols is to read &amp;quot;1&amp;quot; as &amp;quot;Yes&amp;quot; and &amp;quot;0&amp;quot; as &amp;quot;No&amp;quot; to a given Yes/No question.  A string of binary numbers such as &amp;quot;101&amp;quot; can thus be perceived as &amp;quot;Yes, No, Yes&amp;quot; to three Yes/No questions:  e.g., &amp;quot;101&amp;quot; may stand for &amp;quot;Yes, it is Sunday; No, it is not raining; Yes, it is hot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Binary expressions can also be used to represent numbers:  e.g., 101 stands for the number five.  So, when the computer stores &amp;quot;101&amp;quot; in its bit registers, you can think of the computer as storing the number five. This section will address how to convert binary numbers and the more common decimal numbers back and forth.&lt;br /&gt;
&lt;br /&gt;
The binary number system is thus useful in computing and it is the way how computers represent and store a series of values or a numbers.&lt;br /&gt;
&lt;br /&gt;
==Numbering Systems==&lt;br /&gt;
&lt;br /&gt;
While numbers seem like absolutes, there are actually several different ways to write these values.  One main difference in numbering systems is what we use as the base of the number.  The decimal system uses a base 10, meaning that there are 10 symbols (0-9) that are used.  Once you get past 9, you round up to a 1 in the tens position and start over at 0 in the ones position. A symbol in this instance is any single letter, number, or other symbol. &lt;br /&gt;
There are many other base systems, including Base 16 (hexabase), Base 8 (octobase), and Base 2 (binary).  Base 8 only uses 8 symbols (0-7) and binary only uses 2 symbols (0-1).  Base 16 is a bit more complex as the 16 symbols that are used include the number 0-9 as well as the letters A-F.&lt;br /&gt;
These base systems can still be used to represent the same numbers, and can be converted back and forth.  Specifically converting between base 10 and base 2 (decimal to binary) is helpful.&lt;br /&gt;
&lt;br /&gt;
The system you already understand very well is the decimal system, i.e. base 10, where we use 10 symbols (0,1,2,3,4,5,6,7,8,9). When keeping track of values larger than 9, multiple digits are necessary, where each digit represents a power of 10.  For example, the value &amp;lt;math&amp;gt;1067&amp;lt;/math&amp;gt; can be expanded to make this explicit: &lt;br /&gt;
­&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:Dec.jpg|325px]] &lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now consider the binary system, i.e. base 2, where we only use 2 symbols to describe any value (0 and 1). When keeping track of values larger than 1, multiple digits are necessary, where each digit represents a power of 2. For example, the value &amp;lt;math&amp;gt;10110_2&amp;lt;/math&amp;gt; can be expanded to make this explicit (Note: the subscript &amp;quot;2&amp;quot; following the number means it is in base 2):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:Bin.jpg|325px]] &lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Decimal to Binary Conversion===&lt;br /&gt;
&lt;br /&gt;
Since we (as humans) have been trained to count and keep track of stuff using decimal symbols, and the computer needs to use binary symbols, it is useful to know how to convert between the two.  For example, consider the decimal numerals 0 through 7, and the corresponding binary representation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;div id=&amp;quot;TableB.1&amp;quot;&amp;gt;&amp;lt;big&amp;gt;'''TABLE B.1'''&amp;lt;/big&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;bottom&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
|Binary&lt;br /&gt;
|Decimal&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|000&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|001&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|010&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|2&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|011&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|3&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|100&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|4&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|101&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|5&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|110&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|6&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|111&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|7&lt;br /&gt;
|}&lt;br /&gt;
Table B1: ''Examples of Binary/Decimal Correspondence.''&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''To convert a decimal number into a binary number, one can follow these steps:'''&lt;br /&gt;
&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;divide the decimal number by 2 to get the WHOLE number quotient. If the number is odd, you will be left with a remainder of 1; If the decimal number is even, then you will have a remainder of 0. ''The remainder is the resulting binary digit.''&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Take the quotient from step 1 and repeat.&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Keep doing this until you get to a quotient of 0.&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This procedure is shown in the following examples:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; convert &amp;lt;math&amp;gt;12_{10}&amp;lt;/math&amp;gt; to binary:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;bottom&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
|Division by 2&lt;br /&gt;
|Quotient&lt;br /&gt;
|Remainder&lt;br /&gt;
|Binary digit&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|12&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|6&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1st&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|6&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|3&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|2nd&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|3&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|3rd&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|4th&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; so &amp;lt;math&amp;gt;12_{10} = 1100_2&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; convert &amp;lt;math&amp;gt;21_{10}&amp;lt;/math&amp;gt; to binary:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;bottom&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
|Division by 2&lt;br /&gt;
|Quotient&lt;br /&gt;
|Remainder&lt;br /&gt;
|Binary digit&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|21&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|10&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1st&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|10&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|5&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|2nd&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|5&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|2&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|3rd&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|2&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|4th&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|5th&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; so &amp;lt;math&amp;gt;21_{10} = 10101_2&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Binary to Decimal Conversion===&lt;br /&gt;
&lt;br /&gt;
To convert a binary number into the corresponding decimal number, recall that each digit in a binary number corresponds to to a power of 2. '''''(see above, put a link here?)'''''&lt;br /&gt;
&lt;br /&gt;
For example, consider the binary number &amp;lt;math&amp;gt;10111_2&amp;lt;/math&amp;gt;. Each digit corresponds to a power of 2 as shown in the following table:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;bottom&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
|Binary number&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|0&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|1&lt;br /&gt;
|-&lt;br /&gt;
|power of 2&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;2^4&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;2^3&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;2^2&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;2^1&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;2^0&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{align}10111_2 &amp;amp; = 1 \cdot 2^4 + 0 \cdot 2^3 + 1 \cdot 2^2 + 1 \cdot 2^1 + 1 \cdot 2^0 \\&lt;br /&gt;
  &amp;amp; = 1 \cdot 16 + 0 \cdot 8 + 1 \cdot 4 + 1\cdot 2 + 1 \cdot 1 \\&lt;br /&gt;
  &amp;amp; = 16 + 0 + 4 + 2 + 1 \\&lt;br /&gt;
  &amp;amp; = 23_{10}\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Binary Addition===&lt;br /&gt;
&lt;br /&gt;
Adding binary numbers, by hand, is identical to the process one learns in gradeschool when adding decimal numbers. In decimal addition, if you add 5 + 5 then you get 10. When computing this sum, you get a digit of 0 and a carry digit of 1. If adding 6 + 6, then you get a digit of 2 with a carry digit of 1, and thus an answer of 12.&lt;br /&gt;
&lt;br /&gt;
In binary, if you add 1 + 1, the sum is written as 10, because after summing 1 + 1 you get a digit of 0 and a carry of 1:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 + 0 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 + 0 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 + 1 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \;\; 1 + 1 = 10 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When adding binary numbers with multiple digits, the same approach is applied, as demonstrated in the following examples:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;Figure B.1&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:BinaryAdd.jpg|470px]]&lt;br /&gt;
&amp;lt;!-- How to add binary numbers when carrying is necessary.--&amp;gt;  &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===ASCII (American Standard Code for Information Interchange)===&lt;br /&gt;
&lt;br /&gt;
The computer needs to use binary strings to represent any characters, not just numerical values. How to rpresent the letter &amp;quot;w&amp;quot;? or the uppercase &amp;quot;W&amp;quot;? and so on... this was originally handled by using the American Staqndard for Information Interchange (ASCII, pronounced &amp;quot;ass-key, lol). This system uses 7 bits (i.e. binary numbers with 7 digits) to describe all the buttons on the keyboard: 33 of them are non-printable, such as the Ctrl key, the Shift key, etc., and the other 95 printable characters can be found here: [[Media:ASCII.Symbols.jpg|ASCII Binary Codes]]&lt;br /&gt;
&lt;br /&gt;
==Conclusion (gearing up for logic gates)==&lt;br /&gt;
&lt;br /&gt;
We have just studied how to use binary expressions to represent numbers:  e.g., 101 stands for the number five.  So, when the computer stores &amp;quot;101&amp;quot; in its bit registers, you can think of the computer as storing the number five.&lt;br /&gt;
&lt;br /&gt;
But here is an interesting shift of perspective:  because &amp;quot;1&amp;quot; and &amp;quot;0&amp;quot; are just symbols and &amp;quot;101&amp;quot; is just a bunch of symbols, you can read them as representing a different kind of thing.  One important reading of the symbols is to read &amp;quot;1&amp;quot; as &amp;quot;Yes&amp;quot; and &amp;quot;0&amp;quot; as &amp;quot;No&amp;quot; to a given Yes/No question, and &amp;quot;101&amp;quot; as &amp;quot;Yes, No, Yes&amp;quot; to three Yes/No questions:  e.g., &amp;quot;101&amp;quot; may stand for &amp;quot;Yes, it is Sunday; No, it is not raining; Yes, it is hot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Computers are good at manipulating binary numbers.  This, combined with the &amp;quot;Yes/No&amp;quot; perspective, means that computers are also good at calculating answers to Yes/No questions:  e.g., given &amp;quot;Yes, it is Sunday; No, it is not raining; Yes, it is hot&amp;quot;, the computer can now calculate what the answer is to the question &amp;quot;Is it hot Sunday?&amp;quot; (the answer is Yes).  This sort of &amp;quot;Yes/No&amp;quot; calculation is called &amp;quot;logic&amp;quot;, and computers execute it by applying &amp;quot;logic gates&amp;quot; to bit registers.  Indeed, that is how computers manipulate numbers --- computers execute operations such as addition of two numbers by actually applying logic gates and executing very complicated logic calculations!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Binary Logic==&lt;br /&gt;
&lt;br /&gt;
When considering zero and one to be yes/no or true/false, there is an algebra (called Boolean algebra) that helps to designate how to combine these values.  The main combinations are ''AND'' &amp;lt;math&amp;gt;\wedge&amp;lt;/math&amp;gt;, ''OR'' &amp;lt;math&amp;gt;\vee&amp;lt;/math&amp;gt;, and ''NOT'' &amp;lt;math&amp;gt;\neg&amp;lt;/math&amp;gt;.  The ''NOT'' gives &amp;lt;math&amp;gt;\neg 0 =1&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\neg 1 = 0&amp;lt;/math&amp;gt;.  The ''AND'' operation gives &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \wedge 0 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \wedge 0 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \wedge 1 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \wedge 1 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The ''OR'' operation gives &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \vee 0 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \vee 0 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \vee 1 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \vee 1 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
One operation that we will use often is the ''exclusive OR'', sometimes written as XOR.  The symbol for the combination is &amp;lt;math&amp;gt;\oplus&amp;lt;/math&amp;gt; and it gives the following values: &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \oplus 0 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \oplus 0 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 0 \oplus 1 = 1 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; 1 \oplus 1 = 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As we will see, these operations are performed very explicitly in quantum computing using matrices and vectors.&lt;br /&gt;
&lt;br /&gt;
Sometimes this type of &amp;quot;addition&amp;quot; is used for what is called &amp;quot;bit-wise binary addition&amp;quot; which takes the sum of each individual digit and adds them according to these rules.  For example, consider the bit-wise binary addition of the two bit strings, 0110110 and 1101001.  The sum would be &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Further Reading==&lt;br /&gt;
&lt;br /&gt;
[[Bibliography#Wong|Thomas Wong's book [49]]] is an excellent introductory resource for both classical and quantum computing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Exercises==&lt;br /&gt;
&lt;br /&gt;
'''''(can we gamify this?? Ask the Arts team about non-traditional/creative assessments, and find real-world applications)'''''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:upper-roman&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Convert the following decimal numbers to binary:&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;108&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;3047&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Convert the following binary numbers to decimal &amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;1001_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;11011_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;1011001_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Add these binary numbers&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;1001_2+10110_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;110_2+101_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;&amp;lt;math&amp;gt;110011_2+1110_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Challenge Questions&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;ol style=&amp;quot;list-style-type:decimal&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Convert the following binary number into base 3: &amp;lt;math&amp;gt;11011_2&amp;lt;/math&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the first edition&amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;li&amp;gt;Foreword to the second edition&amp;lt;/li&amp;gt;&lt;br /&gt;
     &amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Copyright====&lt;br /&gt;
&lt;br /&gt;
&amp;amp;copy; Copyright 2022 '''QuSTEAM'''&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Creative_Commons_Licensing&amp;diff=3055</id>
		<title>Creative Commons Licensing</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Creative_Commons_Licensing&amp;diff=3055"/>
		<updated>2022-08-16T17:50:34Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Except where otherwise stated, Quantum Computation and Quantum Error Prevention by Mark S. Byrd, et al. is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License: http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_US&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:CreativeCommons.png]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Permissions&amp;diff=3054</id>
		<title>Permissions</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Permissions&amp;diff=3054"/>
		<updated>2022-08-16T17:50:12Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Except where otherwise stated, &lt;br /&gt;
Quantum Computation and Quantum Error Prevention by Mark S. Byrd, et al. is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License: http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_US&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:CreativeCommons.png]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Qunet:Copyrights&amp;diff=3053</id>
		<title>Qunet:Copyrights</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Qunet:Copyrights&amp;diff=3053"/>
		<updated>2022-08-16T17:49:58Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Except where otherwise stated, Quantum Computation and Quantum Error Prevention by Mark S. Byrd, et al. is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License: http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_US&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:CreativeCommons.png]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Creative_Commons_Licensing&amp;diff=3052</id>
		<title>Creative Commons Licensing</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Creative_Commons_Licensing&amp;diff=3052"/>
		<updated>2022-08-16T17:49:19Z</updated>

		<summary type="html">&lt;p&gt;Mbyrd: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Except where explicitly stated, Quantum Computation and Quantum Error Prevention by Mark S. Byrd, et al. is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License: http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_US&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:CreativeCommons.png]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mbyrd</name></author>
		
	</entry>
</feed>