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

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Vectorization of operators

Vectorization converts a matrix into a vector under a declared ordering, allowing linear maps on operators to be represented by ordinary matrices.

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

Definition and ordering

This record uses column-stacking vectorization: vec(A) lists the first column, then the second, and so on. For A=[[a,b],[c,d]], vec(A)=(a,c,b,d). This convention is independent of the encyclopedia's displayed q0-left ket convention; translating between them requires an explicit index map.

Vectorization is a mathematical bookkeeping tool. It does not physically turn an unknown density operator into a state vector available without resources.

Fully solved identity

With column stacking, vec(AXB)=(B-transpose tensor A)vec(X). Take X=[[1,2],[3,4]], A=diag(1,2), and B=X_Pauli. Then AXB=[[2,1],[8,6]], so vec(AXB)=(2,8,1,6). Applying B-transpose tensor A to vec(X)=(1,3,2,4) gives the same result.

For a channel E(rho)=sum_k K_k rho K_k-dagger, the vectorized matrix is S_E=sum_k K_k* tensor K_k. The complex conjugate rather than adjoint in the first factor follows from the transpose in the identity.

Limits and misconceptions

Different papers use row stacking or a swapped tensor convention. Their formulas can be equivalent after a permutation, but mixing conventions produces silent errors for complex matrices. Tests on diagonal real states are insufficient to expose every ordering error.

The Euclidean norm of vec(A) equals the Frobenius norm of A, not its trace norm. A normalized vectorization of a density operator is therefore not automatically a representation of the same physical state.

Index identities that expose conjugations

For an m by n matrix A, column stacking corresponds to |A>>=sum over i,j of A_ij |j>_C tensor |i>_R. The first displayed factor labels columns and has dimension n; the second labels rows and has dimension m. These labels are representation spaces, not automatically physical subsystems of an experiment. The component at position j m+i is A_ij when indices start at zero.

If L acts on rows and R acts on columns, the coefficient of |b> tensor |a> in |LAR>> is sum over i,j of L_ai A_ij R_jb. The same coefficient arises from (R^T tensor L)|A>>. This explicit index calculation fixes the transpose without appealing to a visual resemblance between circuit wires and matrix blocks. It also works for rectangular matrices when all dimensions match.

The inner product <<A|B>> equals sum A_ij* B_ij=Tr(A†B). Hence vectorization is an isometry between operator space with the Hilbert–Schmidt inner product and an ordinary vector space. It is not an isometry for every operator norm: the Euclidean length becomes the Frobenius norm, while the largest singular value and trace norm retain different meanings.

A complex rectangular example and its reductions

Take A=[[1,i,0],[0,1,2]]. Its column vector is (1,0,i,1,0,2)^T and has squared norm 7. Regard |A>>/sqrt(7) formally as a normalized state on a three-dimensional column factor followed by a two-dimensional row factor. The row marginal is AA†/7=[[2,i],[−i,5]]/7. The column marginal is (A†A)^T/7, not A†A/7. Complex conjugation of the coefficients accounts for this transpose.

Direct multiplication gives A†A=[[1,i,0],[−i,2,2],[0,2,4]]. The nonzero squared singular values are (7±sqrt(13))/2. Both reduced states therefore have nonzero eigenvalues (7±sqrt(13))/14, although one marginal has an extra zero eigenvalue. This is the Schmidt correspondence between a bipartite vector and its coefficient matrix, with the ordering and conjugation now declared rather than assumed.

For a unitary U on dimension d, |U>>/sqrt(d) is maximally entangled between the two representation factors because UU†=I. A normalized vectorization of a general density matrix instead has marginals proportional to rho² and its transpose. For rho=diag(3/4,1/4), the squared norm is 5/8 and the normalized vectorization has Schmidt probabilities 9/10 and 1/10. They differ from the original state's probabilities 3/4 and 1/4. Vectorizing an operator and purifying that state are distinct constructions.

Transpose, adjoint, and linearity

There is a permutation matrix K_mn satisfying K_mn vec(A)=vec(A^T). It exchanges the row and column labels and changes their order. Because its entries are real and each basis vector is sent to exactly one other basis vector, it is unitary as a coordinate map. In contrast, vec(A†) also conjugates all coefficients. Taking an adjoint is antilinear: (cA)†=c* A†. It cannot be represented by one fixed complex-linear matrix acting on vec(A) alone.

For a qubit density matrix [[a,c],[c*,1−a]], column stacking gives (a,c*,c,1−a). Hermiticity constrains the second and third components to be conjugates; these four entries are not independent complex amplitudes of a four-level state. The physical constraints form a real affine slice with positivity restrictions inside operator space. The trace functional is <<I|vec(rho)>>=1, where vec(I) is unnormalized and has length sqrt(2).

An operational caveat follows from linearity on density operators. A hypothetical deterministic device sending every rho to the pure state proportional to vec(rho) would generally send a mixture to a coherent vector encoding its entries. But a physical channel applied to a mixture produces the corresponding mixture of output states. The normalization is also state dependent. Vectorization is therefore a representation used in calculations, not a free physical conversion of an unknown mixed state into amplitudes.

Commutators become ordinary linear actions

For square operators, vec([H,X])=(I tensor H−H^T tensor I)vec(X). The minus sign follows by applying the multiplication identity separately to HX and XH. With H=diag(E0,E1), the matrix units |i><j| are eigenoperators with eigenvalues Ei−Ej. The diagonal matrix units have zero eigenvalue, while the two coherences have opposite energy differences. Multiplication by −i/hbar gives their unitary evolution frequencies, rather than assigning the individual energies to vectorized density components.

The zero mode includes I because every Hamiltonian commutes with the identity. Additional zero modes occur within degenerate energy eigenspaces. This superoperator degeneracy is distinct from a degeneracy among state amplitudes. For H proportional to I, the commutator vanishes on every operator although the state-vector evolution still accumulates a common phase. The vectorized operator description has already removed that physically irrelevant phase from the density-operator dynamics.

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.

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

    The Theory of Quantum Information: Chapter 2, Basic notions of quantum information
    John Watrous · · Manuscript · Author manuscript · cs.uwaterloo.ca

    Selected text checked ·

    Full-text PDF available; selected state, measurement, channel and dilation definitions used as formalism background. Individual elementary extensions and numerical examples were constructed independently.

    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.