Schmidt Decomposition
Schmidt Decomposition
Every bipartite pure state, however tangled it looks, has a hidden diagonal form: a single sum that pairs one orthonormal vector on the left with one on the right. That canonical form is the Schmidt decomposition, and it falls straight out of the singular value decomposition of the coefficient matrix. Its weights — the Schmidt coefficients — are immune to anything either party can do locally, which is exactly why they, and the single number built from them (the entanglement entropy), are the measure of entanglement for pure states. This lesson turns the qualitative "entangled vs. not" of 1.4.1 into a quantitative dial.
Learning Objectives
After this lesson you will be able to:
- State and prove the Schmidt decomposition theorem from the SVD of the coefficient matrix.
- Read off the Schmidt coefficients, Schmidt rank, and Schmidt bases of a bipartite pure state.
- Show the Schmidt spectrum is a local-unitary invariant, and use Schmidt rank as the separability test.
- Define the entanglement entropy and identify maximally entangled states by their flat spectrum.
- Compute Schmidt decompositions numerically with
numpy.linalg.svdand interpret the spectrum.
Intuition
A bipartite state generally needs amplitudes — a whole matrix of them. The Schmidt decomposition says you can always rotate the local bases (a new basis for , a new basis for ) so that this matrix becomes diagonal: the state collapses to a single sum with at most terms. The number of terms (the Schmidt rank) and the diagonal weights (the Schmidt coefficients ) are intrinsic — choosing different starting bases, or applying any gates locally, just relabels and but never touches the . A product state is the special case of one term (); a Bell state is the opposite extreme, a perfectly flat spectrum. So "how entangled is this pure state?" has a clean answer: look at how spread-out the Schmidt spectrum is, and the SVD hands it to you for free.
Theory
Setup: the coefficient matrix
From 1.4.1, any pure state of a bipartite system (dimensions ) expands in product bases , as
and normalization is (the Frobenius norm). The matrix holds everything about the state; the Schmidt decomposition is just its SVD, read as a statement about .
The theorem
Schmidt decomposition. For any pure state there exist orthonormal sets and and unique reals with such that
The are the Schmidt coefficients, is the Schmidt rank, and the are the Schmidt bases.
Proof. Apply the SVD (0.1.6) to the coefficient matrix: , with () and () unitary and diagonal with entries (the singular values). Componentwise . Substitute:
Because is unitary its columns are orthonormal; likewise the conjugated columns of give orthonormal . Keeping only the strictly positive gives the boxed form. Normalization forces . The are the singular values of , which are unique; the Schmidt bases are unique up to phases (and up to rotation within any degenerate subspace).
The decisive feature: it is a single sum over one index , not a double sum over . One left vector is matched to exactly one right vector.
Schmidt rank and the separability test
The Schmidt rank (number of nonzero ) is the sharp measure of whether a pure state is entangled — exactly the criterion promised in 1.4.1 and 1.1.4:
- : is a product state (separable). With this is just .
- : entangled — no single product of local vectors can reproduce it.
The Schmidt spectrum is a local-unitary invariant
Suppose Alice applies and Bob applies . The coefficient matrix transforms as (Exercise E3; the transpose comes from acting on the second factor). Left and right multiplication by unitaries does not change singular values (0.1.6). Hence:
They only rotate the Schmidt vectors , . This is why the spectrum measures entanglement: it is precisely the part of the state that survives quotienting out each party's choice of local basis. Anything that genuinely changes entanglement must be a joint (entangling) operation.
Reduced states and entanglement entropy
The Schmidt coefficients are the bridge to the density-matrix formalism of Course 1.5. Tracing out one side of (the partial trace, 1.5.2) gives diagonal reduced states in the Schmidt bases:
So and share the same nonzero eigenvalues — a striking fact: two subsystems of very different sizes have identically-shaped spectra. Since is a probability distribution (, ), we measure entanglement by its Shannon entropy (0.2.3):
It is symmetric (, since both sides share ), zero iff the state is a product (), and — being a function of the LU-invariant spectrum — itself a local-unitary invariant.
Maximal entanglement = flat spectrum
is maximized when the distribution is uniform. For Schmidt rank , the maximum is , attained when all . A state of two -dimensional systems is maximally entangled when for all , giving and maximally mixed reduced states . For two qubits () that is ebit — the Bell states (1.4.2), whose flat spectrum is exactly what "maximally entangled" means. The entanglement entropy thus interpolates continuously from (product) to (maximal): a genuine dial, not a yes/no flag.
Worked Examples
Example 1 — The Bell state is already in Schmidt form
has coefficient matrix C = \tfrac1{\sqrt2}\begin{psmallmatrix}1&0\\0&1\end{psmallmatrix} = \tfrac1{\sqrt2}I. Its singular values are both , so , Schmidt rank , with Schmidt bases on each side. The spectrum is flat, so and ebit — maximally entangled, with .
Example 2 — Entanglement as a continuous dial
is already a Schmidt decomposition: , so (for ) and . The entanglement entropy is the binary entropy . At the state is , a product (, ); at it is , maximal (); in between it is partially entangled. One parameter sweeps the whole range from separable to maximal.
Example 3 — One sign flip: product vs. maximal
Compare two states that look almost identical:
Their coefficient matrices are C_P = \tfrac12\begin{psmallmatrix}1&1\\1&1\end{psmallmatrix} and C_M = \tfrac12\begin{psmallmatrix}1&1\\1&-1\end{psmallmatrix} = \tfrac1{\sqrt2}H. The rows of are identical, so : , and indeed is a product state, . But is unitary, so has both singular values equal to : , , — is maximally entangled (it is dressed by a local ). A single sign separates a product state from a Bell state, and only the Schmidt spectrum sees it at a glance.
Hands-on (Python)
import numpy as np
def schmidt(state, dA, dB, tol=1e-12):
"""Schmidt decomposition of a bipartite pure state (big-endian, A⊗B).
Returns (sigma, U_cols, Vh_rows) keeping only sigma_k > tol."""
C = state.reshape(dA, dB) # coefficient matrix C_{ij}
U, s, Vh = np.linalg.svd(C) # C = U diag(s) Vh
keep = s > tol
return s[keep], U[:, keep], Vh[keep, :] # |u_k> = U[:,k], |v_k> = Vh[k,:]
def entanglement_entropy(sigma):
"""E = -sum lambda log2 lambda, lambda = sigma^2 (in ebits)."""
lam = sigma**2
lam = lam[lam > 0]
return float(max(0.0, -np.sum(lam * np.log2(lam)))) # entropy is nonnegative
# Build a few 2-qubit states (big-endian: index 2i+j ↔ |i>|j>):
def two_qubit(c00, c01, c10, c11):
v = np.array([c00, c01, c10, c11], dtype=complex)
return v / np.linalg.norm(v)
bell = two_qubit(1, 0, 0, 1) # |Φ+>
prod = two_qubit(1, 1, 1, 1) # |+>|+> (Example 3, |P>)
maximal = two_qubit(1, 1, 1, -1) # one sign flip (Example 3, |M>)
for name, st in [("Bell", bell), ("|+>|+>", prod), ("sign-flip", maximal)]:
s, _, _ = schmidt(st, 2, 2)
print(f"{name:>10}: sigma={np.round(s,3)} rank={len(s)} E={entanglement_entropy(s):.3f} ebits")
# Bell: sigma=[0.707 0.707] rank=2 E=1.000 (flat -> maximal)
# |+>|+>: sigma=[1.] rank=1 E=0.000 (product; the second σ≈0 is dropped)
# sign-flip: sigma=[0.707 0.707] rank=2 E=1.000 (Bell up to a local H)# The dial of Example 2: E(θ) = H2(cos^2 θ), peaking at θ = π/4.
for theta in (0, np.pi/8, np.pi/4):
st = two_qubit(np.cos(theta), 0, 0, np.sin(theta))
s, _, _ = schmidt(st, 2, 2)
print(f"θ={theta:.3f}: sigma={np.round(s,3)} E={entanglement_entropy(s):.4f}")
# θ=0.000: sigma=[1.] E=0.0000 (product)
# θ=0.393: sigma=[0.924 0.383] E=0.6009 (partial)
# θ=0.785: sigma=[0.707 0.707] E=1.0000 (maximal)
# Reconstruction check: Σ_k σ_k |u_k>⊗|v_k> rebuilds the state exactly.
s, U, Vh = schmidt(maximal, 2, 2)
rebuilt = sum(sk * np.kron(U[:, k], Vh[k, :]) for k, sk in enumerate(s))
print("reconstruct OK:", np.allclose(rebuilt, maximal)) # True
# Local-unitary invariance: H ⊗ I leaves the Schmidt spectrum unchanged.
H = np.array([[1, 1], [1, -1]], dtype=complex) / np.sqrt(2)
I2 = np.eye(2)
st2 = np.kron(H, I2) @ bell
print("σ after H⊗I:", np.round(schmidt(st2, 2, 2)[0], 3)) # [0.707 0.707] — unchangedNumerical Schmidt rank. The rank is the count of singular values above a tolerance, never an exact equality test — finite precision turns a "zero" coefficient into something like . This is the careful version of the
schmidt_rankhelper from 1.4.1: picktolcomfortably above machine noise (here ). The same SVD also drives the matrix-product-state truncation used in tensor-network simulators (Term 5.3).
Exercises
E1 (easy). Give the Schmidt coefficients, rank, and entanglement entropy of for , , .
Solution
It is already in Schmidt form: . At : , rank , (product). At : , rank , . At : , rank , (maximal). ∎
E2 (easy). Why must for any normalized state?
Solution
Normalization gives , and the squared Frobenius norm equals the sum of squared singular values, . So , which is also why is a valid probability distribution. ∎
E3 (medium). Show that under local unitaries the coefficient matrix transforms as , and conclude the Schmidt coefficients are unchanged.
Solution
$(U_A\otimes U_B)\lvert\Psi\rangle = \sum_{ij}C_{ij}(U_A\lvert i\rangle)\otimes(U_B\lvert j\rangle) = \sum_{ij}C_{ij}\sum_{i'}(U_A){i'i}\lvert i'\rangle\sum{j'}(U_B){j'j}\lvert j'\rangle$. The new coefficient of is $\sum{ij}(U_A){i'i}C{ij}(U_B){j'j} = (U_A C,U_B^{\top}){i'j'}$. Singular values are invariant under left/right multiplication by unitaries ( is unitary since is), so every — hence — is unchanged; only the Schmidt vectors rotate. ∎
E4 (medium). Without numerics, find the Schmidt rank and entanglement entropy of .
Solution
C_M = \tfrac12\begin{psmallmatrix}1&1\\1&-1\end{psmallmatrix} = \tfrac1{\sqrt2}H with the (unitary) Hadamard. A unitary has all singular values , so has both singular values : , rank , flat spectrum, ebit. It is maximally entangled — a Bell state up to the local unitary on one qubit. ∎
E5 (medium). Prove that , and deduce that is pure iff is a product state.
Solution
Write . Then $\lvert\Psi\rangle\langle\Psi\lvert =\sum_{k,l}\sigma_k\sigma_l\lvert u_k\rangle\langle u_l\lvert\otimes\lvert v_k\rangle\langle v_l\lvert$. The partial trace over replaces by (orthonormality), leaving — already diagonal, with eigenvalues . is pure iff one eigenvalue is and the rest , i.e. a single nonzero , i.e. Schmidt rank , i.e. is a product. ∎ (Partial trace: 1.5.2.)
E6 (hard). Show , and that for two -level systems the maximum entanglement entropy is , attained exactly when for all .
Solution
and is , so ; for two -level systems . Entanglement entropy is the Shannon entropy of a distribution on outcomes, which is maximized by the uniform distribution and equals (0.2.3). The bound is reached only when and all , i.e. — the flat spectrum, giving . ∎
Checkpoint
- State the Schmidt decomposition and the key structural fact that distinguishes it from a generic double sum.
- How do you compute the Schmidt coefficients of a state in practice?
- What does Schmidt rank tell you, and why is the Schmidt spectrum unchanged by local unitaries?
- Define the entanglement entropy and give its value for a product state and for a two-qubit Bell state.
- What is the Schmidt spectrum of a maximally entangled state of two -level systems, and what are its reduced states?
Answers
- with orthonormal , and , . It is a single sum pairing one -vector with one -vector.
- Form the coefficient matrix and take its singular values via the SVD; the are those singular values.
- Rank ⟺ product, rank ⟺ entangled. Local unitaries send , which preserves singular values.
- ; for a product state, ebit for a Bell state.
- Flat: for all , ; reduced states are maximally mixed, .
Further Reading
- [NC] Nielsen & Chuang, §2.5 — the Schmidt decomposition and its consequences for entanglement.
- [Pre] Preskill, Ph219, Ch. 2 — Schmidt decomposition, purification, and the reduced density operator.
- [Wat] Watrous, The Theory of Quantum Information, Ch. 2 — operator-Schmidt and SVD viewpoint.
- [NC] §12.5.1 — entanglement entropy as the entanglement measure for pure bipartite states.
← Prev: Nonlocality & the CHSH Inequality · Up: Term 1 · Next: The Density Operator →