Matrix
A rectangular array of numbers representing a linear transformation or another mathematical object. In quantum computing, matrices describe operations, observables and general states, depending on their properties.
On this page
Plain-language explanation
A gate matrix transforms a state vector by mixing its amplitudes. A density matrix represents a state rather than a gate. An observable is represented by a Hermitian matrix. These uses share mathematical notation but have different physical meanings. Matrix dimensions must match the state space, and multiplication order matters because many quantum operations do not commute.
Recognizing these different roles helps beginners read formulas without assuming every square array is an operation to apply. It also clarifies why circuit order is significant.
Example
The two-by-two X matrix swaps a qubit vector's two entries. Applying it twice restores the original vector. A density matrix for the state 0 is also two-by-two, but it is not interchangeable with X: it describes a preparation rather than a reversible gate.
Scope and limits
Not every matrix represents a valid quantum gate. Ideal closed-system gates must be unitary. Other physical processes need additional conditions and often a different mathematical description.
Unitary operation is a related idea. A matrix is a general mathematical representation. A unitary operation is a special norm-preserving transformation whose matrix obeys a specific inverse relation with its adjoint.
Sources
Verification scope
Recorded source check ·
Complex vectors, norms, inner products and matrices
Mathematical introduction; independently worked examples in this pack are original.
Verification scope
Recorded source check ·
Bra-ket notation, overlaps and Hadamard examples
Notation reference, not a hardware benchmark.