Orthogonality: From Linear Algebra to Quantum States
Where this idea appears in linear algebra
In Chapter 4 of Gilbert Strang's Introduction to Linear Algebra, orthogonality becomes the central idea.
Two real vectors \(v\) and \(w\) are orthogonal when their dot product is zero:
\[ v^T w = 0. \]
Geometrically, this means the vectors are perpendicular.
For example,
\[ v=\begin{bmatrix}1\\2\end{bmatrix}, \qquad w=\begin{bmatrix}-2\\1\end{bmatrix}. \]
Their dot product is
\[ v^Tw=1(-2)+2(1)=0. \]
Therefore
\[ \boxed{v\perp w}. \]
Orthogonality of the row space and nullspace
Suppose
\[ Ax=0. \]
If \(x\) is in the nullspace of \(A\), then every row of \(A\) has dot product zero with \(x\).
For example, if a row is
\[ r=[1\quad2] \]
and
\[ x=\begin{bmatrix}-2\\1\end{bmatrix}, \]
then
\[ r x=1(-2)+2(1)=0. \]
So \(x\) is perpendicular to that row.
Because this is true for every row of \(A\), every vector in the nullspace is perpendicular to the entire row space.
Therefore
\[ \boxed{C(A^T)\perp N(A)}. \]
This is part of the deeper structure of the four fundamental subspaces.
The column space similarly satisfies
\[ \boxed{C(A)\perp N(A^T)}. \]
So the four fundamental subspaces form two orthogonal pairs.
Learner question: Is orthogonality also used in quantum computing?
Yes. Orthogonality is one of the most important ideas connecting linear algebra to quantum mechanics and quantum computing.
A quantum state is represented by a vector in a complex vector space. Two quantum states are orthogonal when their inner product is zero:
\[ \boxed{\langle\psi|\phi\rangle=0}. \]
For complex vectors, this is the quantum version of the dot-product condition used with real vectors.
Computational basis states
For one qubit,
\[ |0\rangle= \begin{bmatrix} 1\\0 \end{bmatrix}, \qquad |1\rangle= \begin{bmatrix} 0\\1 \end{bmatrix}. \]
To test whether they are orthogonal,
\[ \langle0|1\rangle= [1\quad0] \begin{bmatrix} 0\\1 \end{bmatrix}. \]
Therefore
\[ \langle0|1\rangle=0. \]
So
\[ \boxed{|0\rangle\perp|1\rangle}. \]
This means \(|0\rangle\) and \(|1\rangle\) provide two independent perpendicular directions in the one-qubit state space.
They form the computational basis.
The plus and minus states are also orthogonal
The states
\[ |+\rangle=\frac{1}{\sqrt2} \begin{bmatrix} 1\\1 \end{bmatrix} \]
and
\[ |-\rangle=\frac{1}{\sqrt2} \begin{bmatrix} 1\\-1 \end{bmatrix} \]
also form an orthogonal pair.
Compute the inner product:
\[ \langle+|-\rangle = \frac{1}{2} \left(1\cdot1+1\cdot(-1)\right). \]
Therefore
\[ \langle+|-\rangle = \frac12(1-1) =0. \]
Thus
\[ \boxed{|+\rangle\perp|-\rangle}. \]
So a qubit does not have only one possible basis.
Both
\[ \{|0\rangle,|1\rangle\} \]
and
\[ \{|+\rangle,|-\rangle\} \]
are orthonormal bases of the same two-dimensional state space.
Orthogonal is not yet the same as orthonormal
Orthogonal means
\[ \langle v|w\rangle=0. \]
Orthonormal means two conditions are satisfied:
- the vectors are orthogonal to one another;
- every vector has length 1.
For quantum basis states this second requirement is essential.
For example,
\[ \langle0|0\rangle=1 \]
and
\[ \langle1|1\rangle=1. \]
Therefore \(|0\rangle\) and \(|1\rangle\) are not only orthogonal; they are orthonormal.
The same is true for \(|+\rangle\) and \(|-\rangle\).
Why orthogonality matters for quantum measurement
Orthogonal quantum states can be perfectly distinguished by an appropriate measurement.
If the state is exactly
\[ |0\rangle, \]
then measurement in the computational basis gives 0 with probability 1.
If the state is exactly
\[ |1\rangle, \]
then the same measurement gives 1 with probability 1.
Because
\[ \langle0|1\rangle=0, \]
the two basis states are completely distinct measurement alternatives.
Similarly, \(|+\rangle\) and \(|-\rangle\) are perfectly distinguishable when measurement is performed in the plus/minus basis.
This gives an important quantum interpretation:
\[ \boxed{\text{orthogonal states can represent perfectly distinguishable alternatives}.} \]
Connection with basis
Earlier in linear algebra, a basis was defined as a set of independent vectors that spans a space.
Quantum computing normally goes further and prefers an orthonormal basis.
For a one-qubit space, the dimension is 2, so every basis contains two vectors.
An orthonormal basis gives two independent directions that are also mutually perpendicular and individually normalized.
Examples are
\[ \boxed{\{|0\rangle,|1\rangle\}} \]
and
\[ \boxed{\{|+\rangle,|-\rangle\}}. \]
A general qubit state can therefore be expressed using either basis.
In the computational basis,
\[ |\psi\rangle=\alpha|0\rangle+\beta|1\rangle. \]
The orthonormal structure allows the amplitudes associated with the basis states to be extracted using inner products and connected directly to measurement probabilities.
The deeper connection
In Strang's linear algebra, orthogonality tells us that certain vector-space directions are completely perpendicular to other directions.
For example,
\[ C(A^T)\perp N(A). \]
In quantum computing, the same geometric idea appears inside the complex state space:
\[ \langle\psi|\phi\rangle=0. \]
So the mathematical idea is the same even though the application changes.
Linear algebra:
\[ \boxed{\text{dot product zero} \Rightarrow \text{orthogonal vectors}} \]
Quantum mechanics:
\[ \boxed{\text{inner product zero} \Rightarrow \text{orthogonal quantum states}}. \]
Main takeaway
Orthogonality is not an isolated topic being learned only for linear algebra.
It becomes fundamental in quantum computing because quantum states live in vector spaces.
For one qubit,
\[ \boxed{|0\rangle\perp|1\rangle} \]
and
\[ \boxed{|+\rangle\perp|-\rangle}. \]
These orthogonal pairs form orthonormal bases.
That is why studying orthogonality now directly strengthens the mathematical foundation needed later for quantum states, measurement, quantum gates, and changes of basis.
Note metadata
- Note type: learning-note
- Subject: learning-notes
- Source: Introduction to Linear Algebra, 5th Edition — Section 4.1 Orthogonality of the Four Subspaces
Related notes
- Four Fundamental Subspaces: Rank and Dimensions (Post ID: 353)
- Basis, Dimension, Row Space and Degrees of Freedom (Post ID: 309)