<?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=Kreuter</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=Kreuter"/>
	<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php/Special:Contributions/Kreuter"/>
	<updated>2026-04-29T19:07:46Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.7</generator>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Quantum_Computation_and_Quantum_Error_Prevention&amp;diff=904</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=904"/>
		<updated>2010-06-29T17:16:33Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: /* Table of Contents */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NOTICE -- THIS WEB SITE IS UNDER CONSTRUCTION!  Many small mistakes and typos are expected to be present.  However, this is a living document.  A final form may never exist.  &lt;br /&gt;
&lt;br /&gt;
If you would like to contribute to the qunet wiki book, click [https://qunet.physics.siu.edu/submit/requestform.html here] to request an account. ACCESS IS RESTRICTED. This is not wikipedia where anyone can edit pages. However, registering is easy and many people will be eligible.&lt;br /&gt;
&lt;br /&gt;
Right now, there are only a few very active users.  Mark Byrd, Russell Ceballos, and Kevin Reuter are working diligently to get qunet's basic functions up and running properly as well as uploading notes. The notes here, which comprise the book, are based on a class taught by Mark Byrd in the Spring of 2009.&lt;br /&gt;
&lt;br /&gt;
===Table of Contents===&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: Basic Principles and Simple Examples]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Introduction|Introduction]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#No Cloning!|No Cloning!]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Uncertainty Principle|Uncertainty Principle]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Quantum Dense Coding|Quantum Dense Coding]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Teleporting a Quantum State|Teleporting a Quantum State]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#QKD: BB84|QKD: BB84]]&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 6 - Quantum Computation&amp;lt;/big&amp;gt;&lt;br /&gt;
##Quantum Computation Basics&lt;br /&gt;
##Deutsch-Josza Algorithm&lt;br /&gt;
##Simon’s Algorithm&lt;br /&gt;
##Shor’s Algorithm&lt;br /&gt;
##Grover’s Algorithm&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 7 - Experiments&amp;lt;/big&amp;gt;&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Chapter 8 - Noise in Quantum Systems]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Introduction|Introduction]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#SMR Representation or Operator-Sum Representation|SMR Representation or Operator-Sum Representation]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Modelling Open System Evolution|Modelling Open System Evolution]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Unitary Degree of Freedom in the OSR|Unitary Degree of Freedom in the OSR]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Examples|Examples]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Notes|Notes]]&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Chapter 9 - Quantum Error Correcting Codes]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 9 - Quantum Error Correcting Codes#Introduction|Introduction]]&lt;br /&gt;
##[[Chapter 9 - Quantum Error Correcting Codes#Bit-flip Errors: A Classical Code|Bit-flip Errors: Classical Code]]&lt;br /&gt;
##[[Chapter 9 - Quantum Error Correcting Codes#Bit-flip Errors: A Quantum Code|Bit-flip Errors: A Quantum Code]]&lt;br /&gt;
##[[Chapter 9 - Quantum Error Correcting Codes#Phase-flip Errors|Phase-flip Errors]]&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 10 - Decoherence-Free/Noiseless Subsystems&amp;lt;/big&amp;gt;&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 11 - Dynamical Decoupling Controls&amp;lt;/big&amp;gt;&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 12 - Hybrid Methods of Quantum Error Prevention&amp;lt;/big&amp;gt;&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 13 - Conclusions&amp;lt;/big&amp;gt;&lt;br /&gt;
##What have we learned?&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 Isomophisms|Comparing Groups: Homomorphisms and Isomorphisms]]&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 - NOTES and CREDITS]]&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;
----&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>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Chapter_1_-_Introduction&amp;diff=902</id>
		<title>Chapter 1 - Introduction</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Chapter_1_-_Introduction&amp;diff=902"/>
		<updated>2010-06-29T17:15:22Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: moved Chapter 1 to Chapter 1 - Introduction:&amp;amp;#32;consistency&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Introduction===&lt;br /&gt;
&lt;br /&gt;
''In science one tries to tell people, in such a way as to be understood by everyone, something that no one ever knew before. But in poetry, it's the exact opposite.''&lt;br /&gt;
&lt;br /&gt;
-Paul Dirac&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===An Introduction to Quantum Computation===&lt;br /&gt;
&lt;br /&gt;
This introductory chapter is a survey of, and introduction to, topics in quantum information&lt;br /&gt;
processing. All of these topics (and more) will be revisited in later sections. Therefore,&lt;br /&gt;
it is not necessary, nor expected, that the reader will feel the subjects have been completely explained in this&lt;br /&gt;
introductory material.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Quantum Mechanics====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So what is quantum mechanics? We should think of it as a set of rules, in some ways&lt;br /&gt;
similar to Newton’s laws, which describe the way the world works. These are the rules&lt;br /&gt;
to which we must carefully attend in order to build what we will describe as a quantum&lt;br /&gt;
computing device. We will return to this topic briefly again later. However, as is done in&lt;br /&gt;
many places, this question is never quite answered directly. Most often we simply learn the&lt;br /&gt;
rules and how use them. The question itself is perhaps a little vague because there are many&lt;br /&gt;
physical systems that don’t quite fit into an either/or categorization of quantum vs. classical (since, as stated already, classical mechanics is an approximation to quantum mechanics).&lt;br /&gt;
Also, it should noted that throughout these notes the terms will be somewhat misused in&lt;br /&gt;
the sense that certain systems will be called quantum mechanical or classical, and from now&lt;br /&gt;
on, with few exceptions, no care will be taken to discuss subtleties.  &lt;br /&gt;
&lt;br /&gt;
====Quantum Computing and Quantum Information Processing====&lt;br /&gt;
&lt;br /&gt;
A quantum computer would be a computer that would take advantage of quantum mechanical &lt;br /&gt;
evolutions according to which physical systems behave. We often think of quantum mechanics&lt;br /&gt;
as being the set of mechanical laws or principles that only very small particles obey. While this&lt;br /&gt;
is not really true, it is a somewhat reasonable way of explaining things to the layman since the world of the &amp;quot;small&amp;quot; is the world where these laws are most often used and were discovered. For our&lt;br /&gt;
purposes, we should note that everything obeys the laws of quantum mechanics and that&lt;br /&gt;
Newtonian mechanics are rules that we use to approximate quantum mechanics. However,&lt;br /&gt;
quantum mechanical control and natural quantum mechanical evolution, which cannot be approximated by Newton's laws, &lt;br /&gt;
are what we are talking about when we talk about quantum systems. We must have very particular quantum mechanical&lt;br /&gt;
evolution, which cannot be reasonably approximated with classical mechanics, and use it in a&lt;br /&gt;
particular way to really perform a quantum computation or to really do quantum information&lt;br /&gt;
processing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We have not yet built a quantum computing device. However, there are many reasons&lt;br /&gt;
to study quantum information processing other than building a fully functional quantum&lt;br /&gt;
computer. One main reason we haven’t built one is that we have to figure out how. The&lt;br /&gt;
experiments to perform quantum computation in physical devices take an enormous amount&lt;br /&gt;
of effort due to noises which corrupt the information. We are going to need to fix the&lt;br /&gt;
corrupted information, avoid the noises, or do away with them by some other means. A &lt;br /&gt;
reason to study quantum computing, and quantum information processing more&lt;br /&gt;
generally, is that there are really many quantum information processing tasks, or tasks&lt;br /&gt;
which can be thought of in this way, which concern quantum control. Precise control of&lt;br /&gt;
a quantum system is important for a variety of reasons, not the least of which is that our&lt;br /&gt;
world is quantum mechanical! When we get right down to the very basic elements of the&lt;br /&gt;
universe, they behave quantum mechanically. If there is one thing that the study of quantum&lt;br /&gt;
information processing has already taught us, its that we need to pay attention to quantum&lt;br /&gt;
mechanics because it can be very useful to be able to manipulate quantum systems and take&lt;br /&gt;
advantage of uniquely quantum properties. Quantum technologies are going to be extremely&lt;br /&gt;
important in the future, even if we never built a quantum computer. (Oh, but we will!) As&lt;br /&gt;
Feynman said, “There is plenty of room at the bottom.” We have a lot to discover about&lt;br /&gt;
the world of the small.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Since noise has been, and is still, such a problem for quantum information, we need to deal with it. People quickly recognized this problem, and Peter Shor, and others, really made remarkable statements with their work on quantum error correcting codes. Their work showed that errors could, in principle, be corrected, leading the way for future research since it was then plausible that a quantum computer could be built – there are no fundamental obstacles. However, quantum error correcting codes are, in some sense, a software solution to a hardware problem. More physical treatments include codes which avoid errors, and control methods which are designed to average noises away. However, an all-out attack will include several different methods of error prevention used together. Error prevention methods are the subject of the last part of this course/book.&lt;br /&gt;
&lt;br /&gt;
====Motivation====&lt;br /&gt;
Why do we want to build a quantum computing device?&lt;br /&gt;
&lt;br /&gt;
#To make computers faster and more compact, we have been making them smaller (This has obeyed Moore’s law, see, [[Bibliography#Moore'sLaw:article|Moore's Law article]]).  However, there is a limit to how much smaller we can make them, and still have them function as they do now. This is due to quantum mechanics. In other words, the limit to small scale computational technology is governed by quantum mechanics, since at a certain scale, the current computational systems will not be able to be approximated by Newtonian mechanics. So, to make things smaller, we need to use quantum mechanics! More than this though, the fact that Moore’s law cannot continue indefinitely means that we will need to look elsewhere for advances in computing power. One way to increase computing power is to use parallel computations. However, there are processes which cannot be parallel. So where do we turn? A quantum computer would help with this.&lt;br /&gt;
#We now know of several different quantum algorithms which are faster than any known classical algorithm for performing the same task. Some are actually provably faster. These are listed and discussed further in the next section.&lt;br /&gt;
#Quantum information can be used in a variety of ways beyond computing. Such as quantum cryptography, quantum games, and quantum communication of all sorts. &lt;br /&gt;
&lt;br /&gt;
An important point to take away from this section is that information is stored and&lt;br /&gt;
manipulated by physical devices. The way in which they behave is important for the tasks&lt;br /&gt;
that are to be performed.&lt;br /&gt;
&lt;br /&gt;
====Specific Uses====&lt;br /&gt;
There are at least three advantages of quantum computing devices which are often quoted.&lt;br /&gt;
&lt;br /&gt;
#Factor large integers more efficiently than a classical machine (known as Shor’s algorithm).&lt;br /&gt;
#Find an object in an unsorted database more efficiently than a classical machine (known as Govers algorithm).&lt;br /&gt;
#Simulate quantum mechanical systems more efficiently than any classical system (due to Feynman and others).&lt;br /&gt;
&lt;br /&gt;
====COMMENTS====&lt;br /&gt;
Shor’s algorithm would render RSA encryption useless. It is more efficient than any&lt;br /&gt;
known classical algorithm. (There is a quantum answer to this problem however-quantum&lt;br /&gt;
cryptography through QKD.)&lt;br /&gt;
&lt;br /&gt;
Gover’s algorithm is better than any classical algorithm – phone book example: classical&lt;br /&gt;
algorithm grows as &amp;lt;math&amp;gt;N/2\,\!&amp;lt;/math&amp;gt; and Grover’s grows as &amp;lt;math&amp;gt;\sqrt{N}\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Simulating quantum mechanical systems is quite difficult classically. For physical scientists&lt;br /&gt;
this could be the most important application of quantum computers. This could enable&lt;br /&gt;
the simulation of nuclear systems, solid-state devices, biological molecules and molecular&lt;br /&gt;
interactions, etc. much more efficiently than classical simulation.  This would enable calculations which are practically impossible now.&lt;br /&gt;
&lt;br /&gt;
====How do quantum computers provide an advantage?====&lt;br /&gt;
Now, the claim is that quantum computers could solve some problems more efficiently than&lt;br /&gt;
classical ones. So viewing our information systems as quantum systems, we may note that&lt;br /&gt;
quantum mechanics is more than a description of the physical world (which is how physicists&lt;br /&gt;
treated it for years) but a set of rules governing the behaviour of information when stored&lt;br /&gt;
and manipulated quantum mechanically.&lt;br /&gt;
&lt;br /&gt;
So the natural question is, “How does it do this?” We may also ask, “Where is the&lt;br /&gt;
advantage?” In other words, “What exactly about quantum mechanics enables us to achieve&lt;br /&gt;
speed-ups and other information processing tasks more efficiently than classical systems?”&lt;br /&gt;
Many people, as of the time of this writing, would likely say they don’t know. For example,&lt;br /&gt;
it is not known if there is a classical algorithm which could factor efficiently. Or perhaps they would say &amp;lt;nowiki&amp;gt;&amp;quot;entanglement&amp;quot;&amp;lt;/nowiki&amp;gt;.  But this is a subject yet to be discussed.  (By efficiently&lt;br /&gt;
here, let us just say that we mean “as well as a quantum one,” and be more specific later.)  &lt;br /&gt;
One can present intuitive plausibility arguments for why we believe a quantum computer can accomplish&lt;br /&gt;
things a classical one cannot. However, there is no claim of a proof of anything at this point.  &lt;br /&gt;
&lt;br /&gt;
The first argument concerns the fact that when a given machine has a different set of rules for operating, we expect&lt;br /&gt;
it to do different things. The rules by which classical computing machines function are, in&lt;br /&gt;
some sense, different from the ones governing the behaviour of quantum machines. This is&lt;br /&gt;
quite vague, especially given the earlier comments about how everything really is quantum&lt;br /&gt;
mechanical. The way I think about it (you’re welcome to argue) is that a “classical object”&lt;br /&gt;
transforms according to a “classical equation of motion” and the result is determined by&lt;br /&gt;
its initial state, which is “classical.” A quantum mechanical state transforms according to a&lt;br /&gt;
“quantum equation of motion” and the result of the evolution is determined by some initial&lt;br /&gt;
conditions, which describe a “quantum system.” Perhaps this sounds like a circular argument,&lt;br /&gt;
primarily involving semantics.  However, my motivation for this is a definition I was given in a vector and tensor analysis class: an object is a tensor if it transforms like a tensor. So I say, an object is classical if it obeys classical equations.  In practice, this is often the way things are done.  If the physical system can be approximated using classical mechanics, it is classical.  &lt;br /&gt;
&lt;br /&gt;
The next argument is that there are states which are uniquely quantum mechanical.&lt;br /&gt;
These are states which would have been mysterious to Newton, and indeed they were mysterious&lt;br /&gt;
to Einstein, and furthermore they are still mysterious today! The important point is&lt;br /&gt;
that they are not states of classical systems, i.e. they are not states which behave classically.&lt;br /&gt;
They are unique to quantum mechanics and are called entangled states. Let us first discuss&lt;br /&gt;
bits and qubits. We will then discuss quantum states of many particles which correspond&lt;br /&gt;
to entangled states. Finally, we will revisit this notion of intuition behind the quantum&lt;br /&gt;
mechanical speed-ups.&lt;br /&gt;
&lt;br /&gt;
===Bits and qubits: An Introduction===&lt;br /&gt;
A ''classical bit'' is represented by two different states of a classical system. In classical computers&lt;br /&gt;
it is represented by two different values of an electrical potential difference. The two&lt;br /&gt;
different states of the system are represented by 0 and 1.&lt;br /&gt;
&lt;br /&gt;
A ''quantum bit'' or ''qubit'' (better, but less used is Qbit, see [[Bibliography#Mermin:qcbook|N. David Mermin's book]]) is represented by two&lt;br /&gt;
states of a quantum mechanical system. The two different states are represented by &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;. This notation is common and is explained in some detail in [[Appendix C - Vectors and Linear Algebra|Appendix C]].&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:Doublewell.jpeg]]&lt;br /&gt;
&lt;br /&gt;
Figure 1.1: This is a double well with a ball in one of the two wells.&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Let us discuss a way in which to think about the differences between classical and quantum&lt;br /&gt;
systems. We will consider two wells, or valleys, with a hill in between as in Fig. 1.1.&lt;br /&gt;
First we will consider a classical system and we will suppose there are no frictional forces.&lt;br /&gt;
If we start the ball rolling where it is in the figure, then it will roll back and forth in Well&lt;br /&gt;
0. (Well 0, or “Well zero” is our name for the well on the left-hand side.) It will never leave&lt;br /&gt;
Well 0 if we leave it alone. If we wanted it to go into Well 1 (the well on the right-hand side)&lt;br /&gt;
we would need to nudge it or push it a little to get it over the hill. Or we could just pick it&lt;br /&gt;
up and move it from one well to the other.&lt;br /&gt;
&lt;br /&gt;
Now suppose the system is quantum mechanical.&amp;lt;ref&amp;gt;For those with a little background in physics, these are potential wells. An example is a ball in between two hills for the classical case. For the quantum case, we can think of a quantum particle in a potential well&lt;br /&gt;
with this shape and solve Schr¨odinger’s equation.&amp;lt;/ref&amp;gt; In this case, if we set up the system&lt;br /&gt;
so that the particle initially has some kinetic energy (imagine a moving “quantum ball”),&lt;br /&gt;
and let it go, there is some probability, after some amount of time, that the particle will be&lt;br /&gt;
found in Well 1. This is true when the energy of the ball was not great enough to travel over&lt;br /&gt;
the hill in the classical analogy. The probability if it being found in the other well depends&lt;br /&gt;
on several things; the initial energy of the particle, the width of the hill, and the height of&lt;br /&gt;
the hill (equivalently the depth(s) of the wells, which could be different). However, it won’t&lt;br /&gt;
happen with a classical bit! So this is a difference between the classical and quantum mechanics.&amp;lt;ref&amp;gt; Now, if it is admitted that every particle is described by quantum mechanics, the the classically forbidden zone is forbidden because the probability of finding the ball there is extremely small (essentially zero).&amp;lt;/ref&amp;gt; In&lt;br /&gt;
quantum mechanics, the particle is in some sense in both wells at the same time. This has&lt;br /&gt;
to do with the “wave” nature of quantum mechanics. We then say that the particle is in a&lt;br /&gt;
superposition of Well 0 and Well 1 and the same time. Mathematically, we describe these&lt;br /&gt;
different physical “states” or conditions of the system in the following way.&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}\mbox{Particle is in Well } 0&amp;amp;=\left\vert{0}\right\rangle, \\  \mbox{Particle is in Well } 1&amp;amp;=\left\vert{1}\right\rangle\end{align}&amp;lt;/math&amp;gt;|1.1}}&lt;br /&gt;
In other words, the state of the system is “the particle is in Well 0” is written mathematically as &amp;lt;math&amp;gt;\left\vert{0}\right\rangle&amp;lt;/math&amp;gt;, and simiarly for &amp;lt;math&amp;gt;\left\vert{1}\right\rangle\,\!&amp;lt;/math&amp;gt;. If the particle is in a superposition of the two, which will mean some probability for finding in each well, we would write this as&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\left\vert{\psi}\right\rangle=\alpha\left\vert{0}\right\rangle+\beta\left\vert{1}\right\rangle\,\!&amp;lt;/math&amp;gt;|1.2}}&lt;br /&gt;
where &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers (see [[Appendix B]]) and the probability of the particle&lt;br /&gt;
being found in Well 0 is &amp;lt;math&amp;gt;|\alpha|^2\,\!&amp;lt;/math&amp;gt; and the probability of it being found in Well 1 is &amp;lt;math&amp;gt;|\beta|^2\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now, some (physicists no less) have asked how to make a deterministic transformation&lt;br /&gt;
in a quantum system. After all, this seems to be probabilistic. The way to do that is the&lt;br /&gt;
following. We make the hill very wide and tall and we put the particle right down in the&lt;br /&gt;
bottom of one well and give it as little initial energy as possible. Then if we want it moved&lt;br /&gt;
to the other well, we pick it up and move it&amp;lt;ref&amp;gt;Again a note for physicists. If we cool it to its ground state and make sure we don’t have stray kicks that will knock it out, we achieve this. Then we put the right amount of energy to get it to transition to the first excited state.&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If we measure the system, i.e. look to see if it is Well 0 or Well 1, we will “project it into&lt;br /&gt;
one state or the other.” In other words, suppose the system is in the state &amp;lt;math&amp;gt;\left|\psi\right\rangle\,\!&amp;lt;/math&amp;gt; above. If we&lt;br /&gt;
look to see where the particle is and find it in Well 1, then the probability is clearly zero &lt;br /&gt;
that it is in the other one. This is called the projection postulate in quantum mechanics and&lt;br /&gt;
we will see how to represent this mathematically later.  &lt;br /&gt;
&lt;br /&gt;
Throughout the notes, when trying to think about a physical qubit, this simple picture&lt;br /&gt;
is often helpful. Therefore, we will refer back to it from time to time.&lt;br /&gt;
&lt;br /&gt;
===Obstacles to Building a Reliable Quantum Computer===&lt;br /&gt;
&lt;br /&gt;
Noise is the greatest obstacle to building a quantum computer. This was also the case with&lt;br /&gt;
early electronic classical computing devices. In this case there is an intuitive explanation.  In a quantum computation, a quantum system becomes entangled.  Without going into detail, let us just say highly correlated is synonymous with entangled.  (Entangled states are discussed in [[Chapter 4 - Entanglement|Chapter 4]].)  Affecting one part of the system can affect another since two parts are highly correlated.  Entanglement is believed to be responsible for the power of quantum information systems and there is evidence for this.  However, the fact that these entangled systems are being used during the computation means that if a noise affects one part of the system, then other parts of the system are also affected.  In this sense, quantum systems are very delicate and must be handled with care.  &lt;br /&gt;
&lt;br /&gt;
For our purposes, we will need to discuss ''open-system evolution'' and ''closed-system evolution''. A closed system is one which does not have any interaction with external objects. We may also refer to such a system as isolated. For example, one knows that if a jar has a very good lid on it, no liquid can leak out, or into, the jar. So if we put a certain amount of liquid in it now, we can expect it will all be there later. This is a closed system and the liquid is isolated from masses external to the jar. In other words, no other mass can get in or out.&lt;br /&gt;
&lt;br /&gt;
A better example is what we call thermally isolated, meaning no heat energy is exchanged &lt;br /&gt;
with any other system, so this is a thermally closed system. An open system is one which &lt;br /&gt;
can interact with its environment in some way. In these examples, a lid that is not sealed &lt;br /&gt;
can allow liquid vapor to escape and one that is not thermally isolated, or thermally closed &lt;br /&gt;
can heat up or cool down.&lt;br /&gt;
&lt;br /&gt;
For the quantum information processing tasks we have in mind, we will consider quantum information which is isolated form its environment and what we usually mean is that the quantum system is isolated and cannot be affected by an outside source.  It is important to note that isolated, or closed systems, are ideal. They may often be good approximations to a system, but are basically never really completely isolated or closed.  One may consider larger and larger systems to try to obtain a closed system, but this is most often impractical, although it can be useful for modeling.  The fact that systems are never completely closed means that errors ''will'' creep into our quantum information processing, and we must find a way in which to deal with these errors in order to build reliable quantum information processing devices.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Chapter 2 - Qubits and Collections of Qubits#Introduction|Continue to '''Chapter 2 - Qubits and Collections of Qubits''']]&lt;br /&gt;
&lt;br /&gt;
==Footnotes==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Chapter_2_-_Qubits_and_Collections_of_Qubits&amp;diff=901</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=901"/>
		<updated>2010-06-25T17:59:00Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: /* Circuit Diagrams for Qubit Gates */&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]]:&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 and noise has become known by&lt;br /&gt;
the term decoherence. 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 and decoherence will be the topics of&lt;br /&gt;
later sections. The fourth and fifth will be discussed in this chapter.&lt;br /&gt;
&lt;br /&gt;
Backwards is it? Not from a computer science perspective or from a motivational perspective.&lt;br /&gt;
Besides, to a large extent, the first two rely very heavily on experimental physics&lt;br /&gt;
and engineering. These topics are primarily beyond the scope of this introductory material,&lt;br /&gt;
but will be treated superficially in Chapter 6.&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 which 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 qubit could be in 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;, 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, 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;
Thus this vector is normalized, i.e. it has magnitude, or length 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;
Therefore,&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 - Vectors and Linear Algebra#Unitary Matrices|Appendix C, Sec. C.3.8]].) These unitary matrices, or unitary&lt;br /&gt;
transformations, as well as their generalization to many qubits, transform a 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 untary&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; then we 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;
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;
&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 which implements the unitary transformation&lt;br /&gt;
&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;
However, 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.&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 a fixed. There are several such transformations which 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. Therefore, 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 this latter point in the&lt;br /&gt;
next chapter.  &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 abitrary 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; beteen &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 defintions 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&lt;br /&gt;
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;
By 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;&lt;br /&gt;
so&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, [[Appendix C - Vectors and Linear Algebra|Section D.6]].)&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, [[Appendix C - Vectors and Linear Algebra|Section D.6]] 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'' with the following notation also perfectly acceptable&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 which may&lt;br /&gt;
share some information or may wish to communicate.  In this case, the&lt;br /&gt;
state belonging to Alice may 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 abitrary 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 an entangling gate 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 which 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;
A controlled operation is one which 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 is in the state &lt;br /&gt;
&amp;lt;math&amp;gt;\left\vert{1}\right\rangle\,\!&amp;lt;/math&amp;gt;, in other words a controlled NOT operation for qubits. This gate is used so often that it is discussed here in detail.&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. 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;
Then the CNOT is given by&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\left\vert{x,y}\right\rangle \overset{CNOT}{\rightarrow} \left\vert{x,x\oplus y}\right\rangle.&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.2. &lt;br /&gt;
The first qubit, &amp;lt;math&amp;gt;\left\vert{x}\right\rangle&amp;lt;/math&amp;gt;, at the top of the diagam, is called the&lt;br /&gt;
''control bit'' and the second, &amp;lt;math&amp;gt;\left\vert{y}\right\rangle&amp;lt;/math&amp;gt;, at the top of the diagam,&lt;br /&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.2: 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.3, 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.4|Fig. 2.4]].&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.3: 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.5 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 which, in the end,&lt;br /&gt;
&amp;lt;div id =&amp;quot;Figure 2.4&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.4: Circuit diagram for a Controlled-phase gate.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Multiqcs.jpg]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Figure 2.5: 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;HZH = X\,\!&amp;lt;/math&amp;gt;, the two&lt;br /&gt;
circuits in Fig. 2.6 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.6: 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 therefore for&lt;br /&gt;
classical bits in classical computers, 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 which will become&lt;br /&gt;
clear later.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Standard Prescription====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the intoduction a simple example was provided as motivation for&lt;br /&gt;
distinguishing quantum states from classical states.  This example of &lt;br /&gt;
two wells with one particle, can be used (cautiously) here as well.  &lt;br /&gt;
&lt;br /&gt;
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;&lt;br /&gt;
of the form&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;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;
&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 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;.  Recall&lt;br /&gt;
that the particle is in this state and that this state really means&lt;br /&gt;
that the particle is not in the state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt; or the state &lt;br /&gt;
&amp;lt;math&amp;gt;\left\vert 1\right\rangle \,\!&amp;lt;/math&amp;gt;, it really means that it is in both at the same time. &lt;br /&gt;
&lt;br /&gt;
Just to emphasize the point, it really ''cannot'' be thought of as &lt;br /&gt;
being in state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt; with probability &amp;lt;math&amp;gt;|\alpha_0|^2\,\!&amp;lt;/math&amp;gt; ''or'' in&lt;br /&gt;
&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;.  To see this, act on the state &amp;lt;math&amp;gt;\left\vert \psi\right\rangle\,\!&amp;lt;/math&amp;gt; with a Hadamard transformation,&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;H\left\vert \psi\right\rangle = \left\vert 0\right\rangle.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|2.36}}&lt;br /&gt;
&lt;br /&gt;
This state, produced from &amp;lt;math&amp;gt;\left\vert\psi\right\rangle\,\!&amp;lt;/math&amp;gt; unitary transformation, has probability zero of being in the state &amp;lt;math&amp;gt;\left\vert 1\right\rangle\,\!&amp;lt;/math&amp;gt; and probability one 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&lt;br /&gt;
simple and pointed, that it was taken almost word-for-word from  [[Bibliography#Mermin:qcbook|Mermin's book]], 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 [[Appendix C - Vectors and Linear Algebra#More Dirac Notation|Section C.4]]) 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 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; and 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.7.&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:measurementcd.jpg‎]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Figure 2.7: The 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&lt;br /&gt;
in Figure 2.8 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.8: 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 projecter?  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;
&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&lt;br /&gt;
outter product &amp;lt;math&amp;gt;\left\vert{x}\right\rangle\!\!\left\langle{x}\right\vert\,\!&amp;lt;/math&amp;gt; is a projecter.  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 projecter 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 project.  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 abstact cases.  One important&lt;br /&gt;
example is that the sum over all 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 all 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 since &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;
expressioin, 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;, 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, it has 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, as we will see later, 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.&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>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Quantum_Computation_and_Quantum_Error_Prevention&amp;diff=838</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=838"/>
		<updated>2010-04-16T02:54:35Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NOTICE -- THIS WEB SITE IS UNDER CONSTRUCTION! &lt;br /&gt;
&lt;br /&gt;
To contribute to the qunet wiki book, click [https://qunet.physics.siu.edu/submit/requestform.html here]to request an account. ACCESS IS RESTRICTED. This is not wikipedia where anyone can edit pages. However, registering is easy and many people will be eligible.&lt;br /&gt;
&lt;br /&gt;
Right now, there are only a few very active users.  Mark Byrd, Russell Ceballos, and Kevin Reuter are working diligently to get qunet's basic functions up and running properly as well as uploading notes. These notes are based on a class taught by Mark Byrd in the Spring of 2009.&lt;br /&gt;
&lt;br /&gt;
===Table of Contents===&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]]&lt;br /&gt;
##[[Chapter_1#An Introduction to Quantum Computation|An Introduction to Quantum Computation]]&lt;br /&gt;
##[[Chapter_1#Bits and qubits: An Introduction|Bits and qubits: An Introduction]]&lt;br /&gt;
##[[Chapter_1#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: Basic Principles and Simple Examples]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Introduction|Introduction]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#No Cloning!|No Cloning!]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Uncertainty Principle|Uncertainty Principle]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Quantum Dense Coding|Quantum Dense Coding]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Teleporting a Quantum State|Teleporting a Quantum State]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#QKD: BB84|QKD: BB84]]&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 6 - Quantum Computation&amp;lt;/big&amp;gt;&lt;br /&gt;
##Quantum Computation Basics&lt;br /&gt;
##Deutsch-Josza Algorithm&lt;br /&gt;
##Simon’s Algorithm&lt;br /&gt;
##Shor’s Algorithm&lt;br /&gt;
##Grover’s Algorithm&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 7 - Experiments&amp;lt;/big&amp;gt;&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Chapter 8 - Noise in Quantum Systems]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Introduction|Introduction]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#SMR Representation or Operator-Sum Representation|SMR Representation or Operator-Sum Representation]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Physics Behind the Noise and Completely Positive Maps|Physics Behind the Noise and Completely Positive Maps]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Notes|Notes]]&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 9 - Conclusions&amp;lt;/big&amp;gt;&lt;br /&gt;
##What have we learned?&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 Isomophisms|Comparing Groups: Homomorphisms and Isomorphisms]]&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 - NOTES and CREDITS]]&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;
----&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>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Quantum_Computation_and_Quantum_Error_Prevention&amp;diff=837</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=837"/>
		<updated>2010-04-16T02:54:21Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NOTICE -- THIS WEB SITE IS UNDER CONSTRUCTION! &lt;br /&gt;
&lt;br /&gt;
To contribute to the qunet wiki book, click [https://qunet.physics.siu.edu/submit/requestform.html|here]to request an account. ACCESS IS RESTRICTED. This is not wikipedia where anyone can edit pages. However, registering is easy and many people will be eligible.&lt;br /&gt;
&lt;br /&gt;
Right now, there are only a few very active users.  Mark Byrd, Russell Ceballos, and Kevin Reuter are working diligently to get qunet's basic functions up and running properly as well as uploading notes. These notes are based on a class taught by Mark Byrd in the Spring of 2009.&lt;br /&gt;
&lt;br /&gt;
===Table of Contents===&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]]&lt;br /&gt;
##[[Chapter_1#An Introduction to Quantum Computation|An Introduction to Quantum Computation]]&lt;br /&gt;
##[[Chapter_1#Bits and qubits: An Introduction|Bits and qubits: An Introduction]]&lt;br /&gt;
##[[Chapter_1#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: Basic Principles and Simple Examples]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Introduction|Introduction]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#No Cloning!|No Cloning!]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Uncertainty Principle|Uncertainty Principle]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Quantum Dense Coding|Quantum Dense Coding]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Teleporting a Quantum State|Teleporting a Quantum State]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#QKD: BB84|QKD: BB84]]&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 6 - Quantum Computation&amp;lt;/big&amp;gt;&lt;br /&gt;
##Quantum Computation Basics&lt;br /&gt;
##Deutsch-Josza Algorithm&lt;br /&gt;
##Simon’s Algorithm&lt;br /&gt;
##Shor’s Algorithm&lt;br /&gt;
##Grover’s Algorithm&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 7 - Experiments&amp;lt;/big&amp;gt;&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Chapter 8 - Noise in Quantum Systems]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Introduction|Introduction]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#SMR Representation or Operator-Sum Representation|SMR Representation or Operator-Sum Representation]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Physics Behind the Noise and Completely Positive Maps|Physics Behind the Noise and Completely Positive Maps]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Notes|Notes]]&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 9 - Conclusions&amp;lt;/big&amp;gt;&lt;br /&gt;
##What have we learned?&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 Isomophisms|Comparing Groups: Homomorphisms and Isomorphisms]]&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 - NOTES and CREDITS]]&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;
----&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>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Quantum_Computation_and_Quantum_Error_Prevention&amp;diff=836</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=836"/>
		<updated>2010-04-16T02:54:09Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NOTICE -- THIS WEB SITE IS UNDER CONSTRUCTION! &lt;br /&gt;
&lt;br /&gt;
To contribute to the qunet wiki book, click [httsp://qunet.physics.siu.edu/submit/requestform.html|here]to request an account. ACCESS IS RESTRICTED. This is not wikipedia where anyone can edit pages. However, registering is easy and many people will be eligible.&lt;br /&gt;
&lt;br /&gt;
Right now, there are only a few very active users.  Mark Byrd, Russell Ceballos, and Kevin Reuter are working diligently to get qunet's basic functions up and running properly as well as uploading notes. These notes are based on a class taught by Mark Byrd in the Spring of 2009.&lt;br /&gt;
&lt;br /&gt;
===Table of Contents===&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]]&lt;br /&gt;
##[[Chapter_1#An Introduction to Quantum Computation|An Introduction to Quantum Computation]]&lt;br /&gt;
##[[Chapter_1#Bits and qubits: An Introduction|Bits and qubits: An Introduction]]&lt;br /&gt;
##[[Chapter_1#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: Basic Principles and Simple Examples]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Introduction|Introduction]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#No Cloning!|No Cloning!]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Uncertainty Principle|Uncertainty Principle]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Quantum Dense Coding|Quantum Dense Coding]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Teleporting a Quantum State|Teleporting a Quantum State]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#QKD: BB84|QKD: BB84]]&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 6 - Quantum Computation&amp;lt;/big&amp;gt;&lt;br /&gt;
##Quantum Computation Basics&lt;br /&gt;
##Deutsch-Josza Algorithm&lt;br /&gt;
##Simon’s Algorithm&lt;br /&gt;
##Shor’s Algorithm&lt;br /&gt;
##Grover’s Algorithm&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 7 - Experiments&amp;lt;/big&amp;gt;&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Chapter 8 - Noise in Quantum Systems]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Introduction|Introduction]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#SMR Representation or Operator-Sum Representation|SMR Representation or Operator-Sum Representation]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Physics Behind the Noise and Completely Positive Maps|Physics Behind the Noise and Completely Positive Maps]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Notes|Notes]]&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 9 - Conclusions&amp;lt;/big&amp;gt;&lt;br /&gt;
##What have we learned?&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 Isomophisms|Comparing Groups: Homomorphisms and Isomorphisms]]&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 - NOTES and CREDITS]]&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;
----&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>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Template:Equation&amp;diff=746</id>
		<title>Template:Equation</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Template:Equation&amp;diff=746"/>
		<updated>2010-04-06T23:19:46Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{|&lt;br /&gt;
|&amp;lt;div id=&amp;quot;eq{{{2}}}&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;br /&amp;gt; &lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;300&amp;quot; | &amp;lt;br /&amp;gt;  || width=&amp;quot;350&amp;quot; align=&amp;quot;center&amp;quot; | {{{1}}} || width=&amp;quot;200&amp;quot;  align=&amp;quot;right&amp;quot; | ({{{2}}}) &lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Template:Equation&amp;diff=745</id>
		<title>Template:Equation</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Template:Equation&amp;diff=745"/>
		<updated>2010-04-06T23:19:12Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| &lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;div id=&amp;quot;eq{{{2}}}&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;br /&amp;gt;| width=&amp;quot;300&amp;quot; | &amp;lt;br /&amp;gt;  || width=&amp;quot;350&amp;quot; align=&amp;quot;center&amp;quot; | {{{1}}} || width=&amp;quot;200&amp;quot;  align=&amp;quot;right&amp;quot; | ({{{2}}}) &lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Quantum_Computation_and_Quantum_Error_Prevention&amp;diff=689</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=689"/>
		<updated>2010-04-02T04:25:42Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: /* Appendices */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NOTICE -- THIS WEB SITE IS UNDER CONSTRUCTION! &lt;br /&gt;
&lt;br /&gt;
To contribute to the qunet wiki book, please email mbyrd at physics dot siu dot edu and ask for an account. ACCESS IS RESTRICTED. This is not wikipedia where anyone can edit pages. However, registering is easy and many people will be eligible.&lt;br /&gt;
&lt;br /&gt;
Right now, there are only a few very active users.  Mark Byrd and Kevin Reuter are working diligently to get qunet's basic functions up and running properly as well as uploading notes. These notes are based on a class taught by Mark Byrd in the Spring of 2009.&lt;br /&gt;
&lt;br /&gt;
===Table of Contents===&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]]&lt;br /&gt;
##[[Chapter_1#An Introduction to Quantum Computation|An Introduction to Quantum Computation]]&lt;br /&gt;
##[[Chapter_1#Bits and qubits: An Introduction|Bits and qubits: An Introduction]]&lt;br /&gt;
##[[Chapter_1#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: Basic Principles and Simple Examples]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Introduction|Introduction]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#No Cloning!|No Cloning!]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Uncertainty Principle|Uncertainty Principle]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Quantum Dense Coding|Quantum Dense Coding]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Teleporting a Quantum State|Teleporting a Quantum State]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#QKD: BB84|QKD: BB84]]&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 6 - Quantum Computation&amp;lt;/big&amp;gt;&lt;br /&gt;
##Quantum Computation Basics&lt;br /&gt;
##Deutsch-Josza Algorithm&lt;br /&gt;
##Simon’s Algorithm&lt;br /&gt;
##Shor’s Algorithm&lt;br /&gt;
##Grover’s Algorithm&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 7 - Experiments&amp;lt;/big&amp;gt;&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Chapter 8 - Noise in Quantum Systems]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Introduction|Introduction]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#SMR Representation or Operator-Sum Representation|SMR Representation or Operator-Sum Representation]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Physics Behind the Noise and Completely Positive Maps|Physics Behind the Noise and Completely Positive Maps]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Notes|Notes]]&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 9 - Conclusions&amp;lt;/big&amp;gt;&lt;br /&gt;
##What have we learned?&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#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 Isomophisms|Comparing Groups: Homomorphisms and Isomorphisms]]&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 - NOTES and CREDITS]]&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;
----&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>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Quantum_Computation_and_Quantum_Error_Prevention&amp;diff=688</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=688"/>
		<updated>2010-04-02T04:24:59Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: /* Appendices */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NOTICE -- THIS WEB SITE IS UNDER CONSTRUCTION! &lt;br /&gt;
&lt;br /&gt;
To contribute to the qunet wiki book, please email mbyrd at physics dot siu dot edu and ask for an account. ACCESS IS RESTRICTED. This is not wikipedia where anyone can edit pages. However, registering is easy and many people will be eligible.&lt;br /&gt;
&lt;br /&gt;
Right now, there are only a few very active users.  Mark Byrd and Kevin Reuter are working diligently to get qunet's basic functions up and running properly as well as uploading notes. These notes are based on a class taught by Mark Byrd in the Spring of 2009.&lt;br /&gt;
&lt;br /&gt;
===Table of Contents===&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]]&lt;br /&gt;
##[[Chapter_1#An Introduction to Quantum Computation|An Introduction to Quantum Computation]]&lt;br /&gt;
##[[Chapter_1#Bits and qubits: An Introduction|Bits and qubits: An Introduction]]&lt;br /&gt;
##[[Chapter_1#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: Basic Principles and Simple Examples]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Introduction|Introduction]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#No Cloning!|No Cloning!]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Uncertainty Principle|Uncertainty Principle]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Quantum Dense Coding|Quantum Dense Coding]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Teleporting a Quantum State|Teleporting a Quantum State]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#QKD: BB84|QKD: BB84]]&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 6 - Quantum Computation&amp;lt;/big&amp;gt;&lt;br /&gt;
##Quantum Computation Basics&lt;br /&gt;
##Deutsch-Josza Algorithm&lt;br /&gt;
##Simon’s Algorithm&lt;br /&gt;
##Shor’s Algorithm&lt;br /&gt;
##Grover’s Algorithm&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 7 - Experiments&amp;lt;/big&amp;gt;&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Chapter 8 - Noise in Quantum Systems]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Introduction|Introduction]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#SMR Representation or Operator-Sum Representation|SMR Representation or Operator-Sum Representation]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Physics Behind the Noise and Completely Positive Maps|Physics Behind the Noise and Completely Positive Maps]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Notes|Notes]]&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 9 - Conclusions&amp;lt;/big&amp;gt;&lt;br /&gt;
##What have we learned?&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#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#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 - NOTES and CREDITS]]&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;
----&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>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Quantum_Computation_and_Quantum_Error_Prevention&amp;diff=687</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=687"/>
		<updated>2010-04-02T04:24:40Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: /* Appendices */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NOTICE -- THIS WEB SITE IS UNDER CONSTRUCTION! &lt;br /&gt;
&lt;br /&gt;
To contribute to the qunet wiki book, please email mbyrd at physics dot siu dot edu and ask for an account. ACCESS IS RESTRICTED. This is not wikipedia where anyone can edit pages. However, registering is easy and many people will be eligible.&lt;br /&gt;
&lt;br /&gt;
Right now, there are only a few very active users.  Mark Byrd and Kevin Reuter are working diligently to get qunet's basic functions up and running properly as well as uploading notes. These notes are based on a class taught by Mark Byrd in the Spring of 2009.&lt;br /&gt;
&lt;br /&gt;
===Table of Contents===&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]]&lt;br /&gt;
##[[Chapter_1#An Introduction to Quantum Computation|An Introduction to Quantum Computation]]&lt;br /&gt;
##[[Chapter_1#Bits and qubits: An Introduction|Bits and qubits: An Introduction]]&lt;br /&gt;
##[[Chapter_1#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: Basic Principles and Simple Examples]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Introduction|Introduction]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#No Cloning!|No Cloning!]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Uncertainty Principle|Uncertainty Principle]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Quantum Dense Coding|Quantum Dense Coding]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Teleporting a Quantum State|Teleporting a Quantum State]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#QKD: BB84|QKD: BB84]]&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 6 - Quantum Computation&amp;lt;/big&amp;gt;&lt;br /&gt;
##Quantum Computation Basics&lt;br /&gt;
##Deutsch-Josza Algorithm&lt;br /&gt;
##Simon’s Algorithm&lt;br /&gt;
##Shor’s Algorithm&lt;br /&gt;
##Grover’s Algorithm&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 7 - Experiments&amp;lt;/big&amp;gt;&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Chapter 8 - Noise in Quantum Systems]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Introduction|Introduction]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#SMR Representation or Operator-Sum Representation|SMR Representation or Operator-Sum Representation]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Physics Behind the Noise and Completely Positive Maps|Physics Behind the Noise and Completely Positive Maps]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Notes|Notes]]&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 9 - Conclusions&amp;lt;/big&amp;gt;&lt;br /&gt;
##What have we learned?&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#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#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 - NOTES and CREDITS]]&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;
----&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>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Quantum_Computation_and_Quantum_Error_Prevention&amp;diff=686</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=686"/>
		<updated>2010-04-02T04:24:12Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: /* Appendices */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NOTICE -- THIS WEB SITE IS UNDER CONSTRUCTION! &lt;br /&gt;
&lt;br /&gt;
To contribute to the qunet wiki book, please email mbyrd at physics dot siu dot edu and ask for an account. ACCESS IS RESTRICTED. This is not wikipedia where anyone can edit pages. However, registering is easy and many people will be eligible.&lt;br /&gt;
&lt;br /&gt;
Right now, there are only a few very active users.  Mark Byrd and Kevin Reuter are working diligently to get qunet's basic functions up and running properly as well as uploading notes. These notes are based on a class taught by Mark Byrd in the Spring of 2009.&lt;br /&gt;
&lt;br /&gt;
===Table of Contents===&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]]&lt;br /&gt;
##[[Chapter_1#An Introduction to Quantum Computation|An Introduction to Quantum Computation]]&lt;br /&gt;
##[[Chapter_1#Bits and qubits: An Introduction|Bits and qubits: An Introduction]]&lt;br /&gt;
##[[Chapter_1#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: Basic Principles and Simple Examples]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Introduction|Introduction]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#No Cloning!|No Cloning!]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Uncertainty Principle|Uncertainty Principle]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Quantum Dense Coding|Quantum Dense Coding]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Teleporting a Quantum State|Teleporting a Quantum State]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#QKD: BB84|QKD: BB84]]&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 6 - Quantum Computation&amp;lt;/big&amp;gt;&lt;br /&gt;
##Quantum Computation Basics&lt;br /&gt;
##Deutsch-Josza Algorithm&lt;br /&gt;
##Simon’s Algorithm&lt;br /&gt;
##Shor’s Algorithm&lt;br /&gt;
##Grover’s Algorithm&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 7 - Experiments&amp;lt;/big&amp;gt;&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Chapter 8 - Noise in Quantum Systems]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Introduction|Introduction]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#SMR Representation or Operator-Sum Representation|SMR Representation or Operator-Sum Representation]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Physics Behind the Noise and Completely Positive Maps|Physics Behind the Noise and Completely Positive Maps]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Notes|Notes]]&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 9 - Conclusions&amp;lt;/big&amp;gt;&lt;br /&gt;
##What have we learned?&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#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#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 - NOTES and CREDITS]]&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;
----&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>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Talk:Quantum_Computation_and_Quantum_Error_Prevention&amp;diff=685</id>
		<title>Talk:Quantum Computation and Quantum Error Prevention</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Talk:Quantum_Computation_and_Quantum_Error_Prevention&amp;diff=685"/>
		<updated>2010-04-02T04:21:36Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I just wanted to mention that there is a missing section in Chapter 3 (section 7), and that &lt;br /&gt;
some of the links on this main page to Chapter 3 are not working.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I got the links for chapter 3 working if you find more that aren't working and can't figure out why just let me know and i will look at it? -- Kevin&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Quantum_Computation_and_Quantum_Error_Prevention&amp;diff=684</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=684"/>
		<updated>2010-04-02T04:20:25Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NOTICE -- THIS WEB SITE IS UNDER CONSTRUCTION! &lt;br /&gt;
&lt;br /&gt;
To contribute to the qunet wiki book, please email mbyrd at physics dot siu dot edu and ask for an account. ACCESS IS RESTRICTED. This is not wikipedia where anyone can edit pages. However, registering is easy and many people will be eligible.&lt;br /&gt;
&lt;br /&gt;
Right now, there are only a few very active users.  Mark Byrd and Kevin Reuter are working diligently to get qunet's basic functions up and running properly as well as uploading notes. These notes are based on a class taught by Mark Byrd in the Spring of 2009.&lt;br /&gt;
&lt;br /&gt;
===Table of Contents===&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]]&lt;br /&gt;
##[[Chapter_1#An Introduction to Quantum Computation|An Introduction to Quantum Computation]]&lt;br /&gt;
##[[Chapter_1#Bits and qubits: An Introduction|Bits and qubits: An Introduction]]&lt;br /&gt;
##[[Chapter_1#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: Basic Principles and Simple Examples]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Introduction|Introduction]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#No Cloning!|No Cloning!]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Uncertainty Principle|Uncertainty Principle]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Quantum Dense Coding|Quantum Dense Coding]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Teleporting a Quantum State|Teleporting a Quantum State]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#QKD: BB84|QKD: BB84]]&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 6 - Quantum Computation&amp;lt;/big&amp;gt;&lt;br /&gt;
##Quantum Computation Basics&lt;br /&gt;
##Deutsch-Josza Algorithm&lt;br /&gt;
##Simon’s Algorithm&lt;br /&gt;
##Shor’s Algorithm&lt;br /&gt;
##Grover’s Algorithm&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 7 - Experiments&amp;lt;/big&amp;gt;&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Chapter 8 - Noise in Quantum Systems]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Introduction|Introduction]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#SMR Representation or Operator-Sum Representation|SMR Representation or Operator-Sum Representation]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Physics Behind the Noise and Completely Positive Maps|Physics Behind the Noise and Completely Positive Maps]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Notes|Notes]]&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 9 - Conclusions&amp;lt;/big&amp;gt;&lt;br /&gt;
##What have we learned?&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#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#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 - NOTES and CREDITS]]&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;
----&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>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Quantum_Computation_and_Quantum_Error_Prevention&amp;diff=683</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=683"/>
		<updated>2010-04-02T04:19:14Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NOTICE -- THIS WEB SITE IS UNDER CONSTRUCTION! &lt;br /&gt;
&lt;br /&gt;
To contribute to the qunet wiki book, please email mbyrd at physics dot siu dot edu and ask for an account. ACCESS IS RESTRICTED. This is not wikipedia where anyone can edit pages. However, registering is easy and many people will be eligible.&lt;br /&gt;
&lt;br /&gt;
Right now, there are only a few very active users.  Mark Byrd and Kevin Reuter are working diligently to get qunet's basic functions up and running properly as well as uploading notes. These notes are based on a class taught by Mark Byrd in the Spring of 2009.&lt;br /&gt;
&lt;br /&gt;
===Table of Contents===&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]]&lt;br /&gt;
##[[Chapter_1#An Introduction to Quantum Computation|An Introduction to Quantum Computation]]&lt;br /&gt;
##[[Chapter_1#Bits and qubits: An Introduction|Bits and qubits: An Introduction]]&lt;br /&gt;
##[[Chapter_1#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 a Mixed State|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: Basic Principles and Simple Examples]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Introduction|Introduction]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#No Cloning!|No Cloning!]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Uncertainty Principle|Uncertainty Principle]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Quantum Dense Coding|Quantum Dense Coding]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Teleporting a Quantum State|Teleporting a Quantum State]]&lt;br /&gt;
##[[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#QKD: BB84|QKD: BB84]]&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 6 - Quantum Computation&amp;lt;/big&amp;gt;&lt;br /&gt;
##Quantum Computation Basics&lt;br /&gt;
##Deutsch-Josza Algorithm&lt;br /&gt;
##Simon’s Algorithm&lt;br /&gt;
##Shor’s Algorithm&lt;br /&gt;
##Grover’s Algorithm&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 7 - Experiments&amp;lt;/big&amp;gt;&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Chapter 8 - Noise in Quantum Systems]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Introduction|Introduction]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#SMR Representation or Operator-Sum Representation|SMR Representation or Operator-Sum Representation]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Physics Behind the Noise and Completely Positive Maps|Physics Behind the Noise and Completely Positive Maps]]&lt;br /&gt;
##[[Chapter 8 - Noise in Quantum Systems#Notes|Notes]]&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 9 - Conclusions&amp;lt;/big&amp;gt;&lt;br /&gt;
##What have we learned?&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#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#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 - NOTES and CREDITS]]&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;
----&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>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=645</id>
		<title>Index</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=645"/>
		<updated>2010-03-31T22:42:37Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: Changed protection level for &amp;quot;Index&amp;quot; ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite))&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;div id=&amp;quot;A&amp;quot;&amp;gt;&amp;lt;big&amp;gt;A&amp;lt;/big&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
:average - [[Appendix A - Basic Probability Concepts|Appendix A]]&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;div id=&amp;quot;B&amp;quot;&amp;gt;&amp;lt;big&amp;gt;B&amp;lt;/big&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
:basis vectors real - [[Appendix C - Vectors and Linear Algebra#Real Vectors|Appendix C]]&lt;br /&gt;
:bit - [[Chapter 1#Bits and qubits: An Introduction|Chapter 1]]&lt;br /&gt;
:bit-flip operation - [[Chapter 2 - Qubits and Collections of Qubits#Examples of Important Qubit Gates|'''2.3.2''']]&lt;br /&gt;
:Bloch Sphere [[Chapter 3 - Physics of Quantum Information#Two-State Example: Bloch Sphere|3.5.4]]&lt;br /&gt;
:bra&lt;br /&gt;
:bracket&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;div id=&amp;quot;C&amp;quot;&amp;gt;&amp;lt;big&amp;gt;C&amp;lt;/big&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
:closed-system evolution [[Chapter 1#Obstacles to Building a Reliable Quantum Computer|1.4]]&lt;br /&gt;
:CNOT gate(see controlled NOT) &lt;br /&gt;
:commutator [[Chapter 2 - Qubits and Collections of Qubits#Examples of Important Qubit Gates|'''2.3.2''']], &lt;br /&gt;
:complex conjugate [[Appendix B]]&lt;br /&gt;
::of a matrix [[Appendix C - Vectors and Linear Algebra#Complex Conjugate|C.3.1]]&lt;br /&gt;
:complex number [[Appendix B]]&lt;br /&gt;
:computational basis&lt;br /&gt;
:controlled NOT [[Chapter 2 - Qubits and Collections of Qubits#Controlled Operations|'''2.6.1''']], [[Chapter 2 - Qubits and Collections of Qubits#Many-qubit Circuits|2.6.2]], [[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Quantum Dense Coding|5.4]], [[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Teleporting a Quantum State|5.5]]&lt;br /&gt;
:controlled phase gate&lt;br /&gt;
:controlled unitary operation[[Chapter 2 - Qubits and Collections of Qubits#Controlled Operations|'''2.6.1''']]&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;div id=&amp;quot;D&amp;quot;&amp;gt;&amp;lt;big&amp;gt;D&amp;lt;/big&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
:decoherence&lt;br /&gt;
:degenerate&lt;br /&gt;
:delta&lt;br /&gt;
::Kronecker&lt;br /&gt;
:dense coding [[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Quantum Dense Coding|5.4]]&lt;br /&gt;
:density matrix [[Chapter 3 - Physics of Quantum Information#Density Matrix for Pure States|3.3]],[[Chapter 3 - Physics of Quantum Information#Density Matrix for Mixed States|3.5]]&lt;br /&gt;
::for two qubits [[Chapter 3 - Physics of Quantum Information#Density Matrix for a Mixed State: Two States|3.5.2]], [[Chapter 3 - Physics of Quantum Information#Density Matrix for the Description of Open Quantum Systems: An Example|3.5.3]], [[Chapter 3 - Physics of Quantum Information#Two-State Example: Bloch Sphere|3.5.4]]&lt;br /&gt;
::mixed state [[Chapter 3 - Physics of Quantum Information#Density Matrix for Mixed States|3.5]]&lt;br /&gt;
::pure state [[Chapter 3 - Physics of Quantum Information#Density Matrix for Pure States|3.3]]&lt;br /&gt;
:density operator&lt;br /&gt;
:determinant [[Appendix C - Vectors and Linear Algebra#The Determinant|'''C.3.6''']]&lt;br /&gt;
:DiVencenzo's requirements [[Chapter 2 - Qubits and Collections of Qubits#Introduction|2.1]]&lt;br /&gt;
:dot product&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;div id=&amp;quot;E&amp;quot;&amp;gt;&amp;lt;big&amp;gt;E&amp;lt;/big&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
:eigenvalue decomposition&lt;br /&gt;
:eigenvalues [[Appendix C - Vectors and Linear Algebra#Eigenvalues and Eigenvectors|'''C.6''']]&lt;br /&gt;
:eigenvectors [[Appendix C - Vectors and Linear Algebra#Eigenvalues and Eigenvectors|'''C.6''']]&lt;br /&gt;
:entangled states (see entanglement)&lt;br /&gt;
:entanglement [[Chapter 4 - Entanglement|4]], [[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Quantum Dense Coding|5.4]], [[Chapter 1#How do quantum computers provide an advantage?|1.2.5]]&lt;br /&gt;
::pure state [[Chapter 4 - Entanglement#Entangled Pure States|4.2]]&lt;br /&gt;
::mixed state [[Chapter 4 - Entanglement#Entangled Mixed States|4.3]]&lt;br /&gt;
:expectation value&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;big&amp;gt;F&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;div id=&amp;quot;G&amp;quot;&amp;gt;&amp;lt;big&amp;gt;G&amp;lt;/big&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
:group [[Appendix D - Group Theory#Definitions and Examples|'''D.2''']]&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;div id=&amp;quot;H&amp;quot;&amp;gt;&amp;lt;big&amp;gt;H&amp;lt;/big&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
:Hadamard gate [[Chapter 2 - Qubits and Collections of Qubits#eq2.16|(2.16)]] &lt;br /&gt;
:Hamiltonian [[Chapter 3 - Physics of Quantum Information#Schrodinger's Equation|3.2]]&lt;br /&gt;
:Hermitian matrix&lt;br /&gt;
:Hilbert-Schmidt inner product&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;div id=&amp;quot;I&amp;quot;&amp;gt;&amp;lt;big&amp;gt;I&amp;lt;/big&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
:inner product  &lt;br /&gt;
::for real vectors [[Appendix C - Vectors and Linear Algebra#Real Vectors|C.2.1]]&lt;br /&gt;
::for complex vectors [[Appendix C - Vectors and Linear Algebra#More Dirac Notation|C.4]]&lt;br /&gt;
:inverse of a matrix [[Appendix C - Vectors and Linear Algebra#The Inverse of a Matrix|'''C.3.7''']]&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;div id=&amp;quot;K&amp;quot;&amp;gt;&amp;lt;big&amp;gt;K&amp;lt;/big&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
:ket [[Appendix C - Vectors and Linear Algebra#Complex Vectors|C.2.2]]&lt;br /&gt;
:Kraus operators&lt;br /&gt;
:Kronecker delta [[Appendix C - Vectors and Linear Algebra#More Dirac Notation|'''C.4''']]&lt;br /&gt;
:Kronecker product&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;div id=&amp;quot;L&amp;quot;&amp;gt;&amp;lt;big&amp;gt;L&amp;lt;/big&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
:local operations&lt;br /&gt;
:local unitarty transformations&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;div id=&amp;quot;M&amp;quot;&amp;gt;&amp;lt;big&amp;gt;M&amp;lt;/big&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
:matrix exponentiation [[Chapter 3 - Physics of Quantum Information#expmatrix|3.2]]&lt;br /&gt;
:maximally entangled states&lt;br /&gt;
:maximally mixed state&lt;br /&gt;
::two qubits&lt;br /&gt;
:mean&lt;br /&gt;
:median&lt;br /&gt;
:mixed state density matrix&lt;br /&gt;
:modulus squared&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;div id=&amp;quot;O&amp;quot;&amp;gt;&amp;lt;big&amp;gt;O&amp;lt;/big&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
:open quantum systems&lt;br /&gt;
:open-system evolution [[Chapter 1#Obstacles to Building a Reliable Quantum Computer|1.4]]&lt;br /&gt;
:operator-sum decomposition&lt;br /&gt;
:orthogonal&lt;br /&gt;
::vectors&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;div id=&amp;quot;P&amp;quot;&amp;gt;&amp;lt;big&amp;gt;P&amp;lt;/big&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
:partial trace&lt;br /&gt;
::of a Bell state&lt;br /&gt;
:Pauli matrices [[Chapter 2 - Qubits and Collections of Qubits#The Pauli Matrices|2.4]], [[Chapter 3 - Physics of Quantum Information#Measurements Revisited|3.4]], [[Chapter 3 - Physics of Quantum Information#Two-State Example: Bloch Sphere|3.5.4]]&lt;br /&gt;
:phase gate&lt;br /&gt;
:phase-flip&lt;br /&gt;
:Planck's constant&lt;br /&gt;
:projection operator&lt;br /&gt;
:pure state&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;div id=&amp;quot;Q&amp;quot;&amp;gt;&amp;lt;big&amp;gt;Q&amp;lt;/big&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
:Qbit (see qubit)&lt;br /&gt;
:quantum bit [[Chapter 1#Bits and qubits: An Introduction|1.3]]&lt;br /&gt;
:quantum dense coding (see [[#D|dense coding]])&lt;br /&gt;
:quantum gates&lt;br /&gt;
:qubit&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
;&amp;lt;div id=&amp;quot;R&amp;quot;&amp;gt;&amp;lt;big&amp;gt;R&amp;lt;/big&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
:reduced density operator&lt;br /&gt;
::of a Bell state&lt;br /&gt;
:reduced density matrix&lt;br /&gt;
::see reduced density operator&lt;br /&gt;
:reduced density operator&lt;br /&gt;
:requirements for scalable quantum computing [[Chapter 2 - Qubits and Collections of Qubits#Introduction|2.1]]&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;div id=&amp;quot;S&amp;quot;&amp;gt;&amp;lt;big&amp;gt;S&amp;lt;/big&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
:scalability&lt;br /&gt;
:Schrodinger Equation&lt;br /&gt;
::for density matrix&lt;br /&gt;
:separable state&lt;br /&gt;
::simply separable&lt;br /&gt;
:similar matrices&lt;br /&gt;
:similarity transformation&lt;br /&gt;
:singular values&lt;br /&gt;
:special unitary matrix&lt;br /&gt;
:spectrum&lt;br /&gt;
:standard deviation&lt;br /&gt;
:SU&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;div id=&amp;quot;T&amp;quot;&amp;gt;&amp;lt;big&amp;gt;T&amp;lt;/big&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
:teleportation [[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Teleporting a Quantum State|5.5]]&lt;br /&gt;
:tensor product [[Appendix C - Vectors and Linear Algebra#Tensor Products|'''C.7''']]&lt;br /&gt;
:trace [[Appendix C - Vectors and Linear Algebra#The Trace|'''C.3.5''']]&lt;br /&gt;
::partial(see partial trace)&lt;br /&gt;
:transpose [[Appendix C - Vectors and Linear Algebra#Transpose|'''C.3.2''']]&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;div id=&amp;quot;U&amp;quot;&amp;gt;&amp;lt;big&amp;gt;U&amp;lt;/big&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
:uncertainty principle [[Chapter 5 - Quantum Information: Basic Principles and Simple Examples#Uncertainty Principle|'''5.3''']]&lt;br /&gt;
:unitary matrix&lt;br /&gt;
:universal set of gates [[Chapter 2 - Qubits and Collections of Qubits#Quantum Gates for Many Qubits|2.6]]&lt;br /&gt;
:universality [[Chapter 2 - Qubits and Collections of Qubits#Quantum Gates for Many Qubits|2.6]]&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;div id=&amp;quot;V&amp;quot;&amp;gt;&amp;lt;big&amp;gt;V&amp;lt;/big&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
:variance&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;div id=&amp;quot;X&amp;quot;&amp;gt;&amp;lt;big&amp;gt;X&amp;lt;/big&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
:x-gate&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;div id=&amp;quot;Y&amp;quot;&amp;gt;&amp;lt;big&amp;gt;Y&amp;lt;/big&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
:y-gate&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;div id=&amp;quot;Z&amp;quot;&amp;gt;&amp;lt;big&amp;gt;Z&amp;lt;/big&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
:z-gate&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=MediaWiki:Sidebar&amp;diff=442</id>
		<title>MediaWiki:Sidebar</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=MediaWiki:Sidebar&amp;diff=442"/>
		<updated>2010-03-04T22:06:07Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* navigation&lt;br /&gt;
** mainpage|mainpage-description&lt;br /&gt;
** portal-url|portal&lt;br /&gt;
** currentevents-url|currentevents&lt;br /&gt;
** recentchanges-url|recentchanges&lt;br /&gt;
** http://qunet.physics.siu.edu/|Qunet Homepage&lt;br /&gt;
** helppage|help&lt;br /&gt;
* SEARCH&lt;br /&gt;
* LANGUAGES&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=435</id>
		<title>Index</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=435"/>
		<updated>2010-02-26T03:58:49Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;big&amp;gt;A&amp;lt;/big&amp;gt;&lt;br /&gt;
:average - [[Appendix A - Basic Probability Concepts|Appendix A]]&lt;br /&gt;
;&amp;lt;big&amp;gt;B&amp;lt;/big&amp;gt;&lt;br /&gt;
:basic vectors real - [[Appendix C - Vectors and Linear Algebra#Real Vectors|Appendix C]]&lt;br /&gt;
:bit - [[Chapter 1#Bits and qubits: An Introduction|Chapter 1]]&lt;br /&gt;
:bit-flip operation - [[Chapter 2 - Qubits and Collections of Qubits#Examples of Important Qubit Gates|Chapter 2]]&lt;br /&gt;
:Bloch Sphere - [[Chapter 3 - Physics of Quantum Information#Density Matrix for Mixed States|Chapter 3]], [[Chapter 3 - Physics of Quantum Information#Two-State Example: Bloch Sphere|Chapter 3]]&lt;br /&gt;
;&amp;lt;big&amp;gt;C&amp;lt;/big&amp;gt;&lt;br /&gt;
:closed-system evolution&lt;br /&gt;
:CNOT gate(see controlled NOT)&lt;br /&gt;
:commutator&lt;br /&gt;
:complex conjugate&lt;br /&gt;
::of a matrix&lt;br /&gt;
:complex number&lt;br /&gt;
:computational basis&lt;br /&gt;
:controlled NOT&lt;br /&gt;
:controlled phase gate&lt;br /&gt;
:controlled unitary operation&lt;br /&gt;
;&amp;lt;big&amp;gt;D&amp;lt;/big&amp;gt;&lt;br /&gt;
:decoherence&lt;br /&gt;
:degenerate&lt;br /&gt;
:delta&lt;br /&gt;
::Kronecker&lt;br /&gt;
:dense coding&lt;br /&gt;
:density matrix&lt;br /&gt;
::for two qubits&lt;br /&gt;
::mixed state&lt;br /&gt;
::pure state&lt;br /&gt;
:density operator&lt;br /&gt;
:determinant&lt;br /&gt;
:DiVencenzo's requirements&lt;br /&gt;
:density matrix&lt;br /&gt;
:dot product&lt;br /&gt;
;&amp;lt;big&amp;gt;E&amp;lt;/big&amp;gt;&lt;br /&gt;
:eigenvalue decomposition&lt;br /&gt;
:eigenvalues&lt;br /&gt;
:eigenvector&lt;br /&gt;
:eigenvectors&lt;br /&gt;
:entangled state&lt;br /&gt;
:expectation value&lt;br /&gt;
;&amp;lt;big&amp;gt;H&amp;lt;/big&amp;gt;&lt;br /&gt;
:Hadamard gate&lt;br /&gt;
:Hamiltonian&lt;br /&gt;
:Hermitian matrix&lt;br /&gt;
:Hilbert-Schmidt inner product&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
;&amp;lt;big&amp;gt;I&amp;lt;/big&amp;gt;&lt;br /&gt;
:inner product&lt;br /&gt;
:inverse&lt;br /&gt;
;&amp;lt;big&amp;gt;K&amp;lt;/big&amp;gt;&lt;br /&gt;
:ket&lt;br /&gt;
:Kraus operators&lt;br /&gt;
:Kronecker delta&lt;br /&gt;
:Kronecker product&lt;br /&gt;
;&amp;lt;big&amp;gt;L&amp;lt;/big&amp;gt;&lt;br /&gt;
:local operations&lt;br /&gt;
:local unitarty transformations&lt;br /&gt;
;&amp;lt;big&amp;gt;M&amp;lt;/big&amp;gt;&lt;br /&gt;
:maximally entangled states&lt;br /&gt;
:maximally mixed state&lt;br /&gt;
::two qubits&lt;br /&gt;
:mean&lt;br /&gt;
:median&lt;br /&gt;
:mixed state density matrix&lt;br /&gt;
:modulus squared&lt;br /&gt;
;&amp;lt;big&amp;gt;O&amp;lt;/big&amp;gt;&lt;br /&gt;
:open quantum systems&lt;br /&gt;
:open-system evolution&lt;br /&gt;
:operator-sum decomposition&lt;br /&gt;
:orthogonal&lt;br /&gt;
::vectors&lt;br /&gt;
;&amp;lt;big&amp;gt;P&amp;lt;/big&amp;gt;&lt;br /&gt;
:partial trace&lt;br /&gt;
::of a Bell state&lt;br /&gt;
:Pauli matrices&lt;br /&gt;
:phase gate&lt;br /&gt;
:phase-flip&lt;br /&gt;
:Planck's constant&lt;br /&gt;
:projection operator&lt;br /&gt;
;&amp;lt;big&amp;gt;Q&amp;lt;/big&amp;gt;&lt;br /&gt;
:Qbit&lt;br /&gt;
:quantum bit&lt;br /&gt;
:quantum dense coding&lt;br /&gt;
:quantum gates&lt;br /&gt;
:qubit&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
;&amp;lt;big&amp;gt;R&amp;lt;/big&amp;gt;&lt;br /&gt;
:reduced density operator&lt;br /&gt;
::of a Bell state&lt;br /&gt;
:reduced density matrix&lt;br /&gt;
::see reduced density operator&lt;br /&gt;
:reduced density operator&lt;br /&gt;
;&amp;lt;big&amp;gt;S&amp;lt;/big&amp;gt;&lt;br /&gt;
:scalability&lt;br /&gt;
:Schrodinger Equation&lt;br /&gt;
::for density matrix&lt;br /&gt;
:Schrodinger equation&lt;br /&gt;
:separable state&lt;br /&gt;
::simply separable&lt;br /&gt;
:similar matrices&lt;br /&gt;
:similarity transformation&lt;br /&gt;
:singular values&lt;br /&gt;
:special unitary matrix&lt;br /&gt;
:spectrum&lt;br /&gt;
:standard deviation&lt;br /&gt;
:SU&lt;br /&gt;
;&amp;lt;big&amp;gt;T&amp;lt;/big&amp;gt;&lt;br /&gt;
:tensor product&lt;br /&gt;
:trace&lt;br /&gt;
::partial(see partial trace)&lt;br /&gt;
:transpose&lt;br /&gt;
;&amp;lt;big&amp;gt;U&amp;lt;/big&amp;gt;&lt;br /&gt;
:uncertainty principle&lt;br /&gt;
:unitary matrix&lt;br /&gt;
:universal set of gates&lt;br /&gt;
:universality&lt;br /&gt;
;&amp;lt;big&amp;gt;V&amp;lt;/big&amp;gt;&lt;br /&gt;
:variance&lt;br /&gt;
;&amp;lt;big&amp;gt;X&amp;lt;/big&amp;gt;&lt;br /&gt;
:x-gate&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=434</id>
		<title>Index</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=434"/>
		<updated>2010-02-26T03:52:40Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;big&amp;gt;A&amp;lt;/big&amp;gt;&lt;br /&gt;
:average - [[Appendix A - Basic Probability Concepts|Appendix A]]&lt;br /&gt;
;&amp;lt;big&amp;gt;B&amp;lt;/big&amp;gt;&lt;br /&gt;
:basic vectors real - [[Appendix C - Vectors and Linear Algebra#Real Vectors|Appendix C]]&lt;br /&gt;
:bit - [[Chapter 1#Bits and qubits: An Introduction|Chapter 1]]&lt;br /&gt;
:bit-flip operation - [[Chapter 2 - Qubits and Collections of Qubits#Examples of Important Qubit Gates|Chapter 2]]&lt;br /&gt;
:Bloch Sphere - [[Chapter 3 - Physics of Quantum Information#Density Matrix for Mixed States|Chapter 3]], [[Chapter 3 - Physics of Quantum Information#Two-State Example: Bloch Sphere|Chapter 3]]&lt;br /&gt;
;&amp;lt;big&amp;gt;C&amp;lt;/big&amp;gt;&lt;br /&gt;
:closed-system evolution&lt;br /&gt;
:CNOT gate(see controlled NOT)&lt;br /&gt;
:commutator&lt;br /&gt;
:complex conjugate&lt;br /&gt;
::of a matrix&lt;br /&gt;
:complex number&lt;br /&gt;
:computational basis&lt;br /&gt;
:controlled NOT&lt;br /&gt;
:controlled phase gate&lt;br /&gt;
:controlled unitary operation&lt;br /&gt;
;&amp;lt;big&amp;gt;D&amp;lt;/big&amp;gt;&lt;br /&gt;
:decoherence&lt;br /&gt;
:degenerate&lt;br /&gt;
:delta&lt;br /&gt;
::Kronecker&lt;br /&gt;
:dense coding&lt;br /&gt;
:density matrix&lt;br /&gt;
::for two qubits&lt;br /&gt;
::mixed state&lt;br /&gt;
::pure state&lt;br /&gt;
:density operator&lt;br /&gt;
:determinant&lt;br /&gt;
:DiVencenzo's requirements&lt;br /&gt;
:density matrix&lt;br /&gt;
:dot product&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
;&amp;lt;big&amp;gt;E&amp;lt;/big&amp;gt;&lt;br /&gt;
:eigenvalue decomposition&lt;br /&gt;
:eigenvalues&lt;br /&gt;
:eigenvector&lt;br /&gt;
:eigenvectors&lt;br /&gt;
:entangled state&lt;br /&gt;
:expectation value&lt;br /&gt;
;&amp;lt;big&amp;gt;H&amp;lt;/big&amp;gt;&lt;br /&gt;
:Hadamard gate&lt;br /&gt;
:Hamiltonian&lt;br /&gt;
:Hermitian matrix&lt;br /&gt;
:Hilbert-Schmidt inner product&lt;br /&gt;
;&amp;lt;big&amp;gt;I&amp;lt;/big&amp;gt;&lt;br /&gt;
:inner product&lt;br /&gt;
:inverse&lt;br /&gt;
;&amp;lt;big&amp;gt;K&amp;lt;/big&amp;gt;&lt;br /&gt;
:ket&lt;br /&gt;
:Kraus operators&lt;br /&gt;
:Kronecker delta&lt;br /&gt;
:Kronecker product&lt;br /&gt;
;&amp;lt;big&amp;gt;L&amp;lt;/big&amp;gt;&lt;br /&gt;
:local operations&lt;br /&gt;
:local unitarty transformations&lt;br /&gt;
;&amp;lt;big&amp;gt;M&amp;lt;/big&amp;gt;&lt;br /&gt;
:maximally entangled states&lt;br /&gt;
:maximally mixed state&lt;br /&gt;
::two qubits&lt;br /&gt;
:mean&lt;br /&gt;
:median&lt;br /&gt;
:mixed state density matrix&lt;br /&gt;
:modulus squared&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
;&amp;lt;big&amp;gt;O&amp;lt;/big&amp;gt;&lt;br /&gt;
:open quantum systems&lt;br /&gt;
:open-system evolution&lt;br /&gt;
:operator-sum decomposition&lt;br /&gt;
:orthogonal&lt;br /&gt;
::vectors&lt;br /&gt;
;&amp;lt;big&amp;gt;P&amp;lt;/big&amp;gt;&lt;br /&gt;
:partial trace&lt;br /&gt;
::of a Bell state&lt;br /&gt;
:Pauli matrices&lt;br /&gt;
:phase gate&lt;br /&gt;
:phase-flip&lt;br /&gt;
:Planck's constant&lt;br /&gt;
:projection operator&lt;br /&gt;
;&amp;lt;big&amp;gt;Q&amp;lt;/big&amp;gt;&lt;br /&gt;
:Qbit&lt;br /&gt;
:quantum bit&lt;br /&gt;
:quantum dense coding&lt;br /&gt;
:quantum gates&lt;br /&gt;
:qubit&lt;br /&gt;
;&amp;lt;big&amp;gt;R&amp;lt;/big&amp;gt;&lt;br /&gt;
:reduced density operator&lt;br /&gt;
::of a Bell state&lt;br /&gt;
:reduced density matrix&lt;br /&gt;
::see reduced density operator&lt;br /&gt;
:reduced density operator&lt;br /&gt;
;&amp;lt;big&amp;gt;S&amp;lt;/big&amp;gt;&lt;br /&gt;
:scalability&lt;br /&gt;
:Schrodinger Equation&lt;br /&gt;
::for density matrix&lt;br /&gt;
:Schrodinger equation&lt;br /&gt;
:separable state&lt;br /&gt;
::simply separable&lt;br /&gt;
:similar matrices&lt;br /&gt;
:similarity transformation&lt;br /&gt;
:singular values&lt;br /&gt;
:special unitary matrix&lt;br /&gt;
:spectrum&lt;br /&gt;
:standard deviation&lt;br /&gt;
:SU&lt;br /&gt;
;&amp;lt;big&amp;gt;T&amp;lt;/big&amp;gt;&lt;br /&gt;
:tensor product&lt;br /&gt;
:trace&lt;br /&gt;
::partial(see partial trace)&lt;br /&gt;
:transpose&lt;br /&gt;
;&amp;lt;big&amp;gt;U&amp;lt;/big&amp;gt;&lt;br /&gt;
:uncertainty principle&lt;br /&gt;
:unitary matrix&lt;br /&gt;
:universal set of gates&lt;br /&gt;
:universality&lt;br /&gt;
;&amp;lt;big&amp;gt;V&amp;lt;/big&amp;gt;&lt;br /&gt;
:variance&lt;br /&gt;
;&amp;lt;big&amp;gt;X&amp;lt;/big&amp;gt;&lt;br /&gt;
:x-gate&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=433</id>
		<title>Index</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=433"/>
		<updated>2010-02-26T03:25:49Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: Protected &amp;quot;Index&amp;quot; ([edit=sysop] (indefinite) [move=sysop] (indefinite))&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;big&amp;gt;A&amp;lt;/big&amp;gt;&lt;br /&gt;
:average - [[Appendix A - Basic Probability Concepts|Appendix A]]&lt;br /&gt;
;&amp;lt;big&amp;gt;B&amp;lt;/big&amp;gt;&lt;br /&gt;
:basic vectors real - [[Appendix C - Vectors and Linear Algebra#Real Vectors|Appendix C]]&lt;br /&gt;
:bit - [[Chapter 1#Bits and qubits: An Introduction|Chapter 1]]&lt;br /&gt;
:bit-flip operation - [[Chapter 2 - Qubits and Collections of Qubits#Examples of Important Qubit Gates|Chapter 2]]&lt;br /&gt;
:Bloch Sphere - [[Chapter 3 - Physics of Quantum Information#Density Matrix for Mixed States|Chapter 3]], [[Chapter 3 - Physics of Quantum Information#Two-State Example: Bloch Sphere|Chapter 3]]&lt;br /&gt;
;&amp;lt;big&amp;gt;C&amp;lt;/big&amp;gt;&lt;br /&gt;
:closed-system evolution&lt;br /&gt;
:CNOT gate(see controlled NOT)&lt;br /&gt;
:commutator&lt;br /&gt;
:complex conjugate&lt;br /&gt;
::of a matrix&lt;br /&gt;
:complex number&lt;br /&gt;
:computational basis&lt;br /&gt;
:controlled NOT&lt;br /&gt;
:controlled phase gate&lt;br /&gt;
:controlled unitary operation&lt;br /&gt;
;&amp;lt;big&amp;gt;D&amp;lt;/big&amp;gt;&lt;br /&gt;
:decoherence&lt;br /&gt;
:degenerate&lt;br /&gt;
:delta&lt;br /&gt;
::Kronecker&lt;br /&gt;
:dense coding&lt;br /&gt;
:density matrix&lt;br /&gt;
::for two qubits&lt;br /&gt;
::mixed state&lt;br /&gt;
::pure state&lt;br /&gt;
:density operator&lt;br /&gt;
:determinant&lt;br /&gt;
:DiVencenzo's requirements&lt;br /&gt;
:density matrix&lt;br /&gt;
:dot product&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
;&amp;lt;big&amp;gt;E&amp;lt;/big&amp;gt;&lt;br /&gt;
:eigenvalue decomposition&lt;br /&gt;
:eigenvalues&lt;br /&gt;
:eigenvector&lt;br /&gt;
:eigenvectors&lt;br /&gt;
:entangled state&lt;br /&gt;
:expectation value&lt;br /&gt;
;&amp;lt;big&amp;gt;H&amp;lt;/big&amp;gt;&lt;br /&gt;
:Hadamard gate&lt;br /&gt;
:Hamiltonian&lt;br /&gt;
:Hermitian matrix&lt;br /&gt;
:Hilbert-Schmidt inner product&lt;br /&gt;
;&amp;lt;big&amp;gt;I&amp;lt;/big&amp;gt;&lt;br /&gt;
:inner product&lt;br /&gt;
:inverse&lt;br /&gt;
;&amp;lt;big&amp;gt;K&amp;lt;/big&amp;gt;&lt;br /&gt;
:ket&lt;br /&gt;
:Kraus operators&lt;br /&gt;
:Kronecker delta&lt;br /&gt;
:Kronecker product&lt;br /&gt;
;&amp;lt;big&amp;gt;L&amp;lt;/big&amp;gt;&lt;br /&gt;
:local operations&lt;br /&gt;
:local unitarty transformations&lt;br /&gt;
;&amp;lt;big&amp;gt;M&amp;lt;/big&amp;gt;&lt;br /&gt;
:maximally entangled states&lt;br /&gt;
:maximally mixed state&lt;br /&gt;
::two qubits&lt;br /&gt;
:mean&lt;br /&gt;
:median&lt;br /&gt;
:mixed state density matrix&lt;br /&gt;
:modulus squared&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=432</id>
		<title>Index</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=432"/>
		<updated>2010-02-26T03:22:49Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;big&amp;gt;A&amp;lt;/big&amp;gt;&lt;br /&gt;
:average - [[Appendix A - Basic Probability Concepts|Appendix A]]&lt;br /&gt;
;&amp;lt;big&amp;gt;B&amp;lt;/big&amp;gt;&lt;br /&gt;
:basic vectors real - [[Appendix C - Vectors and Linear Algebra#Real Vectors|Appendix C]]&lt;br /&gt;
:bit - [[Chapter 1#Bits and qubits: An Introduction|Chapter 1]]&lt;br /&gt;
:bit-flip operation - [[Chapter 2 - Qubits and Collections of Qubits#Examples of Important Qubit Gates|Chapter 2]]&lt;br /&gt;
:Bloch Sphere - [[Chapter 3 - Physics of Quantum Information#Density Matrix for Mixed States|Chapter 3]], [[Chapter 3 - Physics of Quantum Information#Two-State Example: Bloch Sphere|Chapter 3]]&lt;br /&gt;
;&amp;lt;big&amp;gt;C&amp;lt;/big&amp;gt;&lt;br /&gt;
:closed-system evolution&lt;br /&gt;
:CNOT gate(see controlled NOT)&lt;br /&gt;
:commutator&lt;br /&gt;
:complex conjugate&lt;br /&gt;
::of a matrix&lt;br /&gt;
:complex number&lt;br /&gt;
:computational basis&lt;br /&gt;
:controlled NOT&lt;br /&gt;
:controlled phase gate&lt;br /&gt;
:controlled unitary operation&lt;br /&gt;
;&amp;lt;big&amp;gt;D&amp;lt;/big&amp;gt;&lt;br /&gt;
:decoherence&lt;br /&gt;
:degenerate&lt;br /&gt;
:delta&lt;br /&gt;
::Kronecker&lt;br /&gt;
:dense coding&lt;br /&gt;
:density matrix&lt;br /&gt;
::for two qubits&lt;br /&gt;
::mixed state&lt;br /&gt;
::pure state&lt;br /&gt;
:density operator&lt;br /&gt;
:determinant&lt;br /&gt;
:DiVencenzo's requirements&lt;br /&gt;
:density matrix&lt;br /&gt;
:dot product&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
;&amp;lt;big&amp;gt;E&amp;lt;/big&amp;gt;&lt;br /&gt;
:eigenvalue decomposition&lt;br /&gt;
:eigenvalues&lt;br /&gt;
:eigenvector&lt;br /&gt;
:eigenvectors&lt;br /&gt;
:entangled state&lt;br /&gt;
:expectation value&lt;br /&gt;
;&amp;lt;big&amp;gt;H&amp;lt;/big&amp;gt;&lt;br /&gt;
:Hadamard gate&lt;br /&gt;
:Hamiltonian&lt;br /&gt;
:Hermitian matrix&lt;br /&gt;
:Hilbert-Schmidt inner product&lt;br /&gt;
;&amp;lt;big&amp;gt;I&amp;lt;/big&amp;gt;&lt;br /&gt;
:inner product&lt;br /&gt;
:inverse&lt;br /&gt;
;&amp;lt;big&amp;gt;K&amp;lt;/big&amp;gt;&lt;br /&gt;
:ket&lt;br /&gt;
:Kraus operators&lt;br /&gt;
:Kronecker delta&lt;br /&gt;
:Kronecker product&lt;br /&gt;
;&amp;lt;big&amp;gt;L&amp;lt;/big&amp;gt;&lt;br /&gt;
:local operations&lt;br /&gt;
:local unitarty transformations&lt;br /&gt;
;&amp;lt;big&amp;gt;M&amp;lt;/big&amp;gt;&lt;br /&gt;
:maximally entangled states&lt;br /&gt;
:maximally mixed state&lt;br /&gt;
::two qubits&lt;br /&gt;
:mean&lt;br /&gt;
:median&lt;br /&gt;
:mixed state density matrix&lt;br /&gt;
:modulus squared&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=431</id>
		<title>Index</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=431"/>
		<updated>2010-02-26T03:22:16Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;big&amp;gt;A&amp;lt;/big&amp;gt;&lt;br /&gt;
:average - [[Appendix A - Basic Probability Concepts|Appendix A]]&lt;br /&gt;
;&amp;lt;big&amp;gt;B&amp;lt;/big&amp;gt;&lt;br /&gt;
:basic vectors real - [[Appendix C - Vectors and Linear Algebra#Real Vectors|Appendix C]]&lt;br /&gt;
:bit[[Chapter 1#Bits and qubits: An Introduction|Chapter 1]]&lt;br /&gt;
:bit-flip operation[[Chapter 2 - Qubits and Collections of Qubits#Examples of Important Qubit Gates|Chapter 2]]&lt;br /&gt;
:Bloch Sphere[[Chapter 3 - Physics of Quantum Information#Density Matrix for Mixed States|Chapter 3]], [[Chapter 3 - Physics of Quantum Information#Two-State Example: Bloch Sphere|Chapter 3]]&lt;br /&gt;
;&amp;lt;big&amp;gt;C&amp;lt;/big&amp;gt;&lt;br /&gt;
:closed-system evolution&lt;br /&gt;
:CNOT gate(see controlled NOT)&lt;br /&gt;
:commutator&lt;br /&gt;
:complex conjugate&lt;br /&gt;
::of a matrix&lt;br /&gt;
:complex number&lt;br /&gt;
:computational basis&lt;br /&gt;
:controlled NOT&lt;br /&gt;
:controlled phase gate&lt;br /&gt;
:controlled unitary operation&lt;br /&gt;
;&amp;lt;big&amp;gt;D&amp;lt;/big&amp;gt;&lt;br /&gt;
:decoherence&lt;br /&gt;
:degenerate&lt;br /&gt;
:delta&lt;br /&gt;
::Kronecker&lt;br /&gt;
:dense coding&lt;br /&gt;
:density matrix&lt;br /&gt;
::for two qubits&lt;br /&gt;
::mixed state&lt;br /&gt;
::pure state&lt;br /&gt;
:density operator&lt;br /&gt;
:determinant&lt;br /&gt;
:DiVencenzo's requirements&lt;br /&gt;
:density matrix&lt;br /&gt;
:dot product&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
;&amp;lt;big&amp;gt;E&amp;lt;/big&amp;gt;&lt;br /&gt;
:eigenvalue decomposition&lt;br /&gt;
:eigenvalues&lt;br /&gt;
:eigenvector&lt;br /&gt;
:eigenvectors&lt;br /&gt;
:entangled state&lt;br /&gt;
:expectation value&lt;br /&gt;
;&amp;lt;big&amp;gt;H&amp;lt;/big&amp;gt;&lt;br /&gt;
:Hadamard gate&lt;br /&gt;
:Hamiltonian&lt;br /&gt;
:Hermitian matrix&lt;br /&gt;
:Hilbert-Schmidt inner product&lt;br /&gt;
;&amp;lt;big&amp;gt;I&amp;lt;/big&amp;gt;&lt;br /&gt;
:inner product&lt;br /&gt;
:inverse&lt;br /&gt;
;&amp;lt;big&amp;gt;K&amp;lt;/big&amp;gt;&lt;br /&gt;
:ket&lt;br /&gt;
:Kraus operators&lt;br /&gt;
:Kronecker delta&lt;br /&gt;
:Kronecker product&lt;br /&gt;
;&amp;lt;big&amp;gt;L&amp;lt;/big&amp;gt;&lt;br /&gt;
:local operations&lt;br /&gt;
:local unitarty transformations&lt;br /&gt;
;&amp;lt;big&amp;gt;M&amp;lt;/big&amp;gt;&lt;br /&gt;
:maximally entangled states&lt;br /&gt;
:maximally mixed state&lt;br /&gt;
::two qubits&lt;br /&gt;
:mean&lt;br /&gt;
:median&lt;br /&gt;
:mixed state density matrix&lt;br /&gt;
:modulus squared&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=430</id>
		<title>Index</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=430"/>
		<updated>2010-02-26T03:17:50Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;big&amp;gt;A&amp;lt;/big&amp;gt;&lt;br /&gt;
:average - [[Appendix A - Basic Probability Concepts|Appendix A]]&lt;br /&gt;
;&amp;lt;big&amp;gt;B&amp;lt;/big&amp;gt;&lt;br /&gt;
:basic vectors real - [[Appendix C - Vectors and Linear Algebra#Real Vectors|Appendix C]]&lt;br /&gt;
:bit&lt;br /&gt;
:bit-flip operation&lt;br /&gt;
:Bloch Sphere&lt;br /&gt;
;&amp;lt;big&amp;gt;C&amp;lt;/big&amp;gt;&lt;br /&gt;
:closed-system evolution&lt;br /&gt;
:CNOT gate(see controlled NOT)&lt;br /&gt;
:commutator&lt;br /&gt;
:complex conjugate&lt;br /&gt;
::of a matrix&lt;br /&gt;
:complex number&lt;br /&gt;
:computational basis&lt;br /&gt;
:controlled NOT&lt;br /&gt;
:controlled phase gate&lt;br /&gt;
:controlled unitary operation&lt;br /&gt;
;&amp;lt;big&amp;gt;D&amp;lt;/big&amp;gt;&lt;br /&gt;
:decoherence&lt;br /&gt;
:degenerate&lt;br /&gt;
:delta&lt;br /&gt;
::Kronecker&lt;br /&gt;
:dense coding&lt;br /&gt;
:density matrix&lt;br /&gt;
::for two qubits&lt;br /&gt;
::mixed state&lt;br /&gt;
::pure state&lt;br /&gt;
:density operator&lt;br /&gt;
:determinant&lt;br /&gt;
:DiVencenzo's requirements&lt;br /&gt;
:density matrix&lt;br /&gt;
:dot product&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
;&amp;lt;big&amp;gt;E&amp;lt;/big&amp;gt;&lt;br /&gt;
:eigenvalue decomposition&lt;br /&gt;
:eigenvalues&lt;br /&gt;
:eigenvector&lt;br /&gt;
:eigenvectors&lt;br /&gt;
:entangled state&lt;br /&gt;
:expectation value&lt;br /&gt;
;&amp;lt;big&amp;gt;H&amp;lt;/big&amp;gt;&lt;br /&gt;
:Hadamard gate&lt;br /&gt;
:Hamiltonian&lt;br /&gt;
:Hermitian matrix&lt;br /&gt;
:Hilbert-Schmidt inner product&lt;br /&gt;
;&amp;lt;big&amp;gt;I&amp;lt;/big&amp;gt;&lt;br /&gt;
:inner product&lt;br /&gt;
:inverse&lt;br /&gt;
;&amp;lt;big&amp;gt;K&amp;lt;/big&amp;gt;&lt;br /&gt;
:ket&lt;br /&gt;
:Kraus operators&lt;br /&gt;
:Kronecker delta&lt;br /&gt;
:Kronecker product&lt;br /&gt;
;&amp;lt;big&amp;gt;L&amp;lt;/big&amp;gt;&lt;br /&gt;
:local operations&lt;br /&gt;
:local unitarty transformations&lt;br /&gt;
;&amp;lt;big&amp;gt;M&amp;lt;/big&amp;gt;&lt;br /&gt;
:maximally entangled states&lt;br /&gt;
:maximally mixed state&lt;br /&gt;
::two qubits&lt;br /&gt;
:mean&lt;br /&gt;
:median&lt;br /&gt;
:mixed state density matrix&lt;br /&gt;
:modulus squared&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=429</id>
		<title>Index</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=429"/>
		<updated>2010-02-26T03:11:38Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;big&amp;gt;A&amp;lt;/big&amp;gt;&lt;br /&gt;
:average&lt;br /&gt;
;&amp;lt;big&amp;gt;B&amp;lt;/big&amp;gt;&lt;br /&gt;
:basic vectors read&lt;br /&gt;
:bit&lt;br /&gt;
:bit-flip operation&lt;br /&gt;
:Bloch Sphere&lt;br /&gt;
;&amp;lt;big&amp;gt;C&amp;lt;/big&amp;gt;&lt;br /&gt;
:closed-system evolution&lt;br /&gt;
:CNOT gate(see controlled NOT)&lt;br /&gt;
:commutator&lt;br /&gt;
:complex conjugate&lt;br /&gt;
::of a matrix&lt;br /&gt;
:complex number&lt;br /&gt;
:computational basis&lt;br /&gt;
:controlled NOT&lt;br /&gt;
:controlled phase gate&lt;br /&gt;
:controlled unitary operation&lt;br /&gt;
;&amp;lt;big&amp;gt;D&amp;lt;/big&amp;gt;&lt;br /&gt;
:decoherence&lt;br /&gt;
:degenerate&lt;br /&gt;
:delta&lt;br /&gt;
::Kronecker&lt;br /&gt;
:dense coding&lt;br /&gt;
:density matrix&lt;br /&gt;
::for two qubits&lt;br /&gt;
::mixed state&lt;br /&gt;
::pure state&lt;br /&gt;
:density operator&lt;br /&gt;
:determinant&lt;br /&gt;
:DiVencenzo's requirements&lt;br /&gt;
:density matrix&lt;br /&gt;
:dot product&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
;&amp;lt;big&amp;gt;E&amp;lt;/big&amp;gt;&lt;br /&gt;
:eigenvalue decomposition&lt;br /&gt;
:eigenvalues&lt;br /&gt;
:eigenvector&lt;br /&gt;
:eigenvectors&lt;br /&gt;
:entangled state&lt;br /&gt;
:expectation value&lt;br /&gt;
;&amp;lt;big&amp;gt;H&amp;lt;/big&amp;gt;&lt;br /&gt;
:Hadamard gate&lt;br /&gt;
:Hamiltonian&lt;br /&gt;
:Hermitian matrix&lt;br /&gt;
:Hilbert-Schmidt inner product&lt;br /&gt;
;&amp;lt;big&amp;gt;I&amp;lt;/big&amp;gt;&lt;br /&gt;
:inner product&lt;br /&gt;
:inverse&lt;br /&gt;
;&amp;lt;big&amp;gt;K&amp;lt;/big&amp;gt;&lt;br /&gt;
:ket&lt;br /&gt;
:Kraus operators&lt;br /&gt;
:Kronecker delta&lt;br /&gt;
:Kronecker product&lt;br /&gt;
;&amp;lt;big&amp;gt;L&amp;lt;/big&amp;gt;&lt;br /&gt;
:local operations&lt;br /&gt;
:local unitarty transformations&lt;br /&gt;
;&amp;lt;big&amp;gt;M&amp;lt;/big&amp;gt;&lt;br /&gt;
:maximally entangled states&lt;br /&gt;
:maximally mixed state&lt;br /&gt;
::two qubits&lt;br /&gt;
:mean&lt;br /&gt;
:median&lt;br /&gt;
:mixed state density matrix&lt;br /&gt;
:modulus squared&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=428</id>
		<title>Index</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=428"/>
		<updated>2010-02-26T03:10:10Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;big&amp;gt;A&amp;lt;/big&amp;gt;&lt;br /&gt;
:average&lt;br /&gt;
;&amp;lt;big&amp;gt;B&amp;lt;/big&amp;gt;&lt;br /&gt;
:basic vectors read&lt;br /&gt;
:bit&lt;br /&gt;
:bit-flip operation&lt;br /&gt;
:Bloch Sphere&lt;br /&gt;
;C&lt;br /&gt;
:closed-system evolution&lt;br /&gt;
:CNOT gate(see controlled NOT)&lt;br /&gt;
:commutator&lt;br /&gt;
:complex conjugate&lt;br /&gt;
::of a matrix&lt;br /&gt;
:complex number&lt;br /&gt;
:computational basis&lt;br /&gt;
:controlled NOT&lt;br /&gt;
:controlled phase gate&lt;br /&gt;
:controlled unitary operation&lt;br /&gt;
;D&lt;br /&gt;
:decoherence&lt;br /&gt;
:degenerate&lt;br /&gt;
:delta&lt;br /&gt;
::Kronecker&lt;br /&gt;
:dense coding&lt;br /&gt;
:density matrix&lt;br /&gt;
::for two qubits&lt;br /&gt;
::mixed state&lt;br /&gt;
::pure state&lt;br /&gt;
:density operator&lt;br /&gt;
:determinant&lt;br /&gt;
:DiVencenzo's requirements&lt;br /&gt;
:density matrix&lt;br /&gt;
:dot product&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
;E&lt;br /&gt;
:eigenvalue decomposition&lt;br /&gt;
:eigenvalues&lt;br /&gt;
:eigenvector&lt;br /&gt;
:eigenvectors&lt;br /&gt;
:entangled state&lt;br /&gt;
:expectation value&lt;br /&gt;
;H&lt;br /&gt;
:Hadamard gate&lt;br /&gt;
:Hamiltonian&lt;br /&gt;
:Hermitian matrix&lt;br /&gt;
:Hilbert-Schmidt inner product&lt;br /&gt;
;I&lt;br /&gt;
:inner product&lt;br /&gt;
:inverse&lt;br /&gt;
;K&lt;br /&gt;
:ket&lt;br /&gt;
:Kraus operators&lt;br /&gt;
:Kronecker delta&lt;br /&gt;
:Kronecker product&lt;br /&gt;
;L&lt;br /&gt;
:local operations&lt;br /&gt;
:local unitarty transformations&lt;br /&gt;
;M&lt;br /&gt;
:maximally entangled states&lt;br /&gt;
:maximally mixed state&lt;br /&gt;
::two qubits&lt;br /&gt;
:mean&lt;br /&gt;
:median&lt;br /&gt;
:mixed state density matrix&lt;br /&gt;
:modulus squared&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=427</id>
		<title>Index</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=427"/>
		<updated>2010-02-26T03:09:43Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;big&amp;gt;A&amp;lt;/big&amp;gt;&lt;br /&gt;
:average&lt;br /&gt;
;&amp;lt;big&amp;gt;B&amp;lt;/big&amp;gt;&lt;br /&gt;
:basic vectors read&lt;br /&gt;
:bit&lt;br /&gt;
:bit-flip operation&lt;br /&gt;
:Bloch Sphere&lt;br /&gt;
;C&lt;br /&gt;
:closed-system evolution&lt;br /&gt;
:CNOT gate(see controlled NOT)&lt;br /&gt;
:commutator&lt;br /&gt;
:complex conjugate&lt;br /&gt;
::of a matrix&lt;br /&gt;
:complex number&lt;br /&gt;
:computational basis&lt;br /&gt;
:controlled NOT&lt;br /&gt;
:controlled phase gate&lt;br /&gt;
:controlled unitary operation&lt;br /&gt;
;D&lt;br /&gt;
:decoherence&lt;br /&gt;
:degenerate&lt;br /&gt;
:delta&lt;br /&gt;
::Kronecker&lt;br /&gt;
:dense coding&lt;br /&gt;
:density matrix&lt;br /&gt;
::for two qubits&lt;br /&gt;
::mixed state&lt;br /&gt;
::pure state&lt;br /&gt;
:density operator&lt;br /&gt;
:determinant&lt;br /&gt;
:DiVencenzo's requirements&lt;br /&gt;
:density matrix&lt;br /&gt;
:dot product&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
;E&lt;br /&gt;
:eigenvalue decomposition&lt;br /&gt;
:eigenvalues&lt;br /&gt;
:eigenvector&lt;br /&gt;
:eigenvectors&lt;br /&gt;
:entangled state&lt;br /&gt;
:expectation value&lt;br /&gt;
;H&lt;br /&gt;
:Hadamard gate&lt;br /&gt;
:Hamiltonian&lt;br /&gt;
:Hermitian matrix&lt;br /&gt;
:Hilbert-Schmidt inner product&lt;br /&gt;
;I&lt;br /&gt;
:inner product&lt;br /&gt;
:inverse&lt;br /&gt;
;K&lt;br /&gt;
:ket&lt;br /&gt;
:Kraus operators&lt;br /&gt;
:Kronecker delta&lt;br /&gt;
:Kronecker product&lt;br /&gt;
;L&lt;br /&gt;
:local operations&lt;br /&gt;
:local unitarty transformations&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;M&lt;br /&gt;
:maximally entangled states&lt;br /&gt;
:maximally mixed state&lt;br /&gt;
::two qubits&lt;br /&gt;
:mean&lt;br /&gt;
:median&lt;br /&gt;
:mixed state density matrix&lt;br /&gt;
:modulus squared&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=426</id>
		<title>Index</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=426"/>
		<updated>2010-02-26T03:09:14Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;big&amp;gt;A&amp;lt;/big&amp;gt;&lt;br /&gt;
:average&lt;br /&gt;
;&amp;lt;big&amp;gt;B&amp;lt;/big&amp;gt;&lt;br /&gt;
:basic vectors read&lt;br /&gt;
:bit&lt;br /&gt;
:bit-flip operation&lt;br /&gt;
:Bloch Sphere&lt;br /&gt;
;C&lt;br /&gt;
:closed-system evolution&lt;br /&gt;
:CNOT gate(see controlled NOT)&lt;br /&gt;
:commutator&lt;br /&gt;
:complex conjugate&lt;br /&gt;
::of a matrix&lt;br /&gt;
:complex number&lt;br /&gt;
:computational basis&lt;br /&gt;
:controlled NOT&lt;br /&gt;
:controlled phase gate&lt;br /&gt;
:controlled unitary operation&lt;br /&gt;
;D&lt;br /&gt;
:decoherence&lt;br /&gt;
:degenerate&lt;br /&gt;
:delta&lt;br /&gt;
::Kronecker&lt;br /&gt;
:dense coding&lt;br /&gt;
:density matrix&lt;br /&gt;
::for two qubits&lt;br /&gt;
::mixed state&lt;br /&gt;
::pure state&lt;br /&gt;
:density operator&lt;br /&gt;
:determinant&lt;br /&gt;
:DiVencenzo's requirements&lt;br /&gt;
:density matrix&lt;br /&gt;
:dot product&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
;E&lt;br /&gt;
:eigenvalue decomposition&lt;br /&gt;
:eigenvalues&lt;br /&gt;
:eigenvector&lt;br /&gt;
:eigenvectors&lt;br /&gt;
:entangled state&lt;br /&gt;
:expectation value&lt;br /&gt;
;H&lt;br /&gt;
:Hadamard gate&lt;br /&gt;
:Hamiltonian&lt;br /&gt;
:Hermitian matrix&lt;br /&gt;
:Hilbert-Schmidt inner product&lt;br /&gt;
;I&lt;br /&gt;
:inner product&lt;br /&gt;
:inverse&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
;K&lt;br /&gt;
:ket&lt;br /&gt;
:Kraus operators&lt;br /&gt;
:Kronecker delta&lt;br /&gt;
:Kronecker product&lt;br /&gt;
;L&lt;br /&gt;
:local operations&lt;br /&gt;
:local unitarty transformations&lt;br /&gt;
;M&lt;br /&gt;
:maximally entangled states&lt;br /&gt;
:maximally mixed state&lt;br /&gt;
::two qubits&lt;br /&gt;
:mean&lt;br /&gt;
:median&lt;br /&gt;
:mixed state density matrix&lt;br /&gt;
:modulus squared&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=425</id>
		<title>Index</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=425"/>
		<updated>2010-02-26T03:05:11Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;big&amp;gt;A&amp;lt;/big&amp;gt;&lt;br /&gt;
:average&lt;br /&gt;
;&amp;lt;big&amp;gt;B&amp;lt;/big&amp;gt;&lt;br /&gt;
:basic vectors read&lt;br /&gt;
:bit&lt;br /&gt;
:bit-flip operation&lt;br /&gt;
:Bloch Sphere&lt;br /&gt;
;C&lt;br /&gt;
:closed-system evolution&lt;br /&gt;
:CNOT gate(see controlled NOT)&lt;br /&gt;
:commutator&lt;br /&gt;
:complex conjugate&lt;br /&gt;
::of a matrix&lt;br /&gt;
:complex number&lt;br /&gt;
:computational basis&lt;br /&gt;
:controlled NOT&lt;br /&gt;
:controlled phase gate&lt;br /&gt;
:controlled unitary operation&lt;br /&gt;
;D&lt;br /&gt;
:decoherence&lt;br /&gt;
:degenerate&lt;br /&gt;
:delta&lt;br /&gt;
::Kronecker&lt;br /&gt;
:dense coding&lt;br /&gt;
:density matrix&lt;br /&gt;
::for two qubits&lt;br /&gt;
::mixed state&lt;br /&gt;
::pure state&lt;br /&gt;
:density operator&lt;br /&gt;
:determinant&lt;br /&gt;
:DiVencenzo's requirements&lt;br /&gt;
:density matrix&lt;br /&gt;
:dot product&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
;E&lt;br /&gt;
:eigenvalue decomposition&lt;br /&gt;
:eigenvalues&lt;br /&gt;
:eigenvector&lt;br /&gt;
:eigenvectors&lt;br /&gt;
:entangled state&lt;br /&gt;
:expectation value&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;float: left; width: 33%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=424</id>
		<title>Index</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=424"/>
		<updated>2010-02-26T03:00:07Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;;&amp;lt;big&amp;gt;A&amp;lt;/big&amp;gt;&lt;br /&gt;
:average&lt;br /&gt;
;&amp;lt;big&amp;gt;B&amp;lt;/big&amp;gt;&lt;br /&gt;
:basic vectors read&lt;br /&gt;
:bit&lt;br /&gt;
:bit-flip operation&lt;br /&gt;
:Bloch Sphere&lt;br /&gt;
;C&lt;br /&gt;
:closed-system evolution&lt;br /&gt;
:CNOT gate(see controlled NOT)&lt;br /&gt;
:commutator&lt;br /&gt;
:complex conjugate&lt;br /&gt;
::of a matrix&lt;br /&gt;
:complex number&lt;br /&gt;
:computational basis&lt;br /&gt;
:controlled NOT&lt;br /&gt;
:controlled phase gate&lt;br /&gt;
:controlled unitary operation&lt;br /&gt;
;D&lt;br /&gt;
:decoherence&lt;br /&gt;
:degenerate&lt;br /&gt;
:delta&lt;br /&gt;
::Kronecker&lt;br /&gt;
:dense coding&lt;br /&gt;
:density matrix&lt;br /&gt;
::for two qubits&lt;br /&gt;
::mixed state&lt;br /&gt;
::pure state&lt;br /&gt;
:density operator&lt;br /&gt;
:determinant&lt;br /&gt;
:DiVencenzo's requirements&lt;br /&gt;
:density matrix&lt;br /&gt;
:dot product&lt;br /&gt;
;E&lt;br /&gt;
:eigenvalue decomposition&lt;br /&gt;
:eigenvalues&lt;br /&gt;
:eigenvector&lt;br /&gt;
:eigenvectors&lt;br /&gt;
:entangled state&lt;br /&gt;
:expectation value&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=423</id>
		<title>Index</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=423"/>
		<updated>2010-02-26T02:56:14Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{|style=&amp;quot;width:75%&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
;&amp;lt;big&amp;gt;A&amp;lt;/big&amp;gt;&lt;br /&gt;
:average&lt;br /&gt;
;&amp;lt;big&amp;gt;B&amp;lt;/big&amp;gt;&lt;br /&gt;
:basic vectors read&lt;br /&gt;
:bit&lt;br /&gt;
:bit-flip operation&lt;br /&gt;
:Bloch Sphere&lt;br /&gt;
;C&lt;br /&gt;
:closed-system evolution&lt;br /&gt;
:CNOT gate(see controlled NOT)&lt;br /&gt;
:commutator&lt;br /&gt;
:complex conjugate&lt;br /&gt;
::of a matrix&lt;br /&gt;
:complex number&lt;br /&gt;
:computational basis&lt;br /&gt;
:controlled NOT&lt;br /&gt;
||&lt;br /&gt;
;D&lt;br /&gt;
:decoherence&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=422</id>
		<title>Index</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=422"/>
		<updated>2010-02-26T02:54:05Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{|style=&amp;quot;width:75%&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
;&amp;lt;big&amp;gt;A&amp;lt;/big&amp;gt;&lt;br /&gt;
:average&lt;br /&gt;
;&amp;lt;big&amp;gt;B&amp;lt;/big&amp;gt;&lt;br /&gt;
:basic vectors read&lt;br /&gt;
:bit&lt;br /&gt;
:bit-flip operation&lt;br /&gt;
:Bloch Sphere&lt;br /&gt;
;C&lt;br /&gt;
:closed-system evolution&lt;br /&gt;
||&lt;br /&gt;
;D&lt;br /&gt;
:decoherence&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=421</id>
		<title>Index</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=421"/>
		<updated>2010-02-26T02:53:31Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{|style=&amp;quot;width:75%&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
;&amp;lt;big&amp;gt;A&amp;lt;/big&amp;gt;&lt;br /&gt;
:average&lt;br /&gt;
;&amp;lt;big&amp;gt;B&amp;lt;/big&amp;gt;&lt;br /&gt;
:basic vectors read&lt;br /&gt;
:bit&lt;br /&gt;
:bit-flip operation&lt;br /&gt;
:Bloch Sphere&lt;br /&gt;
;C&lt;br /&gt;
:closed-system evolution&lt;br /&gt;
|&lt;br /&gt;
;D&lt;br /&gt;
:decoherence&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=420</id>
		<title>Index</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=420"/>
		<updated>2010-02-26T02:52:33Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{|&lt;br /&gt;
|&lt;br /&gt;
;&amp;lt;big&amp;gt;A&amp;lt;/big&amp;gt;&lt;br /&gt;
:average&lt;br /&gt;
;&amp;lt;big&amp;gt;B&amp;lt;/big&amp;gt;&lt;br /&gt;
:basic vectors read&lt;br /&gt;
:bit&lt;br /&gt;
:bit-flip operation&lt;br /&gt;
:Bloch Sphere&lt;br /&gt;
;C&lt;br /&gt;
:closed-system evolution&lt;br /&gt;
|&lt;br /&gt;
;D&lt;br /&gt;
:decoherence&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=419</id>
		<title>Index</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Index&amp;diff=419"/>
		<updated>2010-02-26T02:51:51Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: Created page with '{| |;&amp;lt;big&amp;gt;A&amp;lt;/big&amp;gt; :average ;&amp;lt;big&amp;gt;B&amp;lt;/big&amp;gt; :basic vectors read :bit :bit-flip operation :Bloch Sphere ;C :closed-system evolution |;D :decoherence |}'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{|&lt;br /&gt;
|;&amp;lt;big&amp;gt;A&amp;lt;/big&amp;gt;&lt;br /&gt;
:average&lt;br /&gt;
;&amp;lt;big&amp;gt;B&amp;lt;/big&amp;gt;&lt;br /&gt;
:basic vectors read&lt;br /&gt;
:bit&lt;br /&gt;
:bit-flip operation&lt;br /&gt;
:Bloch Sphere&lt;br /&gt;
;C&lt;br /&gt;
:closed-system evolution&lt;br /&gt;
|;D&lt;br /&gt;
:decoherence&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Chapter_1_-_Introduction&amp;diff=376</id>
		<title>Chapter 1 - Introduction</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Chapter_1_-_Introduction&amp;diff=376"/>
		<updated>2010-02-25T04:32:46Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Introduction===&lt;br /&gt;
&lt;br /&gt;
''In science one tries to tell people, in such a way as to be understood by everyone, something that no one ever knew before. But in poetry, it's the exact opposite.''&lt;br /&gt;
&lt;br /&gt;
-Paul Dirac&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===An Introduction to Quantum Computation===&lt;br /&gt;
&lt;br /&gt;
This introductory chapter is a survey of, and introduction to, topics in quantum information&lt;br /&gt;
processing. All of these topics (and more) will be revisited in later sections. Therefore,&lt;br /&gt;
it is not necessary, nor expected, that these topics will be completely explained in this&lt;br /&gt;
introductory material.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Quantum Computing====&lt;br /&gt;
&lt;br /&gt;
A quantum computer would be a computer that take advantage of quantum mechanical&lt;br /&gt;
principles according to which physical systems behave. We often think of quantum mechanics&lt;br /&gt;
as being the set of mechanical laws or principles that very small particles obey. While this&lt;br /&gt;
is not entirely true, it is a somewhat reasonable way of explaining things to the layman. For our&lt;br /&gt;
purposes, we should note that everything obeys the laws of quantum mechanics and that&lt;br /&gt;
Newtonian mechanics are rules that we use to approximate quantum mechanics. However,&lt;br /&gt;
quantum mechanical control and natural quantum mechanical evolution are what we are&lt;br /&gt;
talking about when we talk about quantum systems. We must have quantum mechanical&lt;br /&gt;
evolution, which cannot be reasonably approximated with classical mechanics, and use it in a&lt;br /&gt;
particular way to really perform a quantum computation or to really do quantum information&lt;br /&gt;
processing.&lt;br /&gt;
&lt;br /&gt;
So what is quantum mechanics? We should think of it as a set of rules, in some ways&lt;br /&gt;
similar to Newton’s laws, which describe the way the world works. These are the rules&lt;br /&gt;
to which we must carefully attend in order to build what we will describe as a quantum&lt;br /&gt;
computing device. We will return to this topic briefly again later. However, as is done in&lt;br /&gt;
many places, this question is never quite answered directly. Most often we simply learn the&lt;br /&gt;
rules and how use them. The question itself is perhaps a little vague because there are many&lt;br /&gt;
physical systems that don’t quite fit into an either/or categorization of quantum vs. classical.&lt;br /&gt;
Also, it should noted that throughout these notes the terms will be somewhat misused in&lt;br /&gt;
the sense that certain systems will be called quantum mechanical or classical, and from now&lt;br /&gt;
on, with few exceptions, no care will be taken to discuss subtleties.  &lt;br /&gt;
&lt;br /&gt;
We have not yet built a quantum computing device. However, there are many reasons&lt;br /&gt;
to study quantum information processing other than building a fully functional quantum&lt;br /&gt;
computer. One main reason we haven’t built one is that we have to figure out how. The&lt;br /&gt;
experiments to perform quantum computation in physical devices take an enormous amount&lt;br /&gt;
of effort due to noises which corrupt the information. We are going to need to fix the&lt;br /&gt;
corrupted information, avoid the noises, or do away with them by some other means. A&lt;br /&gt;
second reason to study quantum computing, and quantum information processing more&lt;br /&gt;
generally, is that there are really many quantum information processing tasks, or tasks&lt;br /&gt;
which can be thought of in this way, which concern quantum control. Precise control of&lt;br /&gt;
a quantum system is important for a variety of reasons, not the least of which is that our&lt;br /&gt;
world is quantum mechanical! When we get right down to the very basic elements of the&lt;br /&gt;
universe, they behave quantum mechanically. If there is one thing that the study of quantum&lt;br /&gt;
information processing has already taught us, its that we need to pay attention to quantum&lt;br /&gt;
mechanics because it can be very useful to be able to manipulate quantum systems and take&lt;br /&gt;
advantage of uniquely quantum properties. Quantum technologies are going to be extremely&lt;br /&gt;
important in the future, even if we never built a quantum computer. (Oh, but we will!) As&lt;br /&gt;
Feynman said, “There is plenty of room at the bottom.” We have a lot to discover about&lt;br /&gt;
the world of the small.&lt;br /&gt;
&lt;br /&gt;
Since noise has been, and is still, such a problem for quantum information, we need to&lt;br /&gt;
deal with it. I started learning about these things in 2000, and I would attribute most of&lt;br /&gt;
what I know about the subject to Daniel Lidar, whether it be direct or indirect. He was one&lt;br /&gt;
of the first people to realize the importance of attacking the problem whole-heartedly. People&lt;br /&gt;
recognized the problem, and Shor, et al. really made remarkable statements with their work&lt;br /&gt;
on quantum error correcting codes. This work showed that errors could, in principle, be&lt;br /&gt;
corrected, leading the way for future research since it was now plausible that a quantum&lt;br /&gt;
computer could be built – there are no fundamental obstacles. However, quantum error&lt;br /&gt;
correcting codes are, in some sense, a software solution to a hardware problem. More physical&lt;br /&gt;
treatments include decoherence-free subspaces, (and noiseless subsystems) and dynamical&lt;br /&gt;
decoupling. However, an all-out attack will include other methods of error prevention. Error&lt;br /&gt;
prevention methods, as I call all of these along with combinations, are the subject of the last&lt;br /&gt;
part of this course/book for that reason.&lt;br /&gt;
&lt;br /&gt;
====Motivation====&lt;br /&gt;
Why do we want to build a quantum computing device?&lt;br /&gt;
&lt;br /&gt;
#To make computers faster and more compact, we have been making them smaller.(This has obeyed Moore’s law. (ref.)) However, there is a limit to how much smaller we can make them, and still have them function as they do now. This is due to quantum mechanics. The limit to small is quantum mechanics – quantum mechanics starts to become the dominate mechanism by which constituents interact. So, to make things smaller, we need to use quantum mechanics! More than this though, the fact that Moore’s law cannot continue indefinitely means that we will need to look elsewhere for advances in computing power. One way to increase computing power is to parallelize computations. However, there are processes which cannot be parallelized. So where do we turn? A quantum computer would help with this.&lt;br /&gt;
#We now know of several different quantum algorithms which are faster than any known classical algorithm for performing the same task. Some are actually provably faster. These are listed and discussed futher in the next section.&lt;br /&gt;
#Quantum information can be used in a variety of ways beyond computing. Such as quantum cryptography, quantum games, and quantum communication of all sorts. (Use Carl’s notes here and cite them (ref.))&lt;br /&gt;
&lt;br /&gt;
An important point to take away from this section is that information is stored and&lt;br /&gt;
manipulated by physical devices. They way in which they behave is important for the tasks&lt;br /&gt;
that are to be performed.&lt;br /&gt;
&lt;br /&gt;
====Specific Uses====&lt;br /&gt;
There are three advantages of quantum computing devices which are often quoted.&lt;br /&gt;
&lt;br /&gt;
#Factor large integers efficiently (known as Shor’s algorithm)&lt;br /&gt;
#Find an object in an unsorted database more efficiently than a classical machine (known as Govers algorithm, e.g. phone number lookup)&lt;br /&gt;
#Simulate quantum mechanical systems more efficiently than any classical system (due to Feynman and others)&lt;br /&gt;
&lt;br /&gt;
====COMMENTS====&lt;br /&gt;
Shor’s algorithm would render RSA encryption useless. It is more efficient than any&lt;br /&gt;
known classical algorithm. (There is a quantum answer to this problem however-quantum&lt;br /&gt;
cryptography through QKD.)&lt;br /&gt;
&lt;br /&gt;
Gover’s algorithm is better than any classical algorithm – phone book example: classical&lt;br /&gt;
algorithm grows as N/2 and Grover’s grows as sqrt N&lt;br /&gt;
&lt;br /&gt;
Simulating quantum mechanical systems is quite difficult classically. For physical scientists&lt;br /&gt;
this could be the most important application of quantum computers. This could enable&lt;br /&gt;
the simulation of nuclear systems, solid-state devices, biological molecules and molecular&lt;br /&gt;
interactions, etc.&lt;br /&gt;
&lt;br /&gt;
====How do quantum computers provide an advantage?====&lt;br /&gt;
Now, the claim is that quantum computers could solve some problems more efficiently than&lt;br /&gt;
classical ones. So viewing our information systems as quantum systems, we may note that&lt;br /&gt;
quantum mechanics is more than a description of the physical world (which is how physicists&lt;br /&gt;
treated it for years) but a set of rules governing the behaviour of information when stored&lt;br /&gt;
and manipulated quantum mechanically.&lt;br /&gt;
&lt;br /&gt;
So the natural question is, “How does it do this?” We may also ask, “Where is the&lt;br /&gt;
advantage?” In other words, “What exactly about quantum mechanics enables us to achieve&lt;br /&gt;
speed-ups and other information processing tasks more efficiently than classical systems?”&lt;br /&gt;
Most people, as of the time of this writing, would likely say they don’t know. For example,&lt;br /&gt;
it is not known if there is a classical algorithm which could factor efficiently. (By efficiently&lt;br /&gt;
here, let us just say that we mean “as well as a quantum one.” We'll be more specific later.&lt;br /&gt;
) So what I will discuss is&lt;br /&gt;
what I would call intuitive arguments for why be believe a quantum computer can accomplish&lt;br /&gt;
things a classical one cannot. We should not claim this is proof of anything at this point.&lt;br /&gt;
&lt;br /&gt;
The first argument is that when a machine has different rules for operating, we expect&lt;br /&gt;
it to do different things. The rules by which classical computing machines function are, in&lt;br /&gt;
some sense, different from the ones governing the behaviour of quantum machines. This is&lt;br /&gt;
quite vague, especially given the earlier comments about how everything really is quantum&lt;br /&gt;
mechanical. The way I think about it (you’re welcome to argue) is that a “classical object”&lt;br /&gt;
transforms according to a “classical equation of motion” ∗ and the result is determined by&lt;br /&gt;
its initial state, which is “classical.” A quantum mechanical state transforms according to a&lt;br /&gt;
“quantum equation of motion” and the result of the evolution is determined by some initial&lt;br /&gt;
conditions, which describe a “quantum system.” Perhaps this sounds like a circular argument,&lt;br /&gt;
primarily involving semantics.  However, my motivation for this is&lt;br /&gt;
a definition I was given in a vector and tensor analysis class: an object is a tensor if it&lt;br /&gt;
transforms like a tensor. So I say, an object is classical if it obeys classical equations.  In practice, this is often the way things are done.  If the physical system can be approximated using classical mechanics, it is classical.  &lt;br /&gt;
&lt;br /&gt;
The next argument is that there are states which are uniquely quantum mechanical.&lt;br /&gt;
These are states which would have been mysterious to Newton, and indeed they were mysterious&lt;br /&gt;
to Einstein, and furthermore they are still mysterious today! The important point is&lt;br /&gt;
that they are not states of classical systems, i.e. they are not states which behave classically.&lt;br /&gt;
They are unique to quantum mechanics and are called entangled states. Let us first discuss&lt;br /&gt;
bits and qubits. We will then discuss quantum states of many particles which correspond&lt;br /&gt;
to entangled states. Finally, we will revisit this notion of intuition behind the quantum&lt;br /&gt;
mechanical speed-ups.&lt;br /&gt;
&lt;br /&gt;
===Bits and qubits: An Introduction===&lt;br /&gt;
A ''classical bit'' is represented by two different states of a classical system. In classical computers&lt;br /&gt;
it is represented by two different values of an electrical potential difference. The two&lt;br /&gt;
different states of the system are represented by 0 and 1.&lt;br /&gt;
&lt;br /&gt;
A ''quantum bit'' or ''qubit'' (better, but less used is Qbit, see [11]) is represented by two&lt;br /&gt;
states of a quantum mechanical system. The two different states are represented by &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;. This notation is common and is explained in some detail in Appendix D.&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:Doublewell.jpeg]]&lt;br /&gt;
&lt;br /&gt;
Figure 1.1: This is a double well with a ball in one of the two wells.&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Let us discuss a way in which to think about the differences between classical and quantum&lt;br /&gt;
systems. We will consider two wells, or valleys, with a hill in between as in Fig. 1.1.&lt;br /&gt;
First we will consider a classical system and we will suppose there are no frictional forces.&lt;br /&gt;
If we start the ball rolling where it is in the figure, then it will roll back and forth in Well&lt;br /&gt;
0. (Well 0, or “Well zero” is our name for the well on the left-hand side.) It will never leave&lt;br /&gt;
Well 0 if we leave it alone. If we wanted it to go into Well 1 (the well on the right-hand side)&lt;br /&gt;
we would need to nudge it or push it a little to get it over the hill. Or we could just pick it&lt;br /&gt;
up and move it from one well to the other.&lt;br /&gt;
&lt;br /&gt;
Now suppose the system is quantum mechanical.&amp;lt;ref&amp;gt;For those with a little background in physics, these are potential wells. An example is a ball in between two hills for the classical case. For the quantum case, we can think of a quantum particle in a potential well&lt;br /&gt;
with this shape and solve Schr¨odinger’s equation.&amp;lt;/ref&amp;gt; In this case, if we set up the system&lt;br /&gt;
so that the particle initially has some kinetic energy (imagine a moving “quantum ball”),&lt;br /&gt;
and let it go, there is some probability, after some amount of time, that the particle will be&lt;br /&gt;
found in Well 1. This is true when the energy of the ball was not great enough to travel over&lt;br /&gt;
the hill in the classical analogy. The probability if it being found in the other well depends&lt;br /&gt;
on several things; the initial energy of the particle, the width of the hill, and the height of&lt;br /&gt;
the hill (equivalently the depth(s) of the wells, which could be different). However, it won’t&lt;br /&gt;
happen with a classical bit! So this is a difference between the classical and quantum mechanics.&amp;lt;ref&amp;gt; Now, if it is admitted that every particle is described by quantum mechanics, the the classically forbidden zone is forbidden because the probability of finding the ball there is extremely small (essentially zero).&amp;lt;/ref&amp;gt; In&lt;br /&gt;
quantum mechanics, the particle is in some sense in both wells at the same time. This has&lt;br /&gt;
to do with the “wave” nature of quantum mechanics. We then say that the particle is in a&lt;br /&gt;
superposition of Well 0 and Well 1 and the same time. Mathematically, we describe these&lt;br /&gt;
different physical “states” or conditions of the system in the following way.&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}\mbox{Particle is in Well } 0&amp;amp;=\left\vert{0}\right\rangle, \\  \mbox{Particle is in Well } 1&amp;amp;=\left\vert{1}\right\rangle\end{align}&amp;lt;/math&amp;gt;|1.1}}&lt;br /&gt;
&lt;br /&gt;
In other words, the state of the system is “the particle is in Well 0” is written mathematically as &amp;lt;math&amp;gt;\left\vert{0}\right\rangle&amp;lt;/math&amp;gt;, and simiarly for &amp;lt;math&amp;gt;\left\vert{1}\right\rangle\,\!&amp;lt;/math&amp;gt;. If the particle is in a superposition of the two, which will mean some probability for finding in each well, we would write this as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\left\vert{\psi}\right\rangle=\alpha\left\vert{0}\right\rangle+\beta\left\vert{1}\right\rangle\,\!&amp;lt;/math&amp;gt;|1.2}}&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers (see Appendix D) and the probability of the particle&lt;br /&gt;
being found in Well 0 is &amp;lt;math&amp;gt;|\alpha|^2\,\!&amp;lt;/math&amp;gt; and the probability of it being found in Well 1 is &amp;lt;math&amp;gt;|\beta|^2\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now, some (physicists no less) have asked how to make a deterministic transformation&lt;br /&gt;
in a quantum system. After all, this seems to be probablistic. The way to do that is the&lt;br /&gt;
following. We make the hill very wide and tall and we put the particle right down in the&lt;br /&gt;
bottom of one well and give it as little initial energy as possible. Then if we want it moved&lt;br /&gt;
to the other well, we pick it up and move it&amp;lt;ref&amp;gt;Again a note for physicists. If we cool it to its ground state and make sure we don’t have stray kicks that will knock it out, we achieve this. Then we put the right amount of energy to get it to transition to the first excited state.&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If we measure the system, i.e. look to see if it is Well 0 or Well 1, we will “project it into&lt;br /&gt;
one state or the other.” In other words, suppose the system is in the state |ψi above. If we&lt;br /&gt;
look to see where the particle is and find it in Well 1, then the probability is clearly zero&lt;br /&gt;
that it is in the other one. This is called the projection postulate in quantum mechanics and&lt;br /&gt;
we will see how to represent this mathematically later.&lt;br /&gt;
&lt;br /&gt;
Throughout the notes, when trying to think about a physical qubit, this simple picture&lt;br /&gt;
is often good enough. Therefore, we will refer back to it from time to time.&lt;br /&gt;
&lt;br /&gt;
NOTE: Don’t forget to add the “intuition” part.&lt;br /&gt;
&lt;br /&gt;
===Obstacles to Building a Reliable Quantum Computer===&lt;br /&gt;
&lt;br /&gt;
Noise is the greatest obstacle to building a quantum computer. This was also the case with&lt;br /&gt;
early electronic classical computing devices. In this case there is an intuitive explanation ...&lt;br /&gt;
&lt;br /&gt;
For our purposes, we will need to discuss ''open-system evolution'' and ''closed-system evolution''. A closed system is one which does not have any interaction with external objects. We may also refer to such a system as isolated. For example, one knows that if a jar has a very good lid on it, no liquid can leak out, or into, the jar. So if we put a certain amount of liquid in it now, we can expect it will all be there later. This is a closed system and the liquid is isolated from masses external to the jar. In other words, no other mass can get in or out.&lt;br /&gt;
&lt;br /&gt;
A better example is what we call thermally isolated, meaning no heat energy is exchanged&lt;br /&gt;
with any other system, so this is a thermally closed system. An open system is one which&lt;br /&gt;
can interact with its environment in some way. In these examples, a lid that is not sealed&lt;br /&gt;
can allow liquid vapors to escape and one that is not thermally isolated, or thermally closed&lt;br /&gt;
can heat up or cool down.&lt;br /&gt;
&lt;br /&gt;
For the quantum information processing tasks we have in mind, we will consider quantum&lt;br /&gt;
information which is isolated form its environment and what we usually mean is that the&lt;br /&gt;
quantum system is isolated and cannot be affected by an outside source.&lt;br /&gt;
It is important to note that isolated, or closed systems, are ideal. They may often be&lt;br /&gt;
good approximations to a system, but are basically never really completely isolated or closed.&lt;br /&gt;
&lt;br /&gt;
One may consider larger and larger systems to try to obtain a closed system, but this is most&lt;br /&gt;
often impractical, although it can be useful for modeling.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Footnotes==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Chapter_2_-_Qubits_and_Collections_of_Qubits&amp;diff=375</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=375"/>
		<updated>2010-02-25T04:29:25Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&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 [3]:&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 and noise has become known by&lt;br /&gt;
the term decoherence. 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 and decoherence will be the topics of&lt;br /&gt;
later sections. The fourth and fifth will be discussed in this chapter.&lt;br /&gt;
&lt;br /&gt;
Backwards is it? Not from a computer science perspective or from a motivational perspective.&lt;br /&gt;
Besides, to a large extent, the first two rely very heavily on experimental physics&lt;br /&gt;
and engineering. These topics are primarily beyond the scope of this introductory material,&lt;br /&gt;
but will be treated superficially in Chapter 6.&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 which 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 qubit could be in 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;, 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, 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;
Thus this vector is normalized, i.e. it has magnitude, or length 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 C.1 contains a basic introduction to complex numbers.&amp;lt;/ref&amp;gt; The basis&lt;br /&gt;
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''&lt;br /&gt;
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;
Therefore,&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 closedsystem&lt;br /&gt;
evolution is unitary. (See Appendix D, Sec. D.2.) These unitary matrices, or unitary&lt;br /&gt;
transformations, as well as their generalization to many qubits, transform a 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 untary&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; then we 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;
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;
&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 which implements the unitary transformation&lt;br /&gt;
&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 right 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;
However, 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.&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 a fixed. There are several such transformations which 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 “x” 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. Therefore, 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&lt;br /&gt;
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;&lt;br /&gt;
and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;, the commutator is defined to be&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;[A,B] = AB -BA.\,\!&amp;lt;/math&amp;gt;|2.14}}&lt;br /&gt;
&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;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;[X,Z] = -2iY.\,\!&amp;lt;/math&amp;gt;|2.15}}&lt;br /&gt;
&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;
&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;
&lt;br /&gt;
In this case, its helpful to look at what this gate does to the two basis states:&lt;br /&gt;
&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, Y,&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; Z &amp;lt;/math&amp;gt; are called the Pauli matrices. They are also sometimes&lt;br /&gt;
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&lt;br /&gt;
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 this latter point in the&lt;br /&gt;
next chapter.  &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 abitrary 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; beteen &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 defintions 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_D#eqd.17|(D.17)]] and [[Appendix_D#eqd.8|(D.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&lt;br /&gt;
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;
By 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;&lt;br /&gt;
so&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 Section D.6.)&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 as&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'' with the following notation also perfectly acceptable&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 which may&lt;br /&gt;
share some information or may wish to communicate.  In this case, the&lt;br /&gt;
state belonging to Alice may 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 $n$, 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 abitrary 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 an entangling gate between any two qubits, plus the ability to&lt;br /&gt;
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 which 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;
A controlled operation is one which is conditioned on the state of another part of the system,&lt;br /&gt;
usually a qubit. The most cited example is the CNOT gate, which is a NOT operation on&lt;br /&gt;
one qubit that is implemented only if another qubit is in the state &amp;lt;math&amp;gt;\left\vert{1}\right\rangle\,\!&amp;lt;/math&amp;gt;, in other words a&lt;br /&gt;
controlled NOT operation. This gate is used so often that it is discussed here in detail.&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. 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;
Then the CNOT is given by&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\left\vert{x,y}\right\rangle \overset{CNOT}{\rightarrow} \left\vert{x,x\oplus y}\right\rangle.&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.2. &lt;br /&gt;
The first qubit, &amp;lt;math&amp;gt;\left\vert{x}\right\rangle&amp;lt;/math&amp;gt;, at the top of the diagam, is called the&lt;br /&gt;
''control bit'' and the second, &amp;lt;math&amp;gt;\left\vert{y}\right\rangle&amp;lt;/math&amp;gt;, at the top of the diagam,&lt;br /&gt;
is called the ''target bit''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
|&amp;lt;math&amp;gt;\left\vert{X}\right\rangle\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|[[File:CNOT.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\left\vert{Y}\right\rangle\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Figure 2.2: Circuit diagram for a CNOT gate.&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.3, 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 Fig. 2.4.&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.3: 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.5 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 which, in the end,&lt;br /&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.4: Circuit diagram for a Controlled-phase gate.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Multiqcs.jpg]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Figure 2.5: Multiple CNOT gates on a set of qubits.&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
implements the same multiple-qubit unitary. For example, noting that &amp;lt;math&amp;gt;HZH = X\,\!&amp;lt;/math&amp;gt;, the two&lt;br /&gt;
circuits in Fig. 2.6 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.6: 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 therefore for&lt;br /&gt;
classical bits in classical computers, 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 which will become&lt;br /&gt;
clear later.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Standard Prescription====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the intoduction a simple example was provided as motivation for&lt;br /&gt;
distinguishing quantum states from classical states.  This example of &lt;br /&gt;
two wells with one particle, can be used (cautiously) here as well.  &lt;br /&gt;
&lt;br /&gt;
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;&lt;br /&gt;
of the form&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;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;
&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 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;.  Recall&lt;br /&gt;
that the particle is in this state and that this state really means&lt;br /&gt;
that the particle is not in the state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt; or the state &lt;br /&gt;
&amp;lt;math&amp;gt;\left\vert 1\right\rangle \,\!&amp;lt;/math&amp;gt;, it really means that it is in both at the same time. &lt;br /&gt;
&lt;br /&gt;
This is worth emphasizing since it really ''cannot'' be thought of as&lt;br /&gt;
being in state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt; with probability &amp;lt;math&amp;gt;|\alpha_0|^2\,\!&amp;lt;/math&amp;gt; ''or'' in&lt;br /&gt;
&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;.  If it were then one could&lt;br /&gt;
act on the state with a Hadamard transformation and there would be 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;.  However, acting on the state &amp;lt;math&amp;gt;\left\vert \psi\right\rangle\,\!&amp;lt;/math&amp;gt; with a Hadamard transformation,&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;H\left\vert \psi\right\rangle = \left\vert 0\right\rangle.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|2.36}}&lt;br /&gt;
&lt;br /&gt;
This state has probability zero of being in the state &amp;lt;math&amp;gt;\left\vert 1\right\rangle\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
probability one of being in the state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt;.  (This argument is so&lt;br /&gt;
simple and pointed, that I lifted it directly from Mermin's book&lt;br /&gt;
{Mermin:book}, page 27.)  &lt;br /&gt;
&lt;br /&gt;
A measurement in the computational basis is said to project this state&lt;br /&gt;
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&lt;br /&gt;
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&lt;br /&gt;
understand this as a projection, consider the following way in which&lt;br /&gt;
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&lt;br /&gt;
&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&lt;br /&gt;
by taking the inner product 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 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; and 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.7. &amp;lt;!-- Fig.~\ref{fig:measurement}.--&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:measurementcd.jpg‎]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Figure 2.7: The circuit diagram for a measurement.  &lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As an example, the measurement result can be used for input for another state.  The unitary&lt;br /&gt;
in Figure 2.8 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.8: A circuit which includes a measurement.  &lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--   \begin{figure}[h]&lt;br /&gt;
    \begin{center}&lt;br /&gt;
     \mbox{\epsfig{file=/home/mbyrd/tex/books/qcomp/figures/measurement.eps}}&lt;br /&gt;
     \caption{Circuit diagram with a measurement.  The result of the&lt;br /&gt;
       measurement, in this case, is input for another qubit.  The&lt;br /&gt;
       qubit is acted upon by $U$ which is chosen after the result of&lt;br /&gt;
       the measurement is known.}&lt;br /&gt;
     \label{fig:measex}&lt;br /&gt;
     \end{center}&lt;br /&gt;
   \end{figure}&lt;br /&gt;
--&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 projecter?  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;
&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&lt;br /&gt;
outter product &amp;lt;math&amp;gt;\left\vert{x}\right\rangle\!\!\left\langle{x}\right\vert\,\!&amp;lt;/math&amp;gt; is a projecter.  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 projecter 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 project.  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 abstact cases.  One important&lt;br /&gt;
example is that the sum over all 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 all 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;=&amp;amp; \left\langle{\psi}\mid{x}\right\rangle\left\langle{x}\mid{\psi}\right\rangle \\&lt;br /&gt;
                     &amp;amp;=&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 since &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;
expressioin, 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;, 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;=&amp;amp; \left\langle{\psi^\prime}\mid{x}\right\rangle\left\langle{x}\mid{\psi^\prime}\right\rangle \\&lt;br /&gt;
                     &amp;amp;=&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;=&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, it has 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, as we will see later, 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.&lt;br /&gt;
&lt;br /&gt;
==Footnotes==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Chapter_2_-_Qubits_and_Collections_of_Qubits&amp;diff=374</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=374"/>
		<updated>2010-02-25T04:29:02Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Quantum_Computation_and_Quantum_Error_Prevention|Main Page]]&lt;br /&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 [3]:&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 and noise has become known by&lt;br /&gt;
the term decoherence. 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 and decoherence will be the topics of&lt;br /&gt;
later sections. The fourth and fifth will be discussed in this chapter.&lt;br /&gt;
&lt;br /&gt;
Backwards is it? Not from a computer science perspective or from a motivational perspective.&lt;br /&gt;
Besides, to a large extent, the first two rely very heavily on experimental physics&lt;br /&gt;
and engineering. These topics are primarily beyond the scope of this introductory material,&lt;br /&gt;
but will be treated superficially in Chapter 6.&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 which 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 qubit could be in 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;, 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, 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;
Thus this vector is normalized, i.e. it has magnitude, or length 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 C.1 contains a basic introduction to complex numbers.&amp;lt;/ref&amp;gt; The basis&lt;br /&gt;
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''&lt;br /&gt;
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;
Therefore,&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 closedsystem&lt;br /&gt;
evolution is unitary. (See Appendix D, Sec. D.2.) These unitary matrices, or unitary&lt;br /&gt;
transformations, as well as their generalization to many qubits, transform a 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 untary&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; then we 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;
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;
&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 which implements the unitary transformation&lt;br /&gt;
&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 right 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;
However, 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.&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 a fixed. There are several such transformations which 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 “x” 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. Therefore, 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&lt;br /&gt;
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;&lt;br /&gt;
and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;, the commutator is defined to be&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;[A,B] = AB -BA.\,\!&amp;lt;/math&amp;gt;|2.14}}&lt;br /&gt;
&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;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;[X,Z] = -2iY.\,\!&amp;lt;/math&amp;gt;|2.15}}&lt;br /&gt;
&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;
&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;
&lt;br /&gt;
In this case, its helpful to look at what this gate does to the two basis states:&lt;br /&gt;
&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, Y,&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; Z &amp;lt;/math&amp;gt; are called the Pauli matrices. They are also sometimes&lt;br /&gt;
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&lt;br /&gt;
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 this latter point in the&lt;br /&gt;
next chapter.  &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 abitrary 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; beteen &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 defintions 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_D#eqd.17|(D.17)]] and [[Appendix_D#eqd.8|(D.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&lt;br /&gt;
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;
By 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;&lt;br /&gt;
so&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 Section D.6.)&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 as&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'' with the following notation also perfectly acceptable&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 which may&lt;br /&gt;
share some information or may wish to communicate.  In this case, the&lt;br /&gt;
state belonging to Alice may 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 $n$, 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 abitrary 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 an entangling gate between any two qubits, plus the ability to&lt;br /&gt;
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 which 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;
A controlled operation is one which is conditioned on the state of another part of the system,&lt;br /&gt;
usually a qubit. The most cited example is the CNOT gate, which is a NOT operation on&lt;br /&gt;
one qubit that is implemented only if another qubit is in the state &amp;lt;math&amp;gt;\left\vert{1}\right\rangle\,\!&amp;lt;/math&amp;gt;, in other words a&lt;br /&gt;
controlled NOT operation. This gate is used so often that it is discussed here in detail.&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. 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;
Then the CNOT is given by&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\left\vert{x,y}\right\rangle \overset{CNOT}{\rightarrow} \left\vert{x,x\oplus y}\right\rangle.&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.2. &lt;br /&gt;
The first qubit, &amp;lt;math&amp;gt;\left\vert{x}\right\rangle&amp;lt;/math&amp;gt;, at the top of the diagam, is called the&lt;br /&gt;
''control bit'' and the second, &amp;lt;math&amp;gt;\left\vert{y}\right\rangle&amp;lt;/math&amp;gt;, at the top of the diagam,&lt;br /&gt;
is called the ''target bit''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
|&amp;lt;math&amp;gt;\left\vert{X}\right\rangle\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|[[File:CNOT.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\left\vert{Y}\right\rangle\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Figure 2.2: Circuit diagram for a CNOT gate.&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.3, 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 Fig. 2.4.&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.3: 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.5 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 which, in the end,&lt;br /&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.4: Circuit diagram for a Controlled-phase gate.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Multiqcs.jpg]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Figure 2.5: Multiple CNOT gates on a set of qubits.&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
implements the same multiple-qubit unitary. For example, noting that &amp;lt;math&amp;gt;HZH = X\,\!&amp;lt;/math&amp;gt;, the two&lt;br /&gt;
circuits in Fig. 2.6 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.6: 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 therefore for&lt;br /&gt;
classical bits in classical computers, 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 which will become&lt;br /&gt;
clear later.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Standard Prescription====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the intoduction a simple example was provided as motivation for&lt;br /&gt;
distinguishing quantum states from classical states.  This example of &lt;br /&gt;
two wells with one particle, can be used (cautiously) here as well.  &lt;br /&gt;
&lt;br /&gt;
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;&lt;br /&gt;
of the form&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;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;
&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 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;.  Recall&lt;br /&gt;
that the particle is in this state and that this state really means&lt;br /&gt;
that the particle is not in the state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt; or the state &lt;br /&gt;
&amp;lt;math&amp;gt;\left\vert 1\right\rangle \,\!&amp;lt;/math&amp;gt;, it really means that it is in both at the same time. &lt;br /&gt;
&lt;br /&gt;
This is worth emphasizing since it really ''cannot'' be thought of as&lt;br /&gt;
being in state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt; with probability &amp;lt;math&amp;gt;|\alpha_0|^2\,\!&amp;lt;/math&amp;gt; ''or'' in&lt;br /&gt;
&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;.  If it were then one could&lt;br /&gt;
act on the state with a Hadamard transformation and there would be 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;.  However, acting on the state &amp;lt;math&amp;gt;\left\vert \psi\right\rangle\,\!&amp;lt;/math&amp;gt; with a Hadamard transformation,&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;H\left\vert \psi\right\rangle = \left\vert 0\right\rangle.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|2.36}}&lt;br /&gt;
&lt;br /&gt;
This state has probability zero of being in the state &amp;lt;math&amp;gt;\left\vert 1\right\rangle\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
probability one of being in the state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt;.  (This argument is so&lt;br /&gt;
simple and pointed, that I lifted it directly from Mermin's book&lt;br /&gt;
{Mermin:book}, page 27.)  &lt;br /&gt;
&lt;br /&gt;
A measurement in the computational basis is said to project this state&lt;br /&gt;
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&lt;br /&gt;
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&lt;br /&gt;
understand this as a projection, consider the following way in which&lt;br /&gt;
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&lt;br /&gt;
&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&lt;br /&gt;
by taking the inner product 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 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; and 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.7. &amp;lt;!-- Fig.~\ref{fig:measurement}.--&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:measurementcd.jpg‎]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Figure 2.7: The circuit diagram for a measurement.  &lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As an example, the measurement result can be used for input for another state.  The unitary&lt;br /&gt;
in Figure 2.8 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.8: A circuit which includes a measurement.  &lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--   \begin{figure}[h]&lt;br /&gt;
    \begin{center}&lt;br /&gt;
     \mbox{\epsfig{file=/home/mbyrd/tex/books/qcomp/figures/measurement.eps}}&lt;br /&gt;
     \caption{Circuit diagram with a measurement.  The result of the&lt;br /&gt;
       measurement, in this case, is input for another qubit.  The&lt;br /&gt;
       qubit is acted upon by $U$ which is chosen after the result of&lt;br /&gt;
       the measurement is known.}&lt;br /&gt;
     \label{fig:measex}&lt;br /&gt;
     \end{center}&lt;br /&gt;
   \end{figure}&lt;br /&gt;
--&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 projecter?  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;
&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&lt;br /&gt;
outter product &amp;lt;math&amp;gt;\left\vert{x}\right\rangle\!\!\left\langle{x}\right\vert\,\!&amp;lt;/math&amp;gt; is a projecter.  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 projecter 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 project.  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 abstact cases.  One important&lt;br /&gt;
example is that the sum over all 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 all 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;=&amp;amp; \left\langle{\psi}\mid{x}\right\rangle\left\langle{x}\mid{\psi}\right\rangle \\&lt;br /&gt;
                     &amp;amp;=&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 since &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;
expressioin, 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;, 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;=&amp;amp; \left\langle{\psi^\prime}\mid{x}\right\rangle\left\langle{x}\mid{\psi^\prime}\right\rangle \\&lt;br /&gt;
                     &amp;amp;=&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;=&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, it has 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, as we will see later, 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.&lt;br /&gt;
&lt;br /&gt;
==Footnotes==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Chapter_1_-_Introduction&amp;diff=373</id>
		<title>Chapter 1 - Introduction</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=Chapter_1_-_Introduction&amp;diff=373"/>
		<updated>2010-02-25T04:28:27Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Quantum_Computation_and_Quantum_Error_Prevention|Main Page]]&lt;br /&gt;
===Introduction===&lt;br /&gt;
&lt;br /&gt;
''In science one tries to tell people, in such a way as to be understood by everyone, something that no one ever knew before. But in poetry, it's the exact opposite.''&lt;br /&gt;
&lt;br /&gt;
-Paul Dirac&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===An Introduction to Quantum Computation===&lt;br /&gt;
&lt;br /&gt;
This introductory chapter is a survey of, and introduction to, topics in quantum information&lt;br /&gt;
processing. All of these topics (and more) will be revisited in later sections. Therefore,&lt;br /&gt;
it is not necessary, nor expected, that these topics will be completely explained in this&lt;br /&gt;
introductory material.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Quantum Computing====&lt;br /&gt;
&lt;br /&gt;
A quantum computer would be a computer that take advantage of quantum mechanical&lt;br /&gt;
principles according to which physical systems behave. We often think of quantum mechanics&lt;br /&gt;
as being the set of mechanical laws or principles that very small particles obey. While this&lt;br /&gt;
is not entirely true, it is a somewhat reasonable way of explaining things to the layman. For our&lt;br /&gt;
purposes, we should note that everything obeys the laws of quantum mechanics and that&lt;br /&gt;
Newtonian mechanics are rules that we use to approximate quantum mechanics. However,&lt;br /&gt;
quantum mechanical control and natural quantum mechanical evolution are what we are&lt;br /&gt;
talking about when we talk about quantum systems. We must have quantum mechanical&lt;br /&gt;
evolution, which cannot be reasonably approximated with classical mechanics, and use it in a&lt;br /&gt;
particular way to really perform a quantum computation or to really do quantum information&lt;br /&gt;
processing.&lt;br /&gt;
&lt;br /&gt;
So what is quantum mechanics? We should think of it as a set of rules, in some ways&lt;br /&gt;
similar to Newton’s laws, which describe the way the world works. These are the rules&lt;br /&gt;
to which we must carefully attend in order to build what we will describe as a quantum&lt;br /&gt;
computing device. We will return to this topic briefly again later. However, as is done in&lt;br /&gt;
many places, this question is never quite answered directly. Most often we simply learn the&lt;br /&gt;
rules and how use them. The question itself is perhaps a little vague because there are many&lt;br /&gt;
physical systems that don’t quite fit into an either/or categorization of quantum vs. classical.&lt;br /&gt;
Also, it should noted that throughout these notes the terms will be somewhat misused in&lt;br /&gt;
the sense that certain systems will be called quantum mechanical or classical, and from now&lt;br /&gt;
on, with few exceptions, no care will be taken to discuss subtleties.  &lt;br /&gt;
&lt;br /&gt;
We have not yet built a quantum computing device. However, there are many reasons&lt;br /&gt;
to study quantum information processing other than building a fully functional quantum&lt;br /&gt;
computer. One main reason we haven’t built one is that we have to figure out how. The&lt;br /&gt;
experiments to perform quantum computation in physical devices take an enormous amount&lt;br /&gt;
of effort due to noises which corrupt the information. We are going to need to fix the&lt;br /&gt;
corrupted information, avoid the noises, or do away with them by some other means. A&lt;br /&gt;
second reason to study quantum computing, and quantum information processing more&lt;br /&gt;
generally, is that there are really many quantum information processing tasks, or tasks&lt;br /&gt;
which can be thought of in this way, which concern quantum control. Precise control of&lt;br /&gt;
a quantum system is important for a variety of reasons, not the least of which is that our&lt;br /&gt;
world is quantum mechanical! When we get right down to the very basic elements of the&lt;br /&gt;
universe, they behave quantum mechanically. If there is one thing that the study of quantum&lt;br /&gt;
information processing has already taught us, its that we need to pay attention to quantum&lt;br /&gt;
mechanics because it can be very useful to be able to manipulate quantum systems and take&lt;br /&gt;
advantage of uniquely quantum properties. Quantum technologies are going to be extremely&lt;br /&gt;
important in the future, even if we never built a quantum computer. (Oh, but we will!) As&lt;br /&gt;
Feynman said, “There is plenty of room at the bottom.” We have a lot to discover about&lt;br /&gt;
the world of the small.&lt;br /&gt;
&lt;br /&gt;
Since noise has been, and is still, such a problem for quantum information, we need to&lt;br /&gt;
deal with it. I started learning about these things in 2000, and I would attribute most of&lt;br /&gt;
what I know about the subject to Daniel Lidar, whether it be direct or indirect. He was one&lt;br /&gt;
of the first people to realize the importance of attacking the problem whole-heartedly. People&lt;br /&gt;
recognized the problem, and Shor, et al. really made remarkable statements with their work&lt;br /&gt;
on quantum error correcting codes. This work showed that errors could, in principle, be&lt;br /&gt;
corrected, leading the way for future research since it was now plausible that a quantum&lt;br /&gt;
computer could be built – there are no fundamental obstacles. However, quantum error&lt;br /&gt;
correcting codes are, in some sense, a software solution to a hardware problem. More physical&lt;br /&gt;
treatments include decoherence-free subspaces, (and noiseless subsystems) and dynamical&lt;br /&gt;
decoupling. However, an all-out attack will include other methods of error prevention. Error&lt;br /&gt;
prevention methods, as I call all of these along with combinations, are the subject of the last&lt;br /&gt;
part of this course/book for that reason.&lt;br /&gt;
&lt;br /&gt;
====Motivation====&lt;br /&gt;
Why do we want to build a quantum computing device?&lt;br /&gt;
&lt;br /&gt;
#To make computers faster and more compact, we have been making them smaller.(This has obeyed Moore’s law. (ref.)) However, there is a limit to how much smaller we can make them, and still have them function as they do now. This is due to quantum mechanics. The limit to small is quantum mechanics – quantum mechanics starts to become the dominate mechanism by which constituents interact. So, to make things smaller, we need to use quantum mechanics! More than this though, the fact that Moore’s law cannot continue indefinitely means that we will need to look elsewhere for advances in computing power. One way to increase computing power is to parallelize computations. However, there are processes which cannot be parallelized. So where do we turn? A quantum computer would help with this.&lt;br /&gt;
#We now know of several different quantum algorithms which are faster than any known classical algorithm for performing the same task. Some are actually provably faster. These are listed and discussed futher in the next section.&lt;br /&gt;
#Quantum information can be used in a variety of ways beyond computing. Such as quantum cryptography, quantum games, and quantum communication of all sorts. (Use Carl’s notes here and cite them (ref.))&lt;br /&gt;
&lt;br /&gt;
An important point to take away from this section is that information is stored and&lt;br /&gt;
manipulated by physical devices. They way in which they behave is important for the tasks&lt;br /&gt;
that are to be performed.&lt;br /&gt;
&lt;br /&gt;
====Specific Uses====&lt;br /&gt;
There are three advantages of quantum computing devices which are often quoted.&lt;br /&gt;
&lt;br /&gt;
#Factor large integers efficiently (known as Shor’s algorithm)&lt;br /&gt;
#Find an object in an unsorted database more efficiently than a classical machine (known as Govers algorithm, e.g. phone number lookup)&lt;br /&gt;
#Simulate quantum mechanical systems more efficiently than any classical system (due to Feynman and others)&lt;br /&gt;
&lt;br /&gt;
====COMMENTS====&lt;br /&gt;
Shor’s algorithm would render RSA encryption useless. It is more efficient than any&lt;br /&gt;
known classical algorithm. (There is a quantum answer to this problem however-quantum&lt;br /&gt;
cryptography through QKD.)&lt;br /&gt;
&lt;br /&gt;
Gover’s algorithm is better than any classical algorithm – phone book example: classical&lt;br /&gt;
algorithm grows as N/2 and Grover’s grows as sqrt N&lt;br /&gt;
&lt;br /&gt;
Simulating quantum mechanical systems is quite difficult classically. For physical scientists&lt;br /&gt;
this could be the most important application of quantum computers. This could enable&lt;br /&gt;
the simulation of nuclear systems, solid-state devices, biological molecules and molecular&lt;br /&gt;
interactions, etc.&lt;br /&gt;
&lt;br /&gt;
====How do quantum computers provide an advantage?====&lt;br /&gt;
Now, the claim is that quantum computers could solve some problems more efficiently than&lt;br /&gt;
classical ones. So viewing our information systems as quantum systems, we may note that&lt;br /&gt;
quantum mechanics is more than a description of the physical world (which is how physicists&lt;br /&gt;
treated it for years) but a set of rules governing the behaviour of information when stored&lt;br /&gt;
and manipulated quantum mechanically.&lt;br /&gt;
&lt;br /&gt;
So the natural question is, “How does it do this?” We may also ask, “Where is the&lt;br /&gt;
advantage?” In other words, “What exactly about quantum mechanics enables us to achieve&lt;br /&gt;
speed-ups and other information processing tasks more efficiently than classical systems?”&lt;br /&gt;
Most people, as of the time of this writing, would likely say they don’t know. For example,&lt;br /&gt;
it is not known if there is a classical algorithm which could factor efficiently. (By efficiently&lt;br /&gt;
here, let us just say that we mean “as well as a quantum one.” We'll be more specific later.&lt;br /&gt;
) So what I will discuss is&lt;br /&gt;
what I would call intuitive arguments for why be believe a quantum computer can accomplish&lt;br /&gt;
things a classical one cannot. We should not claim this is proof of anything at this point.&lt;br /&gt;
&lt;br /&gt;
The first argument is that when a machine has different rules for operating, we expect&lt;br /&gt;
it to do different things. The rules by which classical computing machines function are, in&lt;br /&gt;
some sense, different from the ones governing the behaviour of quantum machines. This is&lt;br /&gt;
quite vague, especially given the earlier comments about how everything really is quantum&lt;br /&gt;
mechanical. The way I think about it (you’re welcome to argue) is that a “classical object”&lt;br /&gt;
transforms according to a “classical equation of motion” ∗ and the result is determined by&lt;br /&gt;
its initial state, which is “classical.” A quantum mechanical state transforms according to a&lt;br /&gt;
“quantum equation of motion” and the result of the evolution is determined by some initial&lt;br /&gt;
conditions, which describe a “quantum system.” Perhaps this sounds like a circular argument,&lt;br /&gt;
primarily involving semantics.  However, my motivation for this is&lt;br /&gt;
a definition I was given in a vector and tensor analysis class: an object is a tensor if it&lt;br /&gt;
transforms like a tensor. So I say, an object is classical if it obeys classical equations.  In practice, this is often the way things are done.  If the physical system can be approximated using classical mechanics, it is classical.  &lt;br /&gt;
&lt;br /&gt;
The next argument is that there are states which are uniquely quantum mechanical.&lt;br /&gt;
These are states which would have been mysterious to Newton, and indeed they were mysterious&lt;br /&gt;
to Einstein, and furthermore they are still mysterious today! The important point is&lt;br /&gt;
that they are not states of classical systems, i.e. they are not states which behave classically.&lt;br /&gt;
They are unique to quantum mechanics and are called entangled states. Let us first discuss&lt;br /&gt;
bits and qubits. We will then discuss quantum states of many particles which correspond&lt;br /&gt;
to entangled states. Finally, we will revisit this notion of intuition behind the quantum&lt;br /&gt;
mechanical speed-ups.&lt;br /&gt;
&lt;br /&gt;
===Bits and qubits: An Introduction===&lt;br /&gt;
A ''classical bit'' is represented by two different states of a classical system. In classical computers&lt;br /&gt;
it is represented by two different values of an electrical potential difference. The two&lt;br /&gt;
different states of the system are represented by 0 and 1.&lt;br /&gt;
&lt;br /&gt;
A ''quantum bit'' or ''qubit'' (better, but less used is Qbit, see [11]) is represented by two&lt;br /&gt;
states of a quantum mechanical system. The two different states are represented by &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;. This notation is common and is explained in some detail in Appendix D.&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:Doublewell.jpeg]]&lt;br /&gt;
&lt;br /&gt;
Figure 1.1: This is a double well with a ball in one of the two wells.&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Let us discuss a way in which to think about the differences between classical and quantum&lt;br /&gt;
systems. We will consider two wells, or valleys, with a hill in between as in Fig. 1.1.&lt;br /&gt;
First we will consider a classical system and we will suppose there are no frictional forces.&lt;br /&gt;
If we start the ball rolling where it is in the figure, then it will roll back and forth in Well&lt;br /&gt;
0. (Well 0, or “Well zero” is our name for the well on the left-hand side.) It will never leave&lt;br /&gt;
Well 0 if we leave it alone. If we wanted it to go into Well 1 (the well on the right-hand side)&lt;br /&gt;
we would need to nudge it or push it a little to get it over the hill. Or we could just pick it&lt;br /&gt;
up and move it from one well to the other.&lt;br /&gt;
&lt;br /&gt;
Now suppose the system is quantum mechanical.&amp;lt;ref&amp;gt;For those with a little background in physics, these are potential wells. An example is a ball in between two hills for the classical case. For the quantum case, we can think of a quantum particle in a potential well&lt;br /&gt;
with this shape and solve Schr¨odinger’s equation.&amp;lt;/ref&amp;gt; In this case, if we set up the system&lt;br /&gt;
so that the particle initially has some kinetic energy (imagine a moving “quantum ball”),&lt;br /&gt;
and let it go, there is some probability, after some amount of time, that the particle will be&lt;br /&gt;
found in Well 1. This is true when the energy of the ball was not great enough to travel over&lt;br /&gt;
the hill in the classical analogy. The probability if it being found in the other well depends&lt;br /&gt;
on several things; the initial energy of the particle, the width of the hill, and the height of&lt;br /&gt;
the hill (equivalently the depth(s) of the wells, which could be different). However, it won’t&lt;br /&gt;
happen with a classical bit! So this is a difference between the classical and quantum mechanics.&amp;lt;ref&amp;gt; Now, if it is admitted that every particle is described by quantum mechanics, the the classically forbidden zone is forbidden because the probability of finding the ball there is extremely small (essentially zero).&amp;lt;/ref&amp;gt; In&lt;br /&gt;
quantum mechanics, the particle is in some sense in both wells at the same time. This has&lt;br /&gt;
to do with the “wave” nature of quantum mechanics. We then say that the particle is in a&lt;br /&gt;
superposition of Well 0 and Well 1 and the same time. Mathematically, we describe these&lt;br /&gt;
different physical “states” or conditions of the system in the following way.&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\begin{align}\mbox{Particle is in Well } 0&amp;amp;=\left\vert{0}\right\rangle, \\  \mbox{Particle is in Well } 1&amp;amp;=\left\vert{1}\right\rangle\end{align}&amp;lt;/math&amp;gt;|1.1}}&lt;br /&gt;
&lt;br /&gt;
In other words, the state of the system is “the particle is in Well 0” is written mathematically as &amp;lt;math&amp;gt;\left\vert{0}\right\rangle&amp;lt;/math&amp;gt;, and simiarly for &amp;lt;math&amp;gt;\left\vert{1}\right\rangle\,\!&amp;lt;/math&amp;gt;. If the particle is in a superposition of the two, which will mean some probability for finding in each well, we would write this as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\left\vert{\psi}\right\rangle=\alpha\left\vert{0}\right\rangle+\beta\left\vert{1}\right\rangle\,\!&amp;lt;/math&amp;gt;|1.2}}&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\alpha\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\beta\,\!&amp;lt;/math&amp;gt; are complex numbers (see Appendix D) and the probability of the particle&lt;br /&gt;
being found in Well 0 is &amp;lt;math&amp;gt;|\alpha|^2\,\!&amp;lt;/math&amp;gt; and the probability of it being found in Well 1 is &amp;lt;math&amp;gt;|\beta|^2\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now, some (physicists no less) have asked how to make a deterministic transformation&lt;br /&gt;
in a quantum system. After all, this seems to be probablistic. The way to do that is the&lt;br /&gt;
following. We make the hill very wide and tall and we put the particle right down in the&lt;br /&gt;
bottom of one well and give it as little initial energy as possible. Then if we want it moved&lt;br /&gt;
to the other well, we pick it up and move it&amp;lt;ref&amp;gt;Again a note for physicists. If we cool it to its ground state and make sure we don’t have stray kicks that will knock it out, we achieve this. Then we put the right amount of energy to get it to transition to the first excited state.&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If we measure the system, i.e. look to see if it is Well 0 or Well 1, we will “project it into&lt;br /&gt;
one state or the other.” In other words, suppose the system is in the state |ψi above. If we&lt;br /&gt;
look to see where the particle is and find it in Well 1, then the probability is clearly zero&lt;br /&gt;
that it is in the other one. This is called the projection postulate in quantum mechanics and&lt;br /&gt;
we will see how to represent this mathematically later.&lt;br /&gt;
&lt;br /&gt;
Throughout the notes, when trying to think about a physical qubit, this simple picture&lt;br /&gt;
is often good enough. Therefore, we will refer back to it from time to time.&lt;br /&gt;
&lt;br /&gt;
NOTE: Don’t forget to add the “intuition” part.&lt;br /&gt;
&lt;br /&gt;
===Obstacles to Building a Reliable Quantum Computer===&lt;br /&gt;
&lt;br /&gt;
Noise is the greatest obstacle to building a quantum computer. This was also the case with&lt;br /&gt;
early electronic classical computing devices. In this case there is an intuitive explanation ...&lt;br /&gt;
&lt;br /&gt;
For our purposes, we will need to discuss ''open-system evolution'' and ''closed-system evolution''. A closed system is one which does not have any interaction with external objects. We may also refer to such a system as isolated. For example, one knows that if a jar has a very good lid on it, no liquid can leak out, or into, the jar. So if we put a certain amount of liquid in it now, we can expect it will all be there later. This is a closed system and the liquid is isolated from masses external to the jar. In other words, no other mass can get in or out.&lt;br /&gt;
&lt;br /&gt;
A better example is what we call thermally isolated, meaning no heat energy is exchanged&lt;br /&gt;
with any other system, so this is a thermally closed system. An open system is one which&lt;br /&gt;
can interact with its environment in some way. In these examples, a lid that is not sealed&lt;br /&gt;
can allow liquid vapors to escape and one that is not thermally isolated, or thermally closed&lt;br /&gt;
can heat up or cool down.&lt;br /&gt;
&lt;br /&gt;
For the quantum information processing tasks we have in mind, we will consider quantum&lt;br /&gt;
information which is isolated form its environment and what we usually mean is that the&lt;br /&gt;
quantum system is isolated and cannot be affected by an outside source.&lt;br /&gt;
It is important to note that isolated, or closed systems, are ideal. They may often be&lt;br /&gt;
good approximations to a system, but are basically never really completely isolated or closed.&lt;br /&gt;
&lt;br /&gt;
One may consider larger and larger systems to try to obtain a closed system, but this is most&lt;br /&gt;
often impractical, although it can be useful for modeling.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Footnotes==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=MediaWiki:Sidebar&amp;diff=372</id>
		<title>MediaWiki:Sidebar</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=MediaWiki:Sidebar&amp;diff=372"/>
		<updated>2010-02-25T04:27:12Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* navigation&lt;br /&gt;
** mainpage|mainpage-description&lt;br /&gt;
** portal-url|portal&lt;br /&gt;
** currentevents-url|currentevents&lt;br /&gt;
** recentchanges-url|recentchanges&lt;br /&gt;
** http://qunet.physics.siu.edu/|Qunet Homepage&lt;br /&gt;
** helppage|help&lt;br /&gt;
* SEARCH&lt;br /&gt;
* TOOLBOX&lt;br /&gt;
* LANGUAGES&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=MediaWiki:Sidebar&amp;diff=371</id>
		<title>MediaWiki:Sidebar</title>
		<link rel="alternate" type="text/html" href="https://www2.physics.siu.edu/qunet/wiki/index.php?title=MediaWiki:Sidebar&amp;diff=371"/>
		<updated>2010-02-25T04:26:52Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* navigation&lt;br /&gt;
** mainpage|mainpage-description&lt;br /&gt;
** portal-url|portal&lt;br /&gt;
** currentevents-url|currentevents&lt;br /&gt;
** recentchanges-url|recentchanges&lt;br /&gt;
** [http://qunet.physics.siu.edu/|Qunet Homepage]&lt;br /&gt;
** helppage|help&lt;br /&gt;
* SEARCH&lt;br /&gt;
* TOOLBOX&lt;br /&gt;
* LANGUAGES&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Quantum_Computation_and_Quantum_Error_Prevention&amp;diff=344</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=344"/>
		<updated>2010-02-24T05:54:17Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: /* Table of Contents */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Just to remind everyone -- THIS IS UNDER CONSTRUCTION! &lt;br /&gt;
&lt;br /&gt;
=Table of Contents=&lt;br /&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#An Introduction to Quantum Computation|An Introduction to Quantum Computation]]&lt;br /&gt;
##[[Chapter_1#Bits and qubits: An Introduction|Bits and qubits: An Introduction]]&lt;br /&gt;
##[[Chapter_1#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#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#Schrodinger’s 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 a Mixed State|Density Matrix for a Mixed State]]&lt;br /&gt;
##[[Chapter 3 - Physics of Quantum Information#Expectation Values|Expectation Values]]&lt;br /&gt;
##[[Chapter 3 - Physics of Quantum Information#Types of Two-state Systems|Types of Two-state Systems]]&lt;br /&gt;
##[[Chapter 3 - Physics of Quantum Information#Entangled States|Entangled States]]&lt;br /&gt;
##[[Chapter 3 - Physics of Quantum Information#Entanglement: Extentions and Open Problems|Entanglement: Extentions and Open Problems]]&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Chapter 4 - Quantum Information: Basic Principles and Simple Examples]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##Uncertainty Principle&lt;br /&gt;
##Quantum Dense Coding&lt;br /&gt;
##Teleporting a Quantum State&lt;br /&gt;
##No Cloning!&lt;br /&gt;
##QKD: BB84&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 5 - Quantum Computation&amp;lt;/big&amp;gt;&lt;br /&gt;
##Quantum Computation Basics&lt;br /&gt;
##Deutsch-Josza Algorithm&lt;br /&gt;
##Simon’s Algorithm&lt;br /&gt;
##Shor’s Algorithm&lt;br /&gt;
##Grover’s Algorithm&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 6 - Experiments&amp;lt;/big&amp;gt;&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 7 - Noise in Quantum Systems&amp;lt;/big&amp;gt;&lt;br /&gt;
##Operator-Sum Decomposition&lt;br /&gt;
##Sudarshan Representation&lt;br /&gt;
##Superoperators: (more or less) Standard representation&lt;br /&gt;
##Notes&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 8 - Conclusions&amp;lt;/big&amp;gt;&lt;br /&gt;
##What have we learned?&lt;br /&gt;
&lt;br /&gt;
&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#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;
##Definitions and Examples&lt;br /&gt;
##Properties of Groups with Finite Order&lt;br /&gt;
##Infinite Order Groups: Lie Groups&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Appendix E - Density Operator: Extensions]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##The Coherence Vector/Polarization Vector&lt;br /&gt;
##The Polarization Vector: Other Conventions&lt;br /&gt;
##The Density Matrix for Two Qubits&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Appendix F - NOTES and CREDITS]]&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Preface==&lt;br /&gt;
These are notes to accompany the course on quantum computing taught at Southern Illinois&lt;br /&gt;
University. Until otherwise noted these notes are a work in progress. Therefore, if there are&lt;br /&gt;
any suggestions, questions, comments, errors, etc. please let me know so that appropriate&lt;br /&gt;
modifications can be made.&lt;br /&gt;
&lt;br /&gt;
There are several good books on quantum computing. This is not an attempt to displace&lt;br /&gt;
them or replace them. The concentration on error prevention and noise is likely different&lt;br /&gt;
than what has been done before and the desire is to have them rather self-contained so that&lt;br /&gt;
few, if any, other resources are absolutely required. However, it is strongly recommended&lt;br /&gt;
that other resources are consulted along with these notes since they are unlikely to be a&lt;br /&gt;
complete resource any time soon. Furthermore, the are not likely to be a better resource for&lt;br /&gt;
many topics which are better and more thoroughly treated elsewhere.&lt;br /&gt;
&lt;br /&gt;
The objective to provide course material which will be introductory enough to enable an&lt;br /&gt;
undergraduate science major with some background in linear algebra to follow the course.&lt;br /&gt;
This includes physics, mathematics, computer science, and engineering majors. A good place&lt;br /&gt;
to start is N. David Mermin’s book [11].&lt;br /&gt;
&lt;br /&gt;
N. David Mermin’s book [11], David J. Giffiths’s book [8], and (of course) Michael Nielsen&lt;br /&gt;
and Isaac Chuang’s book [13] have all greatly influenced these notes. They have influenced&lt;br /&gt;
many parts even if they are not explicitly cited. In the case of Griffiths’s book, I taught an&lt;br /&gt;
undergraduate quantum mechanics course the semester before I taught this course. Therefore&lt;br /&gt;
many of the examples, pedagogy, and exposition were influenced by his book, which I very&lt;br /&gt;
much appreciate.&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Quantum_Computation_and_Quantum_Error_Prevention&amp;diff=343</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=343"/>
		<updated>2010-02-24T05:53:28Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: /* Table of Contents */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Just to remind everyone -- THIS IS UNDER CONSTRUCTION! &lt;br /&gt;
&lt;br /&gt;
=Table of Contents=&lt;br /&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#An Introduction to Quantum Computation|An Introduction to Quantum Computation]]&lt;br /&gt;
##[[Chapter_1#Bits and qubits: An Introduction|Bits and qubits: An Introduction]]&lt;br /&gt;
##[[Chapter_1#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#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#Schrodinger’s 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 a Mixed State|Density Matrix for a Mixed State]]&lt;br /&gt;
##[[Chapter 3 - Physics of Quantum Information#Expectation Values|Expectation Values]]&lt;br /&gt;
##[[Chapter 3 - Physics of Quantum Information#Types of Two-state Systems|Types of Two-state Systems]]&lt;br /&gt;
##[[Chapter 3 - Physics of Quantum Information#Entangled States|Entangled States]]&lt;br /&gt;
##Entanglement: Extentions and Open Problems&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Chapter 4 - Quantum Information: Basic Principles and Simple Examples]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##Uncertainty Principle&lt;br /&gt;
##Quantum Dense Coding&lt;br /&gt;
##Teleporting a Quantum State&lt;br /&gt;
##No Cloning!&lt;br /&gt;
##QKD: BB84&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 5 - Quantum Computation&amp;lt;/big&amp;gt;&lt;br /&gt;
##Quantum Computation Basics&lt;br /&gt;
##Deutsch-Josza Algorithm&lt;br /&gt;
##Simon’s Algorithm&lt;br /&gt;
##Shor’s Algorithm&lt;br /&gt;
##Grover’s Algorithm&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 6 - Experiments&amp;lt;/big&amp;gt;&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 7 - Noise in Quantum Systems&amp;lt;/big&amp;gt;&lt;br /&gt;
##Operator-Sum Decomposition&lt;br /&gt;
##Sudarshan Representation&lt;br /&gt;
##Superoperators: (more or less) Standard representation&lt;br /&gt;
##Notes&lt;br /&gt;
#&amp;lt;big&amp;gt;Chapter 8 - Conclusions&amp;lt;/big&amp;gt;&lt;br /&gt;
##What have we learned?&lt;br /&gt;
&lt;br /&gt;
&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#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;
##Definitions and Examples&lt;br /&gt;
##Properties of Groups with Finite Order&lt;br /&gt;
##Infinite Order Groups: Lie Groups&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Appendix E - Density Operator: Extensions]]&amp;lt;/big&amp;gt;&lt;br /&gt;
##The Coherence Vector/Polarization Vector&lt;br /&gt;
##The Polarization Vector: Other Conventions&lt;br /&gt;
##The Density Matrix for Two Qubits&lt;br /&gt;
#&amp;lt;big&amp;gt;[[Appendix F - NOTES and CREDITS]]&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Preface==&lt;br /&gt;
These are notes to accompany the course on quantum computing taught at Southern Illinois&lt;br /&gt;
University. Until otherwise noted these notes are a work in progress. Therefore, if there are&lt;br /&gt;
any suggestions, questions, comments, errors, etc. please let me know so that appropriate&lt;br /&gt;
modifications can be made.&lt;br /&gt;
&lt;br /&gt;
There are several good books on quantum computing. This is not an attempt to displace&lt;br /&gt;
them or replace them. The concentration on error prevention and noise is likely different&lt;br /&gt;
than what has been done before and the desire is to have them rather self-contained so that&lt;br /&gt;
few, if any, other resources are absolutely required. However, it is strongly recommended&lt;br /&gt;
that other resources are consulted along with these notes since they are unlikely to be a&lt;br /&gt;
complete resource any time soon. Furthermore, the are not likely to be a better resource for&lt;br /&gt;
many topics which are better and more thoroughly treated elsewhere.&lt;br /&gt;
&lt;br /&gt;
The objective to provide course material which will be introductory enough to enable an&lt;br /&gt;
undergraduate science major with some background in linear algebra to follow the course.&lt;br /&gt;
This includes physics, mathematics, computer science, and engineering majors. A good place&lt;br /&gt;
to start is N. David Mermin’s book [11].&lt;br /&gt;
&lt;br /&gt;
N. David Mermin’s book [11], David J. Giffiths’s book [8], and (of course) Michael Nielsen&lt;br /&gt;
and Isaac Chuang’s book [13] have all greatly influenced these notes. They have influenced&lt;br /&gt;
many parts even if they are not explicitly cited. In the case of Griffiths’s book, I taught an&lt;br /&gt;
undergraduate quantum mechanics course the semester before I taught this course. Therefore&lt;br /&gt;
many of the examples, pedagogy, and exposition were influenced by his book, which I very&lt;br /&gt;
much appreciate.&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Chapter_2_-_Qubits_and_Collections_of_Qubits&amp;diff=342</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=342"/>
		<updated>2010-02-24T05:49:50Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: /* Phase in/Phase out */&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 [3]:&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 and noise has become known by&lt;br /&gt;
the term decoherence. 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 and decoherence will be the topics of&lt;br /&gt;
later sections. The fourth and fifth will be discussed in this chapter.&lt;br /&gt;
&lt;br /&gt;
Backwards is it? Not from a computer science perspective or from a motivational perspective.&lt;br /&gt;
Besides, to a large extent, the first two rely very heavily on experimental physics&lt;br /&gt;
and engineering. These topics are primarily beyond the scope of this introductory material,&lt;br /&gt;
but will be treated superficially in Chapter 6.&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 which 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 qubit could be in 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;, 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, 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;
Thus this vector is normalized, i.e. it has magnitude, or length 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 C.1 contains a basic introduction to complex numbers.&amp;lt;/ref&amp;gt; The basis&lt;br /&gt;
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''&lt;br /&gt;
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;
Therefore,&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 closedsystem&lt;br /&gt;
evolution is unitary. (See Appendix D, Sec. D.2.) These unitary matrices, or unitary&lt;br /&gt;
transformations, as well as their generalization to many qubits, transform a 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 untary&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; then we 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;
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;
&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 which implements the unitary transformation&lt;br /&gt;
&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 right 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;
However, 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.&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 a fixed. There are several such transformations which 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 “x” 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. Therefore, 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&lt;br /&gt;
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;&lt;br /&gt;
and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;, the commutator is defined to be&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;[A,B] = AB -BA.\,\!&amp;lt;/math&amp;gt;|2.14}}&lt;br /&gt;
&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;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;[X,Z] = -2iY.\,\!&amp;lt;/math&amp;gt;|2.15}}&lt;br /&gt;
&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;
&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;
&lt;br /&gt;
In this case, its helpful to look at what this gate does to the two basis states:&lt;br /&gt;
&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, Y,&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; Z &amp;lt;/math&amp;gt; are called the Pauli matrices. They are also sometimes&lt;br /&gt;
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&lt;br /&gt;
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 this latter point in the&lt;br /&gt;
next chapter.  &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 abitrary 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; beteen &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 defintions 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_D#eqd.17|(D.17)]] and [[Appendix_D#eqd.8|(D.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&lt;br /&gt;
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;
By 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;&lt;br /&gt;
so&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 Section D.6.)&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 as&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'' with the following notation also perfectly acceptable&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 which may&lt;br /&gt;
share some information or may wish to communicate.  In this case, the&lt;br /&gt;
state belonging to Alice may 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 $n$, 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 abitrary 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 an entangling gate between any two qubits, plus the ability to&lt;br /&gt;
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 which 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;
A controlled operation is one which is conditioned on the state of another part of the system,&lt;br /&gt;
usually a qubit. The most cited example is the CNOT gate, which is a NOT operation on&lt;br /&gt;
one qubit that is implemented only if another qubit is in the state &amp;lt;math&amp;gt;\left\vert{1}\right\rangle\,\!&amp;lt;/math&amp;gt;, in other words a&lt;br /&gt;
controlled NOT operation. This gate is used so often that it is discussed here in detail.&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. 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;
Then the CNOT is given by&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\left\vert{x,y}\right\rangle \overset{CNOT}{\rightarrow} \left\vert{x,x\oplus y}\right\rangle.&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.2. &lt;br /&gt;
The first qubit, &amp;lt;math&amp;gt;\left\vert{x}\right\rangle&amp;lt;/math&amp;gt;, at the top of the diagam, is called the&lt;br /&gt;
''control bit'' and the second, &amp;lt;math&amp;gt;\left\vert{y}\right\rangle&amp;lt;/math&amp;gt;, at the top of the diagam,&lt;br /&gt;
is called the ''target bit''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
|&amp;lt;math&amp;gt;\left\vert{X}\right\rangle\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|[[File:CNOT.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\left\vert{Y}\right\rangle\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Figure 2.2: Circuit diagram for a CNOT gate.&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.3, 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 Fig. 2.4.&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.3: 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.5 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 which, in the end,&lt;br /&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.4: Circuit diagram for a Controlled-phase gate.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Multiqcs.jpg]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Figure 2.5: Multiple CNOT gates on a set of qubits.&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
implements the same multiple-qubit unitary. For example, noting that &amp;lt;math&amp;gt;HZH = X\,\!&amp;lt;/math&amp;gt;, the two&lt;br /&gt;
circuits in Fig. 2.6 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.6: 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 therefore for&lt;br /&gt;
classical bits in classical computers, 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 which will become&lt;br /&gt;
clear later.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Standard Prescription====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the intoduction a simple example was provided as motivation for&lt;br /&gt;
distinguishing quantum states from classical states.  This example of &lt;br /&gt;
two wells with one particle, can be used (cautiously) here as well.  &lt;br /&gt;
&lt;br /&gt;
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;&lt;br /&gt;
of the form&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;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;
&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 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;.  Recall&lt;br /&gt;
that the particle is in this state and that this state really means&lt;br /&gt;
that the particle is not in the state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt; or the state &lt;br /&gt;
&amp;lt;math&amp;gt;\left\vert 1\right\rangle \,\!&amp;lt;/math&amp;gt;, it really means that it is in both at the same time. &lt;br /&gt;
&lt;br /&gt;
This is worth emphasizing since it really ''cannot'' be thought of as&lt;br /&gt;
being in state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt; with probability &amp;lt;math&amp;gt;|\alpha_0|^2\,\!&amp;lt;/math&amp;gt; ''or'' in&lt;br /&gt;
&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;.  If it were then one could&lt;br /&gt;
act on the state with a Hadamard transformation and there would be 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;.  However, acting on the state &amp;lt;math&amp;gt;\left\vert \psi\right\rangle\,\!&amp;lt;/math&amp;gt; with a Hadamard transformation,&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;H\left\vert \psi\right\rangle = \left\vert 0\right\rangle.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|2.36}}&lt;br /&gt;
&lt;br /&gt;
This state has probability zero of being in the state &amp;lt;math&amp;gt;\left\vert 1\right\rangle\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
probability one of being in the state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt;.  (This argument is so&lt;br /&gt;
simple and pointed, that I lifted it directly from Mermin's book&lt;br /&gt;
{Mermin:book}, page 27.)  &lt;br /&gt;
&lt;br /&gt;
A measurement in the computational basis is said to project this state&lt;br /&gt;
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&lt;br /&gt;
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&lt;br /&gt;
understand this as a projection, consider the following way in which&lt;br /&gt;
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&lt;br /&gt;
&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&lt;br /&gt;
by taking the inner product 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 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; and 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.7. &amp;lt;!-- Fig.~\ref{fig:measurement}.--&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:measurementcd.jpg‎]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Figure 2.7: The circuit diagram for a measurement.  &lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As an example, the measurement result can be used for input for another state.  The unitary&lt;br /&gt;
in Figure 2.8 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.8: A circuit which includes a measurement.  &lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--   \begin{figure}[h]&lt;br /&gt;
    \begin{center}&lt;br /&gt;
     \mbox{\epsfig{file=/home/mbyrd/tex/books/qcomp/figures/measurement.eps}}&lt;br /&gt;
     \caption{Circuit diagram with a measurement.  The result of the&lt;br /&gt;
       measurement, in this case, is input for another qubit.  The&lt;br /&gt;
       qubit is acted upon by $U$ which is chosen after the result of&lt;br /&gt;
       the measurement is known.}&lt;br /&gt;
     \label{fig:measex}&lt;br /&gt;
     \end{center}&lt;br /&gt;
   \end{figure}&lt;br /&gt;
--&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 projecter?  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;
&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&lt;br /&gt;
outter product &amp;lt;math&amp;gt;\left\vert{x}\right\rangle\!\!\left\langle{x}\right\vert\,\!&amp;lt;/math&amp;gt; is a projecter.  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 projecter 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 project.  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 abstact cases.  One important&lt;br /&gt;
example is that the sum over all 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 all 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;=&amp;amp; \left\langle{\psi}\mid{x}\right\rangle\left\langle{x}\mid{\psi}\right\rangle \\&lt;br /&gt;
                     &amp;amp;=&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 since &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;
expressioin, 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;, 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;=&amp;amp; \left\langle{\psi^\prime}\mid{x}\right\rangle\left\langle{x}\mid{\psi^\prime}\right\rangle \\&lt;br /&gt;
                     &amp;amp;=&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;=&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, it has 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, as we will see later, 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.&lt;br /&gt;
&lt;br /&gt;
==Footnotes==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Chapter_2_-_Qubits_and_Collections_of_Qubits&amp;diff=341</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=341"/>
		<updated>2010-02-24T05:48:48Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: /* Phase in/Phase out */&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 [3]:&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 and noise has become known by&lt;br /&gt;
the term decoherence. 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 and decoherence will be the topics of&lt;br /&gt;
later sections. The fourth and fifth will be discussed in this chapter.&lt;br /&gt;
&lt;br /&gt;
Backwards is it? Not from a computer science perspective or from a motivational perspective.&lt;br /&gt;
Besides, to a large extent, the first two rely very heavily on experimental physics&lt;br /&gt;
and engineering. These topics are primarily beyond the scope of this introductory material,&lt;br /&gt;
but will be treated superficially in Chapter 6.&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 which 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 qubit could be in 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;, 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, 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;
Thus this vector is normalized, i.e. it has magnitude, or length 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 C.1 contains a basic introduction to complex numbers.&amp;lt;/ref&amp;gt; The basis&lt;br /&gt;
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''&lt;br /&gt;
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;
Therefore,&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 closedsystem&lt;br /&gt;
evolution is unitary. (See Appendix D, Sec. D.2.) These unitary matrices, or unitary&lt;br /&gt;
transformations, as well as their generalization to many qubits, transform a 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 untary&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; then we 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;
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;
&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 which implements the unitary transformation&lt;br /&gt;
&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 right 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;
However, 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.&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 a fixed. There are several such transformations which 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 “x” 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. Therefore, 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&lt;br /&gt;
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;&lt;br /&gt;
and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;, the commutator is defined to be&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;[A,B] = AB -BA.\,\!&amp;lt;/math&amp;gt;|2.14}}&lt;br /&gt;
&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;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;[X,Z] = -2iY.\,\!&amp;lt;/math&amp;gt;|2.15}}&lt;br /&gt;
&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;
&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;
&lt;br /&gt;
In this case, its helpful to look at what this gate does to the two basis states:&lt;br /&gt;
&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, Y,&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; Z &amp;lt;/math&amp;gt; are called the Pauli matrices. They are also sometimes&lt;br /&gt;
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&lt;br /&gt;
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 this latter point in the&lt;br /&gt;
next chapter.  &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 abitrary 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; beteen &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 defintions 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_D#eqd.17|(D.17)]] and [[Appendix_D#eqd.8|(D.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&lt;br /&gt;
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;
By 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;&lt;br /&gt;
so&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 Section D.6.)&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 as&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'' with the following notation also perfectly acceptable&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 which may&lt;br /&gt;
share some information or may wish to communicate.  In this case, the&lt;br /&gt;
state belonging to Alice may 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 $n$, 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 abitrary 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 an entangling gate between any two qubits, plus the ability to&lt;br /&gt;
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 which 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;
A controlled operation is one which is conditioned on the state of another part of the system,&lt;br /&gt;
usually a qubit. The most cited example is the CNOT gate, which is a NOT operation on&lt;br /&gt;
one qubit that is implemented only if another qubit is in the state &amp;lt;math&amp;gt;\left\vert{1}\right\rangle\,\!&amp;lt;/math&amp;gt;, in other words a&lt;br /&gt;
controlled NOT operation. This gate is used so often that it is discussed here in detail.&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. 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;
Then the CNOT is given by&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\left\vert{x,y}\right\rangle \overset{CNOT}{\rightarrow} \left\vert{x,x\oplus y}\right\rangle.&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.2. &lt;br /&gt;
The first qubit, &amp;lt;math&amp;gt;\left\vert{x}\right\rangle&amp;lt;/math&amp;gt;, at the top of the diagam, is called the&lt;br /&gt;
''control bit'' and the second, &amp;lt;math&amp;gt;\left\vert{y}\right\rangle&amp;lt;/math&amp;gt;, at the top of the diagam,&lt;br /&gt;
is called the ''target bit''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
|&amp;lt;math&amp;gt;\left\vert{X}\right\rangle\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|[[File:CNOT.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\left\vert{Y}\right\rangle\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Figure 2.2: Circuit diagram for a CNOT gate.&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.3, 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 Fig. 2.4.&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.3: 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.5 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 which, in the end,&lt;br /&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.4: Circuit diagram for a Controlled-phase gate.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Multiqcs.jpg]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Figure 2.5: Multiple CNOT gates on a set of qubits.&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
implements the same multiple-qubit unitary. For example, noting that &amp;lt;math&amp;gt;HZH = X\,\!&amp;lt;/math&amp;gt;, the two&lt;br /&gt;
circuits in Fig. 2.6 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.6: 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 therefore for&lt;br /&gt;
classical bits in classical computers, 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 which will become&lt;br /&gt;
clear later.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Standard Prescription====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the intoduction a simple example was provided as motivation for&lt;br /&gt;
distinguishing quantum states from classical states.  This example of &lt;br /&gt;
two wells with one particle, can be used (cautiously) here as well.  &lt;br /&gt;
&lt;br /&gt;
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;&lt;br /&gt;
of the form&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;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;
&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 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;.  Recall&lt;br /&gt;
that the particle is in this state and that this state really means&lt;br /&gt;
that the particle is not in the state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt; or the state &lt;br /&gt;
&amp;lt;math&amp;gt;\left\vert 1\right\rangle \,\!&amp;lt;/math&amp;gt;, it really means that it is in both at the same time. &lt;br /&gt;
&lt;br /&gt;
This is worth emphasizing since it really ''cannot'' be thought of as&lt;br /&gt;
being in state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt; with probability &amp;lt;math&amp;gt;|\alpha_0|^2\,\!&amp;lt;/math&amp;gt; ''or'' in&lt;br /&gt;
&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;.  If it were then one could&lt;br /&gt;
act on the state with a Hadamard transformation and there would be 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;.  However, acting on the state &amp;lt;math&amp;gt;\left\vert \psi\right\rangle\,\!&amp;lt;/math&amp;gt; with a Hadamard transformation,&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;H\left\vert \psi\right\rangle = \left\vert 0\right\rangle.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|2.36}}&lt;br /&gt;
&lt;br /&gt;
This state has probability zero of being in the state &amp;lt;math&amp;gt;\left\vert 1\right\rangle\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
probability one of being in the state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt;.  (This argument is so&lt;br /&gt;
simple and pointed, that I lifted it directly from Mermin's book&lt;br /&gt;
{Mermin:book}, page 27.)  &lt;br /&gt;
&lt;br /&gt;
A measurement in the computational basis is said to project this state&lt;br /&gt;
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&lt;br /&gt;
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&lt;br /&gt;
understand this as a projection, consider the following way in which&lt;br /&gt;
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&lt;br /&gt;
&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&lt;br /&gt;
by taking the inner product 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 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; and 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.7. &amp;lt;!-- Fig.~\ref{fig:measurement}.--&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:measurementcd.jpg‎]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Figure 2.7: The circuit diagram for a measurement.  &lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As an example, the measurement result can be used for input for another state.  The unitary&lt;br /&gt;
in Figure 2.8 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.8: A circuit which includes a measurement.  &lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--   \begin{figure}[h]&lt;br /&gt;
    \begin{center}&lt;br /&gt;
     \mbox{\epsfig{file=/home/mbyrd/tex/books/qcomp/figures/measurement.eps}}&lt;br /&gt;
     \caption{Circuit diagram with a measurement.  The result of the&lt;br /&gt;
       measurement, in this case, is input for another qubit.  The&lt;br /&gt;
       qubit is acted upon by $U$ which is chosen after the result of&lt;br /&gt;
       the measurement is known.}&lt;br /&gt;
     \label{fig:measex}&lt;br /&gt;
     \end{center}&lt;br /&gt;
   \end{figure}&lt;br /&gt;
--&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 projecter?  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;
&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&lt;br /&gt;
outter product &amp;lt;math&amp;gt;\left\vert{x}\right\rangle\!\!\left\langle{x}\right\vert\,\!&amp;lt;/math&amp;gt; is a projecter.  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 projecter 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 project.  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 abstact cases.  One important&lt;br /&gt;
example is that the sum over all 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 all 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;=&amp;amp; \left\langle{\psi}\mid{x}\right\rangle\left\langle{x}\mid{\psi}\right\rangle \\&lt;br /&gt;
                     &amp;amp;=&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 since &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;
expressioin, 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;, 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;=&amp;amp; \left\langle{\psi^\prime}\mid{x}\right\rangle\left\langle{x}\mid{\psi^\prime}\right\rangle \\&lt;br /&gt;
                     &amp;amp;=&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;=&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, it has 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;
==Footnotes==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Chapter_2_-_Qubits_and_Collections_of_Qubits&amp;diff=236</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=236"/>
		<updated>2010-02-20T10:14:14Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: /* Projection Operators */&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 [3]:&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 and noise has become known by&lt;br /&gt;
the term decoherence. 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 and decoherence will be the topics of&lt;br /&gt;
later sections. The fourth and fifth will be discussed in this chapter.&lt;br /&gt;
&lt;br /&gt;
Backwards is it? Not from a computer science perspective or from a motivational perspective.&lt;br /&gt;
Besides, to a large extent, the first two rely very heavily on experimental physics&lt;br /&gt;
and engineering. These topics are primarily beyond the scope of this introductory material,&lt;br /&gt;
but will be treated superficially in Chapter 6.&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 which 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 qubit could be in 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;, 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;
&amp;lt;!-- Got this from the following example&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| style=&amp;quot;color:white&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| bgcolor=&amp;quot;red&amp;quot;|cell1 || width=&amp;quot;300&amp;quot; bgcolor=&amp;quot;blue&amp;quot;|cell2 || bgcolor=&amp;quot;green&amp;quot;|cell3&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt; --&amp;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, 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;
Thus this vector is normalized, i.e. it has magnitude, or length 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 C.1 contains a basic introduction to complex numbers.&amp;lt;/ref&amp;gt; The basis&lt;br /&gt;
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''&lt;br /&gt;
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;
Therefore,&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 closedsystem&lt;br /&gt;
evolution is unitary. (See Appendix D, Sec. D.2.) These unitary matrices, or unitary&lt;br /&gt;
transformations, as well as their generalization to many qubits, transform a 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 untary&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; then we 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;
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;
&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 which implements the unitary transformation&lt;br /&gt;
&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 right 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;
However, 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.&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 a fixed. There are several such transformations which 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 “x” 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. Therefore, 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&lt;br /&gt;
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;&lt;br /&gt;
and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;, the commutator is defined to be&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;[A,B] = AB -BA.\,\!&amp;lt;/math&amp;gt;|2.14}}&lt;br /&gt;
&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;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;[X,Z] = -2iY.\,\!&amp;lt;/math&amp;gt;|2.15}}&lt;br /&gt;
&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;
&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;
&lt;br /&gt;
In this case, its helpful to look at what this gate does to the two basis states:&lt;br /&gt;
&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, Y,&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; Z &amp;lt;/math&amp;gt; are called the Pauli matrices. They are also sometimes&lt;br /&gt;
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&lt;br /&gt;
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 this latter point in the&lt;br /&gt;
next chapter.  &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 abitrary 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; beteen &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 defintions 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_D#eqd.17|(D.17)]] and [[Appendix_D#eqd.8|(D.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&lt;br /&gt;
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;
By 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;&lt;br /&gt;
so&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 Section D.6.)&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 as&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'' with the following notation also perfectly acceptable&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 which may&lt;br /&gt;
share some information or may wish to communicate.  In this case, the&lt;br /&gt;
state belonging to Alice may 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 $n$, 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 abitrary 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 an entangling gate between any two qubits, plus the ability to&lt;br /&gt;
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 which 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;
A controlled operation is one which is conditioned on the state of another part of the system,&lt;br /&gt;
usually a qubit. The most cited example is the CNOT gate, which is a NOT operation on&lt;br /&gt;
one qubit that is implemented only if another qubit is in the state &amp;lt;math&amp;gt;\left\vert{1}\right\rangle\,\!&amp;lt;/math&amp;gt;, in other words a&lt;br /&gt;
controlled NOT operation. This gate is used so often that it is discussed here in detail.&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. 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;
Then the CNOT is given by&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\left\vert{x,y}\right\rangle \overset{CNOT}{\rightarrow} \left\vert{x,x\oplus y}\right\rangle.&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.2. &lt;br /&gt;
The first qubit, &amp;lt;math&amp;gt;\left\vert{x}\right\rangle&amp;lt;/math&amp;gt;, at the top of the diagam, is called the&lt;br /&gt;
''control bit'' and the second, &amp;lt;math&amp;gt;\left\vert{y}\right\rangle&amp;lt;/math&amp;gt;, at the top of the diagam,&lt;br /&gt;
is called the ''target bit''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
|&amp;lt;math&amp;gt;\left\vert{X}\right\rangle\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|[[File:CNOT.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\left\vert{Y}\right\rangle\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Figure 2.2: Circuit diagram for a CNOT gate.&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.3, 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 Fig. 2.4.&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.3: 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.5 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 which, in the end,&lt;br /&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.4: Circuit diagram for a Controlled-phase gate.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Multiqcs.jpg]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Figure 2.5: Multiple CNOT gates on a set of qubits.&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
implements the same multiple-qubit unitary. For example, noting that &amp;lt;math&amp;gt;HZH = X\,\!&amp;lt;/math&amp;gt;, the two&lt;br /&gt;
circuits in Fig. 2.6 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.6: 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 therefore for&lt;br /&gt;
classical bits in classical computers, 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 which will become&lt;br /&gt;
clear later.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Standard Prescription====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the intoduction a simple example was provided as motivation for&lt;br /&gt;
distinguishing quantum states from classical states.  This example of &lt;br /&gt;
two wells with one particle, can be used (cautiously) here as well.  &lt;br /&gt;
&lt;br /&gt;
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;&lt;br /&gt;
of the form&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;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;
&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 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;.  Recall&lt;br /&gt;
that the particle is in this state and that this state really means&lt;br /&gt;
that the particle is not in the state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt; or the state &lt;br /&gt;
&amp;lt;math&amp;gt;\left\vert 1\right\rangle \,\!&amp;lt;/math&amp;gt;, it really means that it is in both at the same time. &lt;br /&gt;
&lt;br /&gt;
This is worth emphasizing since it really ''cannot'' be thought of as&lt;br /&gt;
being in state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt; with probability &amp;lt;math&amp;gt;|\alpha_0|^2\,\!&amp;lt;/math&amp;gt; ''or'' in&lt;br /&gt;
&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;.  If it were then one could&lt;br /&gt;
act on the state with a Hadamard transformation and there would be 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;.  However, acting on the state &amp;lt;math&amp;gt;\left\vert \psi\right\rangle\,\!&amp;lt;/math&amp;gt; with a Hadamard transformation,&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;H\left\vert \psi\right\rangle = \left\vert 0\right\rangle.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|2.36}}&lt;br /&gt;
&lt;br /&gt;
This state has probability zero of being in the state &amp;lt;math&amp;gt;\left\vert 1\right\rangle\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
probability one of being in the state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt;.  (This argument is so&lt;br /&gt;
simple and pointed, that I lifted it directly from Mermin's book&lt;br /&gt;
{Mermin:book}, page 27.)  &lt;br /&gt;
&lt;br /&gt;
A measurement in the computational basis is said to project this state&lt;br /&gt;
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&lt;br /&gt;
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&lt;br /&gt;
understand this as a projection, consider the following way in which&lt;br /&gt;
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&lt;br /&gt;
&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&lt;br /&gt;
by taking the inner product 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 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; and 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 Fig.~\ref{fig:measex}.  In this case, the&lt;br /&gt;
measurement result is used for input for another state.  The unitary&lt;br /&gt;
in this diagram 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;!--   \begin{figure}[h]&lt;br /&gt;
    \begin{center}&lt;br /&gt;
     \mbox{\epsfig{file=/home/mbyrd/tex/books/qcomp/figures/measurement.eps}}&lt;br /&gt;
     \caption{Circuit diagram with a measurement.  The result of the&lt;br /&gt;
       measurement, in this case, is input for another qubit.  The&lt;br /&gt;
       qubit is acted upon by $U$ which is chosen after the result of&lt;br /&gt;
       the measurement is known.}&lt;br /&gt;
     \label{fig:measex}&lt;br /&gt;
     \end{center}&lt;br /&gt;
   \end{figure}&lt;br /&gt;
--&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 projecter?  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;
&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&lt;br /&gt;
outter product &amp;lt;math&amp;gt;\left\vert{x}\right\rangle\!\!\left\langle{x}\right\vert\,\!&amp;lt;/math&amp;gt; is a projecter.  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 projecter 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 project.  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 abstact cases.  One important&lt;br /&gt;
example is that the sum over all 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 all projecters, is &lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\sum_{\mbox{\scriptsize all}\; 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;
==Footnotes==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Chapter_2_-_Qubits_and_Collections_of_Qubits&amp;diff=235</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=235"/>
		<updated>2010-02-20T10:13:19Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: /* Projection Operators */&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 [3]:&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 and noise has become known by&lt;br /&gt;
the term decoherence. 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 and decoherence will be the topics of&lt;br /&gt;
later sections. The fourth and fifth will be discussed in this chapter.&lt;br /&gt;
&lt;br /&gt;
Backwards is it? Not from a computer science perspective or from a motivational perspective.&lt;br /&gt;
Besides, to a large extent, the first two rely very heavily on experimental physics&lt;br /&gt;
and engineering. These topics are primarily beyond the scope of this introductory material,&lt;br /&gt;
but will be treated superficially in Chapter 6.&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 which 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 qubit could be in 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;, 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;
&amp;lt;!-- Got this from the following example&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| style=&amp;quot;color:white&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| bgcolor=&amp;quot;red&amp;quot;|cell1 || width=&amp;quot;300&amp;quot; bgcolor=&amp;quot;blue&amp;quot;|cell2 || bgcolor=&amp;quot;green&amp;quot;|cell3&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt; --&amp;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, 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;
Thus this vector is normalized, i.e. it has magnitude, or length 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 C.1 contains a basic introduction to complex numbers.&amp;lt;/ref&amp;gt; The basis&lt;br /&gt;
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''&lt;br /&gt;
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;
Therefore,&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 closedsystem&lt;br /&gt;
evolution is unitary. (See Appendix D, Sec. D.2.) These unitary matrices, or unitary&lt;br /&gt;
transformations, as well as their generalization to many qubits, transform a 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 untary&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; then we 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;
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;
&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 which implements the unitary transformation&lt;br /&gt;
&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 right 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;
However, 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.&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 a fixed. There are several such transformations which 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 “x” 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. Therefore, 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&lt;br /&gt;
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;&lt;br /&gt;
and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;, the commutator is defined to be&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;[A,B] = AB -BA.\,\!&amp;lt;/math&amp;gt;|2.14}}&lt;br /&gt;
&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;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;[X,Z] = -2iY.\,\!&amp;lt;/math&amp;gt;|2.15}}&lt;br /&gt;
&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;
&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;
&lt;br /&gt;
In this case, its helpful to look at what this gate does to the two basis states:&lt;br /&gt;
&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, Y,&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; Z &amp;lt;/math&amp;gt; are called the Pauli matrices. They are also sometimes&lt;br /&gt;
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&lt;br /&gt;
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 this latter point in the&lt;br /&gt;
next chapter.  &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 abitrary 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; beteen &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 defintions 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_D#eqd.17|(D.17)]] and [[Appendix_D#eqd.8|(D.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&lt;br /&gt;
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;
By 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;&lt;br /&gt;
so&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 Section D.6.)&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 as&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'' with the following notation also perfectly acceptable&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 which may&lt;br /&gt;
share some information or may wish to communicate.  In this case, the&lt;br /&gt;
state belonging to Alice may 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 $n$, 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 abitrary 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 an entangling gate between any two qubits, plus the ability to&lt;br /&gt;
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 which 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;
A controlled operation is one which is conditioned on the state of another part of the system,&lt;br /&gt;
usually a qubit. The most cited example is the CNOT gate, which is a NOT operation on&lt;br /&gt;
one qubit that is implemented only if another qubit is in the state &amp;lt;math&amp;gt;\left\vert{1}\right\rangle\,\!&amp;lt;/math&amp;gt;, in other words a&lt;br /&gt;
controlled NOT operation. This gate is used so often that it is discussed here in detail.&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. 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;
Then the CNOT is given by&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\left\vert{x,y}\right\rangle \overset{CNOT}{\rightarrow} \left\vert{x,x\oplus y}\right\rangle.&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.2. &lt;br /&gt;
The first qubit, &amp;lt;math&amp;gt;\left\vert{x}\right\rangle&amp;lt;/math&amp;gt;, at the top of the diagam, is called the&lt;br /&gt;
''control bit'' and the second, &amp;lt;math&amp;gt;\left\vert{y}\right\rangle&amp;lt;/math&amp;gt;, at the top of the diagam,&lt;br /&gt;
is called the ''target bit''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
|&amp;lt;math&amp;gt;\left\vert{X}\right\rangle\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|[[File:CNOT.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\left\vert{Y}\right\rangle\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Figure 2.2: Circuit diagram for a CNOT gate.&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.3, 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 Fig. 2.4.&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.3: 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.5 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 which, in the end,&lt;br /&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.4: Circuit diagram for a Controlled-phase gate.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Multiqcs.jpg]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Figure 2.5: Multiple CNOT gates on a set of qubits.&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
implements the same multiple-qubit unitary. For example, noting that &amp;lt;math&amp;gt;HZH = X\,\!&amp;lt;/math&amp;gt;, the two&lt;br /&gt;
circuits in Fig. 2.6 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.6: 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 therefore for&lt;br /&gt;
classical bits in classical computers, 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 which will become&lt;br /&gt;
clear later.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Standard Prescription====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the intoduction a simple example was provided as motivation for&lt;br /&gt;
distinguishing quantum states from classical states.  This example of &lt;br /&gt;
two wells with one particle, can be used (cautiously) here as well.  &lt;br /&gt;
&lt;br /&gt;
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;&lt;br /&gt;
of the form&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;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;
&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 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;.  Recall&lt;br /&gt;
that the particle is in this state and that this state really means&lt;br /&gt;
that the particle is not in the state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt; or the state &lt;br /&gt;
&amp;lt;math&amp;gt;\left\vert 1\right\rangle \,\!&amp;lt;/math&amp;gt;, it really means that it is in both at the same time. &lt;br /&gt;
&lt;br /&gt;
This is worth emphasizing since it really ''cannot'' be thought of as&lt;br /&gt;
being in state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt; with probability &amp;lt;math&amp;gt;|\alpha_0|^2\,\!&amp;lt;/math&amp;gt; ''or'' in&lt;br /&gt;
&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;.  If it were then one could&lt;br /&gt;
act on the state with a Hadamard transformation and there would be 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;.  However, acting on the state &amp;lt;math&amp;gt;\left\vert \psi\right\rangle\,\!&amp;lt;/math&amp;gt; with a Hadamard transformation,&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;H\left\vert \psi\right\rangle = \left\vert 0\right\rangle.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|2.36}}&lt;br /&gt;
&lt;br /&gt;
This state has probability zero of being in the state &amp;lt;math&amp;gt;\left\vert 1\right\rangle\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
probability one of being in the state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt;.  (This argument is so&lt;br /&gt;
simple and pointed, that I lifted it directly from Mermin's book&lt;br /&gt;
{Mermin:book}, page 27.)  &lt;br /&gt;
&lt;br /&gt;
A measurement in the computational basis is said to project this state&lt;br /&gt;
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&lt;br /&gt;
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&lt;br /&gt;
understand this as a projection, consider the following way in which&lt;br /&gt;
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&lt;br /&gt;
&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&lt;br /&gt;
by taking the inner product 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 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; and 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 Fig.~\ref{fig:measex}.  In this case, the&lt;br /&gt;
measurement result is used for input for another state.  The unitary&lt;br /&gt;
in this diagram 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;!--   \begin{figure}[h]&lt;br /&gt;
    \begin{center}&lt;br /&gt;
     \mbox{\epsfig{file=/home/mbyrd/tex/books/qcomp/figures/measurement.eps}}&lt;br /&gt;
     \caption{Circuit diagram with a measurement.  The result of the&lt;br /&gt;
       measurement, in this case, is input for another qubit.  The&lt;br /&gt;
       qubit is acted upon by $U$ which is chosen after the result of&lt;br /&gt;
       the measurement is known.}&lt;br /&gt;
     \label{fig:measex}&lt;br /&gt;
     \end{center}&lt;br /&gt;
   \end{figure}&lt;br /&gt;
--&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 projecter?  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;
&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&lt;br /&gt;
outter product &amp;lt;math&amp;gt;\left\vert{x}\right\rangle\!\!\left\langle{x}\right\vert\,\!&amp;lt;/math&amp;gt; is a projecter.  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 projecter 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 project.  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 abstact cases.  One important&lt;br /&gt;
example is that the sum over all 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 all projecters, is &lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\sum_{\mbox{\scriptsize all}\; 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;
==Footnotes==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Chapter_2_-_Qubits_and_Collections_of_Qubits&amp;diff=234</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=234"/>
		<updated>2010-02-20T10:07:01Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: /* Projection Operators */&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 [3]:&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 and noise has become known by&lt;br /&gt;
the term decoherence. 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 and decoherence will be the topics of&lt;br /&gt;
later sections. The fourth and fifth will be discussed in this chapter.&lt;br /&gt;
&lt;br /&gt;
Backwards is it? Not from a computer science perspective or from a motivational perspective.&lt;br /&gt;
Besides, to a large extent, the first two rely very heavily on experimental physics&lt;br /&gt;
and engineering. These topics are primarily beyond the scope of this introductory material,&lt;br /&gt;
but will be treated superficially in Chapter 6.&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 which 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 qubit could be in 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;, 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;
&amp;lt;!-- Got this from the following example&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| style=&amp;quot;color:white&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| bgcolor=&amp;quot;red&amp;quot;|cell1 || width=&amp;quot;300&amp;quot; bgcolor=&amp;quot;blue&amp;quot;|cell2 || bgcolor=&amp;quot;green&amp;quot;|cell3&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt; --&amp;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, 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;
Thus this vector is normalized, i.e. it has magnitude, or length 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 C.1 contains a basic introduction to complex numbers.&amp;lt;/ref&amp;gt; The basis&lt;br /&gt;
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''&lt;br /&gt;
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;
Therefore,&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 closedsystem&lt;br /&gt;
evolution is unitary. (See Appendix D, Sec. D.2.) These unitary matrices, or unitary&lt;br /&gt;
transformations, as well as their generalization to many qubits, transform a 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 untary&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; then we 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;
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;
&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 which implements the unitary transformation&lt;br /&gt;
&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 right 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;
However, 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.&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 a fixed. There are several such transformations which 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 “x” 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. Therefore, 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&lt;br /&gt;
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;&lt;br /&gt;
and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;, the commutator is defined to be&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;[A,B] = AB -BA.\,\!&amp;lt;/math&amp;gt;|2.14}}&lt;br /&gt;
&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;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;[X,Z] = -2iY.\,\!&amp;lt;/math&amp;gt;|2.15}}&lt;br /&gt;
&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;
&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;
&lt;br /&gt;
In this case, its helpful to look at what this gate does to the two basis states:&lt;br /&gt;
&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, Y,&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; Z &amp;lt;/math&amp;gt; are called the Pauli matrices. They are also sometimes&lt;br /&gt;
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&lt;br /&gt;
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 this latter point in the&lt;br /&gt;
next chapter.  &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 abitrary 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; beteen &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 defintions 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_D#eqd.17|(D.17)]] and [[Appendix_D#eqd.8|(D.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&lt;br /&gt;
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;
By 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;&lt;br /&gt;
so&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 Section D.6.)&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 as&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'' with the following notation also perfectly acceptable&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 which may&lt;br /&gt;
share some information or may wish to communicate.  In this case, the&lt;br /&gt;
state belonging to Alice may 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 $n$, 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 abitrary 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 an entangling gate between any two qubits, plus the ability to&lt;br /&gt;
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 which 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;
A controlled operation is one which is conditioned on the state of another part of the system,&lt;br /&gt;
usually a qubit. The most cited example is the CNOT gate, which is a NOT operation on&lt;br /&gt;
one qubit that is implemented only if another qubit is in the state &amp;lt;math&amp;gt;\left\vert{1}\right\rangle\,\!&amp;lt;/math&amp;gt;, in other words a&lt;br /&gt;
controlled NOT operation. This gate is used so often that it is discussed here in detail.&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. 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;
Then the CNOT is given by&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\left\vert{x,y}\right\rangle \overset{CNOT}{\rightarrow} \left\vert{x,x\oplus y}\right\rangle.&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.2. &lt;br /&gt;
The first qubit, &amp;lt;math&amp;gt;\left\vert{x}\right\rangle&amp;lt;/math&amp;gt;, at the top of the diagam, is called the&lt;br /&gt;
''control bit'' and the second, &amp;lt;math&amp;gt;\left\vert{y}\right\rangle&amp;lt;/math&amp;gt;, at the top of the diagam,&lt;br /&gt;
is called the ''target bit''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
|&amp;lt;math&amp;gt;\left\vert{X}\right\rangle\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|[[File:CNOT.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\left\vert{Y}\right\rangle\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Figure 2.2: Circuit diagram for a CNOT gate.&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.3, 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 Fig. 2.4.&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.3: 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.5 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 which, in the end,&lt;br /&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.4: Circuit diagram for a Controlled-phase gate.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Multiqcs.jpg]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Figure 2.5: Multiple CNOT gates on a set of qubits.&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
implements the same multiple-qubit unitary. For example, noting that &amp;lt;math&amp;gt;HZH = X\,\!&amp;lt;/math&amp;gt;, the two&lt;br /&gt;
circuits in Fig. 2.6 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.6: 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 therefore for&lt;br /&gt;
classical bits in classical computers, 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 which will become&lt;br /&gt;
clear later.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Standard Prescription====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the intoduction a simple example was provided as motivation for&lt;br /&gt;
distinguishing quantum states from classical states.  This example of &lt;br /&gt;
two wells with one particle, can be used (cautiously) here as well.  &lt;br /&gt;
&lt;br /&gt;
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;&lt;br /&gt;
of the form&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;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;
&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 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;.  Recall&lt;br /&gt;
that the particle is in this state and that this state really means&lt;br /&gt;
that the particle is not in the state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt; or the state &lt;br /&gt;
&amp;lt;math&amp;gt;\left\vert 1\right\rangle \,\!&amp;lt;/math&amp;gt;, it really means that it is in both at the same time. &lt;br /&gt;
&lt;br /&gt;
This is worth emphasizing since it really ''cannot'' be thought of as&lt;br /&gt;
being in state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt; with probability &amp;lt;math&amp;gt;|\alpha_0|^2\,\!&amp;lt;/math&amp;gt; ''or'' in&lt;br /&gt;
&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;.  If it were then one could&lt;br /&gt;
act on the state with a Hadamard transformation and there would be 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;.  However, acting on the state &amp;lt;math&amp;gt;\left\vert \psi\right\rangle\,\!&amp;lt;/math&amp;gt; with a Hadamard transformation,&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;H\left\vert \psi\right\rangle = \left\vert 0\right\rangle.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|2.36}}&lt;br /&gt;
&lt;br /&gt;
This state has probability zero of being in the state &amp;lt;math&amp;gt;\left\vert 1\right\rangle\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
probability one of being in the state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt;.  (This argument is so&lt;br /&gt;
simple and pointed, that I lifted it directly from Mermin's book&lt;br /&gt;
{Mermin:book}, page 27.)  &lt;br /&gt;
&lt;br /&gt;
A measurement in the computational basis is said to project this state&lt;br /&gt;
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&lt;br /&gt;
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&lt;br /&gt;
understand this as a projection, consider the following way in which&lt;br /&gt;
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&lt;br /&gt;
&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&lt;br /&gt;
by taking the inner product 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 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; and 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 Fig.~\ref{fig:measex}.  In this case, the&lt;br /&gt;
measurement result is used for input for another state.  The unitary&lt;br /&gt;
in this diagram 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;!--   \begin{figure}[h]&lt;br /&gt;
    \begin{center}&lt;br /&gt;
     \mbox{\epsfig{file=/home/mbyrd/tex/books/qcomp/figures/measurement.eps}}&lt;br /&gt;
     \caption{Circuit diagram with a measurement.  The result of the&lt;br /&gt;
       measurement, in this case, is input for another qubit.  The&lt;br /&gt;
       qubit is acted upon by $U$ which is chosen after the result of&lt;br /&gt;
       the measurement is known.}&lt;br /&gt;
     \label{fig:measex}&lt;br /&gt;
     \end{center}&lt;br /&gt;
   \end{figure}&lt;br /&gt;
--&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 projecter?  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;
&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&lt;br /&gt;
outter product &amp;lt;math&amp;gt;\left\vert{x}\right\rangle\!\!\left\langle{x}\right\vert\,\!&amp;lt;/math&amp;gt; is a projecter.  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 projecter and can be written in matrix form as &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&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;&lt;br /&gt;
&lt;br /&gt;
Acting with this on &amp;lt;math&amp;gt;\ket{\psi} = \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;
&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;  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;&lt;br /&gt;
&lt;br /&gt;
Acting again produces&lt;br /&gt;
&lt;br /&gt;
&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;  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;&lt;br /&gt;
&lt;br /&gt;
This is due to the fact that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&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;&lt;br /&gt;
&lt;br /&gt;
In fact this property essentially defines a project.  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;. \index{projection&lt;br /&gt;
  operator} Much of our intuition about geometric projections in&lt;br /&gt;
three-dimensions carries to the more abstact cases.  One important&lt;br /&gt;
example is that the sum over all projections is the identity.   &lt;br /&gt;
(See also Appendix \ref{app:alg}, Sec.~\ref{sec:MDirac}.)  The&lt;br /&gt;
generalization to arbitrary dimensions, where &amp;lt;math&amp;gt;\ket{i}\,\!&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 all projecters, is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{\mbox{\scriptsize all}\; i} \left\vert{i}\right\rangle\!\!\left\langle{i}\right\vert = 1.  &lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Footnotes==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Chapter_2_-_Qubits_and_Collections_of_Qubits&amp;diff=233</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=233"/>
		<updated>2010-02-20T09:52:54Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: /* Standard Prescription */&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 [3]:&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 and noise has become known by&lt;br /&gt;
the term decoherence. 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 and decoherence will be the topics of&lt;br /&gt;
later sections. The fourth and fifth will be discussed in this chapter.&lt;br /&gt;
&lt;br /&gt;
Backwards is it? Not from a computer science perspective or from a motivational perspective.&lt;br /&gt;
Besides, to a large extent, the first two rely very heavily on experimental physics&lt;br /&gt;
and engineering. These topics are primarily beyond the scope of this introductory material,&lt;br /&gt;
but will be treated superficially in Chapter 6.&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 which 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 qubit could be in 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;, 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;
&amp;lt;!-- Got this from the following example&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| style=&amp;quot;color:white&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| bgcolor=&amp;quot;red&amp;quot;|cell1 || width=&amp;quot;300&amp;quot; bgcolor=&amp;quot;blue&amp;quot;|cell2 || bgcolor=&amp;quot;green&amp;quot;|cell3&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt; --&amp;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, 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;
Thus this vector is normalized, i.e. it has magnitude, or length 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 C.1 contains a basic introduction to complex numbers.&amp;lt;/ref&amp;gt; The basis&lt;br /&gt;
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''&lt;br /&gt;
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;
Therefore,&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 closedsystem&lt;br /&gt;
evolution is unitary. (See Appendix D, Sec. D.2.) These unitary matrices, or unitary&lt;br /&gt;
transformations, as well as their generalization to many qubits, transform a 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 untary&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; then we 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;
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;
&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 which implements the unitary transformation&lt;br /&gt;
&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 right 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;
However, 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.&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 a fixed. There are several such transformations which 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 “x” 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. Therefore, 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&lt;br /&gt;
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;&lt;br /&gt;
and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;, the commutator is defined to be&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;[A,B] = AB -BA.\,\!&amp;lt;/math&amp;gt;|2.14}}&lt;br /&gt;
&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;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;[X,Z] = -2iY.\,\!&amp;lt;/math&amp;gt;|2.15}}&lt;br /&gt;
&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;
&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;
&lt;br /&gt;
In this case, its helpful to look at what this gate does to the two basis states:&lt;br /&gt;
&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, Y,&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; Z &amp;lt;/math&amp;gt; are called the Pauli matrices. They are also sometimes&lt;br /&gt;
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&lt;br /&gt;
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 this latter point in the&lt;br /&gt;
next chapter.  &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 abitrary 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; beteen &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 defintions 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_D#eqd.17|(D.17)]] and [[Appendix_D#eqd.8|(D.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&lt;br /&gt;
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;
By 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;&lt;br /&gt;
so&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 Section D.6.)&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 as&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'' with the following notation also perfectly acceptable&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 which may&lt;br /&gt;
share some information or may wish to communicate.  In this case, the&lt;br /&gt;
state belonging to Alice may 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 $n$, 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 abitrary 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 an entangling gate between any two qubits, plus the ability to&lt;br /&gt;
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 which 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;
A controlled operation is one which is conditioned on the state of another part of the system,&lt;br /&gt;
usually a qubit. The most cited example is the CNOT gate, which is a NOT operation on&lt;br /&gt;
one qubit that is implemented only if another qubit is in the state &amp;lt;math&amp;gt;\left\vert{1}\right\rangle\,\!&amp;lt;/math&amp;gt;, in other words a&lt;br /&gt;
controlled NOT operation. This gate is used so often that it is discussed here in detail.&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. 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;
Then the CNOT is given by&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\left\vert{x,y}\right\rangle \overset{CNOT}{\rightarrow} \left\vert{x,x\oplus y}\right\rangle.&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.2. &lt;br /&gt;
The first qubit, &amp;lt;math&amp;gt;\left\vert{x}\right\rangle&amp;lt;/math&amp;gt;, at the top of the diagam, is called the&lt;br /&gt;
''control bit'' and the second, &amp;lt;math&amp;gt;\left\vert{y}\right\rangle&amp;lt;/math&amp;gt;, at the top of the diagam,&lt;br /&gt;
is called the ''target bit''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
|&amp;lt;math&amp;gt;\left\vert{X}\right\rangle\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|[[File:CNOT.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\left\vert{Y}\right\rangle\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Figure 2.2: Circuit diagram for a CNOT gate.&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.3, 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 Fig. 2.4.&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.3: 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.5 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 which, in the end,&lt;br /&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.4: Circuit diagram for a Controlled-phase gate.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Multiqcs.jpg]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Figure 2.5: Multiple CNOT gates on a set of qubits.&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
implements the same multiple-qubit unitary. For example, noting that &amp;lt;math&amp;gt;HZH = X\,\!&amp;lt;/math&amp;gt;, the two&lt;br /&gt;
circuits in Fig. 2.6 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.6: 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 therefore for&lt;br /&gt;
classical bits in classical computers, 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 which will become&lt;br /&gt;
clear later.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Standard Prescription====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the intoduction a simple example was provided as motivation for&lt;br /&gt;
distinguishing quantum states from classical states.  This example of &lt;br /&gt;
two wells with one particle, can be used (cautiously) here as well.  &lt;br /&gt;
&lt;br /&gt;
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;&lt;br /&gt;
of the form&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;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;
&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 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;.  Recall&lt;br /&gt;
that the particle is in this state and that this state really means&lt;br /&gt;
that the particle is not in the state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt; or the state &lt;br /&gt;
&amp;lt;math&amp;gt;\left\vert 1\right\rangle \,\!&amp;lt;/math&amp;gt;, it really means that it is in both at the same time. &lt;br /&gt;
&lt;br /&gt;
This is worth emphasizing since it really ''cannot'' be thought of as&lt;br /&gt;
being in state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt; with probability &amp;lt;math&amp;gt;|\alpha_0|^2\,\!&amp;lt;/math&amp;gt; ''or'' in&lt;br /&gt;
&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;.  If it were then one could&lt;br /&gt;
act on the state with a Hadamard transformation and there would be 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;.  However, acting on the state &amp;lt;math&amp;gt;\left\vert \psi\right\rangle\,\!&amp;lt;/math&amp;gt; with a Hadamard transformation,&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;H\left\vert \psi\right\rangle = \left\vert 0\right\rangle.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|2.36}}&lt;br /&gt;
&lt;br /&gt;
This state has probability zero of being in the state &amp;lt;math&amp;gt;\left\vert 1\right\rangle\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
probability one of being in the state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt;.  (This argument is so&lt;br /&gt;
simple and pointed, that I lifted it directly from Mermin's book&lt;br /&gt;
{Mermin:book}, page 27.)  &lt;br /&gt;
&lt;br /&gt;
A measurement in the computational basis is said to project this state&lt;br /&gt;
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&lt;br /&gt;
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&lt;br /&gt;
understand this as a projection, consider the following way in which&lt;br /&gt;
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&lt;br /&gt;
&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&lt;br /&gt;
by taking the inner product 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 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; and 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 Fig.~\ref{fig:measex}.  In this case, the&lt;br /&gt;
measurement result is used for input for another state.  The unitary&lt;br /&gt;
in this diagram 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;!--   \begin{figure}[h]&lt;br /&gt;
    \begin{center}&lt;br /&gt;
     \mbox{\epsfig{file=/home/mbyrd/tex/books/qcomp/figures/measurement.eps}}&lt;br /&gt;
     \caption{Circuit diagram with a measurement.  The result of the&lt;br /&gt;
       measurement, in this case, is input for another qubit.  The&lt;br /&gt;
       qubit is acted upon by $U$ which is chosen after the result of&lt;br /&gt;
       the measurement is known.}&lt;br /&gt;
     \label{fig:measex}&lt;br /&gt;
     \end{center}&lt;br /&gt;
   \end{figure}&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Projection Operators====&lt;br /&gt;
&lt;br /&gt;
==Footnotes==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Chapter_2_-_Qubits_and_Collections_of_Qubits&amp;diff=232</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=232"/>
		<updated>2010-02-20T09:42:42Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: /* Many-qubit Circuits */&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 [3]:&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 and noise has become known by&lt;br /&gt;
the term decoherence. 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 and decoherence will be the topics of&lt;br /&gt;
later sections. The fourth and fifth will be discussed in this chapter.&lt;br /&gt;
&lt;br /&gt;
Backwards is it? Not from a computer science perspective or from a motivational perspective.&lt;br /&gt;
Besides, to a large extent, the first two rely very heavily on experimental physics&lt;br /&gt;
and engineering. These topics are primarily beyond the scope of this introductory material,&lt;br /&gt;
but will be treated superficially in Chapter 6.&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 which 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 qubit could be in 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;, 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;
&amp;lt;!-- Got this from the following example&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| style=&amp;quot;color:white&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| bgcolor=&amp;quot;red&amp;quot;|cell1 || width=&amp;quot;300&amp;quot; bgcolor=&amp;quot;blue&amp;quot;|cell2 || bgcolor=&amp;quot;green&amp;quot;|cell3&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt; --&amp;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, 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;
Thus this vector is normalized, i.e. it has magnitude, or length 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 C.1 contains a basic introduction to complex numbers.&amp;lt;/ref&amp;gt; The basis&lt;br /&gt;
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''&lt;br /&gt;
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;
Therefore,&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 closedsystem&lt;br /&gt;
evolution is unitary. (See Appendix D, Sec. D.2.) These unitary matrices, or unitary&lt;br /&gt;
transformations, as well as their generalization to many qubits, transform a 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 untary&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; then we 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;
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;
&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 which implements the unitary transformation&lt;br /&gt;
&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 right 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;
However, 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.&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 a fixed. There are several such transformations which 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 “x” 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. Therefore, 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&lt;br /&gt;
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;&lt;br /&gt;
and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;, the commutator is defined to be&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;[A,B] = AB -BA.\,\!&amp;lt;/math&amp;gt;|2.14}}&lt;br /&gt;
&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;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;[X,Z] = -2iY.\,\!&amp;lt;/math&amp;gt;|2.15}}&lt;br /&gt;
&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;
&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;
&lt;br /&gt;
In this case, its helpful to look at what this gate does to the two basis states:&lt;br /&gt;
&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, Y,&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; Z &amp;lt;/math&amp;gt; are called the Pauli matrices. They are also sometimes&lt;br /&gt;
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&lt;br /&gt;
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 this latter point in the&lt;br /&gt;
next chapter.  &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 abitrary 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; beteen &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 defintions 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_D#eqd.17|(D.17)]] and [[Appendix_D#eqd.8|(D.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&lt;br /&gt;
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;
By 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;&lt;br /&gt;
so&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 Section D.6.)&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 as&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'' with the following notation also perfectly acceptable&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 which may&lt;br /&gt;
share some information or may wish to communicate.  In this case, the&lt;br /&gt;
state belonging to Alice may 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 $n$, 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 abitrary 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 an entangling gate between any two qubits, plus the ability to&lt;br /&gt;
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 which 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;
A controlled operation is one which is conditioned on the state of another part of the system,&lt;br /&gt;
usually a qubit. The most cited example is the CNOT gate, which is a NOT operation on&lt;br /&gt;
one qubit that is implemented only if another qubit is in the state &amp;lt;math&amp;gt;\left\vert{1}\right\rangle\,\!&amp;lt;/math&amp;gt;, in other words a&lt;br /&gt;
controlled NOT operation. This gate is used so often that it is discussed here in detail.&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. 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;
Then the CNOT is given by&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\left\vert{x,y}\right\rangle \overset{CNOT}{\rightarrow} \left\vert{x,x\oplus y}\right\rangle.&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.2. &lt;br /&gt;
The first qubit, &amp;lt;math&amp;gt;\left\vert{x}\right\rangle&amp;lt;/math&amp;gt;, at the top of the diagam, is called the&lt;br /&gt;
''control bit'' and the second, &amp;lt;math&amp;gt;\left\vert{y}\right\rangle&amp;lt;/math&amp;gt;, at the top of the diagam,&lt;br /&gt;
is called the ''target bit''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
|&amp;lt;math&amp;gt;\left\vert{X}\right\rangle\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|[[File:CNOT.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\left\vert{Y}\right\rangle\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Figure 2.2: Circuit diagram for a CNOT gate.&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.3, 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 Fig. 2.4.&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.3: 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.5 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 which, in the end,&lt;br /&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.4: Circuit diagram for a Controlled-phase gate.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Multiqcs.jpg]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Figure 2.5: Multiple CNOT gates on a set of qubits.&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
implements the same multiple-qubit unitary. For example, noting that &amp;lt;math&amp;gt;HZH = X\,\!&amp;lt;/math&amp;gt;, the two&lt;br /&gt;
circuits in Fig. 2.6 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.6: 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 therefore for&lt;br /&gt;
classical bits in classical computers, 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 which will become&lt;br /&gt;
clear later.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Standard Prescription====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the intoduction a simple example was provided as motivation for&lt;br /&gt;
distinguishing quantum states from classical states.  This example of &lt;br /&gt;
two wells with one particle, can be used (cautiously) here as well.  &lt;br /&gt;
&lt;br /&gt;
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;&lt;br /&gt;
of the form&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;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;
&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 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;.  Recall&lt;br /&gt;
that the particle is in this state and that this state really means&lt;br /&gt;
that the particle is not in the state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt; or the state &lt;br /&gt;
&amp;lt;math&amp;gt;\left\vert 1\right\rangle \,\!&amp;lt;/math&amp;gt;, it really means that it is in both at the same time. &lt;br /&gt;
&lt;br /&gt;
This is worth emphasizing since it really ''cannot'' be thought of as&lt;br /&gt;
being in state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt; with probability &amp;lt;math&amp;gt;|\alpha_0|^2\,\!&amp;lt;/math&amp;gt; ''or'' in&lt;br /&gt;
&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;.  If it were then one could&lt;br /&gt;
act on the state with a Hadamard transformation and there would be 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;.  However, acting on the state &amp;lt;math&amp;gt;\left\vert \psi\right\rangle\,\!&amp;lt;/math&amp;gt; with a Hadamard transformation,&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;H\left\vert \psi\right\rangle = \left\vert 0\right\rangle.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|2.36}}&lt;br /&gt;
&lt;br /&gt;
This state has probability zero of being in the state &amp;lt;math&amp;gt;\left\vert 1\right\rangle\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
probability one of being in the state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt;.  (This argument is so&lt;br /&gt;
simple and pointed, that I lifted it directly from Mermin's book&lt;br /&gt;
{Mermin:book}, page 27.)  &lt;br /&gt;
&lt;br /&gt;
A measurement in the computational basis is said to project this state&lt;br /&gt;
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&lt;br /&gt;
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&lt;br /&gt;
understand this as a projection, consider the following way in which&lt;br /&gt;
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&lt;br /&gt;
&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&lt;br /&gt;
by taking the inner product 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 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; and 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 Fig.~\ref{fig:measex}.  In this case, the&lt;br /&gt;
measurement result is used for input for another state.  The unitary&lt;br /&gt;
in this diagram 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;!--   \begin{figure}[h]&lt;br /&gt;
    \begin{center}&lt;br /&gt;
     \mbox{\epsfig{file=/home/mbyrd/tex/books/qcomp/figures/measurement.eps}}&lt;br /&gt;
     \caption{Circuit diagram with a measurement.  The result of the&lt;br /&gt;
       measurement, in this case, is input for another qubit.  The&lt;br /&gt;
       qubit is acted upon by $U$ which is chosen after the result of&lt;br /&gt;
       the measurement is known.}&lt;br /&gt;
     \label{fig:measex}&lt;br /&gt;
     \end{center}&lt;br /&gt;
   \end{figure}&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Footnotes==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
	<entry>
		<id>https://www2.physics.siu.edu/qunet/wiki/index.php?title=Chapter_2_-_Qubits_and_Collections_of_Qubits&amp;diff=231</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=231"/>
		<updated>2010-02-20T09:42:16Z</updated>

		<summary type="html">&lt;p&gt;Kreuter: /* Many-qubit Circuits */&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 [3]:&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 and noise has become known by&lt;br /&gt;
the term decoherence. 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 and decoherence will be the topics of&lt;br /&gt;
later sections. The fourth and fifth will be discussed in this chapter.&lt;br /&gt;
&lt;br /&gt;
Backwards is it? Not from a computer science perspective or from a motivational perspective.&lt;br /&gt;
Besides, to a large extent, the first two rely very heavily on experimental physics&lt;br /&gt;
and engineering. These topics are primarily beyond the scope of this introductory material,&lt;br /&gt;
but will be treated superficially in Chapter 6.&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 which 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 qubit could be in 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;, 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;
&amp;lt;!-- Got this from the following example&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| style=&amp;quot;color:white&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| bgcolor=&amp;quot;red&amp;quot;|cell1 || width=&amp;quot;300&amp;quot; bgcolor=&amp;quot;blue&amp;quot;|cell2 || bgcolor=&amp;quot;green&amp;quot;|cell3&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt; --&amp;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, 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;
Thus this vector is normalized, i.e. it has magnitude, or length 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 C.1 contains a basic introduction to complex numbers.&amp;lt;/ref&amp;gt; The basis&lt;br /&gt;
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''&lt;br /&gt;
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;
Therefore,&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 closedsystem&lt;br /&gt;
evolution is unitary. (See Appendix D, Sec. D.2.) These unitary matrices, or unitary&lt;br /&gt;
transformations, as well as their generalization to many qubits, transform a 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 untary&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; then we 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;
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;
&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 which implements the unitary transformation&lt;br /&gt;
&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 right 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;
However, 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.&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 a fixed. There are several such transformations which 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 “x” 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. Therefore, 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&lt;br /&gt;
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;&lt;br /&gt;
and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;, the commutator is defined to be&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;[A,B] = AB -BA.\,\!&amp;lt;/math&amp;gt;|2.14}}&lt;br /&gt;
&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;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;[X,Z] = -2iY.\,\!&amp;lt;/math&amp;gt;|2.15}}&lt;br /&gt;
&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;
&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;
&lt;br /&gt;
In this case, its helpful to look at what this gate does to the two basis states:&lt;br /&gt;
&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, Y,&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; Z &amp;lt;/math&amp;gt; are called the Pauli matrices. They are also sometimes&lt;br /&gt;
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&lt;br /&gt;
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 this latter point in the&lt;br /&gt;
next chapter.  &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 abitrary 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; beteen &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 defintions 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_D#eqd.17|(D.17)]] and [[Appendix_D#eqd.8|(D.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&lt;br /&gt;
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;
By 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;&lt;br /&gt;
so&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 Section D.6.)&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 as&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'' with the following notation also perfectly acceptable&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 which may&lt;br /&gt;
share some information or may wish to communicate.  In this case, the&lt;br /&gt;
state belonging to Alice may 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 $n$, 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 abitrary 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 an entangling gate between any two qubits, plus the ability to&lt;br /&gt;
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 which 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;
A controlled operation is one which is conditioned on the state of another part of the system,&lt;br /&gt;
usually a qubit. The most cited example is the CNOT gate, which is a NOT operation on&lt;br /&gt;
one qubit that is implemented only if another qubit is in the state &amp;lt;math&amp;gt;\left\vert{1}\right\rangle\,\!&amp;lt;/math&amp;gt;, in other words a&lt;br /&gt;
controlled NOT operation. This gate is used so often that it is discussed here in detail.&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. 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;
Then the CNOT is given by&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;\left\vert{x,y}\right\rangle \overset{CNOT}{\rightarrow} \left\vert{x,x\oplus y}\right\rangle.&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.2. &lt;br /&gt;
The first qubit, &amp;lt;math&amp;gt;\left\vert{x}\right\rangle&amp;lt;/math&amp;gt;, at the top of the diagam, is called the&lt;br /&gt;
''control bit'' and the second, &amp;lt;math&amp;gt;\left\vert{y}\right\rangle&amp;lt;/math&amp;gt;, at the top of the diagam,&lt;br /&gt;
is called the ''target bit''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
|&amp;lt;math&amp;gt;\left\vert{X}\right\rangle\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|[[File:CNOT.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\left\vert{Y}\right\rangle\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Figure 2.2: Circuit diagram for a CNOT gate.&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.3, 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 Fig. 2.4.&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.3: 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.5 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 which, in the end,&lt;br /&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.4: Circuit diagram for a Controlled-phase gate.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Multiqcs.jpg]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Figure 2.5: Multiple CNOT gates on a set of qubits.&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
implements the same multiple-qubit unitary. For example, noting that &amp;lt;math&amp;gt;HZH = X\,\!&amp;lt;/math&amp;gt;, the two&lt;br /&gt;
circuits in Fig. 2.6 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‎]]&lt;br /&gt;
Figure 2.6: 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 therefore for&lt;br /&gt;
classical bits in classical computers, 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 which will become&lt;br /&gt;
clear later.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Standard Prescription====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the intoduction a simple example was provided as motivation for&lt;br /&gt;
distinguishing quantum states from classical states.  This example of &lt;br /&gt;
two wells with one particle, can be used (cautiously) here as well.  &lt;br /&gt;
&lt;br /&gt;
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;&lt;br /&gt;
of the form&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;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;
&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 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;.  Recall&lt;br /&gt;
that the particle is in this state and that this state really means&lt;br /&gt;
that the particle is not in the state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt; or the state &lt;br /&gt;
&amp;lt;math&amp;gt;\left\vert 1\right\rangle \,\!&amp;lt;/math&amp;gt;, it really means that it is in both at the same time. &lt;br /&gt;
&lt;br /&gt;
This is worth emphasizing since it really ''cannot'' be thought of as&lt;br /&gt;
being in state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt; with probability &amp;lt;math&amp;gt;|\alpha_0|^2\,\!&amp;lt;/math&amp;gt; ''or'' in&lt;br /&gt;
&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;.  If it were then one could&lt;br /&gt;
act on the state with a Hadamard transformation and there would be 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;.  However, acting on the state &amp;lt;math&amp;gt;\left\vert \psi\right\rangle\,\!&amp;lt;/math&amp;gt; with a Hadamard transformation,&lt;br /&gt;
&lt;br /&gt;
{{Equation|&amp;lt;math&amp;gt;H\left\vert \psi\right\rangle = \left\vert 0\right\rangle.&lt;br /&gt;
\,\!&amp;lt;/math&amp;gt;|2.36}}&lt;br /&gt;
&lt;br /&gt;
This state has probability zero of being in the state &amp;lt;math&amp;gt;\left\vert 1\right\rangle\,\!&amp;lt;/math&amp;gt; and&lt;br /&gt;
probability one of being in the state &amp;lt;math&amp;gt;\left\vert 0\right\rangle\,\!&amp;lt;/math&amp;gt;.  (This argument is so&lt;br /&gt;
simple and pointed, that I lifted it directly from Mermin's book&lt;br /&gt;
{Mermin:book}, page 27.)  &lt;br /&gt;
&lt;br /&gt;
A measurement in the computational basis is said to project this state&lt;br /&gt;
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&lt;br /&gt;
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&lt;br /&gt;
understand this as a projection, consider the following way in which&lt;br /&gt;
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&lt;br /&gt;
&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&lt;br /&gt;
by taking the inner product 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 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; and 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 Fig.~\ref{fig:measex}.  In this case, the&lt;br /&gt;
measurement result is used for input for another state.  The unitary&lt;br /&gt;
in this diagram 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;!--   \begin{figure}[h]&lt;br /&gt;
    \begin{center}&lt;br /&gt;
     \mbox{\epsfig{file=/home/mbyrd/tex/books/qcomp/figures/measurement.eps}}&lt;br /&gt;
     \caption{Circuit diagram with a measurement.  The result of the&lt;br /&gt;
       measurement, in this case, is input for another qubit.  The&lt;br /&gt;
       qubit is acted upon by $U$ which is chosen after the result of&lt;br /&gt;
       the measurement is known.}&lt;br /&gt;
     \label{fig:measex}&lt;br /&gt;
     \end{center}&lt;br /&gt;
   \end{figure}&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Footnotes==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kreuter</name></author>
		
	</entry>
</feed>