Change of Basis
A change of basis rewrites the same quantum state, operator, and measurement in a different coordinate system. It changes component columns and matrix entries, but it does not change the abstract objects or any physical prediction when every represented object is transformed consistently.
This distinction is easy to state and unusually easy to mishandle. A unitary matrix can describe a passive coordinate rewrite, an active physical operation, or a change in which observable an apparatus measures. Those three uses share algebra but answer different physical questions.
This page fixes one passive convention and uses it throughout. The general linear-algebra theory of arbitrary invertible coordinate changes belongs to Change of Basis in the Mathematical Toolkit. Here the emphasis is quantum-mechanical bookkeeping: amplitudes, observables, density operators, continuous representations, composite systems, and basis-independent checks.
Convention at a Glance
Section titled “Convention at a Glance”Let
be two ordered orthonormal bases of the same Hilbert space. Define the overlap matrix with new-basis labels on rows and old-basis labels on columns:
If is the old component column and is the new component column, then
The matching operator rule is
These two equations must travel together. They determine every convention on this page.
| Object | Passive transformation rule |
|---|---|
| State components | |
| Basis ket | |
| Operator | |
| Density operator | |
| Measurement effect |
Some books define their basis-change matrix as , so their formulas place daggers on the opposite side. Neither convention is intrinsically better. A reliable calculation labels the matrix entries, derives one component formula, and then remains consistent.
The Abstract Object and Its Representatives
Section titled “The Abstract Object and Its Representatives”A ket is not a column of numbers until a basis has been chosen. The coordinate maps associated with and send the same abstract ket to two different columns:
The overlap matrix is the coordinate map between those representations:
Likewise, one abstract operator has different matrices,
The following diagram separates the objects from their representatives and shows where the invariant prediction lives.
The coordinate maps and produce different columns and matrices. The overlap map connects the representations, while is independent of either choice.
The distinction between an object and its representation is developed more broadly in Bases and Representations.
Why the Overlap Matrix Is Unitary
Section titled “Why the Overlap Matrix Is Unitary”Because both bases are complete and orthonormal,
The matrix product has entries
Similarly,
Therefore
This is not an extra physical postulate. It follows from comparing two orthonormal coordinate systems on the same Hilbert space. For nonorthonormal bases, the coordinate map is generally invertible but not unitary.
Basis Kets and State Components Transform Oppositely
Section titled “Basis Kets and State Components Transform Oppositely”Insert the old completeness relation into a new basis ket:
The inverse relation is
Now write the same state in both bases:
Taking the overlap with gives
Thus basis kets carry in their old-basis expansion, while ket components carry . This opposite motion is what leaves the abstract sum unchanged.
A Practical Dictionary for Matrix Conventions
Section titled “A Practical Dictionary for Matrix Conventions”Numerical linear algebra packages commonly return a matrix whose columns are the new basis vectors written in old coordinates:
Its entries are
Therefore
The equivalent formulas in the column-eigenvector convention are
This dictionary resolves most apparent conflicts between textbooks and software. Before using a memorized similarity transformation, ask what the columns of the matrix actually contain.
Composition and Reversal
Section titled “Composition and Reversal”Suppose maps components to components, and maps components to components. Then
The rightmost conversion acts first. Reversing a conversion takes the adjoint:
These relations are useful diagnostics. A chain of exact orthonormal basis changes must remain unitary, and a round trip must return the identity.
State Norms and Inner Products
Section titled “State Norms and Inner Products”For two states with old columns and , the new columns are
Their inner product is unchanged:
In particular,
Normalization is therefore representation-independent. A basis change cannot repair an unnormalized state or turn a nonzero state into the zero vector; it only redistributes the same norm among components. See Normalization for ordinary, continuum, box, and flux conventions.
Transition amplitudes also remain invariant when both endpoint states are rewritten consistently:
Operator Matrices
Section titled “Operator Matrices”Let
In the new basis,
Hence
The identity operator remains the identity, but a general operator need not retain its pattern of entries. Diagonality, sparsity, band structure, and the size of individual matrix elements are representation-dependent.
The transformation respects operator algebra:
Consequently Hermiticity, unitarity, normality, commutation relations, and operator identities do not depend on the orthonormal basis used to display them. Other representation forms are catalogued in Operator Representations.
Expectation Values and Matrix Elements
Section titled “Expectation Values and Matrix Elements”Transform the state and operator together:
Then
The same cancellation proves invariance of a general matrix element:
If a calculation gives different expectation values in two bases, the physics has not become basis-dependent. At least one state, operator, index ordering, or conjugation was transformed inconsistently.
Spectra and Eigenvectors
Section titled “Spectra and Eigenvectors”Suppose an old-coordinate eigenvector satisfies
Its new-coordinate column is , and
Thus eigenvalues and eigenspace dimensions are unchanged. In finite dimension, unitary similarity also preserves the characteristic polynomial, trace, determinant, rank, and singular values.
An individual eigenvector inside a degenerate eigenspace is not canonical. If has eigenvalue on a subspace , any orthonormal rotation within gives another valid eigenbasis. The invariant object is the spectral projector
not the phase or orientation of each displayed eigenvector. This matters in analytic derivations and in numerical diagonalization near degeneracies.
Diagonalization as a Basis Choice
Section titled “Diagonalization as a Basis Choice”Let be Hermitian, and let a unitary matrix contain an orthonormal eigenbasis in its columns:
The new basis consists of those eigenvectors. Since ,
State components in the eigenbasis are
Diagonalization does not physically alter the observable. It chooses coordinates adapted to its invariant subspaces. The linear-algebra theorem and algorithmic issues live in Diagonalization and Matrix Diagonalization.
Passive Rewrites, Active Operations, and New Measurements
Section titled “Passive Rewrites, Active Operations, and New Measurements”Three procedures are often represented by closely related unitary matrices:
- In a passive basis change, the coordinates of every represented object change while the abstract state, operators, and apparatus remain fixed. All predictions are unchanged.
- In an active unitary operation, the physical state or operator changes relative to a fixed reference basis. Later measurement probabilities can change.
- In a change of measurement basis, the measured projectors or effects change while the prepared state remains fixed. Outcome probabilities generally change.
For a passive change,
For an active operation in a fixed basis,
If the new basis is physically constructed as
then its overlap matrix is
so . The passive coordinate transformation induced by an active rotation therefore carries the inverse unitary. This is the source of many reversed rotations and misplaced daggers.
A New Measurement Basis Is a New Physical Question
Section titled “A New Measurement Basis Is a New Physical Question”Suppose a state is prepared with old components , while an apparatus measures the rank-one projectors
The outcome amplitude is
and the probability is
The multiplication is algebraically identical to rewriting the state in the basis. The interpretation is different:
- In a passive rewrite, the apparatus projectors are rewritten too, and no probability changes.
- In a new measurement, the prepared state is held fixed while the physical projectors are replaced, so the outcome distribution can change.
This distinction is developed through concrete measurements in Probability in Different Bases.
Worked Two-Level Example
Section titled “Worked Two-Level Example”Let the old basis be
and the new basis be
With new labels on rows and old labels on columns,
For
the new components are
The old matrix of is
In the new basis,
The same abstract operator is diagonal in one basis and off-diagonal in the other. Its expectation value agrees:
By contrast, physically measuring in the basis gives
which need not equal the measurement probabilities.
Complex Two-Level Bases
Section titled “Complex Two-Level Bases”Real Hadamard matrices can hide where complex conjugation enters. A general spin- basis associated with spherical angles and may be chosen as
The overlap matrix is
For ,
The phases in these rows come from bras, not kets. Replacing by without also changing the basis convention gives incorrect interference terms.
Basis Phases Are Conventional
Section titled “Basis Phases Are Conventional”Each basis vector may be rephased independently:
Let
Then
The projector associated with one basis ray is unchanged:
Therefore outcome probabilities and expectation values cannot depend on these phase choices. Component phases and off-diagonal matrix phases do change, so tables of eigenvectors from different references may look different while describing the same rays and projectors.
If the basis depends smoothly on external parameters, derivatives of those phase choices introduce a connection. That is the beginning of geometric phase, not a failure of basis invariance. The global-phase distinction for a single state is reviewed in Rays and Global Phase.
Density Operators and Measurement Effects
Section titled “Density Operators and Measurement Effects”A density operator and every measurement effect transform by the operator rule:
The Born probability is unchanged:
Unitary similarity preserves trace, positivity, rank, eigenvalues, purity, and von Neumann entropy. It does not preserve the location of individual matrix entries.
For example,
becomes in the basis
The same pure state is diagonal in one basis and has off-diagonal entries in another. Claims about “coherence in the off-diagonal terms” must therefore name a basis or a physically preferred decomposition. The basis-independent properties of are developed in Density Operators.
What Is and Is Not Basis-Invariant
Section titled “What Is and Is Not Basis-Invariant”| Quantity or property | Basis-invariant? | Reason |
|---|---|---|
| Norm and inner products | Yes | Unitarity preserves the Hilbert-space metric |
| Probabilities and expectation values | Yes | States and measurement operators transform together |
| Eigenvalues and eigenspace dimensions | Yes | Operator matrices are unitarily similar |
| Trace, rank, purity, and entropy | Yes | They depend on spectrum or unitary invariants |
| State components | No | Components are coordinates |
| Individual matrix entries | No | Entries refer to chosen basis vectors |
| Diagonality and sparsity | No | A basis can be adapted or poorly adapted to an operator |
| Density-matrix off-diagonal entries | No | Their positions depend on the reference basis |
| Entanglement under local basis changes | Yes | Local unitaries preserve Schmidt coefficients |
An invariant statement should be expressible without privileging the labels of one representation. A coordinate-dependent statement can still be useful, but its basis must be declared.
Continuous Bases as Integral Transforms
Section titled “Continuous Bases as Integral Transforms”The same structure extends from matrices to integral kernels. Let and be generalized continuous bases with their appropriate measures. Define
The two wavefunctions of the same state are related by
The inverse transformation is
Kernel unitarity is the continuum analogue of :
The delta distributions are defined relative to the stated measures. Omitting a Jacobian or using a delta function tied to a different measure can make a correct formal transformation appear nonunitary.
Position and Momentum
Section titled “Position and Momentum”With the convention
the momentum-space wavefunction is
and the inverse is
This is a continuous change of representation. The abstract state does not move from position to momentum; its coordinates are rewritten using the overlap kernel. Plancherel’s theorem gives the norm check
Conventions, dimensions, operator kernels, and the distinction between and wave number are treated in Momentum-Space Representation and Fourier Transform.
Operator Kernels in Continuous Representations
Section titled “Operator Kernels in Continuous Representations”If
then its kernel in the representation is
This is the integral-kernel form of . A position-space differential operator may become multiplication in momentum space, while a local potential may become a convolution kernel. The operator is unchanged even though its computational form can change dramatically.
For unbounded operators, a representation is not specified by a formal formula alone. The domain must transform as well:
Ignoring domains can turn a legitimate unitary equivalence into an invalid operator identity. See Domains of Operators.
Nonorthonormal Bases Need a Metric
Section titled “Nonorthonormal Bases Need a Metric”Not every useful expansion uses an orthonormal basis. If is nonorthonormal, define its Gram matrix
For
the norm is
not generally . Moreover, is not the coefficient . Coefficients are extracted with a dual basis satisfying
A change between nonorthonormal bases is a general invertible coordinate change, and its matrix need not be unitary in the Euclidean sense. It preserves the physical inner product only when the Gram matrix is transformed consistently. The general coordinate formulas belong to the Mathematical Toolkit treatment.
Composite Systems and Local Basis Changes
Section titled “Composite Systems and Local Basis Changes”For a bipartite basis
suppose the two subsystems are independently rewritten with overlap matrices and . The product-basis overlap matrix is
If the state coefficients are arranged as a matrix with entries , then
Indeed,
The transpose on the right follows from placing the subsystem- index as the column index of ; it is not an adjoint. In vectorized notation the same rule is once a tensor-product ordering is fixed.
The reduced state transforms locally:
Therefore its eigenvalues, and hence the Schmidt coefficients and bipartite entanglement entropy of a pure state, are invariant under local basis changes. The tensor-product decomposition itself is additional physical structure; an arbitrary global basis change need not look local with respect to it. See Schmidt Decomposition.
Exact Basis Changes Versus Truncations
Section titled “Exact Basis Changes Versus Truncations”Two complete orthonormal bases of the same space are connected by a unitary map. Two finite lists obtained by truncating different bases need not be.
Let and project onto the two retained subspaces. If those subspaces differ, the finite overlap matrix
can fail to satisfy . That failure is not evidence that the full basis transformation is nonunitary. It measures leakage outside the retained subspace.
This distinction matters when comparing truncated oscillator bases, plane-wave cutoffs, finite grids, or numerically computed low-energy eigenspaces. An exact unitary similarity preserves the full spectrum; projection and truncation can change eigenvalues and expectation values.
Numerical Workflow
Section titled “Numerical Workflow”For a finite-dimensional calculation, the following procedure keeps the convention auditable.
- State the old and new ordered bases.
- Build , or obtain from new basis vectors stored as columns.
- Check and against the identity to the expected tolerance.
- Transform states with and operators with .
- Compare norms, expectation values, traces, and eigenvalues before trusting individual entries.
- Near a degeneracy, compare invariant subspaces or spectral projectors rather than phases and orderings of individual eigenvectors.
- For composite systems, record tensor-factor order and reshape conventions.
Do not compute a numerical inverse of a matrix already known to be unitary; use its conjugate transpose. If the proposed basis is nonorthogonal or nearly linearly dependent, inspect its Gram matrix and condition number instead of forcing a unitary formula.
A Compact Invariance Audit
Section titled “A Compact Invariance Audit”Given a candidate overlap matrix , state , operator , and density operator , test
For a Hermitian operator, also check
A failed norm test usually signals a malformed overlap matrix, inconsistent basis ordering, or truncation. A passed norm test with a failed expectation test usually means the state and operator were transformed with incompatible conventions. More calculation-level checks are collected in Common Checks and Sanity Tests.
Common Mistakes
Section titled “Common Mistakes”- Writing a component column without naming its ordered basis.
- Defining and then using the formulas for .
- Transforming the state but leaving the operator or measurement matrix in the old basis.
- Replacing a conjugate transpose by an ordinary transpose in a complex basis.
- Treating a passive coordinate rewrite as active time evolution, rotation, or gate application.
- Calling a new physical measurement basis a mere relabelling.
- Comparing eigenvector phases or orderings as though they were invariant.
- Assuming off-diagonal density-matrix entries have a basis-independent meaning.
- Applying unitary formulas to a nonorthonormal basis without its Gram matrix and dual basis.
- Treating overlap matrices between different truncated subspaces as exact unitary basis changes.
- Forgetting that a continuous basis transformation includes measures, Jacobians, and distributional normalization.
- Ignoring operator domains when changing representations in an infinite-dimensional Hilbert space.
Further Connections
Section titled “Further Connections”- Bases and Representations
- Superposition and Relative Phase
- Probability in Different Bases
- Operator Representations
- Density Operators
- Representation Translation Table
- Unitary Operators
- Change of Basis in Linear Algebra
- Fourier Transform
- Domains of Operators
References
Section titled “References”- P. A. M. Dirac, The Principles of Quantum Mechanics, 4th ed., Oxford University Press, 1958.
- J. von Neumann, Mathematical Foundations of Quantum Mechanics, Princeton University Press, 1955.
- R. Shankar, Principles of Quantum Mechanics, 2nd ed., Springer, 1994.
- J. J. Sakurai and J. Napolitano, Modern Quantum Mechanics, 3rd ed., Cambridge University Press, 2020.
- L. E. Ballentine, Quantum Mechanics: A Modern Development, World Scientific, 1998.
- M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information, Cambridge University Press, 2010.
- B. C. Hall, Quantum Theory for Mathematicians, Springer, 2013.
- M. Reed and B. Simon, Methods of Modern Mathematical Physics, Vol. I: Functional Analysis, revised and enlarged ed., Academic Press, 1980.
Exercises
Section titled “Exercises”1. Recover the basis-vector transformation
Section titled “1. Recover the basis-vector transformation”Starting from
derive both expansions
Solution
Insert the old completeness relation:
Insert the new completeness relation into an old basis ket:
The complex conjugation appears in the first formula because .
2. A complex spin basis
Section titled “2. A complex spin basis”Let
Construct the overlap matrix from the basis to the basis, and find the -basis components of .
Solution
The bras are
Therefore
Applying gives
For , both outcomes have probability . The signs of would be reversed if the ket coefficients were copied into the overlap rows without complex conjugation.
3. Transform an observable and verify an expectation value
Section titled “3. Transform an observable and verify an expectation value”Let
Find and verify expectation-value invariance for .
Solution
Because ,
The new state column is
In the old basis,
For the new state, and . Hence
4. Rephase a basis vector
Section titled “4. Rephase a basis vector”Let rephase the second vector of a new basis. Show how a state column and operator matrix change, and prove that the expectation value is unaffected.
Solution
The rephased overlap matrix is , so
In components,
while
The phases cancel in the scalar:
5. Basis dependence of density-matrix entries
Section titled “5. Basis dependence of density-matrix entries”For
use the Hadamard overlap matrix to find . Compare the off-diagonal entries and verify that the purity is unchanged.
Solution
Direct multiplication gives
The old matrix is diagonal, while the new matrix is not. Nevertheless,
and
The eigenvalues remain and . Off-diagonal entries are basis-dependent; purity is not.
6. Unitarity of the position–momentum kernel
Section titled “6. Unitarity of the position–momentum kernel”Using
show that
Solution
The kernel product is
The Fourier representation of the delta distribution gives
Substituting this identity into the double integral for recovers . This is continuum unitarity in kernel form.
7. Local basis changes and Schmidt coefficients
Section titled “7. Local basis changes and Schmidt coefficients”Let a bipartite pure state have coefficient matrix . Under local basis changes, . Show that is unitarily similar to , and infer that the Schmidt coefficients are unchanged.
Solution
Using ,
Thus and have the same eigenvalues. Those eigenvalues are the squared Schmidt coefficients, so local basis changes do not change the Schmidt spectrum or pure-state entanglement entropy.
8. Diagnose a truncated overlap matrix
Section titled “8. Diagnose a truncated overlap matrix”In a three-dimensional Hilbert space, retain
from one basis and
from another. Compute the overlap matrix and explain why it is not an exact basis change on one common two-dimensional space.
Solution
With rows labelled by and columns by ,
Therefore
The two retained lists span different subspaces: the first contains , while the second contains . Mapping a state by discards the component because that direction lies outside the second retained subspace. The nonunitarity records projection loss, not a failure of the full Hilbert-space basis transformation.