Partial Trace
The partial trace removes one tensor factor from an operator while retaining exactly the information needed for the other factor. For a bipartite density operator ,
Required background. Density Operators supplies the state and trace language, and Entangled States supplies the subsystem interpretation. Familiarity with finite-dimensional product bases and operator matrices is assumed.
Partial trace as an operator map
Section titled “Partial trace as an operator map”Work first in finite dimensions, where every operator has a trace. For infinite-dimensional spaces, take trace class and test against bounded local operators; the basis sums then converge in trace norm. In particular, the identity on an infinite-dimensional factor cannot simply be traced to a finite scalar.
The defining requirement is that discarding must preserve every prediction for a measurement confined to :
For , both sides are the expectation of the same local observable . The identity also holds for general bounded , by linearity. It fixes which factor remains before any matrix indices are contracted. The reduced-state interpretation explains what local predictions leave out; here we derive the contraction rules used to calculate them.
To recover the matrix elements, choose in orthonormal product bases. Expanding the full trace gives
Thus the local-prediction requirement determines every matrix element uniquely. Although need not be Hermitian, it is a complex linear combination of Hermitian observables, so using it introduces no extra physical assumption.
Let
The full trace returns a scalar:
The partial trace returns an operator on the subsystem that remains:
If and are finite, the map changes a matrix into a matrix. Tracing out instead gives a matrix.
The partial trace is linear, positive, and trace-preserving:
When is a density operator, the result is therefore a normalized positive operator: the reduced state of subsystem .
Tracing out is not the same as projecting onto one selected state. It is a sum over a complete orthonormal basis of the subsystem being ignored.
Basis Calculation
Section titled “Basis Calculation”Choose an orthonormal basis . The partial trace over can be written as a sum of contractions. Define
Then
Each term inserts a bra and ket on subsystem , leaving an operator on subsystem .
Why the result is basis-independent
Section titled “Why the result is basis-independent”Let another orthonormal basis be related by a unitary matrix:
Define in the new basis.
Using
the basis sum becomes
The basis formula is a calculation device; the resulting operator does not depend on which orthonormal basis was used.
Tensor-Product and Dyad Rules
Section titled “Tensor-Product and Dyad Rules”For a simple tensor of operators,
Linearity then handles every finite sum of tensor products. The most useful elementary case is the dyad rule:
This is just the ordinary trace on the factor:
The cross terms in the subsystem being traced out vanish when their basis labels are different.
Coefficient and Block Rules
Section titled “Coefficient and Block Rules”In product bases, write
Then
Equivalently, the matrix elements of the reduced state are
The repeated label is the one being summed. The labels remain because the result is still an operator on .
Block-matrix view
Section titled “Block-matrix view”With the index first and the index changing fastest, regard as a array of blocks:
Tracing out takes the ordinary trace of every block:
By contrast, tracing out sums the diagonal -space blocks:
These recipes assume the declared -first ordering. If a matrix uses a different flattened product basis, reorder it before applying a memorized block rule.
Pure-State Shortcut
Section titled “Pure-State Shortcut”Suppose
where is the coefficient matrix with indexing rows. Then
For example,
This is exactly the coefficient rule above. It avoids constructing the full matrix .
Moving operators through a partial trace
Section titled “Moving operators through a partial trace”Operators on the retained factor pull outside on the same side:
Operators on the discarded factor can be moved cyclically:
These are finite-dimensional identities, or trace-class/bounded identities in infinite dimensions. The latter follows by expanding the summed indices. It is essential in proving that remote trace-preserving operations leave local statistics unchanged.
A partial trace is not fully cyclic. For and , placing on the left gives , while placing it on the right gives . The untraced factors retain their order.
Two-Qubit Matrix Rule
Section titled “Two-Qubit Matrix Rule”For two qubits in the ordered product basis
the reduced density matrix of qubit has entries
The convention is
The pair labels the matrix row and labels the matrix column. For example,
This rule says: keep the labels and sum over matching labels.
Bell State Example
Section titled “Bell State Example”For
the density matrix in the same ordered basis is
Using the two-qubit rule,
Therefore
The same calculation gives .
Same marginal from a different joint state
Section titled “Same marginal from a different joint state”The separable, classically correlated state
has matrix
The same block trace gives
The Bell state and have the same reduced state but different joint coherence and correlations. This illustrates directly that the partial trace is many-to-one.
Checking a calculation
Section titled “Checking a calculation”For a density operator, the output must have the retained dimension, be Hermitian and positive, and have trace one. These checks catch many indexing mistakes, but not every wrong subsystem choice: tracing the wrong qubit can still give a valid density matrix.
Compare a local expectation from both descriptions, using an observable that distinguishes the factors. For , the correct retained state has , whereas the state has . A Bell pair alone is a weak test because its two marginals coincide.
Closing only the discarded indices
Section titled “Closing only the discarded indices”A partial trace closes only the discarded subsystem’s pair of indices. The remaining indices label matrix elements of ; closing them as well would produce the scalar .
In tensor-network notation, an operator on has an input and output leg for and an input and output leg for . Taking connects the output leg back to the input leg and sums over that internal label. The input and output legs remain open, so the result is an operator on .
This picture is often the cleanest way to remember the operation: a trace closes a pair of matching legs. A partial trace closes only the legs belonging to the subsystem being discarded.
Multiple Subsystems
Section titled “Multiple Subsystems”For three subsystems,
one may trace over more than one subsystem:
Partial traces over distinct factors commute:
The order of tensor factors still matters for index contractions. If the register order is , then tracing out the middle subsystem means summing over the middle input-output pair, not simply deleting adjacent rows and columns of a matrix.
Computational Implementation
Section titled “Computational Implementation”For finite-dimensional systems, the safest implementation is to reshape the matrix into a tensor with one row index and one column index for each subsystem.
For a bipartite operator with dimensions and , use components
Then
In array language, this is a contraction over the row index and the column index. A good implementation should make the subsystem dimensions and basis ordering explicit rather than inferring them from the total matrix size.
For an -first, -fast row-major array, reshape to and contract axes 1 and 3 (zero-based). A column-major language needs a matching reshape/permutation convention. Computational notebooks gives executable examples. Check the result using a stated floating-point tolerance; do not silently renormalize a substantial trace error.
Common pitfalls
Section titled “Common pitfalls”A partial trace is not a projection. One bra–ket contraction selects a branch; summing a complete basis gives the marginal.
The same array can represent different factor orders. Declare the dimensions and flattened order before using blocks or reshaping.
Trace preservation is not division by the discarded dimension. In particular, . Density operators remain normalized because the input already has unit trace.
References
Section titled “References”- Heinz-Peter Breuer and Francesco Petruccione, The Theory of Open Quantum Systems, Oxford University Press, 2002, chapter 2.
- Michael A. Nielsen and Isaac L. Chuang, Quantum Computation and Quantum Information, 10th anniversary ed., Cambridge University Press, 2010, sections 2.4–2.5.
- John Watrous, The Theory of Quantum Information, Cambridge University Press, 2018, section 2.1.3, especially equations (2.32)–(2.34), for product and component forms of reduction. Author-hosted chapter.
Exercises
Section titled “Exercises”- Compute
Solution
The trace of is , so
- Compute
Solution
The trace of is , so the result is
- Trace out qubit from the product state .
Solution
Write
Taking the trace over gives
- In register order , trace out the middle qubit from . Why do the cross terms survive?
Solution
Both terms have , so every overlap equals . The retained state is
The off-diagonal term becomes . Unequal retained labels do not kill a term; only the labels on the traced factor are contracted.
- If , what operator on corresponds to measuring an observable only on subsystem ?
Solution
The corresponding composite-system observable is
The defining expectation-value property is
- Verify trace compatibility for a product operator:
Why does the result extend to finite sums of product operators?
Solution
First trace over :
Then
Both the full trace and partial trace are linear, so the identity extends term by term to finite sums.
- Use the coefficient-matrix shortcut for
Compute both reduced states and check their traces.
Solution
The coefficient matrix is
Therefore
and
Both have unit trace:
- For the Bell state , compare (a) tracing out , (b) projecting onto the outcome , and (c) performing a complete computational-basis measurement on and discarding its outcome. Identify the output object in each case and explain why (a) and (c) give the same local state on even though they are different operations on the joint system.
The expressions for (a) and the unnormalized branch in (b) are
and
Solution
The partial trace sums over a complete basis of and gives
The second expression selects only the component:
It is an unnormalized conditional operator with trace , the probability of the selected outcome. After normalization it becomes .
For (c), the nonselective measurement produces the joint state
This operation removes joint coherence and therefore differs from merely computing a reduced state. Nevertheless, , the same local state obtained in (a). Projection selects one branch, nonselective measurement changes the joint state and averages all branches, and partial trace extracts the local state without specifying a measurement.