Skip to content
Current section
The Quantum Computing Enthusiast’s Hub
Saved
All sections

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Trace and determinant

Trace is the sum of diagonal entries and eigenvalues, while determinant is the product of eigenvalues and detects singularity in finite dimensions.

Edition released Coverage: Overview · Technical · Research
On this page

Definition and useful identities

For a square matrix A, Tr(A)=sum_j A_jj and det(A) is the alternating multilinear volume-scaling invariant. Trace and determinant are basis independent under similarity transformations. Tr(AB)=Tr(BA) when dimensions permit, while det(AB)=det(A)det(B). Trace cyclicity does not permit arbitrary reordering of three or more factors.

For density operators, trace one normalizes probabilities. Determinant alone is not a complete physicality test beyond special low-dimensional conditions.

Fully solved qubit example

Take rho=[[0.6,0.2],[0.2,0.4]]. Its trace is one and determinant is 0.24-0.04=0.20. The eigenvalues solve lambda^2-lambda+0.20=0, yielding (1 plus or minus sqrt(0.2))/2. Its purity is Tr(rho^2)=1-2det(rho)=0.60, a two-dimensional identity following from (lambda_1+lambda_2)^2.

For a 3 by 3 Hermitian matrix, a positive determinant and positive trace do not guarantee positivity: diag(-1,-1,3) has trace one and determinant three but two negative eigenvalues. Normalization and one scalar invariant cannot replace a full positivity check.

Limits and misconceptions

Tr(ABC)=Tr(BCA)=Tr(CAB), but generally differs from Tr(ACB). Determinants can underflow or overflow numerically in large dimensions, making log-determinants and spectral methods preferable under suitable positivity assumptions. A vanishing determinant means singularity, not automatically a pure quantum state: a rank-two qutrit state also has determinant zero.

Recovering a qutrit characteristic polynomial from trace moments

Let p_k = tr(A^k) and let e_k be the elementary symmetric polynomials of the eigenvalues. Expanding the square of their sum gives e_2 = (p_1²−p_2)/2. Expanding the cube and separating terms with repeated indices gives e_3 = (p_1³−3p_1p_2+2p_3)/6. For a three-by-three matrix, the characteristic polynomial is λ³−e_1λ²+e_2λ−e_3, with e_1 = p_1 and e_3 = det A. These identities also hold when a matrix is not diagonalizable, since trace powers still sum powers of eigenvalues with algebraic multiplicity.

For a state with spectrum 0.6,0.3,0.1, the first three trace moments are one, 0.46, and 0.244. They give e_2 = 0.27 and determinant 0.018. The polynomial is λ³−λ²+0.27λ−0.018, which factors into (λ−0.6)(λ−0.3)(λ−0.1). Unlike the qubit case, purity alone does not determine the whole spectrum. The third trace moment supplies information independent of trace and purity.

For a positive d-dimensional density operator, the arithmetic–geometric mean inequality gives det ρ ≤ d^(−d). Equality requires every eigenvalue to equal 1/d. This extremal property is dimension dependent. It does not say that determinant orders all states by entropy, nor that a small determinant identifies which eigenvalue is small. One product cannot recover a collection of spectral values.

Determinants of exponentials do not determine the exponential

For any finite square matrix A, det exp(A) = exp(tr A). A Schur triangular form makes the proof direct: the diagonal of the exponential contains exponentials of the original diagonal entries, and the determinant multiplies them. Jordan blocks do not alter this identity. If A and B fail to commute, exp(A+B) generally differs from exp(A)exp(B), but both expressions still have the same determinant because the traces add.

Take A = [[0,1],[0,0]] and B = [[0,0],[1,0]]. Their squares vanish, so exp(A)exp(B) = (I+A)(I+B) = [[2,1],[1,1]], whose determinant is one and trace is three. By contrast, A+B = X, so exp(A+B) = cosh(1)I+sinh(1)X. This also has determinant one, while its trace is 2cosh(1), approximately 3.086161. The matrices are different despite agreeing in determinant. Neither is a unitary gate: determinant one is far weaker than unitarity.

Cyclicity, ordering, and complex expectations

The trace identity tr(ABC) = tr(BCA) follows by summing matrix indices around the closed product. It preserves cyclic order. For Pauli matrices, XYZ = iI while XZY = −iI, giving traces 2i and −2i. Each individual factor is Hermitian, but the ordered product need not be Hermitian and its trace can be complex. Interpreting the product's expectation as a real measurement outcome without specifying a Hermitian combination would be unjustified.

For rectangular A and B with compatible sizes, tr(AB) = tr(BA) still holds even though the two products act on different-dimensional spaces. There is a corresponding determinant identity det(I+AB) = det(I+BA), with identities of the appropriate dimensions. For a column a = (1,i) and row a†, it gives det(I_2+t aa†) = 1+t a†a = 1+2t. The two eigenvalues are 1+2t and one. Positivity holds exactly for t ≥ −1/2, and singularity occurs at the boundary t = −1/2.

Tensor products supply another useful distinction. The eigenvalues of A⊗B are all products a_i b_j, so det(A⊗B) = (det A)^(dim B)(det B)^(dim A). Trace instead factorizes without those dimension exponents. For density matrices diag(0.8,0.2) and diag(0.6,0.4), the product spectrum is 0.48,0.32,0.12,0.08 and its determinant is 0.00147456. A partial trace need not preserve any analogous determinant relation: a pure entangled two-qubit state has zero joint determinant, while both of its reduced determinants can be nonzero. The determinant belongs to a specific operator on a specified space. Comparing determinants across dimensions without accounting for these changes can turn a valid algebraic identity into a misleading claim about mixedness.

Log-determinant derivatives and entropy are different functions

For an invertible differentiable matrix A(t), differentiating its determinant gives d log det A/dt = tr[A^−1 A'], with a consistent logarithm branch. For a positive matrix the natural logarithm is unambiguous. Consider ρ(t) = diag(t,(1−t)/2,(1−t)/2), with 0 < t < 1. Its determinant is t(1−t)²/4, and its logarithmic derivative is 1/t−2/(1−t). The unique stationary point is t = 1/3, the maximally mixed state, and the determinant tends to zero at either boundary.

The log determinant sums logarithms of eigenvalues without probability weights. Entropy instead sums −λ log λ. Thus log determinant tends to negative infinity whenever an eigenvalue tends to zero, while the entropy contribution of that eigenvalue tends to zero. A singular density operator can have finite entropy. Confusing these functions changes both their limiting behavior and the objectives they define in optimization.

Sources

  • John Watrous · · Textbook material · cs.uwaterloo.ca
    Verification scope

    The Theory of Quantum Information, Chapter 1: Mathematical preliminaries
    John Watrous · · Textbook material · cs.uwaterloo.ca

    Citation identity checked ·

    Background reference; this record does not claim a full independent peer review of the encyclopedia. Original exposition and newly constructed calculations are not copied from the source.

    The Theory of Quantum Information: Chapter 1, Mathematical preliminaries
    John Watrous · · Manuscript · Author manuscript · cs.uwaterloo.ca

    Selected text checked ·

    Chapter introduction, finite-dimensional linear-algebra definitions and Caratheodory theorem were inspected. The author explicitly describes the chapter as review material, not a primary source for all mathematical results.

    Selected passages and metadata were checked; this does not certify every sentence in the encyclopedia, constitute comprehensive literature review, or establish external peer review. Original worked examples are separately recomputed.