# Physics: matrices

Physics-package matrix constructors.

https://texform.dev/latex/topics/physics-matrices

This topic has 27 commands from the physics package. Commands show whether MathJax, KaTeX, and XeTeX render them. Entries are ordered by how often they appear in corpus formulas.

| Name | Kind | Definition | Packages | MathJax | KaTeX | XeTeX | Frequency |
| --- | --- | --- | --- | --- | --- | --- | --- |
| [\\admat](https://texform.dev/latex/commands/admat) | command | Used as a short alias for building an anti-diagonal matrix from a comma-separated list of entries, typically inside \mqty{...}. | physics | full | none | full | — |
| [\\antidiagonalmatrix](https://texform.dev/latex/commands/antidiagonalmatrix) | command | Used to generate an anti-diagonal matrix from a comma-separated list of entries, typically inside \mqty{...} or related physics matrix macros. | physics | full | none | full | — |
| [\\bmqty](https://texform.dev/latex/commands/bmqty) | command | Used as a square-bracketed matrix-quantity shorthand | physics | full | none | full | — |
| [\\diagonalmatrix](https://texform.dev/latex/commands/diagonalmatrix) | command | Used to generate a diagonal matrix from a comma-separated list of entries, typically inside \mqty{...} or related physics matrix macros. | physics | full | none | full | — |
| [\\dmat](https://texform.dev/latex/commands/dmat) | command | Used as a short alias for building a diagonal matrix from a comma-separated list of entries, typically inside \mqty{...}. | physics | full | none | full | — |
| [\\identitymatrix](https://texform.dev/latex/commands/identitymatrix) | command | Generates the entries of an n×n identity matrix from a dimension argument, usually inside a matrix or array context or within other physics-package matrix macros. | physics | full | none | full | — |
| [\\imat](https://texform.dev/latex/commands/imat) | command | Short alias for generating the entries of an n×n identity matrix from a dimension argument, typically inside a matrix or array context. | physics | full | none | full | — |
| [\\matrixdeterminant](https://texform.dev/latex/commands/matrixdeterminant) | command | Used to denote a determinant by wrapping matrix contents in vertical bars | physics | full | none | full | — |
| [\\matrixquantity](https://texform.dev/latex/commands/matrixquantity) | command | Used to typeset matrix quantities in physics notation, optionally with parentheses, brackets, braces-as-input, or vertical bars around the matrix body. | physics | full | none | full | — |
| [\\mdet](https://texform.dev/latex/commands/mdet) | command | Used as a short alias for determinant notation around matrix contents | physics | full | none | full | — |
| [\\mqty](https://texform.dev/latex/commands/mqty) | command | Used as the short physics-package command for matrix quantities, with optional parentheses, brackets, braces-as-input, or vertical bars around the matrix body. | physics | full | none | full | — |
| [\\paulimatrix](https://texform.dev/latex/commands/paulimatrix) | command | Used in quantum mechanics and quantum computing to generate 2×2 Pauli matrices (σ_0, σ_x, σ_y, σ_z) within matrix environments | physics | full | none | full | — |
| [\\pmat](https://texform.dev/latex/commands/pmat) | command | Shorthand for generating 2×2 Pauli matrices in quantum mechanics and quantum computing contexts within matrix environments | physics | full | none | full | — |
| [\\pmqty](https://texform.dev/latex/commands/pmqty) | command | Used as a parenthesized matrix-quantity shorthand | physics | full | none | full | — |
| [\\Pmqty](https://texform.dev/latex/commands/Pmqty) | command | Used as a parenthesized matrix-quantity shorthand with the starred delimiter form | physics | full | none | full | — |
| [\\sbmqty](https://texform.dev/latex/commands/sbmqty) | command | Used for small matrix quantities enclosed in square brackets | physics | full | none | full | — |
| [\\smallmatrixquantity](https://texform.dev/latex/commands/smallmatrixquantity) | command | Used to typeset small or inline matrix quantities in physics notation, optionally with parentheses, brackets, braces-as-input, or vertical bars around the matrix body. | physics | full | none | full | — |
| [\\smdet](https://texform.dev/latex/commands/smdet) | command | Used for small determinant notation around compact matrix contents | physics | full | none | full | — |
| [\\smqty](https://texform.dev/latex/commands/smqty) | command | Used as the short command for small or inline physics-package matrix quantities, with optional parentheses, brackets, braces-as-input, or vertical bars around the body. | physics | full | none | full | — |
| [\\spmqty](https://texform.dev/latex/commands/spmqty) | command | Used as a compact parenthesized small-matrix shorthand | physics | full | none | full | — |
| [\\sPmqty](https://texform.dev/latex/commands/sPmqty) | command | Used as a starred parenthesized small-matrix shorthand | physics | full | none | full | — |
| [\\svmqty](https://texform.dev/latex/commands/svmqty) | command | Used for small determinant-style matrix quantities enclosed by vertical bars | physics | full | none | full | — |
| [\\vmqty](https://texform.dev/latex/commands/vmqty) | command | Used for determinant-style matrix quantities enclosed by vertical bars | physics | full | none | full | — |
| [\\xmat](https://texform.dev/latex/commands/xmat) | command | Short alias from the physics package for generating constant-entry matrices or indexed symbolic vectors/matrices without typing every cell manually, typically inside matrix-like environments. | physics | full | none | full | — |
| [\\xmatrix](https://texform.dev/latex/commands/xmatrix) | command | Physics-package shorthand for generating constant-entry matrices or indexed symbolic vectors/matrices without typing every cell manually, typically inside matrix-like environments. | physics | full | none | full | — |
| [\\zeromatrix](https://texform.dev/latex/commands/zeromatrix) | command | Used to generate all-zero matrix entries for given row and column counts, typically inside a matrix wrapper | physics | full | none | full | — |
| [\\zmat](https://texform.dev/latex/commands/zmat) | command | Used as a short alias for generating an all-zero matrix of given dimensions, typically inside a matrix wrapper | physics | full | none | full | — |
