Quantum Computing Mathematics

Quantum computing rests on a small set of math ideas. You do not need a degree to follow them. Four tools cover almost everything in this course: vectors, matrices, complex numbers, and probability. Each one has a simple picture behind it.

Vectors: Arrows That Store Information

A vector is a list of numbers that you can draw as an arrow. A qubit state uses a vector with two entries. The first entry belongs to 0 and the second belongs to 1.

  State |0> = [1]     State |1> = [0]
              [0]                 [1]

  Equal blend = [0.707]
                [0.707]

        |1>
         ^
         |      * blend arrow
         |    /
         |  /
         +-------------> |0>

The blend arrow points halfway between the two axes. Its length always equals 1, which keeps probabilities valid.

Probability From Amplitudes

Each vector entry is an amplitude. Square the amplitude to find the probability.

AmplitudeSquareProbability
0.7070.550 percent
0.60.3636 percent
0.80.6464 percent

The entries 0.6 and 0.8 form a valid state because 36 percent plus 64 percent equals 100 percent.

Matrices: Machines That Rotate Arrows

A matrix is a grid of numbers. Multiplying a matrix by a vector produces a new vector. Every quantum gate is a matrix, and it rotates the state arrow without changing its length.

The NOT Gate Example

  [0 1]   [1]     [0]
  [1 0] x [0]  =  [1]

  Input |0>  -->  Output |1>

Row-by-column multiplication gives the answer. Take the first row, multiply each entry by the vector entry above it, and add the results. Repeat for the second row.

Worked Steps

  • First row: (0 x 1) + (1 x 0) = 0
  • Second row: (1 x 1) + (0 x 0) = 1
  • Result: the vector [0, 1], which equals |1>

Complex Numbers: Adding a Direction

A complex number has two parts: a real part and an imaginary part. Write it as a + bi, where i is the square root of minus one. Draw it as a point on a flat map.

   imaginary
      ^
    2 |      * (3 + 2i)
      |
      +-----------> real
            3

The map shows why quantum amplitudes use complex numbers. A point has both a size and an angle. The angle is called the phase. Phase decides whether two amplitudes add up or cancel, which makes interference possible.

Tensor Products: Joining Qubits

Two qubits live together in a bigger vector. The tensor product builds that vector by multiplying every entry of one state by every entry of the other.

QubitsVector Entries
12
24
38
101,024
50More than one quadrillion

The table reveals why ordinary computers struggle to copy quantum machines. Memory needs double with every added qubit.

Layman Summary

Picture a compass needle on a table. The needle stands for the vector. Rotating the table stands for a matrix. The compass direction stands for phase. Probability tells you where the needle will point when you finally look.

Study Tips

Practice beats memorizing. Draw a few arrows on paper and rotate them by hand. Multiply small matrices until the row-by-column rule feels natural. Ask what each number means in plain words before moving on. Quantum math looks heavy at first glance, yet the same few tools return again and again. Every gate, algorithm, and error model in later topics reuses vectors, matrices, complex numbers, and probability. A solid grip on these four ideas turns advanced topics into familiar territory.

Practice Questions

  • What probability does the amplitude 0.5 give?
  • What does a matrix do to a state vector?
  • How many entries describe a 4-qubit state?

The answers are 25 percent, a rotation, and 16 entries.