TOC1. Brief Intro 2. Vector Space, A Short Definition 3. Subspaces 3.1. Sum of subspaces 4. Prove Theorems 5. Juice for Me 1. Brief IntroIf you wander in the world of quantum computing(QC) long enough, it becomes painful to follow the arguments of quantum algorithms with your vague and shaky knowledge base of linear algebra. Inspired by this, the author takes an initiative to write a series of notes on linear algebra before we undertake the endeavor of QC rigorously. By writing the notes with QC in mind, the author hopes to emphasize the key parts of linear algebra that will repeatedly be used in QC applications. The objectives of this note are:Introduce the concepts of vector space, subspace, (direct) sum of subspacesSome nice proof exercises for knowledge testing 2. Vector Space, A Short DefinitionIn quantum computing, we mostly care about complex numbers and/or real numbers. Complex and real numbers live in the sets of C and R, respectively. These two sets are called Fields in abstract algebra as +/-/×/÷are defined between the elements from those fields. Before diving into vector spaces, we first define the concept of tuple. Unlike set, tuple in mathematics allows repetition, and the sequence of the elements in a tuple matters. A tuple containing n elements is called n-tuple. In most literature, we repesent a n-tuple as (x1,x2,x3,...xn) We say that a n-tuple lives in the vector space Rn when its n elements are all real numbers. Conversely, the vector space Rn is a set of n-tuples that satisfying some criteria, for which we will discuss in detail later. Using the example of Rn, we can define the vector space as Rn={(x1,x2,x3,...,xn):xiR,i=1,2,3,...,n} where constraints on xi are listed after semicolon(i.e., xiR). Similarly, we can define Cn as Cn={(x1,x2,x3,...,xn):xiC,i=1,2,3,...,n}. To simplify our following discussion, we use F to represent real or complex number field. By doing so, we indicate that the following discussions hold for both fields. For two elements in Fn, we define the addition of the two elements as (x1,x2,x3,...,xn)+(y1,y2,y3,...,yn)=(x1+y1,x2+y2,x3+y3,...,xn+yn)where xi,yiF. Let x=(x1,x2,x3,...,xn) and y=(y1,y2,y3,...,yn), it's easy to see that x+y=y+x.The equation above is sometimes referred as commutativity of addition. With the definition of addition, it is also easy to show that for x,y,zFn, x+(y+z)=(x+y)+z,that is, associativity of addition. Elements in F are called scalars, a fancy way to call real or complex numbers, on which we can perform multiplication operation, i.e., a×b=b×afora,bF In vector space Fn, we can define scalar multiplication as a×x=(ax1,ax2,ax3,...,axn)foraFandxFnDefining scalar multiplication and addition on Fn allow xFn to hold interesting properties. Before we list those properties, let's define the concept of null in Fn. When n=1, we know null means the scalar "0". For n>1, we have similarly, 0=(0,0,0,...,0)n0 is also referred as additive identity, as we shall now see the reason. The properties of any elementu,v,wFn are additive identity: u+0=u;additive inverse:uFn,wFnsuch thatu+w=0;commutativity of addition:u+v=v+uassociativity of addition:u+(v+w)=(u+v)+wmultiplicative identity:1×u=u;distributivity of scalar multiplication:a(u+v)=au+avforaF. Note that the additive inverse of u is -u=(-1)×u, a scalar multiplication. It should be clear now that all the properties of elements in vector spaces are derived from the definition of addition and scalar multiplication. With this observation, we now give the formal defintion of vector space(with constraints on its elements specified):
Definition1A vector space is a set V (e.g.Fn) equipped with addition and scalar multiplication of its elements such that properties in Eqn.(10) are satisfied.
When writing out the properties in Eqn.(10), we need to specify that the scalar aF. Because of this, we say that the vector space V is defined over F. As an example, R3 is a vector space defined over R as R3={(x1,x2,x3):xiR for i=1,2,3}.We should be fairly familiar with R3 geometrically, as we use 3-tuples in R3 to discribe points or vectors in 3D space. The geometrical representation of vector space is delibrately ignored here as the definitions are independent of the geometries. When the dimension of vector spaces is higher than 3, it's hard for us to visualize it using 3D geometries, but we can still perform algbra on them without any changes in our definitions of addition and scalar multiplication. 3. Subspaces
Definition2A subspace W of a vector space V is a subset of V, but is a vector space itself.
For example, {(x1,x2,0):x1,x2F} is a subspace of F3(verify this as an exercise). A subset U if vector space V over F is a subspace if and only if U satisfies the following conditions: additive identity: 0Uclosed under addition: u+vUfor u,vUclosed under scalar multiplication: auUfor aF, and uU3.1. Sum of subspacesIn applications of QC in composite quantum system that has multiple loosely coupled subsystems, We use elements in different subspaceS of Hilbert space(a vector space) to describe quantum states of the subsystems. Thus, it is useful to learn the notion of the sum of subspaces.
Definition3Suppose U1,...,Um are subspaces of a vector space V. The sum of the subspaces is denoted as U1+U2+...+Um, with the following definition: U1+U2+...+Um={u1+u2++um:u1U1,...,umUm}
From the definition above, every element of U1+U2+...+Um can be written as u1+u2++um.If each element can be written in terms of {ui} in only one way, then the sum U1+U2+...+Um is said to be direct sum, denoted as U1U2...Um.
Condition for U1+U2+...+Um to be direct sum:U1+U2+...+Um is a direct sum if and only if the only way to write additive identity 0 as a sum u1+u2++um, is by taking each ui=0.
Proof: () suppose U1+U2+...+Um is a direct sum, then the definition of direct sum implies that 0 is obtained by setting ui=0 for i=1,2,3,...,m. () Suppose the only way to write 0 is by taking each ui=0. We can show U1+U2+...+Um is a direct sum by first writting a element of the sum asv=u1+u2++umSuppose we also have another representation for v asv=v1+v2++vmWe then have0=(u1-v1)+(u2-v2)++(um-vm)Because ui-viUi, and we supposed element from Ui in 0 can only be 0, we have ui=vi, and v has an unique representation.
Theorem1Suppose U and W are subspaces of V. The U+W is a direct sum if and only if UW={0}.
Proof:()First suppose that U+W is a direct sum. By the definition, if vU, and 0=v+(-v), we have -vW. By the uniqueness of 0 in a direct sum, we must have v=0. So UW={0}.() Suppose UW={0}, We need to prove U+W is a direct sum. Let vV and wW, and v+w=0. Notice that vW=-w(-1)wWSo vUW, and hence, v=0=w. By the condition for U1+U2+...+Um to be direct sum, we have U+W is a direct sum.4. Prove Theorems The following theorems are arranged in a ascending order of the difficulty of their proofs.
Theorem2The intersection of every collection of subspaces of V is a subspace of V
Hint: Starting from two subspaces,U1 and U2. Let x,yU1U2x,yU1andx+yU1, similarly, x+yU2. So x+y=U1U2(closed under addition). Similar procedure for proving "closed under scalar multiplication".
Theorem3The union of two subspaces of V is a subspace of V if and only if one of the subpsaces is contained in the other.
Hint: prove by contradiction. Let v1U1and v2U2, we can have v1+v2U1orU2orU1U2
Theorem4The union of three subspaces of V is a subspace of V if and only if one othe subspace contains the other two.
Hint: this is quite challenging. You need to construct two scalars, a and bF, such that a-b=1. You might find a quite nice solution at Math StackExchange. 5. Juice for Me Writing note like this is enjoyable for me but time-consuming at the same time. The only time I can find for this is my weekends. Thus, my next note might take a while to brew, stay tuned.