<?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=Sblair42</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=Sblair42"/>
	<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php/Special:Contributions/Sblair42"/>
	<updated>2026-04-10T14:07:44Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.7</generator>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Talk:Chapter_5_-_Quantum_Information:_Basic_Principles_and_Simple_Examples&amp;diff=2465</id>
		<title>Talk:Chapter 5 - Quantum Information: Basic Principles and Simple Examples</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Talk:Chapter_5_-_Quantum_Information:_Basic_Principles_and_Simple_Examples&amp;diff=2465"/>
		<updated>2016-05-11T00:50:58Z</updated>

		<summary type="html">&lt;p&gt;Sblair42: Created page with 'Equation 5.15 is missing the state after the CNOT gate. Steven'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Equation 5.15 is missing the state after the CNOT gate. Steven&lt;/div&gt;</summary>
		<author><name>Sblair42</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Talk:Chapter_3_-_Physics_of_Quantum_Information&amp;diff=2464</id>
		<title>Talk:Chapter 3 - Physics of Quantum Information</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Talk:Chapter_3_-_Physics_of_Quantum_Information&amp;diff=2464"/>
		<updated>2016-05-10T23:18:21Z</updated>

		<summary type="html">&lt;p&gt;Sblair42: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In the Section &amp;quot;Density Matrix for a Mixed State: Two States&amp;quot;, there is an apparent inconsistency in the statement: &amp;quot;(Note, if \left\vert \psi\right\rangle_1=\left\vert \psi\right\rangle_2\,\!, or if one a_i\,\! or one \left\vert \psi\right\rangle_i\,\! is zero, then this reduces to a pure state.)&amp;quot; Should the subscripts be inside of the kets? Steven&lt;br /&gt;
&lt;br /&gt;
A factor of 1/2 is missing in Equation (3.43). Steven&lt;/div&gt;</summary>
		<author><name>Sblair42</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Talk:Chapter_3_-_Physics_of_Quantum_Information&amp;diff=2463</id>
		<title>Talk:Chapter 3 - Physics of Quantum Information</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Talk:Chapter_3_-_Physics_of_Quantum_Information&amp;diff=2463"/>
		<updated>2016-05-10T22:47:16Z</updated>

		<summary type="html">&lt;p&gt;Sblair42: Created page with 'In the Section &amp;quot;Density Matrix for a Mixed State: Two States&amp;quot;, there is an apparent inconsistency in the statement: &amp;quot;(Note, if \left\vert \psi\right\rangle_1=\left\vert \psi\righ…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In the Section &amp;quot;Density Matrix for a Mixed State: Two States&amp;quot;, there is an apparent inconsistency in the statement: &amp;quot;(Note, if \left\vert \psi\right\rangle_1=\left\vert \psi\right\rangle_2\,\!, or if one a_i\,\! or one \left\vert \psi\right\rangle_i\,\! is zero, then this reduces to a pure state.)&amp;quot; Should the subscripts be inside of the kets? Steven&lt;/div&gt;</summary>
		<author><name>Sblair42</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Chapter_2_-_Qubits_and_Collections_of_Qubits&amp;diff=2462</id>
		<title>Chapter 2 - Qubits and Collections of Qubits</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Chapter_2_-_Qubits_and_Collections_of_Qubits&amp;diff=2462"/>
		<updated>2016-05-10T22:32:22Z</updated>

		<summary type="html">&lt;p&gt;Sblair42: /* The Pauli Matrices */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Introduction===&lt;br /&gt;
&lt;br /&gt;
There are several parts to any quantum information processing task. Some of these were&lt;br /&gt;
written down and discussed by David DiVincenzo in the early days of quantum computing&lt;br /&gt;
research and are therefore called DiVincenzo’s requirements for quantum computing. These&lt;br /&gt;
include, but are not limited to, the following, which will be discussed in this chapter. Other&lt;br /&gt;
requirements will be discussed later.&lt;br /&gt;
&lt;br /&gt;
Five requirements [[Bibliography#qcrequirements|DiVincenzo:2000 [7]]]:&lt;br /&gt;
#Be a scalable physical system with well-defined qubits&lt;br /&gt;
#Be initializable to a simple fiducial state such as &amp;lt;math&amp;gt;\left\vert{000...}\right\rangle&amp;lt;/math&amp;gt;&lt;br /&gt;
#Have much longer decoherence times than gating times&lt;br /&gt;
#Have a universal set of quantum gates&lt;br /&gt;
#Permit qubit-specific measurements&lt;br /&gt;
&lt;br /&gt;
The first requirement is a set of two-state quantum systems which can serve as qubits. The&lt;br /&gt;
second is to be able to initialize the set of qubits to some reference state. In this chapter,&lt;br /&gt;
these will be taken for granted. The third concerns noise or as it has become known, &amp;quot;decoherence.&amp;quot;  The term decoherence has had a more precise definition in the past, &lt;br /&gt;
but here it will usually be synonymous with noise. Noise/decoherence will be discussed in [[Chapter 6 - Noise in Quantum Systems|Chapter 6]].  This chapter is primarily concerned with the fifth of these criteria.  This will enable us to discuss many interesting aspects of quantum information problems while postponing some other technical details regarding the other criteria.  In addition, we cannot ignore the fifth requirement since it also concerns universality which is the ability to perform an arbitrary computation.  &lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
In addition to these five requirements, there are two others that are of practical concern.  These have to do with the ability to transfer data within the computer in order to get distant qubits to interact.  &lt;br /&gt;
6. Interconvert stationary and flying qubits&lt;br /&gt;
7. Transmit flying qubits between distant locations&lt;br /&gt;
&lt;br /&gt;
So the first tells us that we will want to be able to convert qubits which are in one definite location to a type of state that can be moved around within the computing system.  The last tells us that we then need to be able to --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Qubit States===&lt;br /&gt;
&lt;br /&gt;
As mentioned in the introduction, a qubit, or quantum bit, is represented by a two-state&lt;br /&gt;
quantum system. It is referred to as a two-state quantum system, although there are many&lt;br /&gt;
physical examples of qubits which are represented by two different states of a quantum&lt;br /&gt;
system that has many available states. These two states are represented by the vectors &amp;lt;math&amp;gt;\left\vert{0}\right\rangle&amp;lt;/math&amp;gt;&lt;br /&gt;
and &amp;lt;math&amp;gt;\left\vert{1}\right\rangle&amp;lt;/math&amp;gt; and the qubit could be in the state &amp;lt;math&amp;gt;\left\vert{0}\right\rangle&amp;lt;/math&amp;gt;, the state &amp;lt;math&amp;gt;\left\vert{1}\right\rangle&amp;lt;/math&amp;gt;, or a complex superposition of&lt;br /&gt;
these two. A qubit state which is an arbitrary superposition is written as&lt;br /&gt;
&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; |2.1}}&lt;br /&gt;
&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. Our objective is to use these two states to store and&lt;br /&gt;
manipulate information. If the state of the system is confined to one state, the other state, or a&lt;br /&gt;
superposition of the two, then&lt;br /&gt;
&lt;br /&gt;
{{Equation | &amp;lt;math&amp;gt;|\alpha_0|^2 + |\alpha_1|^2 = 1.\,\!&amp;lt;/math&amp;gt; |2.2}}&lt;br /&gt;
&lt;br /&gt;
This means that this vector is normalized, i.e. its magnitude (or length) is one. The set of all such&lt;br /&gt;
vectors forms a two-dimensional complex (so four-dimensional real) vector space.&amp;lt;ref name=&amp;quot;test&amp;quot;&amp;gt;[[Appendix B - Complex Numbers|Appendix B]] contains a basic introduction to complex numbers.&amp;lt;/ref&amp;gt; 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;
 &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; |2.3}}&lt;br /&gt;
&lt;br /&gt;
Thus, the qubit state can be rewritten as&lt;br /&gt;
&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; |2.4}}&lt;br /&gt;
&lt;br /&gt;
===Qubit Gates===&lt;br /&gt;
&lt;br /&gt;
During a computation, one qubit state will need to be taken to a different one. In fact,&lt;br /&gt;
any valid state should be able to be operated upon to obtain any other state. Since this&lt;br /&gt;
is a complex vector with magnitude one, the matrix transformation required for closed system&lt;br /&gt;
evolution is unitary (see Appendix C.3.9, [[Appendix C - Vectors and Linear Algebra#Unitary Matrices|Unitary Matrices]]). These unitary matrices, or unitary&lt;br /&gt;
transformations, as well as their generalization to many qubits, transform one complex&lt;br /&gt;
vector into another and are also called ''quantum gates'', or gating operations. Mathematically,&lt;br /&gt;
we may think of them as rotations of the complex vector and in some cases (but not all)&lt;br /&gt;
correspond to actual rotations of the physical system.&lt;br /&gt;
&lt;br /&gt;
====Circuit Diagrams for Qubit Gates====&lt;br /&gt;
&lt;br /&gt;
Unitary transformations are represented in a circuit diagram with a box around the unitary&lt;br /&gt;
transformation. Consider a unitary transformation &amp;lt;math&amp;gt;V&amp;lt;/math&amp;gt; on a single qubit state &amp;lt;math&amp;gt;\left\vert{\psi}\right\rangle&amp;lt;/math&amp;gt;. If the&lt;br /&gt;
result of the transformation is &amp;lt;math&amp;gt;\left\vert{\psi^\prime}\right\rangle&amp;lt;/math&amp;gt;, we can then write&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\left\vert{\psi^\prime}\right\rangle = V\left\vert{\psi}\right\rangle.&amp;lt;/math&amp;gt;|2.5}}&lt;br /&gt;
&lt;br /&gt;
The corresponding circuit diagram is shown in Fig. 2.1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
|&amp;lt;math&amp;gt;\left\vert{\psi}\right\rangle&amp;lt;/math&amp;gt;&lt;br /&gt;
|[[File:Vbox1qu.jpg]]&lt;br /&gt;
|&amp;lt;math&amp;gt;\left\vert{\psi^\prime}\right\rangle&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Figure 2.1: Circuit diagram for a one-qubit gate that implements the unitary transformation &amp;lt;math&amp;gt;V\,\!&amp;lt;/math&amp;gt;. The input state &amp;lt;math&amp;gt;\left\vert{\psi}\right\rangle&amp;lt;/math&amp;gt; is on the left and the output, &amp;lt;math&amp;gt;\left\vert{\psi^\prime}\right\rangle&amp;lt;/math&amp;gt;, is on the right.&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that the diagram is read from left to right. This means that if two consecutive&lt;br /&gt;
gates are implemented, say &amp;lt;math&amp;gt;V&amp;lt;/math&amp;gt; first and then &amp;lt;math&amp;gt;U&amp;lt;/math&amp;gt;, the equation reads:&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\left\vert{\psi^{\prime\prime}}\right\rangle = UV\left\vert{\psi}\right\rangle.&amp;lt;/math&amp;gt;|2.6}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The circuit diagram will have the boxes in the reverse order from the equation, i.e.&lt;br /&gt;
&amp;lt;math&amp;gt;V&amp;lt;/math&amp;gt; on the left and &amp;lt;math&amp;gt;U&amp;lt;/math&amp;gt; on the right (refer to Fig. 2.2 below). While this is somewhat confusing, it is important to remember convention; circuit diagrams will become increasingly important as the number of operations grows larger.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
|&amp;lt;math&amp;gt;\left\vert{\psi}\right\rangle&amp;lt;/math&amp;gt;&lt;br /&gt;
|[[File:UVbox1qu.jpg]]&lt;br /&gt;
|&amp;lt;math&amp;gt;\left\vert{\psi^{\prime\prime}}\right\rangle&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Figure 2.2: Circuit diagram for two one-qubit gates that implements the unitary transformation &amp;lt;math&amp;gt;V\,\!&amp;lt;/math&amp;gt; followed by another unitary transformation &amp;lt;math&amp;gt;U\,\!&amp;lt;/math&amp;gt;. Like the single gate, the input state &amp;lt;math&amp;gt;\left\vert{\psi}\right\rangle&amp;lt;/math&amp;gt; is on the left and the new output, &amp;lt;math&amp;gt;\left\vert{\psi^{\prime\prime}}\right\rangle&amp;lt;/math&amp;gt;, is on the right.&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Examples of Important Qubit Gates====&lt;br /&gt;
&lt;br /&gt;
There are, of course, an infinite number of possible unitary transformations that we could&lt;br /&gt;
implement on a single qubit since the set of unitary transformations can be parameterized by&lt;br /&gt;
three parameters. However, a single gate will contain a single unitary transformation, which&lt;br /&gt;
means that all three parameters are fixed. There are several such transformations that are&lt;br /&gt;
used repeatedly. For this reason, they are listed here along with their actions on a generic&lt;br /&gt;
state &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;. Note that one could also completely define the transformation by&lt;br /&gt;
its action on a complete set of basis states.&lt;br /&gt;
&lt;br /&gt;
The following is called an &amp;lt;nowiki&amp;gt;“x”&amp;lt;/nowiki&amp;gt; gate, or a bit-flip, &lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;X = \left(\begin{array}{cc} 0 &amp;amp; 1 \\ &lt;br /&gt;
                      1 &amp;amp; 0 \end{array}\right).&amp;lt;/math&amp;gt;|2.7}}&lt;br /&gt;
&lt;br /&gt;
Its action on a state &amp;lt;math&amp;gt;\left\vert{\psi}\right\rangle&amp;lt;/math&amp;gt; is to exchange the basis states,&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;X\left\vert{\psi}\right\rangle = \alpha_0\left\vert{1}\right\rangle + \alpha_1\left\vert{0}\right\rangle,&amp;lt;/math&amp;gt;|2.8}}&lt;br /&gt;
&lt;br /&gt;
for this reason it is also sometimes called a NOT gate. However, this term will be avoided&lt;br /&gt;
because a general NOT gate does not exist for all quantum states. (It does work for all qubit&lt;br /&gt;
states, but this is a special case.)&lt;br /&gt;
&lt;br /&gt;
The next gate is called a ''phase gate'' or a “z” gate. It is also sometimes called a ''phase-flip'',&lt;br /&gt;
and is given by&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;Z = \left(\begin{array}{cc} 1 &amp;amp; 0 \\ 0 &amp;amp; -1 \end{array}\right).&amp;lt;/math&amp;gt;|2.9}}&lt;br /&gt;
&lt;br /&gt;
The action of this gate is to introduce a sign change on the state &amp;lt;math&amp;gt;\left\vert{1}\right\rangle&amp;lt;/math&amp;gt; which can be seen&lt;br /&gt;
through&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;Z\left\vert{\psi}\right\rangle = \alpha_0\left\vert{0}\right\rangle - \alpha_1\left\vert{1}\right\rangle,&amp;lt;/math&amp;gt;|2.10}}&lt;br /&gt;
&lt;br /&gt;
The term phase gate is also used for the more general transformation&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;P = \left(\begin{array}{cc} e^{i\theta} &amp;amp; 0 \\ &lt;br /&gt;
                                0       &amp;amp; e^{-i\theta} \end{array}\right).&amp;lt;/math&amp;gt;|2.11}}&lt;br /&gt;
&lt;br /&gt;
For this reason, the z-gate will either be called a “z-gate” or a phase-flip gate.&lt;br /&gt;
&lt;br /&gt;
Another gate closely related to these, is the “y” gate. This gate is&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;Y =  \left(\begin{array}{cc} 0 &amp;amp; -i \\ &lt;br /&gt;
                      i &amp;amp; 0 \end{array}\right).&amp;lt;/math&amp;gt;|2.12}}&lt;br /&gt;
&lt;br /&gt;
The action of this gate on a state is&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;Y\left\vert{\psi}\right\rangle = -i\alpha_1\left\vert{0}\right\rangle +i \alpha_0\left\vert{1}\right\rangle &lt;br /&gt;
            = -i(\alpha_1\left\vert{0}\right\rangle - \alpha_0\left\vert{1}\right\rangle)&amp;lt;/math&amp;gt;|2.13}}&lt;br /&gt;
&lt;br /&gt;
From this last expression, it is clear that, up to an overall factor of &amp;lt;math&amp;gt;−i\,\!&amp;lt;/math&amp;gt;, this gate is the same&lt;br /&gt;
as acting on a state with both &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Z&amp;lt;/math&amp;gt; gates. However, the order matters, and it&lt;br /&gt;
should be noted that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;XZ = -i Y,\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
whereas&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;ZX = i Y.\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The fact that the order matters should not be a surprise to anyone since matrices in general&lt;br /&gt;
do not commute. However, such a condition arises so often in quantum mechanics that the&lt;br /&gt;
difference between these two is given an expression and a name. The difference between the two is called the ''commutator'' and is denoted with a &amp;lt;math&amp;gt;[\cdot,\cdot]&amp;lt;/math&amp;gt;. That is, for any 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;, the commutator is defined to be&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;[A,B] = AB -BA.\,\!&amp;lt;/math&amp;gt;|2.14}}&lt;br /&gt;
For the two gates &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Z&amp;lt;/math&amp;gt;,&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;[X,Z] = -2iY.\,\!&amp;lt;/math&amp;gt;|2.15}}&lt;br /&gt;
A very important gate which is used in many quantum information processing protocols,&lt;br /&gt;
including quantum algorithms, is called the Hadamard gate,&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;H = \frac{1}{\sqrt{2}}\left(\begin{array}{cc} 1 &amp;amp; 1 \\ &lt;br /&gt;
                      1 &amp;amp; -1 \end{array}\right).&amp;lt;/math&amp;gt;|2.16}}&lt;br /&gt;
In this case, its helpful to look at what this gate does to the two basis states:&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;H \left\vert{0}\right\rangle = \frac{1}{\sqrt{2}}(\left\vert{0}\right\rangle + \left\vert{1}\right\rangle), &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;math&amp;gt;H \left\vert{1}\right\rangle = \frac{1}{\sqrt{2}}(\left\vert{0}\right\rangle - \left\vert{1}\right\rangle).&amp;lt;/math&amp;gt;|2.17}}&lt;br /&gt;
&lt;br /&gt;
So the Hadamard gate will take either one of the basis states and produce an equal superposition&lt;br /&gt;
of the two basis states; this is the reason it is so-often used in quantum information&lt;br /&gt;
processing tasks. On a generic state,&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;H\left\vert{\psi}\right\rangle = [(\alpha_0+\alpha_1)\left\vert{0}\right\rangle + (\alpha_0-\alpha_1)\left\vert{1}\right\rangle].&amp;lt;/math&amp;gt;|2.18}}&lt;br /&gt;
&lt;br /&gt;
===The Pauli Matrices===&lt;br /&gt;
The three matrices &amp;lt;math&amp;gt;X\,\!&amp;lt;/math&amp;gt; [[#eq2.7|Eq.(2.7)]], &amp;lt;math&amp;gt;Y\,\!&amp;lt;/math&amp;gt; [[#eq2.12|Eq.(2.12)]], and &amp;lt;math&amp;gt; Z \,\!&amp;lt;/math&amp;gt; [[#eq2.9|Eq.(2.9)]] are called the Pauli matrices. They are also sometimes denoted &amp;lt;math&amp;gt;\sigma_x\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\sigma_y\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma_z\,\!&amp;lt;/math&amp;gt;, or &amp;lt;math&amp;gt;\sigma_1\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\sigma_2\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\sigma_3\,\!&amp;lt;/math&amp;gt; respectively. They are ubiquitous in quantum computing and quantum information processing. This is because they, along with the &amp;lt;math&amp;gt;2 \times 2\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
identity matrix, form a basis for the set of &amp;lt;math&amp;gt;2 \times 2\,\!&amp;lt;/math&amp;gt; Hermitian matrices and can be used to&lt;br /&gt;
describe all &amp;lt;math&amp;gt;2 \times 2&amp;lt;/math&amp;gt; unitary transformations as well. We will return to the latter point in the next chapter.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;div id=&amp;quot;Table2.1&amp;quot;&amp;gt;&amp;lt;big&amp;gt;'''TABLE 2.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;10&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;bottom&amp;quot; |Table 2.1: ''The Pauli Matrices.  The table shows the Pauli matrices, three different, but common notations, and the action on a state.  The &amp;lt;math&amp;gt;x\,\!&amp;lt;/math&amp;gt; is a binary digit, 0 or 1.''&lt;br /&gt;
|-&lt;br /&gt;
|Pauli Matrix&lt;br /&gt;
|Notation 1&lt;br /&gt;
|Notation 2&lt;br /&gt;
|Notation 3&lt;br /&gt;
|Action&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;\left(\begin{array}{cc} 0 &amp;amp; 1 \\ 1 &amp;amp; 0 \end{array}\right)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;X\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;\sigma_x\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;\sigma_1\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;X|x\rangle = |x\oplus 1\rangle\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;\left(\begin{array}{cc} 0 &amp;amp; -i \\ i &amp;amp; 0 \end{array}\right)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;Y =iXZ\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;\sigma_y\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;\sigma_2\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;Y|x\rangle = i(-1)^x|x\oplus 1\rangle\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;\left(\begin{array}{cc} 1 &amp;amp; 0 \\ 0 &amp;amp; -1 \end{array}\right)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;Z\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;\sigma_z\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;\sigma_3\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;Z|x\rangle = (-1)^x|x\rangle\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To show that they form a basis for &amp;lt;math&amp;gt;2 \times 2&amp;lt;/math&amp;gt; Hermitian matrices, note that any such matrix can be written in the form&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;A = \left(\begin{array}{cc} &lt;br /&gt;
                a_0+a_3  &amp;amp; a_1+ia_2 \\ &lt;br /&gt;
                a_1-ia_2 &amp;amp; a_0-a_3 \end{array}\right).&amp;lt;/math&amp;gt;|2.19}}&lt;br /&gt;
&lt;br /&gt;
Since &amp;lt;math&amp;gt;a_0\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a_3\,\!&amp;lt;/math&amp;gt; are arbitrary, &amp;lt;math&amp;gt;a_0 + a_3\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a_0 - a_3\,\!&amp;lt;/math&amp;gt; are arbitrary too. This matrix can be written as&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}A &amp;amp;= a_0 \mathbb{I} + a_1X + a_2Y + a_3 Z \\&lt;br /&gt;
  &amp;amp;=  a_0 \mathbb{I} + a_1\sigma_1 + a_2\sigma_2 + a_3 \sigma_3 \\&lt;br /&gt;
  &amp;amp;=  a_0 \mathbb{I} + \vec{a}\cdot\vec{\sigma}, \\&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;|2.20}}&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\vec{a}\cdot\vec{\sigma} = \sum_{i=1}^3a_i\sigma_i\,\!&amp;lt;/math&amp;gt; is the &amp;quot;dot&lt;br /&gt;
product&amp;quot; between &amp;lt;math&amp;gt;\vec{a}\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\vec{\sigma} = (\sigma_1,\sigma_2,\sigma_3)\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
An important and useful relationship between these is the following (which shows why&lt;br /&gt;
the latter notation above is so useful)&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\sigma_i\sigma_j = \mathbb{I}\delta_{ij} +i \epsilon_{ijk}\sigma_k,&amp;lt;/math&amp;gt;|2.21}}&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;i, j, k\,\!&amp;lt;/math&amp;gt; are numbers from the set &amp;lt;math&amp;gt;\{1, 2, 3\}\,\!&amp;lt;/math&amp;gt; and the definitions for &amp;lt;math&amp;gt;\delta_{ij}\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\epsilon_{ijk}\,\!&amp;lt;/math&amp;gt; are given&lt;br /&gt;
in Eqs. [[Appendix C - Vectors and Linear Algebra#eqC.17|(C.17)]] and [[Appendix C - Vectors and Linear Algebra#eqC.8|(C.8)]] respectively. The three matrices &amp;lt;math&amp;gt;\sigma_1, \sigma_2, \sigma_3\,\!&amp;lt;/math&amp;gt; are traceless Hermitian&lt;br /&gt;
matrices and they can be seen to be orthogonal using the so-called ''Hilbert-Schmidt inner product'', which is defined, for matrices &amp;lt;math&amp;gt; A\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt;, as&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;(A,B) = \mbox{Tr}(A^\dagger B).&amp;lt;/math&amp;gt;|2.22}}&lt;br /&gt;
&lt;br /&gt;
The orthogonality for the set is then summarized as&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;(\sigma_i,\sigma_j) = \mbox{Tr}(\sigma_i\sigma_j) = 2\delta_{ij}.\,\!&amp;lt;/math&amp;gt;|2.23}}&lt;br /&gt;
&lt;br /&gt;
This property is contained in Eq. [[#eq2.21|(2.21)]]. This one equation also contains all of the commutators.&lt;br /&gt;
Subtracting the equation with the product reversed,&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;[\sigma_i,\sigma_j] = (\mathbb{I}\delta_{ij} +i \epsilon_{ijk}\sigma_k) &lt;br /&gt;
                      -(\mathbb{I}\delta_{ji} +i \epsilon_{jik}\sigma_k),&amp;lt;/math&amp;gt;|2.24}}&lt;br /&gt;
&lt;br /&gt;
but &amp;lt;math&amp;gt;\delta_{ij}=\delta_{ji}\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\epsilon_{ijk} = -\epsilon_{jik}\,\!&amp;lt;/math&amp;gt;.  This can now be simplified,&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;[\sigma_i,\sigma_j] = 2i \epsilon_{ijk}\sigma_k.\,\!&amp;lt;/math&amp;gt;|2.25}}&lt;br /&gt;
&lt;br /&gt;
===States of Many Qubits===&lt;br /&gt;
Let us now consider the states of several (or many) qubits. For one qubit, there are two&lt;br /&gt;
possible basis states, say &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;. If there are two qubits, each with these basis states,&lt;br /&gt;
basis states for the two together are found by using the tensor product (see Appendix C.7, [[Appendix C - Vectors and Linear Algebra#Tensor Products|Tensor Products]]).&lt;br /&gt;
The set of basis states obtained in this way is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\left\{\left\vert{0}\right\rangle\otimes\left\vert{0}\right\rangle, \; \left\vert{0}\right\rangle\otimes\left\vert{1}\right\rangle, \;&lt;br /&gt;
  \left\vert{1}\right\rangle\otimes\left\vert{0}\right\rangle, \; \left\vert{1}\right\rangle\otimes\left\vert{1}\right\rangle \right\}.\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This set is more often written in short-hand notation as (again see Appendix C.7, [[Appendix C - Vectors and Linear Algebra#Tensor Products|Tensor Products]] for details and examples)&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\left\{\left\vert{00}\right\rangle, \; \left\vert{01}\right\rangle, \;&lt;br /&gt;
  \left\vert{10}\right\rangle, \; \left\vert{11}\right\rangle \right\},\,\!&amp;lt;/math&amp;gt;|2.26}}&lt;br /&gt;
&lt;br /&gt;
which can also be expressed as&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\left\{\left(\begin{array}{c} 1 \\ 0 \\ 0 \\ 0 \end{array}\right), \; &lt;br /&gt;
       \left(\begin{array}{c} 0 \\ 1 \\ 0 \\ 0 \end{array}\right), \; &lt;br /&gt;
       \left(\begin{array}{c} 0 \\ 0 \\ 1 \\ 0 \end{array}\right), \; &lt;br /&gt;
       \left(\begin{array}{c} 0 \\ 0 \\ 0 \\ 1 \end{array}\right)&lt;br /&gt;
\right\}.\,\!&amp;lt;/math&amp;gt;|2.27}}&lt;br /&gt;
&lt;br /&gt;
The extension to three qubits is straight-forward,&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\left\{\left\vert{000}\right\rangle, \; \left\vert{001}\right\rangle, \;&lt;br /&gt;
  \left\vert{010}\right\rangle, \; \left\vert{011}\right\rangle, \; \left\vert{100}\right\rangle, \; \left\vert{101}\right\rangle, \;&lt;br /&gt;
  \left\vert{110}\right\rangle, \; \left\vert{111}\right\rangle \right\}.\,\!&amp;lt;/math&amp;gt;|2.28}}&lt;br /&gt;
&lt;br /&gt;
Those familiar with binary will recognize these as the numbers zero through seven. Thus we&lt;br /&gt;
consider this an ''ordered basis''.  Thus, they can also be acceptably presented as&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\left\{\left\vert{0}\right\rangle, \; \left\vert{1}\right\rangle, \;&lt;br /&gt;
  \left\vert{2}\right\rangle, \; \left\vert{3}\right\rangle, \; \left\vert{4}\right\rangle, \; \left\vert{5}\right\rangle, \;&lt;br /&gt;
  \left\vert{6}\right\rangle, \; \left\vert{7}\right\rangle \right\}.\,\!&amp;lt;/math&amp;gt;|2.29}}&lt;br /&gt;
&lt;br /&gt;
The ordering of the products is important because each spot&lt;br /&gt;
corresponds to a physical particle or physical system.  When some&lt;br /&gt;
confusion may arise, we may also label the ket with a subscript to&lt;br /&gt;
denote the particle or position.  For example, two different people,&lt;br /&gt;
Alice and Bob, can be used to represent distant parties that may&lt;br /&gt;
share some information or wish to communicate.  In this case, the&lt;br /&gt;
state belonging to Alice can be denoted &amp;lt;math&amp;gt;\left\vert{\psi}\right\rangle_A\,\!&amp;lt;/math&amp;gt;.  Or if she is&lt;br /&gt;
referred to as party 1 or particle 1, &amp;lt;math&amp;gt;\left\vert{\psi}\right\rangle_1\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The most general 2-qubit state is written as&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\left\vert{\psi}\right\rangle = \alpha_{00}\left\vert{00}\right\rangle + \alpha_{01}\left\vert{01}\right\rangle &lt;br /&gt;
             + \alpha_{10}\left\vert{10}\right\rangle + \alpha_{11}\left\vert{11}\right\rangle &lt;br /&gt;
           =\left(\begin{array}{c} \alpha_{00} \\ \alpha_{01} \\ &lt;br /&gt;
                                   \alpha_{10} \\ \alpha_{11} \end{array}\right).&amp;lt;/math&amp;gt;|2.30}}&lt;br /&gt;
&lt;br /&gt;
The normalization condition is &lt;br /&gt;
&amp;lt;math&amp;gt;|\alpha_{00}|^2  + |\alpha_{01}|^2&lt;br /&gt;
             + |\alpha_{10}|^2 + |\alpha_{11}|^2=1.\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
The generalization to an arbitrary number of qubits, say &amp;lt;math&amp;gt;n\,\!&amp;lt;/math&amp;gt;, is also&lt;br /&gt;
rather straight-forward and can be written as &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\left\vert{\psi}\right\rangle = \sum_{i=0}^{2^n-1} \alpha_i\left\vert{i}\right\rangle.\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Quantum Gates for Many Qubits===&lt;br /&gt;
&lt;br /&gt;
Just as the case for one single qubit, the most general closed-system transformation of a&lt;br /&gt;
state of many qubits is a unitary transformation. Being able to make an arbitrary unitary&lt;br /&gt;
transformation on many qubits is an important task. If an arbitrary unitary transformation&lt;br /&gt;
on a set of qubits can be made, then any quantum gate can be implemented. If this ability to&lt;br /&gt;
implement any arbitrary quantum gate can be accomplished using a particular set of quantum&lt;br /&gt;
gates, that set is said to be a ''universal set of gates'' or that the condition of ''universality'' has&lt;br /&gt;
been met by this set. It turns out that there is a theorem which provides one way for&lt;br /&gt;
identifying a universal set of gates.&lt;br /&gt;
&lt;br /&gt;
'''Theorem:'''&lt;br /&gt;
&lt;br /&gt;
''The ability to implement a special class of two-qubit gates, called entangling gates&amp;lt;ref&amp;gt; An entangling gate is one that has the ability to entangle two qubits.  At this point, we have not defined entanglement.  This will be done in [[Chapter 4 - Entanglement|Chapter 4]].  For now, we can just take this to mean a non-trivial two-qubit interaction, or special class of non-trivial two-quit gates, and defer the slightly more technical discussion of what this means until later.&amp;lt;/ref&amp;gt;, between any two qubits, plus the ability to implement all single-qubit unitary transformations, will enable universal quantum computing.''&lt;br /&gt;
&lt;br /&gt;
It turns out that one doesn’t need to be able to perform an entangling gate between&lt;br /&gt;
distant qubits; nearest-neighbor interactions are sufficient. We can transfer the state of a&lt;br /&gt;
qubit to a qubit that is next to the one we would like it to interact with, then perform&lt;br /&gt;
the entangling gate between the two and then transfer back.&lt;br /&gt;
&lt;br /&gt;
This is an important and often used theorem which will be the main focus of the next&lt;br /&gt;
few sections. A particular class of two-qubit gates which can be used to entangle qubits will&lt;br /&gt;
be discussed along with circuit diagrams for many qubits.&lt;br /&gt;
&lt;br /&gt;
====Controlled Operations====&lt;br /&gt;
&lt;br /&gt;
One of the special types of two-qubit gates that may be called &amp;quot;entangling&amp;quot; is the following &amp;quot;controlled operation.&amp;quot;  &lt;br /&gt;
A controlled operation is one that is conditioned on the state of another part of the system, usually a qubit. The most cited example is the CNOT (controlled NOT) gate, which flips one (target) bit if another qubit (called the &amp;quot;control&amp;quot;) is in the state &lt;br /&gt;
&amp;lt;math&amp;gt;\left\vert{1}\right\rangle\,\!&amp;lt;/math&amp;gt;; thus it is controlled NOT operation for qubits. This gate is used often enough to warrant detailed discussion here.  &lt;br /&gt;
&lt;br /&gt;
Consider the following matrix operation on two qubits:&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;C_{12} = \left(\begin{array}{cccc}&lt;br /&gt;
                 1 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0 \\&lt;br /&gt;
                 0 &amp;amp; 1 &amp;amp; 0 &amp;amp; 0 \\&lt;br /&gt;
                 0 &amp;amp; 0 &amp;amp; 0 &amp;amp; 1 \\&lt;br /&gt;
                 0 &amp;amp; 0 &amp;amp; 1 &amp;amp; 0 \end{array}\right).&amp;lt;/math&amp;gt;|2.31}}&lt;br /&gt;
&lt;br /&gt;
Under this transformation, the following changes occur:&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{array}{c|c}&lt;br /&gt;
         \; \left\vert{\psi}\right\rangle\; &amp;amp; C_{12}\left\vert{\psi}\right\rangle \\ \hline&lt;br /&gt;
                \left\vert{00}\right\rangle &amp;amp; \left\vert{00}\right\rangle \\&lt;br /&gt;
                \left\vert{01}\right\rangle &amp;amp; \left\vert{01}\right\rangle \\&lt;br /&gt;
                \left\vert{10}\right\rangle &amp;amp; \left\vert{11}\right\rangle \\&lt;br /&gt;
                \left\vert{11}\right\rangle &amp;amp; \left\vert{10}\right\rangle &lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;|2.32}}&lt;br /&gt;
&lt;br /&gt;
This transformation is called the CNOT, or controlled NOT, since the second bit is flipped &lt;br /&gt;
if the first is in the state &amp;lt;math&amp;gt;\left\vert{1}\right\rangle\,\!&amp;lt;/math&amp;gt; and otherwise left alone.  &lt;br /&gt;
The subscripts on the CNOT gates are necessary since the qubit which is to serve as the control and which is to serve as the target.  This is the purpose.  The circuit diagram for this transformation corresponds to the following representation of the gate. Let &amp;lt;math&amp;gt;x\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;y\,\!&amp;lt;/math&amp;gt; be zero or one.&lt;br /&gt;
The CNOT is then given by&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\left\vert{x}\right\rangle_{i}\left\vert{y}\right\rangle_{j} \overset{CNOT_{ij}}{\rightarrow} \left\vert{x}\right\rangle_{i}\left\vert{x\oplus y}\right\rangle_{j}.&amp;lt;/math&amp;gt;|2.33}}&lt;br /&gt;
&lt;br /&gt;
In binary, of course &amp;lt;math&amp;gt;0\oplus 0 =0&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;0\oplus 1 = 1 = 1\oplus 0&amp;lt;/math&amp;gt;, and&lt;br /&gt;
&amp;lt;math&amp;gt;1\oplus 1 =0&amp;lt;/math&amp;gt;.  The circuit diagram is given in Fig. 2.3 below. &lt;br /&gt;
The first qubit at the top of the diagam, &amp;lt;math&amp;gt;\left\vert{x}\right\rangle&amp;lt;/math&amp;gt;, is called the&lt;br /&gt;
''control bit'' while the one below, &amp;lt;math&amp;gt;\left\vert{y}\right\rangle&amp;lt;/math&amp;gt;, is called the ''target bit''.&lt;br /&gt;
&lt;br /&gt;
[[File:CNOT.jpg|center|400px]]&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
Figure 2.3: Circuit diagram for a CNOT gate.&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
One can immediately generalize the operation of the CNOT to a controlled-U gate. This&lt;br /&gt;
is a gate, shown in Fig. 2.4, which implements a unitary transformation &amp;lt;math&amp;gt;U\,\!&amp;lt;/math&amp;gt; on the second&lt;br /&gt;
qubit, if the state of the first is &amp;lt;math&amp;gt;\left\vert{1}\right\rangle\,\!&amp;lt;/math&amp;gt;. The matrix transformation is given by&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;CU_{12} = \left(\begin{array}{cccc}&lt;br /&gt;
                 1 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0 \\&lt;br /&gt;
                 0 &amp;amp; 1 &amp;amp; 0 &amp;amp; 0 \\&lt;br /&gt;
                 0 &amp;amp; 0 &amp;amp; u_{11} &amp;amp; u_{12} \\&lt;br /&gt;
                 0 &amp;amp; 0 &amp;amp; u_{21} &amp;amp; u_{22} \end{array}\right),&amp;lt;/math&amp;gt;|2.34}}&lt;br /&gt;
&lt;br /&gt;
where the matrix&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;U = \left(\begin{array}{cc}&lt;br /&gt;
          u_{11} &amp;amp; u_{12} \\&lt;br /&gt;
          u_{21} &amp;amp; u_{22} \end{array}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example the controlled-phase gate is given in [[#Figure 2.5|Fig. 2.5]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:CU.jpg]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Figure 2.4: Circuit diagram for a CU gate.&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Many-qubit Circuits====&lt;br /&gt;
&lt;br /&gt;
Many qubit circuits are a straight-forward generalization of the single quibit circuit diagrams.&lt;br /&gt;
For example, Fig. 2.6 shows the implementation of CNOT&amp;lt;math&amp;gt;_{14}&amp;lt;/math&amp;gt; and CNOT&amp;lt;math&amp;gt;_{23}&amp;lt;/math&amp;gt; in the&lt;br /&gt;
same diagram. The crossing of lines is not confusing since there is a target and control&lt;br /&gt;
which are clearly distinguished in each case.&lt;br /&gt;
&lt;br /&gt;
It is quite interesting however, that as the diagrams become more complicated, the possibility&lt;br /&gt;
arises that one may change between equivalent forms of a circuit that, in the end,&lt;br /&gt;
&amp;lt;div id =&amp;quot;Figure 2.5&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:CP.jpg]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Figure 2.5: Circuit diagram for a Controlled-phase &amp;lt;math&amp;gt;C_{PHASE}\!&amp;lt;/math&amp;gt; gate.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Multiqcs.jpg]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Figure 2.6: Multiple CNOT gates on a set of qubits.&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
implements the same multiple-qubit unitary. For example, noting that &amp;lt;math&amp;gt;H(C_{PHASE})H = C_{NOT}\,\!&amp;lt;/math&amp;gt;, the two&lt;br /&gt;
circuits in Fig. 2.7 implement the same two-qubit unitary transformation. This enables the&lt;br /&gt;
simplication of some quite complicated circuits.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:Hzhequiv.jpg‎]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Figure 2.7: Two circuits which are equivalent since they implement the same two-qubit&lt;br /&gt;
unitary transformation.&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Measurement===&lt;br /&gt;
&lt;br /&gt;
Measurement in quantum mechanics is quite different from that of&lt;br /&gt;
classical mechanics.  In classical mechanics (and classical computing), &lt;br /&gt;
one assumes that a measurement&lt;br /&gt;
can be made at will without disturbing or changing the state of the &lt;br /&gt;
physical system.  In quantum mechanics, this assumption cannot be &lt;br /&gt;
made.  This is important for a variety of reasons that will hopefully &lt;br /&gt;
become clear later.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Standard Prescription====&lt;br /&gt;
&lt;br /&gt;
The standard prescription, or rule, for quantum measurement is sometimes called the Born rule.  This is very well described in [[Bibliography#Mermin:qcbook|Mermin's book [1]]].  Here, we provide some examples and a brief description of the rule and how to use it.  It should be stated, however, that the rule does not actually describe at all what physically takes place during a measurement.  Everything is quantum mechanical and thus a measurement should properly be described by an interaction between two quantum mechanical objects.  The Born rule is a good approximation to this for a variety of physical systems.  It is also much simpler than a fully quantum mechanical treatment.  Thus we use this throughout our discussions.  &lt;br /&gt;
&lt;br /&gt;
As an example, consider the quantum state in a superposition of &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; of the form&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\left\vert\psi\right\rangle = \alpha_0\left\vert 0\right\rangle +&lt;br /&gt;
    \alpha_1\left\vert 1\right\rangle,&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|2.35}}&lt;br /&gt;
with &amp;lt;math&amp;gt;|\alpha_0|^2 + |\alpha_1|^2 = 1\,\!&amp;lt;/math&amp;gt;.  If the state is measured in&lt;br /&gt;
the computational basis (the &amp;lt;math&amp;gt;\left| 0 \right\rangle, \left| 1 \right \rangle \!&amp;lt;/math&amp;gt; basis), the result will be &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt; with probability &lt;br /&gt;
&amp;lt;math&amp;gt;|\alpha_0|^2\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\left\vert 1\right\rangle\,\!&amp;lt;/math&amp;gt; with probability &amp;lt;math&amp;gt;|\alpha_1|^2\,\!&amp;lt;/math&amp;gt;.  As always, it is important to note that this state is not one of the computational basis states, but is a superposition of the two.  Immediately after the measurement, the system, or particle, will be in the state that was measured.  For example, if the state &amp;lt;math&amp;gt;\left| 0 \right\rangle \!&amp;lt;/math&amp;gt; was obtained, which it will be with probability &amp;lt;math&amp;gt;|\alpha_0|^2\,\!&amp;lt;/math&amp;gt;, then the state immediately after the measurement will be &amp;lt;math&amp;gt;\left| 0 \right\rangle \!&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
Note that one cannot say that the system was in the state &amp;lt;math&amp;gt;\left| 0 \right\rangle \!&amp;lt;/math&amp;gt; with some probability.  The system was in the state &amp;lt;math&amp;gt;\left\vert \psi\right\rangle\,\!&amp;lt;/math&amp;gt;.  When it is measured, we obtain the result &amp;lt;math&amp;gt;\left| 0 \right\rangle \!&amp;lt;/math&amp;gt; with some probability.  &lt;br /&gt;
&lt;br /&gt;
This can be easily shown by acting on the state &amp;lt;math&amp;gt;\left\vert \psi^\prime\right\rangle  = (1/\sqrt{2})(\left| 0 \right\rangle +\left| 1 \right\rangle)\,\!&amp;lt;/math&amp;gt; with a Hadamard transformation,&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;H\left\vert \psi^\prime\right\rangle = \left\vert 0\right\rangle.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|2.36}}&lt;br /&gt;
This state, produced from a unitary transformation of &amp;lt;math&amp;gt;\left\vert\psi^\prime\right\rangle\,\!&amp;lt;/math&amp;gt;, has probability &amp;lt;math&amp;gt;0\,\!&amp;lt;/math&amp;gt; of being in the state &amp;lt;math&amp;gt;\left\vert 1\right\rangle\,\!&amp;lt;/math&amp;gt; and probability &amp;lt;math&amp;gt;1\,\!&amp;lt;/math&amp;gt; of being in the state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt;.  If it were in one or the other, then acting on the state with a Hadamard transformation would give some probability of it being in &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt; and some probability of being in &amp;lt;math&amp;gt;\left\vert 1\right\rangle\,\!&amp;lt;/math&amp;gt;. (This argument is so simple and pointed that it was taken almost word-for-word from  [[Bibliography#Mermin:qcbook|Mermin's book [1]]], page 27.)  &lt;br /&gt;
&lt;br /&gt;
A measurement in the computational basis is said to project this state into either the state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt; or the state &amp;lt;math&amp;gt;\left\vert 1\right\rangle\,\!&amp;lt;/math&amp;gt; with probabilities &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; respectively.  To understand this as a projection, consider the following way in which the &amp;lt;math&amp;gt;0\,\!&amp;lt;/math&amp;gt; -component of the state &amp;lt;math&amp;gt;\left\vert \psi\right\rangle\,\!&amp;lt;/math&amp;gt; is found.  The state &amp;lt;math&amp;gt;\left\vert \psi\right\rangle\,\!&amp;lt;/math&amp;gt; is projected onto the the state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt; mathematically by taking the [[Index#I|inner product]] (see Section C.4, [[Appendix C - Vectors and Linear Algebra#More Dirac Notation|More Dirac Notation]]) of &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\left\vert \psi\right\rangle\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\left\langle 0\mid  \psi\right\rangle = \alpha_0.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|2.37}}&lt;br /&gt;
&lt;br /&gt;
Notice that this is a complex number and that its complex conjugate&lt;br /&gt;
can be expressed as &lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\left\langle\psi \mid 0\right\rangle = \alpha_0^*.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|2.38}}&lt;br /&gt;
&lt;br /&gt;
Therefore the probability can be expressed as &lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\left\langle\psi\mid 0 \right\rangle \left\langle 0\mid\psi\right\rangle = \left\vert\left\langle &lt;br /&gt;
  0\mid \psi\right\rangle \right\vert^2.\,\!&amp;lt;/math&amp;gt;|2.39}}&lt;br /&gt;
&lt;br /&gt;
Now consider a multiple-qubit system with state &lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\left\vert \Psi\right\rangle = \sum_i \alpha_i\left\vert i\right\rangle.\,\!&amp;lt;/math&amp;gt;|2.40}}&lt;br /&gt;
&lt;br /&gt;
The result of a measurement is a projection and the&lt;br /&gt;
state is projected onto the basis state &amp;lt;math&amp;gt;\left\vert i\right\rangle\,\!&amp;lt;/math&amp;gt; with probability&lt;br /&gt;
&amp;lt;math&amp;gt;|\alpha_i|^2\,\!&amp;lt;/math&amp;gt; ---the same properties are true of this more general&lt;br /&gt;
system.  &lt;br /&gt;
&lt;br /&gt;
To summarize, if a measurement is made on the system &amp;lt;math&amp;gt;\left\vert\Psi\right\rangle\,\!&amp;lt;/math&amp;gt;, the&lt;br /&gt;
result &amp;lt;math&amp;gt;\left\vert i\right\rangle\,\!&amp;lt;/math&amp;gt; is obtained with probability &amp;lt;math&amp;gt;|\alpha_i|^2\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
Assuming that &amp;lt;math&amp;gt;\left\vert i\right\rangle \,\!&amp;lt;/math&amp;gt; results from the measurement, the state of the&lt;br /&gt;
system has been projected into the state &amp;lt;math&amp;gt;\left\vert i\right\rangle\,\!&amp;lt;/math&amp;gt;.  Therefore, the&lt;br /&gt;
state of the system immediately after the measurement is &amp;lt;math&amp;gt;\left\vert i\right\rangle\,\!&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
A circuit diagram with a measurement represented by a box with an&lt;br /&gt;
arrow is given in Figure 2.8.&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:measurementcd.jpg‎]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Figure 2.8: The circuit diagram for a measurement.  &lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
An alternative is to put an &amp;lt;nowiki&amp;gt;&amp;quot;M&amp;quot;&amp;lt;/nowiki&amp;gt; inside the box.  This is shown in Fig. 2.9.  &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:measurementM.jpg‎]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Figure 2.9: An alternative circuit diagram for a measurement.  &lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As an example, the measurement result can be used for input for another state.  The unitary transform&lt;br /&gt;
in Figure 2.10 is one that depends upon the outcome of the&lt;br /&gt;
measurement.  Notice that the information input, since it is&lt;br /&gt;
classical, is represented by a double line.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:measurement.jpg‎]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Figure 2.10: A circuit which includes a measurement.  &lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Projection Operators====&lt;br /&gt;
&lt;br /&gt;
Projection operators are used quite often and the description of&lt;br /&gt;
measurement in the previous section is a good example of how they are&lt;br /&gt;
used.  One may ask, what is a projector?  In ordinary&lt;br /&gt;
three-dimensional space, a vector is written as &lt;br /&gt;
&amp;lt;math&amp;gt;\vec v=v_x\hat{x}+v_y\hat{y}+v_z\hat{z}\,\!&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;x\,\!&amp;lt;/math&amp;gt; part of the&lt;br /&gt;
vector can be obtained by &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\hat{x}(\hat{x}\cdot\vec v) = v_x\hat{x}.\,\!&amp;lt;/math&amp;gt;|2.40}}&lt;br /&gt;
&lt;br /&gt;
This is the part of the vector lying along the x axis.  Notice that if&lt;br /&gt;
the projection is performed again, the same result is obtained&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\hat{x}(\hat{x} \cdot v_x\hat{x}) = v_x\hat{x}.\,\!&amp;lt;/math&amp;gt;|2.41}}&lt;br /&gt;
&lt;br /&gt;
This is (the) characteristic of projection operations.  When one is&lt;br /&gt;
performed twice, the second result is the same as the first.  &lt;br /&gt;
&lt;br /&gt;
This can be extended to the complex vectors in quantum mechanics.  The outer product (see Appendix C.2.4,&lt;br /&gt;
[[Appendix C - Vectors and Linear Algebra#Outer Product|Outer Product]]) &amp;lt;math&amp;gt;\left\vert{x}\right\rangle\!\!\left\langle{x}\right\vert\,\!&amp;lt;/math&amp;gt; is a projector.  For example,&lt;br /&gt;
&amp;lt;math&amp;gt;\left\vert{0}\right\rangle\!\!\left\langle{0}\right\vert\,\!&amp;lt;/math&amp;gt; is a projector and can be written in matrix form as &lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\left\vert{0}\right\rangle\!\!\left\langle{0}\right\vert = \left(\begin{array}{cc}&lt;br /&gt;
           1  &amp;amp;  0 \\&lt;br /&gt;
           0  &amp;amp;  0  \end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|2.42}}&lt;br /&gt;
&lt;br /&gt;
Acting with this on &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;&lt;br /&gt;
gives&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\left(\begin{array}{cc}&lt;br /&gt;
           1  &amp;amp;  0 \\&lt;br /&gt;
           0  &amp;amp;  0  \end{array}\right) &lt;br /&gt;
    \left(\begin{array}{c}&lt;br /&gt;
           \alpha_0 \\&lt;br /&gt;
           \alpha_1 &lt;br /&gt;
         \end{array}\right) &lt;br /&gt;
=     \left(\begin{array}{c}&lt;br /&gt;
           \alpha_0 \\&lt;br /&gt;
             0 &lt;br /&gt;
         \end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|2.43}}&lt;br /&gt;
&lt;br /&gt;
Acting again produces&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\left(\begin{array}{cc}&lt;br /&gt;
           1  &amp;amp;  0 \\&lt;br /&gt;
           0  &amp;amp;  0  \end{array}\right) &lt;br /&gt;
    \left(\begin{array}{c}&lt;br /&gt;
           \alpha_0 \\&lt;br /&gt;
              0 &lt;br /&gt;
         \end{array}\right) &lt;br /&gt;
=     \left(\begin{array}{c}&lt;br /&gt;
           \alpha_0 \\&lt;br /&gt;
             0 &lt;br /&gt;
         \end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|2.44}}&lt;br /&gt;
&lt;br /&gt;
This is due to the fact that&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;(\left\vert{0}\right\rangle\!\!\left\langle{0}\right\vert)^2 = \left\vert{0}\right\rangle\!\!\left\langle{0}\right\vert.  &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|2.45}}&lt;br /&gt;
&lt;br /&gt;
In fact, this property essentially defines a projection.  A projection is&lt;br /&gt;
a linear transformation &amp;lt;math&amp;gt;P\,\!&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;P^2 = P\,\!&amp;lt;/math&amp;gt;. Much of our intuition about geometric projections in&lt;br /&gt;
three-dimensions carries to the more abstract cases.  One important&lt;br /&gt;
example is that the sum over a complete set of orthonormal projections is the identity. The&lt;br /&gt;
generalization to arbitrary dimensions, where &amp;lt;math&amp;gt;\left\vert{i}\right\rangle\,\!&amp;lt;/math&amp;gt; is any basis&lt;br /&gt;
vector in that space, is immediate.  In this case the identity,&lt;br /&gt;
expressed as a sum over a complete set of orthonormal projectors, is &lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\sum_{i} \left\vert{i}\right\rangle\!\!\left\langle{i}\right\vert = 1.  &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|2.46}}&lt;br /&gt;
&lt;br /&gt;
====Phase in/Phase out====&lt;br /&gt;
&lt;br /&gt;
The probability of finding the system in the state &amp;lt;math&amp;gt;\left\vert{x}\right\rangle\,\!&amp;lt;/math&amp;gt;,&lt;br /&gt;
where &amp;lt;math&amp;gt;x=0\,\!&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;1\,\!&amp;lt;/math&amp;gt;, is&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\mbox{Prob}_{\left\vert{\psi}\right\rangle}(\left\vert{x}\right\rangle) &amp;amp;= \left\langle{\psi}\mid{x}\right\rangle\left\langle{x}\mid{\psi}\right\rangle \\&lt;br /&gt;
                     &amp;amp;= |\left\langle{\psi}\mid{x}\right\rangle|^2.&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;|2.47}}&lt;br /&gt;
Note that &amp;lt;math&amp;gt;\left\vert{\psi}\right\rangle\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\left\langle{\psi}\right\vert\,\!&amp;lt;/math&amp;gt; both appear in this&lt;br /&gt;
expression. So if &amp;lt;math&amp;gt;\left\vert{\psi^\prime}\right\rangle = e^{-i\theta}\left\vert{\psi}\right\rangle\,\!&amp;lt;/math&amp;gt; were &lt;br /&gt;
substituted into the expression for &amp;lt;math&amp;gt;\mbox{Prob}(\left\vert{x}\right\rangle)\,\!&amp;lt;/math&amp;gt;, then the&lt;br /&gt;
expression is unchanged, &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\mbox{Prob}_{\left\vert{\psi^\prime}\right\rangle}(\left\vert{x}\right\rangle) &lt;br /&gt;
                     &amp;amp;= \left\langle{\psi^\prime}\mid{x}\right\rangle\left\langle{x}\mid{\psi^\prime}\right\rangle \\&lt;br /&gt;
                     &amp;amp;= e^{-i\theta}\left\langle{\psi}\mid{x}\right\rangle\left\langle{x}\mid{\psi}\right\rangle e^{i\theta} \\&lt;br /&gt;
                     &amp;amp;= |\left\langle{\psi}\mid{x}\right\rangle|^2.&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;|2.48}}&lt;br /&gt;
Therefore when &amp;lt;math&amp;gt;\left\vert{\psi}\right\rangle\,\!&amp;lt;/math&amp;gt; changes by a phase, there is no effect on&lt;br /&gt;
this probability.  This is why it is often said that &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\left(\begin{array}{cc}&lt;br /&gt;
         e^{i\theta} &amp;amp; 0 \\&lt;br /&gt;
               0  &amp;amp; e^{-i\theta}  \end{array}\right) &lt;br /&gt;
= e^{i\theta}\left(\begin{array}{cc}&lt;br /&gt;
           1  &amp;amp;  0 \\&lt;br /&gt;
           0  &amp;amp;  e^{-i2\theta}  \end{array}\right) &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|2.49}}&lt;br /&gt;
is equivalent to &lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;&lt;br /&gt;
\left(\begin{array}{cc}&lt;br /&gt;
           1  &amp;amp;  0 \\&lt;br /&gt;
           0  &amp;amp;  e^{-2i\theta}  \end{array}\right). &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|2.50}}&lt;br /&gt;
&lt;br /&gt;
However, there are times when a phase can make a difference. In&lt;br /&gt;
those cases it is really a ''relative'' phase between two states that makes the difference. Examples of this will be seen in later sections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Chapter 3 - Physics of Quantum Information#Introduction|Continue to '''Chapter 3 - Physics of Quantum Information''']]&lt;br /&gt;
&lt;br /&gt;
==Footnotes==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sblair42</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Talk:Appendix_C_-_Vectors_and_Linear_Algebra&amp;diff=2461</id>
		<title>Talk:Appendix C - Vectors and Linear Algebra</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Talk:Appendix_C_-_Vectors_and_Linear_Algebra&amp;diff=2461"/>
		<updated>2016-05-10T22:21:53Z</updated>

		<summary type="html">&lt;p&gt;Sblair42: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I think that perhaps one more example of tensor multiplication with 3X3 matrices would be illuminating and helpful.  I just wanted to make that suggestion, Russ.&lt;br /&gt;
&lt;br /&gt;
In Section 4, More Dirac Notation, there is an error in the statement: &amp;quot;The inner product &amp;lt;math&amp;gt;\left\vert e_k \right\rangle \left\langle j \right\vert\,\!&amp;lt;/math&amp;gt; can be interpreted as the projection of one vector onto another.&amp;quot; This is not an inner product but rather an outer product. Steven&lt;/div&gt;</summary>
		<author><name>Sblair42</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Talk:Appendix_C_-_Vectors_and_Linear_Algebra&amp;diff=2460</id>
		<title>Talk:Appendix C - Vectors and Linear Algebra</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Talk:Appendix_C_-_Vectors_and_Linear_Algebra&amp;diff=2460"/>
		<updated>2016-05-10T22:21:31Z</updated>

		<summary type="html">&lt;p&gt;Sblair42: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
I think that perhaps one more example of tensor multiplication with 3X3 matrices would be illuminating and helpful.  I just wanted to make that suggestion, Russ.&lt;br /&gt;
&lt;br /&gt;
In Section 4, More Dirac Notation, there is an error in the statement:&lt;br /&gt;
The inner product &amp;lt;math&amp;gt;\left\vert e_k \right\rangle \left\langle j \right\vert\,\!&amp;lt;/math&amp;gt; can be interpreted as the projection of one vector onto another.&lt;br /&gt;
This is not an inner product but rather an outer product. Steven&lt;/div&gt;</summary>
		<author><name>Sblair42</name></author>
		
	</entry>
</feed>