Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Essential Mathematics for Quantum Computing

You're reading from   Essential Mathematics for Quantum Computing A beginner's guide to just the math you need without needless complexities

Arrow left icon
Product type Paperback
Published in Apr 2022
Publisher Packt
ISBN-13 9781801073141
Length 252 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Leonard S. Woody III Leonard S. Woody III
Author Profile Icon Leonard S. Woody III
Leonard S. Woody III
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Preface 1. Section 1: Introduction
2. Chapter 1: Superposition with Euclid FREE CHAPTER 3. Chapter 2: The Matrix 4. Section 2: Elementary Linear Algebra
5. Chapter 3: Foundations 6. Chapter 4: Vector Spaces 7. Chapter 5: Using Matrices to Transform Space 8. Section 3: Adding Complexity
9. Chapter 6: Complex Numbers 10. Chapter 7: EigenStuff 11. Chapter 8: Our Space in the Universe 12. Chapter 9: Advanced Concepts 13. Section 4: Appendices
14. Other Books You May Enjoy Appendix 1: Bra–ket Notation 1. Appendix 2: Sigma Notation 2. Appendix 3: Trigonometry 3. Appendix 4: Probability 4. Appendix 5: References

Defining a matrix

Mathematicians define a matrix as simply a rectangular array that has m rows and n columns, like the one shown in the following screenshot:

Figure 2.2 – Model of a matrix with m rows and n columns

Figure 2.2 – Model of a matrix with m rows and n columns

In math, matrices are written out a particular way. An example 4 × 5 matrix is shown in the following expression. Notice that it has four rows and five columns:

Figure 2.3 – Example of a 4 x 5 matrix

Figure 2.3 – Example of a 4 x 5 matrix

Notation

In math and quantum computing, matrix variable names are in capital letters, and each entry in a matrix is referred to by a lowercase letter that corresponds to the variable name with subscripts (aij). Subscript i refers to the row the entry is in and subscript j refers to the column it is in. The following formula shows this for a 3 × 3 matrix:

In our example matrix A, a22 = 1. What is a32? Hint—it's the only number that begins with the letter n.

Redefining vectors

One thing we will do in this book is iteratively define things so that we start simple, and as we learn more, we will add or even redefine objects to make them more advanced. So, in our previous chapter, our Euclidean vectors only had two dimensions. What if they have more? Well, we can represent them with n × 1 matrices, like so:

What do we call a 1 × n matrix such as the following one?

Well, we will call it a row vector. To distinguish between the two types, we will call the n × 1 matrix a column vector. Also, while we have been using kets (for example, |x⟩) to notate column vectors so far, we will use something different to notate row vectors. We will introduce the bra, which is the other side of the bra-ket notation. A bra is denoted by an opening angle bracket, the name of the vector, and a pipe or vertical bar. For example, a row vector with the name b would be denoted like this: ⟨b|. This is the other side of the bra-ket notation explained further in the appendix. To make things clearer, here are our definitions of a column vector and a row vector for now:

Important Note

A bra has a deeper definition that we will look at later in this book. For now, this is enough for us to tackle matrix multiplication.

Now that we have introduced how column and row vectors can be represented by one-dimensional (1D) matrices, let's next look at some operations we can do on matrices.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime