Orthogonality
Two vectors are orthogonal when they point in completely independent directions — knowing the component of a vector along one direction tells you nothing about its component along the other. This idea, simple in geometry, is fundamental in quantum mechanics: quantum states that are orthogonal are perfectly distinguishable by an ideal measurement.
The inner product
Given two column vectors in ,
their inner product (real dot product) is
The test for orthogonality is then simply:
Geometric meaning
The inner product is related to the angle between the vectors by . Setting this to zero gives , so . Orthogonal vectors are perpendicular.
A concrete example
Take and .
Because the inner product is zero, and are orthogonal. You can also verify this geometrically: lies in the first quadrant pointing roughly "up-right", while points roughly "right-down", and they meet at a right angle.
Why it matters in quantum mechanics
In Dirac notation a quantum state is written as a ket . Two states and are orthogonal when , where is the corresponding bra (the conjugate transpose). The standard basis states and satisfy : measuring a qubit prepared in will never return the outcome associated with , and vice versa. That perfect distinguishability rests entirely on orthogonality.
Try it
This is a numerical exercise — your code should return a number. Given the vectors
and , compute their dot product and return 1 if they
are orthogonal, or 0 if they are not.
Sign in on the full site to ask questions and join the discussion.