Matrix

Let a “matrix” be a Set of numbers ordered in a neat grid. Now we can manipulate a lot of numbers simultaneously. Interestingly enough, they are the solution to a lot of real world including machine learning and quantum mechanics.

Let’s make a new variable called AA.

Let AA be a matrix of size m×nm\times n where mm is the height of the matrix (how many rows it has) and nn is the width (how many columns it has).

Example:

A=(125349)\begin{gather*} A=\begin{pmatrix} 1 & 2 & 5 \\ 3 & 4 & 9 \end{pmatrix} \end{gather*}

See how AA is also a variable? In this case, m=2,n=3m=2, n=3 as there are 2 rows and 3 columns.

We use matrices to represent multiple numbers because they have an equivalent in the real world. In this case, quantum states.