Getting to grips with why Unitary matrices preserve length has been the highest hurdle so far. The internet is full of complex formulas for why this is the case, but I drowned in notation and couldn’t develop any understanding.
So I spent hours and paper trying to write proofs for myself.
The below is a first-principles proof of Unitary matrices I came up with independently, which may or may not hold up to real mathematics.
U†U = IThe length preserving property of unitary matrices is evidently useful for quantum gates, because qubit vectors must always have length 1.
U†: the conjugate transposeGiven a matrix:
The transpose is a mirror operation, a line of symmetry top-left to bottom-right:
Taking the conjugate means inverting the complex elements of the matrix. As an example, taking matrix:
Its conjugate would be:
The conjugate of a is written a*.
Putting it all together, the conjugate transpose of matrix
...is:
U†U = I`I` is the identity matrix. The product of any vector with this matrix is the input vector:
For example vector:
The definition of a Unitary matrix is that the product of that matrix with its conjugate transpose is I.
e.g. The Y gate:
Note: Its conjugate transpose is itself
This is where I was stumped. What is it about this property
U†U = I
which means that the matrix preserves length?
[A formal proof can be seen here.] I started from here, and couldn’t translate it into a meaningful understanding of why this actually worked.
So I set about toying around with this myself, for hours, and eventually I think I’ve come up with a fairly intuitive explanation.
Let’s start off by performing
U†U = I
algebraically.
If this matrix is Unitary then it must be true that:
…because that’s the definition of a Unitary matrix: matrix multiplied by conjugate tranpose is I.
That means that a* a+b* b = 1 & c* c+c* d = 1.
a & b represent the transformed î. The above identity proves that when the transformation was a Unitary matrix, î retains length 1.
This is because a* a+b* b = 1 is equivalent to a2 + b2= 1, which is how we calculate the length of î.
In the same way c & d are the elements of the transformed ĵ. c* c+d* d = 1. is equivalent to c2 + d2= 1, which demonstrates that the length of j is unchanged. As all vectors are composed of scaled î & ĵ, retaining their lengths means that the length of the vector will not be changed.
This proves that Unitary matrices retain the length of the input vector.
We get two more identities from the matrix multiplication.
ac + bd = 0
ca + db = 0
What does this tell us about why Unitary matrices preserve vector lengths?
I found it helpful here to go back to what retaining vector length would mean for matrix multiplication.
The new vector has an x value of ak + cm, and a y values of bk + dm.
If the resulting vector has the same length as the input vector then we know that:
(ak + cm)2 + (bk + dm)2 = k2 + m2
(ak)2 + (cm)2 + 2akcm + (bk)2 + (dm)2 + 2bkdm = k2 + m2
Rearrange:
(ak)2 + (bk)2 + (cm)2 + (dm)2 + 2akcm + 2bkdm = k2 + m2
Extract factors:
k2(a2 + b2) + m2(c2 + d2) + 2akcm + 2bkdm = k2 + m2
Recall that a2 + b2= 1 and c2 + d2= 1.
Substitute:
k2(1) + m2(1) + 2akcm + 2bkdm = k2 + m2
k2 + m2 + 2akcm + 2bkdm = k2 + m2
2akcm + 2bkdm = 0
Factorise:
km(ac + bd) = 0
Therefore either k = 0, m = 0, or ac + bd = 0.
From above, ac + bd = 0 was an identity we derived from U†U = I.
This reinforces my proof of U preserving the vector’s length.
I don’t think so, because we embedded the assumption that this matrix was Unitary by substituting
a2 + b2= 1 and c2 + d2= 1.
A matrix with different values for those identities could theoretically (but not really) have another path to preserving vector lengths.
Therefore I will continue searching for a proof along these lines for Unitary matrices being the only length-preserving transformations.
HRV & Me: Taming a messy stressy mind - [Mar 8, 2026]
Resonance - [Feb 8, 2026]
Where Angels Fear to Tread -- EM Forster - [Jul 13, 2025]
Steve Jobs -- Walter Isaacson - [Jul 10, 2025]
The Fifth Risk -- Michael Lewis - [Jul 10, 2025]
The Ride of a Lifetime -- Bob Iger - [Jul 10, 2025]
James -- Percival Everett - [Jul 3, 2025]
Great Expectations -- Charles Dickens - [Jul 1, 2025]
Hillbilly Elegy -- JD Vance - [Jun 23, 2025]
Principles - [Jun 10, 2025]
Revenge of the Tipping Point -- Malcolm Gladwell - [Jun 9, 2025]
The Grand Babylon Hotel -- Arnold Bennett - [Jun 6, 2025]
The Seven Husbands of Evelyn Hugo -- Taylor Jenkins Reid - [Jun 4, 2025]
Rebecca -- Daphne du Maurier - [Jun 3, 2025]
A Promised Land - Barack Obama - [May 29, 2025]
Less - Andrew Sean Greer - [May 29, 2025]
Careless People - Sarah Wynn-Williams - [May 13, 2025]
Looking Glass War - John Le Carre - [May 7, 2025]
A Murder of Quality - John Le Carre - [May 4, 2025]
London Marathon 2025: Training Retrospective - [May 1, 2025]
The Human Factor - Graham Greene - [Apr 29, 2025]
London Marathon 2025: Race Review - [Apr 28, 2025]
Photos: London Marathon 2025 - [Apr 27, 2025]
Spectating the London Marathon 2025 [Sunday 27th April] - [Apr 27, 2025]
London Marathon 2025: Week 16 - [Apr 26, 2025]
Call for the Dead - John Le Carre - [Apr 23, 2025]
London Marathon 2025: Week 15 - [Apr 21, 2025]
The Manchurian Candidate - Richard Condon - [Apr 16, 2025]
London Marathon 2025: Week 14 - [Apr 13, 2025]
London Marathon 2025: Week 13 - [Apr 5, 2025]
London Marathon 2025: Week 12 - [Mar 30, 2025]
Effortless - Greg Mckeown - [Mar 26, 2025]
Leading - [Mar 26, 2025]
London Marathon 2025: Week 11 - [Mar 23, 2025]
London Marathon 2025: Week 10 - [Mar 16, 2025]
London Marathon 2025: Week 9 - [Mar 9, 2025]
London Marathon 2025: Week 8 - [Mar 2, 2025]
London Marathon 2025: Week 7 - [Feb 22, 2025]
London Marathon 2025: Week 6 - [Feb 16, 2025]
Problems & [Meta] Problem Solving - [Feb 16, 2025]
Little Dribbling - Bill Bryson - [Feb 14, 2025]
Bring Up the Bodies - Hilary Mantel - [Feb 10, 2025]
London Marathon 2025: Week 5 - [Feb 9, 2025]
Three Zero - [Feb 9, 2025]
The iPad mini has genuinely changed my life [no hyperbole] - [Feb 3, 2025]
London Marathon 2025: Week 4 - [Feb 2, 2025]
Coming AI: Valuing Humans in a world where they have no economic value - [Jan 28, 2025]
Value & Price - [Jan 28, 2025]
The Vegetarian - Han Kang - [Jan 27, 2025]
Wolf Hall - Hilary Mantel - [Jan 27, 2025]
London Marathon 2025: Week 3 - [Jan 26, 2025]
Deriving my own proof for Unitary matrices - [Jan 19, 2025]
London Marathon 2025: Week 2 - [Jan 19, 2025]
David Copperfield - Charles Dickens - [Jan 17, 2025]
London Marathon 2025: Week 1 - [Jan 12, 2025]
NYC & DC '24 - [Jan 9, 2025]
Linear Algebra Playground - [Jan 8, 2025]
Configuring an IKEA wireless light switch: Saving you the pain - [Jan 7, 2025]
Goals & Goal-setting - [Jan 7, 2025]
Organisation - [Jan 7, 2025]
Digital Feeds - [Jan 6, 2025]
London Marathon 2025: Training Begins - [Jan 5, 2025]
Everything I've read in 2025 (so far) - [Jan 1, 2025]