Change of Basis for Vectors and Matrices
A change of basis rewrites the same vector or linear operator using a different coordinate system. The vector does not move; its coordinate column changes because the basis used to describe it has changed.
This page fixes the finite-dimensional linear-algebra convention used by the Toolkit. For the physics-facing workflow with state coefficients, observables, and probabilities, see Change of Basis.
Helpful background. bases and coordinates for expanding a vector in a chosen basis; matrix representations for matrix multiplication and operator action.
Basis vectors and coordinate columns
Section titled “Basis vectors and coordinate columns”Let be an -dimensional vector space over , where is usually or . Let
be an old ordered basis and let
be a new ordered basis.
Each new basis vector can be expanded in the old basis:
The change-of-coordinates matrix is defined by putting these old-basis coordinate columns side by side:
With this convention, the columns of answer the question: how do the new basis vectors look in the old basis?
Because is a basis, is invertible. If were not invertible, the proposed new basis vectors would be linearly dependent or would fail to span .
Vector Coordinates
Section titled “Vector Coordinates”Write the same vector in the two bases:
Substituting gives
By uniqueness of coordinates in the basis ,
In matrix form,
This is a passive basis change. The abstract vector is unchanged. Only the coordinate map has changed.
Operator Matrices
Section titled “Operator Matrices”Let be a linear operator. Its matrix in the old basis is , defined by
Its matrix in the new basis is , defined by
Use the coordinate relation twice:
But also
Since this holds for every coordinate column ,
and therefore
This is a similarity transformation. It changes the matrix representation of , not the abstract operator.
For a map with a basis change in both domain and codomain, the corresponding formula is
where changes domain coordinates from to , and changes codomain coordinates from to .
Orthonormal Bases and Unitary Matrices
Section titled “Orthonormal Bases and Unitary Matrices”In a finite-dimensional complex inner-product space, quantum mechanics usually uses orthonormal bases. Let
be two orthonormal bases. Define the overlap matrix
If
then the new coefficients are
Thus
The overlap matrix is unitary:
This says , and finite dimensionality then gives as well.
The earlier matrix has columns . Its entries are
so
The operator matrix formula becomes
This is the form most often seen in finite-dimensional quantum mechanics: state coefficients transform by , while operator matrices transform by .
Active Versus Passive Transformations
Section titled “Active Versus Passive Transformations”A passive basis change rewrites the same vector in a new coordinate system:
An active transformation applies a linear operator to produce a new vector:
Both discussions may use unitary matrices, so the notation alone is not enough. Identify what the matrix acts on: an active transformation changes the vector, while a passive transformation changes its coordinates. A rotation of the axes and a rotation of the vector in fixed axes therefore use inverse transformations.
Invariants
Section titled “Invariants”Similarity transformations preserve the basis-independent information of an operator. In finite dimension,
has the same eigenvalues, trace, determinant, rank, and characteristic polynomial as .
Expectation values are also preserved when states and operators are transformed consistently. In the orthonormal convention above,
Then
What is invariant is the physical scalar or abstract object, not the individual matrix entries.
Nonorthogonal bases and the inner-product matrix
Section titled “Nonorthogonal bases and the inner-product matrix”For general complex bases, the coordinate rule still holds, but the inner product is not usually the Euclidean pairing of columns. Let and be the Gram matrices of the two bases. Substitution into the squared norm gives
The Gram matrix transforms by congruence, while the coordinate matrix of an operator transforms by similarity, . Together these rules preserve the quadratic form:
For a nonzero state, divide this expression by the corresponding squared norm to obtain its expectation value.
There are two different arrays often called the operator’s “matrix.” The coordinate matrix maps the coefficients of to those of . The bra–ket matrix
The last identity follows by expanding in the basis and taking its inner product with . These arrays coincide in an orthonormal basis. For a Hermitian operator, is Hermitian, whereas need only satisfy
Here daggers on arrays mean ordinary conjugate transpose; Hermitian Operators explains the adjoint with a Gram matrix. A nonsymmetric coordinate matrix therefore need not signal a non-Hermitian physical operator.
The same distinction explains the generalized eigenvalue equation:
Diagonalizing alone would solve a different problem. For Hermitian , the right-hand problem has a Hermitian pair and positive-definite , as in the LAPACK treatment. Matrix Diagonalization discusses structure-preserving numerical methods; this coordinate derivation does not recommend explicitly forming .
Worked Example
Section titled “Worked Example”Let be the standard basis of and let
The change-of-coordinates matrix is
Here . For
the new coordinate column is
Now let the old matrix of an operator be
The new matrix is
The matrix changed from diagonal to off-diagonal, but the operator did not change. The expectation value is the same in both descriptions:
This is the real two-dimensional version of the familiar conversion between the and spin bases.
Physical Interpretation
Section titled “Physical Interpretation”A basis choice is a representation choice. A state may be written in an energy basis, a spin- basis, a spin- basis, a position representation, or a momentum representation. The coordinate list changes, but the state does not.
Likewise, an observable may be diagonal in one basis and dense in another. Diagonalizing a Hamiltonian is not changing the Hamiltonian into a different physical operator. It is finding a basis in which its action is easiest to read.
For finite spin and qubit systems, the basis-change matrices are ordinary unitary matrices. For position and momentum, the same idea becomes a Fourier transform, and the matrix sums become integrals.
Common Mistakes
Section titled “Common Mistakes”- Using where is required.
- Transforming the state-coordinate column but leaving the operator matrix in the old basis.
- Assuming every basis change is unitary; nonorthonormal bases require a general invertible matrix.
- Forgetting that basis order matters.
- Comparing individual matrix entries from different bases as if they were basis-independent quantities.
- Treating a passive basis change as a physical time evolution or symmetry operation.
- Using an overlap matrix without tracking which basis labels its rows and columns.
References
Section titled “References”- E. Anderson et al., LAPACK Users’ Guide, 3rd ed., SIAM, 1999, “Generalized Symmetric Definite Eigenproblems.”
- S. Axler, Linear Algebra Done Right, 3rd ed., Springer, 2015.
- P. R. Halmos, Finite-Dimensional Vector Spaces, 2nd ed., Springer, 1974.
- M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information, Cambridge University Press, 2010.
- R. Shankar, Principles of Quantum Mechanics, 2nd ed., Springer, 1994.
- G. Strang, Linear Algebra and Its Applications, 4th ed., Brooks/Cole, 2006.
Exercises
Section titled “Exercises”- In , let be the standard basis and let with and . Find and the -coordinates of .
Solution
The columns of are the standard coordinates of and :
Since
the new coordinate column is
Indeed,
- With the same bases as in the first exercise, let
Find , the Gram matrix , and the bra–ket matrix . Explain why the nonsymmetric still represents a Hermitian operator. Using from Exercise 1, verify its normalized expectation value in both bases.
Solution
Use :
The off-diagonal entry appears because the new basis is not made of eigenvectors of the operator.
Since the old basis is orthonormal,
Thus is Hermitian and , even though . With and ,
Using instead would give . That discrepancy comes from using the wrong inner product, not from changing the observable. Likewise, the correct eigenvalues follow from ; the ordinary eigenvalues of are not the spectrum of .
- Let and be orthonormal bases, and let . Prove that is unitary.
Solution
Use completeness of the old basis:
Thus . Since is a square matrix, this also implies .