{
  "id": "unitary-matrix",
  "title": "Unitary Matrix",
  "lang": "en",
  "source_lang": "en",
  "summary": "A unitary matrix is a complex square matrix whose conjugate transpose is its inverse, so it preserves inner products and vector lengths.",
  "category": "mathematics",
  "subcategory": "algebra",
  "type": "concept",
  "aliases": [
    "Unitary transformation matrix"
  ],
  "generated_at": "2026-10-04",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/unitary-matrix/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/unitary-matrix/",
      "json": "https://aiwiki.page/zh/unitary-matrix.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "A unitary matrix is a square matrix with complex entries that preserves the standard inner product under matrix multiplication. Equivalently, its conjugate transpose equals its inverse. Unitary matrices are the complex counterparts of real orthogonal matrices and represent reversible, length-preserving linear transformations. They are fundamental in linear algebra, numerical computation, and quantum information. (quantum.cloud.ibm.com)"
    },
    {
      "heading": "Definition and equivalent conditions",
      "text": "For an \\(n\\times n\\) complex matrix \\(U\\), unitarity means\n\n\\[U^\\dagger U=UU^\\dagger=I_n,\\]\n\nwhere \\(I_n\\) is the identity matrix and \\(U^\\dagger\\) is the conjugate transpose:\n\n\\[(U^\\dagger)_{ij}=\\overline{U_{ji}}.\\]\n\nThis operation combines transposition with complex conjugation. Other common notations are \\(U^*\\) and \\(U^H\\). For square matrices, either of the two identities implies the other, and both say that the inverse matrix is \\(U^{-1}=U^\\dagger\\). (quantum.cloud.ibm.com)\n\nUsing the standard inner product \\(\\langle x,y\\rangle=x^\\dagger y\\), the defining condition gives\n\n\\[\\langle Ux,Uy\\rangle=x^\\dagger U^\\dagger Uy=\\langle x,y\\rangle.\\]\n\nConsequently, \\(U\\) preserves the Euclidean norm of every vector. Conversely, preservation of this norm for every vector implies unitarity. The condition concerns all vectors, not merely the individual coordinate vectors. (quantum.cloud.ibm.com)\n\nWriting the columns as \\(u_1,\\ldots,u_n\\), the entries of \\(U^\\dagger U\\) are \\(\\langle u_i,u_j\\rangle\\). Thus, the columns form an orthonormal basis of \\(\\mathbb C^n\\); the rows likewise form an orthonormal system. This identifies unitary matrices with changes between orthonormal coordinate systems. (ocw.mit.edu)"
    },
    {
      "heading": "Geometric meaning and examples",
      "text": "As a linear map on a complex vector space, a unitary matrix is a bijective isometry. It preserves lengths, distances, and orthogonality without requiring the coordinates themselves to remain unchanged. In particular,\n\n\\[\\|Ux-Uy\\|_2=\\|x-y\\|_2.\\]\n\nThis follows directly by applying norm preservation to \\(x-y\\). (quantum.cloud.ibm.com)\n\nIf all entries are real, conjugate transposition reduces to ordinary transposition. The unitary condition then becomes \\(U^TU=I\\), precisely the definition of an orthogonal matrix. Plane rotations and reflections therefore provide real examples of unitary matrices. (netlib.org)\n\nSimple complex examples are diagonal phase matrices:\n\n\\[D=\\operatorname{diag}(e^{i\\theta_1},\\ldots,e^{i\\theta_n}), \\qquad \\theta_j\\in\\mathbb R.\\]\n\nDirect multiplication gives \\(D^\\dagger D=I\\), because each diagonal entry has modulus one. A familiar two-dimensional example is the Hadamard matrix\n\n\\[H=\\frac1{\\sqrt2} \\begin{pmatrix}1&1\\\\1&-1\\end{pmatrix},\\]\n\nwhich satisfies \\(H^\\dagger H=I\\). Unlike a diagonal phase matrix, it mixes the input coordinates. (quantum.cloud.ibm.com)"
    },
    {
      "heading": "Algebraic and spectral properties",
      "text": "Products and inverses of unitary matrices are unitary. For example,\n\n\\[(UV)^\\dagger(UV)=V^\\dagger U^\\dagger UV=I.\\]\n\nThe identity is also unitary, so these matrices form a group under multiplication, called the unitary group \\(U(n)\\). Its determinant-one subgroup is denoted \\(SU(n)\\). (math.mit.edu)\n\nTaking determinants in \\(U^\\dagger U=I\\) gives\n\n\\[\\overline{\\det U}\\det U=1,\\]\n\nso \\(|\\det U|=1\\). This is a necessary condition, not a sufficient one: a diagonal matrix with entries \\(2\\) and \\(1/2\\) has determinant one but does not preserve lengths. These conclusions follow directly from the defining identity. (quantum.cloud.ibm.com)\n\nEvery unitary matrix is a normal matrix, since \\(U^\\dagger U=UU^\\dagger\\). The spectral theorem therefore supplies a unitary diagonalization\n\n\\[U=VDV^\\dagger, \\qquad D=\\operatorname{diag}(\\lambda_1,\\ldots,\\lambda_n).\\]\n\nIts eigenvalues all have modulus one: if \\(Ux=\\lambda x\\) and \\(x\\ne0\\), norm preservation yields \\(\\|x\\|=|\\lambda|\\|x\\|\\). Hence each eigenvalue can be written \\(e^{i\\theta_j}\\), and the action of \\(U\\) in an orthonormal eigenbasis consists of independent phase multiplications. (ocw.mit.edu)"
    },
    {
      "heading": "Numerical computation",
      "text": "Unitary transformations are important in numerical linear algebra because they do not amplify existing errors measured in the Euclidean norm. This supports numerical stability, although executing the transformations in floating-point arithmetic can still introduce rounding errors. (netlib.org)\n\nIn a full QR decomposition of a complex matrix, the factor \\(Q\\) is square and unitary, while the other factor is triangular or trapezoidal. In the singular value decomposition,\n\n\\[A=P\\Sigma Q^\\dagger,\\]\n\nboth \\(P\\) and \\(Q\\) are unitary and \\(\\Sigma\\) contains nonnegative singular values. For a unitary matrix, all singular values equal one; consequently, its spectral-norm condition number is one. (netlib.org)"
    },
    {
      "heading": "Quantum information and rectangular matrices",
      "text": "In finite-dimensional quantum mechanics, reversible evolution of an isolated system is represented by unitary matrices. Normalized state vectors remain normalized, while their amplitudes and measurement probabilities may change. A quantum gate acting on \\(k\\) qubits is represented by a \\(2^k\\times2^k\\) unitary matrix. Measurement and general noisy processes are not, in general, described by a unitary matrix acting on the system alone. (quantum.cloud.ibm.com)\n\nThe square-matrix requirement distinguishes unitarity from a rectangular isometry. If an \\(m\\times n\\) matrix \\(Q\\), with \\(m>n\\), satisfies \\(Q^\\dagger Q=I_n\\), it preserves input norms but cannot satisfy \\(QQ^\\dagger=I_m\\). Instead, \\(QQ^\\dagger\\) is the orthogonal projection onto its column space. Such matrices occur as the reduced \\(Q\\) factor in QR decompositions; they are not unitary in the strict square-matrix sense. (quantum.cloud.ibm.com)"
    }
  ],
  "links": [
    "matrix",
    "complex-number",
    "linear-algebra",
    "identity-matrix",
    "conjugate-transpose",
    "matrix-transpose",
    "inverse-matrix",
    "inner-product",
    "norm-mathematics",
    "orthonormal-basis",
    "linear-map",
    "vector-space",
    "isometry",
    "orthogonal-matrix",
    "unitary-group",
    "determinant",
    "spectral-theorem",
    "matrix-diagonalization",
    "eigenvalues-and-eigenvectors",
    "numerical-linear-algebra",
    "numerical-stability",
    "qr-decomposition",
    "singular-value-decomposition",
    "condition-number",
    "quantum-mechanics",
    "quantum-gate",
    "qubit",
    "orthogonal-projection"
  ],
  "sources": [
    {
      "title": "quantum.cloud.ibm.com/learning/en/courses/basics-of-quantum-information/single-…",
      "url": "https://quantum.cloud.ibm.com/learning/en/courses/basics-of-quantum-information/single-systems/quantum-information"
    },
    {
      "title": "ocw.mit.edu/courses/res-18-011-algebra-i-student-notes-fall-2021/mit18_701f21_f…",
      "url": "https://ocw.mit.edu/courses/res-18-011-algebra-i-student-notes-fall-2021/mit18_701f21_full_lec_new.pdf"
    },
    {
      "title": "netlib.org/lapack/lug/node39.html",
      "url": "https://www.netlib.org/lapack/lug/node39.html"
    },
    {
      "title": "math.mit.edu/~dav/classicalgroups.pdf",
      "url": "https://math.mit.edu/~dav/classicalgroups.pdf"
    },
    {
      "title": "netlib.org/lapack/lug/node40.html",
      "url": "https://netlib.org/lapack/lug/node40.html"
    },
    {
      "title": "quantum.cloud.ibm.com/learning/en/courses/basics-of-quantum-information/single-…",
      "url": "https://quantum.cloud.ibm.com/learning/en/courses/basics-of-quantum-information/single-systems/introduction"
    }
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}