QuantumCore

Lesson 14 · 60 min · core

Partial Trace & Reduced States

Loading progress…

How do we describe one qubit of an entangled pair? Not by a state vector — by a reduced density operator obtained with the partial trace TrB\mathrm{Tr}_B. This lesson defines TrB\mathrm{Tr}_B on product operators and in components, proves that ρA=TrBρAB\rho_A=\mathrm{Tr}_B\rho_{AB} is the unique operator reproducing every local measurement statistic, computes TrB∣Φ+⟩⟨Φ+∣=I/2\mathrm{Tr}_B\lvert\Phi^+\rangle\langle\Phi^+\rvert=I/2 entry by entry, derives the Schmidt decomposition from the singular value decomposition, and proves that a pure bipartite state is a product state exactly when its marginal is pure.

Prerequisites: Density Operators: Pure vs Mixed

Objectives and key results
  • Compute a reduced state in components with (ρA)aa′=∑bρ(a,b),(a′,b)(\rho_A)_{aa'}=\sum_b\rho_{(a,b),(a',b)}, using the platform's index map (a,b)↦2a+b(a,b)\mapsto2a+b for two qubits.

  • Prove that ρA=TrBρAB\rho_A=\mathrm{Tr}_B\rho_{AB} is the unique operator satisfying Tr(MρA)=Tr((M⊗I)ρAB)\mathrm{Tr}(M\rho_A)=\mathrm{Tr}\big((M\otimes I)\rho_{AB}\big) for all MM, and explain why this makes the partial trace the only correct description of a subsystem.

  • Show that entangled pure states such as ∣Φ+⟩\lvert\Phi^+\rangle and cos⁡θ2∣00⟩+sin⁡θ2∣11⟩\cos\tfrac\theta2\lvert00\rangle+\sin\tfrac\theta2\lvert11\rangle have mixed marginals.

  • State and prove the Schmidt decomposition from the SVD of the coefficient matrix, and use it to prove: a pure ∣ψ⟩AB\lvert\psi\rangle_{AB} is a product state iff ρA\rho_A is pure.

definition · Partial trace
TrB(∣a⟩⟨a′∣⊗∣b⟩⟨b′∣)=∣a⟩⟨a′∣ ⟨b′∣b⟩,(ρA)aa′=∑bρ(a,b),(a′,b)\mathrm{Tr}_B\big(\lvert a\rangle\langle a'\rvert\otimes\lvert b\rangle\langle b'\rvert\big)=\lvert a\rangle\langle a'\rvert\,\langle b'\vert b\rangle,\qquad(\rho_A)_{aa'}=\sum_b\rho_{(a,b),(a',b)}
theorem · Reduced state reproduces local statistics (uniquely)
Tr(MρA)=Tr((M⊗IB)ρAB)  ∀M⟺ρA=TrB ρAB\mathrm{Tr}(M\rho_A)=\mathrm{Tr}\big((M\otimes I_B)\rho_{AB}\big)\ \ \forall M\quad\Longleftrightarrow\quad\rho_A=\mathrm{Tr}_B\,\rho_{AB}
identity · Marginal of a Bell state
TrB∣Φ+⟩⟨Φ+∣=12I\mathrm{Tr}_B\lvert\Phi^+\rangle\langle\Phi^+\rvert=\tfrac12I
theorem · Schmidt decomposition
∣ψ⟩AB=∑k=1rλk∣ak⟩∣bk⟩,λk>0, ∑kλk2=1,ρA=∑kλk2∣ak⟩⟨ak∣\lvert\psi\rangle_{AB}=\sum_{k=1}^{r}\lambda_k\lvert a_k\rangle\lvert b_k\rangle,\quad\lambda_k>0,\ \sum_k\lambda_k^2=1,\quad\rho_A=\sum_k\lambda_k^2\lvert a_k\rangle\langle a_k\rvert
theorem · Product iff pure marginal
∣ψ⟩AB=∣α⟩⊗∣β⟩  ⟺  Tr(ρA2)=1  ⟺  r=1\lvert\psi\rangle_{AB}=\lvert\alpha\rangle\otimes\lvert\beta\rangle\iff\mathrm{Tr}\big(\rho_A^2\big)=1\iff r=1

Defining the partial trace#

Alice holds qubit AA and Bob holds qubit BB of a joint state ρAB\rho_{AB} on HA⊗HB\mathcal H_A\otimes\mathcal H_B. Alice can only act on her own system: any measurement she performs is described by operators of the form M⊗IBM\otimes I_B. We want an operator ρA\rho_A on HA\mathcal H_A alone that predicts all of her statistics. For a product state ρAB=σ⊗τ\rho_{AB}=\sigma\otimes\tau the answer is obviously σ\sigma; for entangled states the answer is the partial trace, which "sums over" Bob's index while keeping Alice's. We work with orthonormal bases {∣a⟩}\{\lvert a\rangle\} of HA\mathcal H_A (dAd_A elements) and {∣b⟩}\{\lvert b\rangle\} of HB\mathcal H_B (dBd_B elements).

Definition

Partial trace over B

TrB\mathrm{Tr}_B is the linear map from operators on HA⊗HB\mathcal H_A\otimes\mathcal H_B to operators on HA\mathcal H_A defined on product operators by TrB(∣a⟩⟨a′∣⊗∣b⟩⟨b′∣)=∣a⟩⟨a′∣ Tr(∣b⟩⟨b′∣)=∣a⟩⟨a′∣ ⟨b′∣b⟩\mathrm{Tr}_B\big(\lvert a\rangle\langle a'\rvert\otimes\lvert b\rangle\langle b'\rvert\big)=\lvert a\rangle\langle a'\rvert\,\mathrm{Tr}\big(\lvert b\rangle\langle b'\rvert\big)=\lvert a\rangle\langle a'\rvert\,\langle b'\vert b\rangle and extended linearly. Since the dA2dB2d_A^2d_B^2 operators ∣a⟩⟨a′∣⊗∣b⟩⟨b′∣\lvert a\rangle\langle a'\rvert\otimes\lvert b\rangle\langle b'\rvert form a basis of all operators on the composite space, this determines TrB\mathrm{Tr}_B completely. More generally TrB(X⊗Y)=X Tr(Y)\mathrm{Tr}_B(X\otimes Y)=X\,\mathrm{Tr}(Y). The reduced state (marginal) of AA is ρA=TrB ρAB\rho_A=\mathrm{Tr}_B\,\rho_{AB}; symmetrically ρB=TrA ρAB\rho_B=\mathrm{Tr}_A\,\rho_{AB}.

Derivation

Component form of the partial trace

  1. Step 1:
    ρAB=∑a,a′,b,b′ρ(a,b),(a′,b′) ∣a⟩⟨a′∣⊗∣b⟩⟨b′∣,ρ(a,b),(a′,b′)=⟨a b∣ρAB∣a′ b′⟩\rho_{AB}=\sum_{a,a',b,b'}\rho_{(a,b),(a',b')}\,\lvert a\rangle\langle a'\rvert\otimes\lvert b\rangle\langle b'\rvert,\qquad\rho_{(a,b),(a',b')}=\langle a\,b\vert\rho_{AB}\vert a'\,b'\rangle
    Expand ρAB\rho_{AB} in the product basis of operators; ∣ab⟩⟨a′b′∣=∣a⟩⟨a′∣⊗∣b⟩⟨b′∣\lvert ab\rangle\langle a'b'\rvert=\lvert a\rangle\langle a'\rvert\otimes\lvert b\rangle\langle b'\rvert by the mixed-product rule.
  2. Step 2:
    TrB ρAB=∑a,a′,b,b′ρ(a,b),(a′,b′) ∣a⟩⟨a′∣ ⟨b′∣b⟩=∑a,a′,b,b′ρ(a,b),(a′,b′) δbb′ ∣a⟩⟨a′∣\mathrm{Tr}_B\,\rho_{AB}=\sum_{a,a',b,b'}\rho_{(a,b),(a',b')}\,\lvert a\rangle\langle a'\rvert\,\langle b'\vert b\rangle=\sum_{a,a',b,b'}\rho_{(a,b),(a',b')}\,\delta_{bb'}\,\lvert a\rangle\langle a'\rvert
    Apply the definition term by term (linearity) and orthonormality ⟨b′∣b⟩=δbb′\langle b'\vert b\rangle=\delta_{bb'}.
  3. Step 3:
    (ρA)aa′=⟨a∣ρA∣a′⟩=∑bρ(a,b),(a′,b)(\rho_A)_{aa'}=\langle a\vert\rho_A\vert a'\rangle=\sum_b\rho_{(a,b),(a',b)}
    The Kronecker delta collapses the b′b' sum: keep Alice's row/column indices, set Bob's row index equal to his column index and add.
  4. Step 4:
    ρA=∑b(IA⊗⟨b∣) ρAB (IA⊗∣b⟩)\rho_A=\sum_b\big(I_A\otimes\langle b\rvert\big)\,\rho_{AB}\,\big(I_A\otimes\lvert b\rangle\big)
    Equivalent operator form: ⟨a∣(I⊗⟨b∣)ρAB(I⊗∣b⟩)∣a′⟩=⟨ab∣ρAB∣a′b⟩\langle a\rvert(I\otimes\langle b\rvert)\rho_{AB}(I\otimes\lvert b\rangle)\lvert a'\rangle=\langle ab\vert\rho_{AB}\vert a'b\rangle, summed over bb.
  5. Step 5:
    (ρA)aa′=ρ2a, 2a′+ρ2a+1, 2a′+1,(ρB)bb′=ρb, b′+ρ2+b, 2+b′(\rho_A)_{aa'}=\rho_{2a,\,2a'}+\rho_{2a+1,\,2a'+1},\qquad(\rho_B)_{bb'}=\rho_{b,\,b'}+\rho_{2+b,\,2+b'}
    Two qubits with qubit 0 =A=A as the most significant bit: the composite index of (a,b)(a,b) is 2a+b2a+b. Tracing out AA instead sums over aa with bb as the kept index.

Result

(ρA)aa′=∑bρ(a,b),(a′,b),(ρB)bb′=∑aρ(a,b),(a,b′)\boxed{(\rho_A)_{aa'}=\sum_b\rho_{(a,b),(a',b)},\qquad(\rho_B)_{bb'}=\sum_a\rho_{(a,b),(a,b')}}

Why the partial trace: the uniqueness theorem#

Theorem

The reduced state is the unique operator reproducing local statistics

For every operator ρAB\rho_{AB} on HA⊗HB\mathcal H_A\otimes\mathcal H_B, ρA=TrBρAB\rho_A=\mathrm{Tr}_B\rho_{AB} satisfies Tr(MρA)=Tr((M⊗IB)ρAB)\mathrm{Tr}(M\rho_A)=\mathrm{Tr}\big((M\otimes I_B)\rho_{AB}\big) for every operator MM on HA\mathcal H_A. Conversely, if an operator σ\sigma on HA\mathcal H_A satisfies Tr(Mσ)=Tr((M⊗IB)ρAB)\mathrm{Tr}(M\sigma)=\mathrm{Tr}\big((M\otimes I_B)\rho_{AB}\big) for all MM, then σ=ρA\sigma=\rho_A.

Proof (6 steps)
  1. Step 1:
    Tr((M⊗I)ρAB)=∑a,b⟨a b∣(M⊗I)ρAB∣a b⟩\mathrm{Tr}\big((M\otimes I)\rho_{AB}\big)=\sum_{a,b}\langle a\,b\vert(M\otimes I)\rho_{AB}\vert a\,b\rangle
    Trace in the product basis {∣ab⟩}\{\lvert ab\rangle\} of the composite space.
  2. Step 2:
    =∑a,b∑a′′,b′′⟨ab∣M⊗I∣a′′b′′⟩ ⟨a′′b′′∣ρAB∣ab⟩=∑a,b∑a′′Maa′′ ρ(a′′,b),(a,b)=\sum_{a,b}\sum_{a'',b''}\langle ab\vert M\otimes I\vert a''b''\rangle\,\langle a''b''\vert\rho_{AB}\vert ab\rangle=\sum_{a,b}\sum_{a''}M_{aa''}\,\rho_{(a'',b),(a,b)}
    Insert the resolution of the identity ∑a′′,b′′∣a′′b′′⟩⟨a′′b′′∣\sum_{a'',b''}\lvert a''b''\rangle\langle a''b''\rvert; the Kronecker index formula gives ⟨ab∣M⊗I∣a′′b′′⟩=Maa′′δbb′′\langle ab\vert M\otimes I\vert a''b''\rangle=M_{aa''}\delta_{bb''}.
  3. Step 3:
    =∑a,a′′Maa′′(∑bρ(a′′,b),(a,b))=∑a,a′′Maa′′(ρA)a′′a=Tr(MρA)=\sum_{a,a''}M_{aa''}\Big(\sum_b\rho_{(a'',b),(a,b)}\Big)=\sum_{a,a''}M_{aa''}(\rho_A)_{a''a}=\mathrm{Tr}(M\rho_A)
    Do the bb sum first and recognise the component form of ρA\rho_A; the last expression is the trace of the matrix product MρAM\rho_A. This proves existence.
  4. Step 4:
    Tr(Mσ)=Tr(MρA)  ∀M ⇒ Tr(M(σ−ρA))=0  ∀M\mathrm{Tr}(M\sigma)=\mathrm{Tr}(M\rho_A)\ \ \forall M\ \Rightarrow\ \mathrm{Tr}\big(M(\sigma-\rho_A)\big)=0\ \ \forall M
    For uniqueness, subtract the two identities (linearity of the trace).
  5. Step 5:
    M=∣a′⟩⟨a∣:Tr(∣a′⟩⟨a∣ Δ)=⟨a∣Δ∣a′⟩=Δaa′=0M=\lvert a'\rangle\langle a\rvert:\quad\mathrm{Tr}\big(\lvert a'\rangle\langle a\rvert\,\Delta\big)=\langle a\vert\Delta\vert a'\rangle=\Delta_{aa'}=0
    Test against each element of the Hilbert–Schmidt basis {∣a′⟩⟨a∣}\{\lvert a'\rangle\langle a\rvert\}, writing Δ=σ−ρA\Delta=\sigma-\rho_A and using the trace identity Tr(∣x⟩⟨y∣Δ)=⟨y∣Δ∣x⟩\mathrm{Tr}(\lvert x\rangle\langle y\rvert\Delta)=\langle y\vert\Delta\vert x\rangle.
  6. Step 6:
    Δaa′=0  ∀a,a′ ⇒ σ=ρA\Delta_{aa'}=0\ \ \forall a,a'\ \Rightarrow\ \sigma=\rho_A
    All matrix entries of the difference vanish. Since {∣a⟩⟨a′∣}\{\lvert a\rangle\langle a'\rvert\} is an orthonormal basis for ⟨X,Y⟩=Tr(X†Y)\langle X,Y\rangle=\mathrm{Tr}(X^\dagger Y), testing on it is equivalent to testing on all MM.

∎

Corollary

The reduced state of a density operator is a density operator

If ρAB\rho_{AB} is Hermitian, positive semidefinite and of unit trace, so is ρA=TrBρAB\rho_A=\mathrm{Tr}_B\rho_{AB}. Moreover it suffices to test the uniqueness property on Hermitian MM (observables), since every M=H1+iH2M=H_1+iH_2 with H1=12(M+M†)H_1=\tfrac12(M+M^\dagger) and H2=12i(M−M†)H_2=\tfrac1{2i}(M-M^\dagger) Hermitian.

Proof (4 steps)
  1. Step 1:
    (ρA)a′a‾=∑bρ(a′,b),(a,b)‾=∑bρ(a,b),(a′,b)=(ρA)aa′\overline{(\rho_A)_{a'a}}=\sum_b\overline{\rho_{(a',b),(a,b)}}=\sum_b\rho_{(a,b),(a',b)}=(\rho_A)_{aa'}
    Hermiticity: conjugate the component formula and use ρxy‾=ρyx\overline{\rho_{xy}}=\rho_{yx} for ρAB\rho_{AB}.
  2. Step 2:
    ⟨φ∣ρA∣φ⟩=Tr(∣φ⟩⟨φ∣ρA)=Tr((∣φ⟩⟨φ∣⊗I)ρAB)=∑b⟨φ b∣ρAB∣φ b⟩≥0\langle\varphi\vert\rho_A\vert\varphi\rangle=\mathrm{Tr}\big(\lvert\varphi\rangle\langle\varphi\rvert\rho_A\big)=\mathrm{Tr}\big((\lvert\varphi\rangle\langle\varphi\rvert\otimes I)\rho_{AB}\big)=\sum_b\langle\varphi\,b\vert\rho_{AB}\vert\varphi\,b\rangle\ge0
    Positivity: trace identity, the uniqueness theorem with M=∣φ⟩⟨φ∣M=\lvert\varphi\rangle\langle\varphi\rvert, and positivity of ρAB\rho_{AB} on each vector ∣φ⟩∣b⟩\lvert\varphi\rangle\lvert b\rangle.
  3. Step 3:
    Tr ρA=Tr(IAρA)=Tr((IA⊗IB)ρAB)=Tr ρAB=1\mathrm{Tr}\,\rho_A=\mathrm{Tr}(I_A\rho_A)=\mathrm{Tr}\big((I_A\otimes I_B)\rho_{AB}\big)=\mathrm{Tr}\,\rho_{AB}=1
    Unit trace: the uniqueness theorem with M=IAM=I_A.
  4. Step 4:
    Tr(Mσ)=Tr(H1σ)+i Tr(H2σ)\mathrm{Tr}(M\sigma)=\mathrm{Tr}(H_1\sigma)+i\,\mathrm{Tr}(H_2\sigma)
    Linearity: agreement on all Hermitian MM implies agreement on all MM, so local observable statistics already pin down ρA\rho_A.

∎

Quick check

Alice measures ZZ on her qubit of ρAB\rho_{AB}. Which expression gives the probability of outcome +1+1?

Select one answer

Entangled pure states have mixed marginals#

∣Φ+⟩⟨Φ+∣=12(∣00⟩+∣11⟩)(⟨00∣+⟨11∣)=12(1001000000001001)\lvert\Phi^+\rangle\langle\Phi^+\rvert=\tfrac12\big(\lvert00\rangle+\lvert11\rangle\big)\big(\langle00\rvert+\langle11\rvert\big)=\tfrac12\begin{pmatrix}1&0&0&1\\0&0&0&0\\0&0&0&0\\1&0&0&1\end{pmatrix}
Bell state |Φ+⟩⟨Φ+|4×4
Derivation

TrB∣Φ+⟩⟨Φ+∣=I/2\mathrm{Tr}_B\lvert\Phi^+\rangle\langle\Phi^+\rvert=I/2, entry by entry

  1. Step 1:
    ρ=12(∣00⟩⟨00∣+∣00⟩⟨11∣+∣11⟩⟨00∣+∣11⟩⟨11∣)\rho=\tfrac12\big(\lvert00\rangle\langle00\rvert+\lvert00\rangle\langle11\rvert+\lvert11\rangle\langle00\rvert+\lvert11\rangle\langle11\rvert\big)
    Expand the outer product of ∣Φ+⟩=12(∣00⟩+∣11⟩)\lvert\Phi^+\rangle=\tfrac1{\sqrt2}(\lvert00\rangle+\lvert11\rangle): non-zero entries at rows/columns 00 and 33, as in the matrix above.
  2. Step 2:
    (ρA)00=ρ(0,0),(0,0)+ρ(0,1),(0,1)=ρ0,0+ρ1,1=12+0=12(\rho_A)_{00}=\rho_{(0,0),(0,0)}+\rho_{(0,1),(0,1)}=\rho_{0,0}+\rho_{1,1}=\tfrac12+0=\tfrac12
    Component formula with a=a′=0a=a'=0; the composite indices are 2⋅0+b2\cdot0+b.
  3. Step 3:
    (ρA)01=ρ(0,0),(1,0)+ρ(0,1),(1,1)=ρ0,2+ρ1,3=0+0=0(\rho_A)_{01}=\rho_{(0,0),(1,0)}+\rho_{(0,1),(1,1)}=\rho_{0,2}+\rho_{1,3}=0+0=0
    a=0a=0, a′=1a'=1: columns 2a′+b=2,32a'+b=2,3. The large coherence ρ0,3=12\rho_{0,3}=\tfrac12 has different bb indices (b=0b=0, b′=1b'=1) and is discarded by δbb′\delta_{bb'}.
  4. Step 4:
    (ρA)10=ρ2,0+ρ3,1=0+0=0,(ρA)11=ρ2,2+ρ3,3=0+12=12(\rho_A)_{10}=\rho_{2,0}+\rho_{3,1}=0+0=0,\qquad(\rho_A)_{11}=\rho_{2,2}+\rho_{3,3}=0+\tfrac12=\tfrac12
    The remaining two entries (a=1a=1).
  5. Step 5:
    ρA=(120012)=12I,γ(ρA)=12\rho_A=\begin{pmatrix}\tfrac12&0\\0&\tfrac12\end{pmatrix}=\tfrac12I,\qquad\gamma(\rho_A)=\tfrac12
    Assemble. The global state is pure (γ=1\gamma=1) yet each half is maximally mixed: its Bloch vector is 0⃗\vec 0, the centre of the ball.

Result

TrB∣Φ+⟩⟨Φ+∣=TrA∣Φ+⟩⟨Φ+∣=12I\boxed{\mathrm{Tr}_B\lvert\Phi^+\rangle\langle\Phi^+\rvert=\mathrm{Tr}_A\lvert\Phi^+\rangle\langle\Phi^+\rvert=\tfrac12I}
ρA=TrB∣Φ+⟩⟨Φ+∣=(ρ0,0+ρ1,1ρ0,2+ρ1,3ρ2,0+ρ3,1ρ2,2+ρ3,3)=(120012)\rho_A=\mathrm{Tr}_B\lvert\Phi^+\rangle\langle\Phi^+\rvert=\begin{pmatrix}\rho_{0,0}+\rho_{1,1}&\rho_{0,2}+\rho_{1,3}\\\rho_{2,0}+\rho_{3,1}&\rho_{2,2}+\rho_{3,3}\end{pmatrix}=\begin{pmatrix}\tfrac12&0\\0&\tfrac12\end{pmatrix}
Reduced state Tr_B |Φ+⟩⟨Φ+|2×2
Derivation

Marginal of cos⁡θ2∣00⟩+sin⁡θ2∣11⟩\cos\tfrac\theta2\lvert00\rangle+\sin\tfrac\theta2\lvert11\rangle

  1. Step 1:
    ∣ψθ⟩=c∣00⟩+s∣11⟩,c=cos⁡θ2, s=sin⁡θ2, c2+s2=1\lvert\psi_\theta\rangle=c\lvert00\rangle+s\lvert11\rangle,\qquad c=\cos\tfrac\theta2,\ s=\sin\tfrac\theta2,\ c^2+s^2=1
    A one-parameter family interpolating between the product state ∣00⟩\lvert00\rangle (θ=0\theta=0) and ∣Φ+⟩\lvert\Phi^+\rangle (θ=π/2\theta=\pi/2).
  2. Step 2:
    ρ=∣ψθ⟩⟨ψθ∣=(c200cs00000000cs00s2)\rho=\lvert\psi_\theta\rangle\langle\psi_\theta\rvert=\begin{pmatrix}c^2&0&0&cs\\0&0&0&0\\0&0&0&0\\cs&0&0&s^2\end{pmatrix}
    Real amplitudes at indices 00 and 33; ρrc=ψrψc‾\rho_{rc}=\psi_r\overline{\psi_c}.
  3. Step 3:
    (ρA)00=ρ0,0+ρ1,1=c2,(ρA)01=ρ0,2+ρ1,3=0,(ρA)10=0,(ρA)11=ρ2,2+ρ3,3=s2(\rho_A)_{00}=\rho_{0,0}+\rho_{1,1}=c^2,\quad(\rho_A)_{01}=\rho_{0,2}+\rho_{1,3}=0,\quad(\rho_A)_{10}=0,\quad(\rho_A)_{11}=\rho_{2,2}+\rho_{3,3}=s^2
    Component formula, exactly as for ∣Φ+⟩\lvert\Phi^+\rangle: the coherence cscs sits at (0,3)(0,3) with b≠b′b\neq b' and drops out.
  4. Step 4:
    ρA=(cos⁡2θ200sin⁡2θ2),γ(ρA)=cos⁡4θ2+sin⁡4θ2=1−12sin⁡2θ\rho_A=\begin{pmatrix}\cos^2\tfrac\theta2&0\\0&\sin^2\tfrac\theta2\end{pmatrix},\qquad\gamma(\rho_A)=\cos^4\tfrac\theta2+\sin^4\tfrac\theta2=1-\tfrac12\sin^2\theta
    Purity via (c2+s2)2−2c2s2=1−2c2s2(c^2+s^2)^2-2c^2s^2=1-2c^2s^2 and 2cs=sin⁡θ2cs=\sin\theta. It equals 11 only for θ∈{0,π}\theta\in\{0,\pi\} (product states) and reaches 12\tfrac12 at θ=π/2\theta=\pi/2.
  5. Step 5:
    θ=π3:ρA=diag(cos⁡2π6,sin⁡2π6)=diag(34,14),γ=916+116=58\theta=\tfrac\pi3:\quad\rho_A=\mathrm{diag}\big(\cos^2\tfrac\pi6,\sin^2\tfrac\pi6\big)=\mathrm{diag}\big(\tfrac34,\tfrac14\big),\qquad\gamma=\tfrac9{16}+\tfrac1{16}=\tfrac58
    cos⁡π6=32\cos\tfrac\pi6=\tfrac{\sqrt3}2 and sin⁡π6=12\sin\tfrac\pi6=\tfrac12.

Result

ρA=diag(cos⁡2θ2, sin⁡2θ2)\boxed{\rho_A=\mathrm{diag}\big(\cos^2\tfrac\theta2,\ \sin^2\tfrac\theta2\big)}

Circuit · 2 qubits

Quantum circuit on 2 qubitsRY(π/3) on q0; X on q1 controlled by q0q0q1RY(π/3)

Ry(π/3)R_y(\pi/3) on qubit 0 gives 32∣0⟩+12∣1⟩\tfrac{\sqrt3}2\lvert0\rangle+\tfrac12\lvert1\rangle; CNOT copies the basis label onto qubit 1, producing 32∣00⟩+12∣11⟩\tfrac{\sqrt3}2\lvert00\rangle+\tfrac12\lvert11\rangle, the θ=π/3\theta=\pi/3 member of the family. Its reduced state on qubit 0 is ρ0=diag(34,14)\rho_0=\mathrm{diag}(\tfrac34,\tfrac14). Without the CNOT, qubit 0 would stay pure with coherence ρ01=34\rho_{01}=\tfrac{\sqrt3}4.

∣ψ⟩=32∣00⟩+12∣11⟩\lvert\psi\rangle = \tfrac{\sqrt{3}}{2}\lvert 00\rangle + \tfrac{1}{2}\lvert 11\rangle
  • |00⟩0.75
  • |01⟩0
  • |10⟩0
  • |11⟩0.25
ρ0=Tr1((32∣00⟩+12∣11⟩)(32⟨00∣+12⟨11∣))=(340014)\rho_0=\mathrm{Tr}_1\Big(\big(\tfrac{\sqrt3}2\lvert00\rangle+\tfrac12\lvert11\rangle\big)\big(\tfrac{\sqrt3}2\langle00\rvert+\tfrac12\langle11\rvert\big)\Big)=\begin{pmatrix}\tfrac34&0\\0&\tfrac14\end{pmatrix}
Reduced state of qubit 0 after RY(π/3), CNOT2×2

Quick check

What is the purity Trρ02\mathrm{Tr}\rho_0^2 of qubit 0 after the circuit Ry(π/3)R_y(\pi/3), CNOT(0→1)(0\to1) applied to ∣00⟩\lvert00\rangle?

tolerance ±0.000001

Schmidt decomposition: product iff pure marginal#

Theorem

Schmidt decomposition

Every unit vector ∣ψ⟩∈HA⊗HB\lvert\psi\rangle\in\mathcal H_A\otimes\mathcal H_B can be written ∣ψ⟩=∑k=1rλk∣ak⟩⊗∣bk⟩\lvert\psi\rangle=\sum_{k=1}^r\lambda_k\lvert a_k\rangle\otimes\lvert b_k\rangle with λk>0\lambda_k>0, ∑kλk2=1\sum_k\lambda_k^2=1, orthonormal {∣ak⟩}⊂HA\{\lvert a_k\rangle\}\subset\mathcal H_A and orthonormal {∣bk⟩}⊂HB\{\lvert b_k\rangle\}\subset\mathcal H_B, where r≤min⁡(dA,dB)r\le\min(d_A,d_B) (the Schmidt rank) is the rank of the coefficient matrix Cab=⟨ab∣ψ⟩C_{ab}=\langle ab\vert\psi\rangle. Moreover ρA=∑kλk2∣ak⟩⟨ak∣\rho_A=\sum_k\lambda_k^2\lvert a_k\rangle\langle a_k\rvert and ρB=∑kλk2∣bk⟩⟨bk∣\rho_B=\sum_k\lambda_k^2\lvert b_k\rangle\langle b_k\rvert.

Proof (7 steps)
  1. Step 1:
    ∣ψ⟩=∑a,bCab∣a⟩⊗∣b⟩,C∈CdA×dB, Cab=ψ(a,b)\lvert\psi\rangle=\sum_{a,b}C_{ab}\lvert a\rangle\otimes\lvert b\rangle,\qquad C\in\mathbb C^{d_A\times d_B},\ C_{ab}=\psi_{(a,b)}
    Expand in the product basis and arrange the amplitudes as a dA×dBd_A\times d_B matrix (for two qubits: reshape (ψ0,ψ1,ψ2,ψ3)(\psi_0,\psi_1,\psi_2,\psi_3) row-major into 2×22\times2).
  2. Step 2:
    C=UΣV†,Cab=∑k=1rUak sk Vbk‾,s1≥⋯≥sr>0C=U\Sigma V^\dagger,\qquad C_{ab}=\sum_{k=1}^rU_{ak}\,s_k\,\overline{V_{bk}},\qquad s_1\ge\dots\ge s_r>0
    Singular value decomposition: UU (dA×dAd_A\times d_A) and VV (dB×dBd_B\times d_B) unitary, Σ\Sigma diagonal with the non-negative singular values; only the r=rank Cr=\mathrm{rank}\,C non-zero ones contribute.
  3. Step 3:
    ∣ψ⟩=∑k=1rsk(∑aUak∣a⟩)⊗(∑bVbk‾∣b⟩)=∑k=1rsk∣ak⟩⊗∣bk⟩\lvert\psi\rangle=\sum_{k=1}^rs_k\Big(\sum_aU_{ak}\lvert a\rangle\Big)\otimes\Big(\sum_b\overline{V_{bk}}\lvert b\rangle\Big)=\sum_{k=1}^rs_k\lvert a_k\rangle\otimes\lvert b_k\rangle
    Substitute and regroup using bilinearity of ⊗\otimes; define ∣ak⟩=∑aUak∣a⟩\lvert a_k\rangle=\sum_aU_{ak}\lvert a\rangle and ∣bk⟩=∑bVbk‾∣b⟩\lvert b_k\rangle=\sum_b\overline{V_{bk}}\lvert b\rangle.
  4. Step 4:
    ⟨ak∣al⟩=∑aUak‾Ual=(U†U)kl=δkl,⟨bk∣bl⟩=∑bVbkVbl‾=(V†V)kl‾=δkl\langle a_k\vert a_l\rangle=\sum_a\overline{U_{ak}}U_{al}=(U^\dagger U)_{kl}=\delta_{kl},\qquad\langle b_k\vert b_l\rangle=\sum_bV_{bk}\overline{V_{bl}}=\overline{(V^\dagger V)_{kl}}=\delta_{kl}
    Orthonormality follows from the unitarity of UU and VV (their columns are orthonormal).
  5. Step 5:
    1=⟨ψ∣ψ⟩=∑k,lsksl⟨ak∣al⟩⟨bk∣bl⟩=∑ksk21=\langle\psi\vert\psi\rangle=\sum_{k,l}s_ks_l\langle a_k\vert a_l\rangle\langle b_k\vert b_l\rangle=\sum_ks_k^2
    Normalisation; the inner product of product vectors factorises. Set λk=sk\lambda_k=s_k.
  6. Step 6:
    (ρA)aa′=∑bψ(a,b)ψ(a′,b)‾=∑bCabCa′b‾=(CC†)aa′(\rho_A)_{aa'}=\sum_b\psi_{(a,b)}\overline{\psi_{(a',b)}}=\sum_bC_{ab}\overline{C_{a'b}}=(CC^\dagger)_{aa'}
    Component formula of the partial trace for ρ=∣ψ⟩⟨ψ∣\rho=\lvert\psi\rangle\langle\psi\rvert, whose entries are ψ(a,b)ψ(a′,b′)‾\psi_{(a,b)}\overline{\psi_{(a',b')}}.
  7. Step 7:
    ρA=CC†=UΣV†VΣU†=UΣ2U†=∑kλk2∣ak⟩⟨ak∣\rho_A=CC^\dagger=U\Sigma V^\dagger V\Sigma U^\dagger=U\Sigma^2U^\dagger=\sum_k\lambda_k^2\lvert a_k\rangle\langle a_k\rvert
    Insert the SVD; V†V=IV^\dagger V=I. The columns of UU are the eigenvectors ∣ak⟩\lvert a_k\rangle, with eigenvalues λk2\lambda_k^2. The same computation with (ρB)bb′=∑aCabCab′‾=(CTC‾)bb′(\rho_B)_{bb'}=\sum_aC_{ab}\overline{C_{ab'}}=(C^T\overline C)_{bb'} gives ρB=∑kλk2∣bk⟩⟨bk∣\rho_B=\sum_k\lambda_k^2\lvert b_k\rangle\langle b_k\rvert.

∎

Theorem

A pure bipartite state is a product state iff its marginal is pure

For a unit vector ∣ψ⟩∈HA⊗HB\lvert\psi\rangle\in\mathcal H_A\otimes\mathcal H_B the following are equivalent: (i) ∣ψ⟩=∣α⟩⊗∣β⟩\lvert\psi\rangle=\lvert\alpha\rangle\otimes\lvert\beta\rangle for some unit vectors; (ii) the Schmidt rank is r=1r=1; (iii) ρA\rho_A is pure, TrρA2=1\mathrm{Tr}\rho_A^2=1. In particular ρA\rho_A and ρB\rho_B always have the same non-zero eigenvalues λk2\lambda_k^2, so ρA\rho_A is pure iff ρB\rho_B is.

Proof (5 steps)
  1. Step 1:
    (i)⇒(iii):  ρA=TrB(∣α⟩⟨α∣⊗∣β⟩⟨β∣)=∣α⟩⟨α∣ ⟨β∣β⟩=∣α⟩⟨α∣\text{(i)}\Rightarrow\text{(iii)}:\ \ \rho_A=\mathrm{Tr}_B\big(\lvert\alpha\rangle\langle\alpha\rvert\otimes\lvert\beta\rangle\langle\beta\rvert\big)=\lvert\alpha\rangle\langle\alpha\rvert\,\langle\beta\vert\beta\rangle=\lvert\alpha\rangle\langle\alpha\rvert
    Definition of TrB\mathrm{Tr}_B on a product operator, TrB(X⊗Y)=X Tr Y\mathrm{Tr}_B(X\otimes Y)=X\,\mathrm{Tr}\,Y, and normalisation of ∣β⟩\lvert\beta\rangle. A rank-one projector is pure.
  2. Step 2:
    (iii)⇒(ii):  1=Tr ρA2=∑k=1rλk4with∑k=1rλk2=1\text{(iii)}\Rightarrow\text{(ii)}:\ \ 1=\mathrm{Tr}\,\rho_A^2=\sum_{k=1}^r\lambda_k^4\quad\text{with}\quad\sum_{k=1}^r\lambda_k^2=1
    The eigenvalues of ρA\rho_A are the λk2\lambda_k^2 (Schmidt theorem), so its purity is ∑k(λk2)2\sum_k(\lambda_k^2)^2.
  3. Step 3:
    ∑kλk4=1=(∑kλk2)2 ⇒ λk2λl2=0  (k≠l) ⇒ r=1\sum_k\lambda_k^4=1=\Big(\sum_k\lambda_k^2\Big)^2\ \Rightarrow\ \lambda_k^2\lambda_l^2=0\ \ (k\ne l)\ \Rightarrow\ r=1
    Purity theorem of the previous lesson: purity 11 forces exactly one non-zero eigenvalue. Since every Schmidt coefficient is strictly positive, there is only one of them.
  4. Step 4:
    (ii)⇒(i):  r=1, λ1=1 ⇒ ∣ψ⟩=∣a1⟩⊗∣b1⟩\text{(ii)}\Rightarrow\text{(i)}:\ \ r=1,\ \lambda_1=1\ \Rightarrow\ \lvert\psi\rangle=\lvert a_1\rangle\otimes\lvert b_1\rangle
    The Schmidt sum has a single term and λ12=1\lambda_1^2=1: a product of unit vectors.
  5. Step 5:
    spec≠0(ρA)={λk2}k=1r=spec≠0(ρB)\mathrm{spec}_{\neq0}(\rho_A)=\{\lambda_k^2\}_{k=1}^r=\mathrm{spec}_{\neq0}(\rho_B)
    Both marginals were diagonalised with the same weights in the Schmidt theorem, which gives the final statement.

∎

Examples. For ∣Φ+⟩\lvert\Phi^+\rangle, C=12IC=\tfrac1{\sqrt2}I has singular values 12,12\tfrac1{\sqrt2},\tfrac1{\sqrt2}: Schmidt rank 22, marginals I/2I/2 — maximally entangled. For 32∣00⟩+12∣11⟩\tfrac{\sqrt3}2\lvert00\rangle+\tfrac12\lvert11\rangle, C=diag(32,12)C=\mathrm{diag}(\tfrac{\sqrt3}2,\tfrac12) is already in SVD form with λ=(32,12)\lambda=(\tfrac{\sqrt3}2,\tfrac12), λ2=(34,14)\lambda^2=(\tfrac34,\tfrac14) — matching the reduced state computed above. For two qubits, rank C=1C=1 iff det⁡C=ψ00ψ11−ψ01ψ10=0\det C=\psi_{00}\psi_{11}-\psi_{01}\psi_{10}=0, which recovers the product-state criterion of the tensor-products lesson. The number TrρA2\mathrm{Tr}\rho_A^2, or better the von Neumann entropy of the λk2\lambda_k^2 (next lesson), therefore measures how entangled a pure state is.

Check it numerically. The cell below implements TrB\mathrm{Tr}_B with a reshape and an index contraction, reproduces I/2I/2 for ∣Φ+⟩\lvert\Phi^+\rangle, the marginal diag(0.75,0.25)\mathrm{diag}(0.75,0.25) with purity 0.6250.625 for θ=π/3\theta=\pi/3, and its Schmidt coefficients as singular values.

Pythonrunnable
import numpy as np


def ptrace_B(rho):
    r = rho.reshape(2, 2, 2, 2)
    return np.einsum('abcb->ac', r)


phi = np.array([1, 0, 0, 1]) / np.sqrt(2)
rho = np.outer(phi, phi.conj())
print(np.round(ptrace_B(rho).real, 4))
t = np.pi / 3
psi = np.array([np.cos(t / 2), 0, 0, np.sin(t / 2)])
rho_a = ptrace_B(np.outer(psi, psi.conj()))
print(np.round(rho_a.real, 4), round(float(np.trace(rho_a @ rho_a).real), 4))
print(np.round(np.linalg.svd(psi.reshape(2, 2), compute_uv=False), 4))

Expected output

[[0.5 0. ]
 [0.  0.5]]
[[0.75 0.  ]
 [0.   0.25]] 0.625
[0.866 0.5  ]

Quick check

Which two-qubit state has a pure reduced state on qubit 0?

Select one answer

References

  1. M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information, 10th anniversary ed., Cambridge University Press (2010), §2.4.3 (the reduced density operator) and §2.5 (the Schmidt decomposition and purifications).
  2. J. Preskill, Lecture Notes for Physics 219: Quantum Computation, Chapter 2 (bipartite systems, Schmidt decomposition).theory.caltech.edu
  3. J. Watrous, The Theory of Quantum Information, Cambridge University Press (2018), Chapter 1 (mathematical preliminaries: the partial trace, the singular value and Schmidt decompositions).cs.uwaterloo.ca

Hands-on labs

  • Purify a mixed qubit

    1 step · auto-graded

    Prepare a two-qubit pure state ∣ψ⟩01\lvert\psi\rangle_{01} whose reduced state on qubit 0 is the mixed state ρ0=Tr1∣ψ⟩⟨ψ∣=diag(34,14)\rho_0=\mathrm{Tr}_1\lvert\psi\rangle\langle\psi\rvert=\mathrm{diag}(\tfrac34,\tfrac14). Mixedness of a marginal cannot come from a single-qubit gate: it must come from entanglement with qubit 1.

    Open lab