Quantum computing relies on linear algebra to describe the state of a system and how that state changes over time. While classical logic uses Boolean algebra, quantum mechanics uses vector spaces and matrices to predict outcomes. This chapter establishes the mathematical tools required to model qubit behavior and construct algorithms.
We begin by defining the role of complex numbers, denoted as , which act as the amplitudes for quantum states. You will learn to represent these states as vectors within a Hilbert space. The text explains how to perform operations with these vectors, specifically using the inner product to calculate the probability of measurement outcomes and the outer product to represent operators.
The focus then shifts to the operators themselves. You will work with unitary matrices, which are required because they preserve the total probability of a quantum system. We also define eigenvalues and eigenvectors, the mathematical components that correspond to the actual values observed during a measurement. For example, if an operator acts on a vector such that:
the scalar represents the measurable quantity. Finally, we apply these concepts programmatically. You will use the Python library NumPy to generate vectors and matrices, effectively building a simulator for the mathematical operations that control quantum hardware.
2.1 Complex Numbers in Quantum States
2.2 Vectors and State Spaces
2.3 Inner and Outer Products
2.4 Unitary Matrices and Operations
2.5 Eigenvalues and Eigenvectors
2.6 Numpy for Quantum Math Practice
© 2026 ApX Machine LearningEngineered with