Question 2: Unitary Matrix (Hermitian and Orthonormal)
Source: Chapter 01, slides 4, 9, 12, 19, 22. Flagged by the instructor as challenging.
Course-specific definition (slide 22). This course calls a matrix unitary only when it satisfies two separate conditions at the same time:
Here denotes the conjugate transpose of (transpose the matrix, then complex-conjugate every entry). Substituting into gives , so every course-unitary matrix satisfies .
This is stricter than the usual textbook definition of “unitary,” which only asks for . In this course, a matrix that is orthonormal but not Hermitian is a separate, weaker category — it is still a valid reversible gate, but it is not called “unitary” here. Keep this distinction in mind for every problem below: always check Hermitian and orthonormal separately, then combine the two results.
Why questions (Q&A)
Q1. Why does need to be Hermitian before is guaranteed real, and why does that matter physically?
Setup. In quantum mechanics, a measurable physical quantity (an “observable”) is represented by a matrix , and the expected value of measuring it on a state is .
Step 1 — why Hermiticity forces a real quadratic form. The spectral theorem says a Hermitian matrix () always has:
- real eigenvalues, and
- an orthogonal basis of eigenvectors.
Because of this, can be rewritten as a weighted sum of these real eigenvalues, with non-negative real weights coming from expanding in the eigenbasis. A sum of real numbers weighted by non-negative real numbers is itself real. So for every complex vector , precisely because is Hermitian.
Step 2 — why this matters physically. An expectation value is something you could in principle measure with a lab instrument and average over many trials — it has to come out as an ordinary real number, never a complex one. If were not Hermitian, could have a nonzero imaginary part, and there would be no physical reading it could correspond to. So “Hermitian” is exactly the algebraic condition that makes a matrix a legitimate observable.
Q2. Why is orthonormality () what makes a matrix a valid gate, while course-unitarity is a strictly narrower extra requirement on top of that?
Step 1 — what a gate is required to do. A quantum gate must take every normalized state to another normalized state, and it must be reversible (time evolution of an isolated system can always be run backward). Both of these requirements are captured by one equation:
This says preserves inner products, hence norms, for every vector — so normalized states stay normalized. It also immediately gives the inverse for free: , so undoing the gate is always possible.
Step 2 — orthonormal alone is already enough. Nothing more is needed to qualify as a valid gate. For example, satisfies (checked in Math Q2 below), so is a perfectly good, physically realizable gate — even though it fails the extra Hermitian condition.
Step 3 — why “course-unitary” is strictly narrower. The course additionally calls a matrix “unitary” only when it is also Hermitian. This is an extra property that most valid reversible gates simply do not have. So every course-unitary matrix is a valid gate, but not every valid gate is course-unitary — orthonormality is the necessary-and-sufficient condition for being a gate at all; Hermiticity is an optional bonus property some gates happen to have.
Q3. Why is every course-unitary gate automatically self-inverse, while a merely orthonormal gate is not?
Step 1 — the algebra. Course-unitary means both conditions hold simultaneously:
Substitute the first equation into the second, replacing with :
means applying twice in a row is exactly the same as doing nothing — is its own inverse.
Step 2 — why this matches the gates highlighted in Chapter 03. , , , , controlled-NOT, , and swap are all shown (Math Q3–Q4 below) to be Hermitian and orthonormal at once, i.e. course-unitary — and that is exactly why the course repeatedly calls them “self-inverse”: apply any of them twice and you are back where you started.
Step 3 — the counterexample. is orthonormal (, so it is a valid gate) but is not Hermitian (). Since the Hermitian half of the argument fails, does not follow, and indeed
Applying twice does not return unchanged — it flips its sign. This matches the slide’s own remark that ” is equivalent to sign flipping” rather than .
Q4. Why does multiplying a state by a global phase leave every measurement probability unchanged?
Step 1 — expand the inner product. Write out directly using the rule that conjugating a scalar pulled out of a bra flips the sign of its exponent:
since any pure phase factor has modulus , i.e. for every real .
Step 2 — why every measurement probability is unaffected too. A measurement probability for basis outcome is . Replacing with multiplies the amplitude by the same phase , and
So no measurement outcome, on any basis, can ever tell apart from .
Why this matters. This is exactly why global phase is dropped when counting the physical degrees of freedom of a state (see Question 1, Math Q1): two state vectors that differ only by an overall factor represent the same physical state.
Q5. Why is orthonormality — not the stronger course-unitary condition — the necessary and sufficient condition for a matrix to represent a valid, reversible gate?
Necessity. Any physical evolution of an isolated quantum system must:
- preserve total probability (a state of norm 1 must evolve into a state of norm 1), and
- be invertible (physical time evolution can always, in principle, be run backward).
Norm preservation plus invertibility together force exactly — this is the definition of orthonormality. Nothing about Hermiticity is required to derive this.
Sufficiency. Conversely, given any with : maps the unit sphere in (or for qubits) bijectively onto itself, and is a ready-made inverse that undoes it exactly. That is everything required of a gate — no more, no less.
Conclusion. Hermiticity (and therefore course-unitarity) is an extra property that some gates happen to have, not a requirement for being a valid gate. , , and are all valid, physically realizable gates despite failing Hermiticity.
Q6. Why does the orthonormality check use (the conjugated dot product) rather than a plain real dot product ?
Step 1 — what the inner product needs to guarantee. The quantum inner product between two complex vectors is defined as
The reason for the conjugation is that it forces , which is always a real, non-negative number — exactly the squared norm you need for a valid probability interpretation.
Step 2 — why the plain dot product fails. Without conjugation, is generally a complex number when the are complex (for instance gives , which is not even the correct squared norm of ). A quantity like this has no meaning as an overlap probability, so it cannot be what orthonormality is checked against — only the conjugated form correctly measures whether two columns are orthogonal (result ) and unit length (result when ).
Math questions (Q&A)
Each problem below follows the same three-part method: (1) check Hermitian, (2) check orthonormal, (3) combine the two to decide course-unitarity. Work through every arithmetic step explicitly — do not skip the intermediate matrix multiplication.
Q1. Is Hermitian? Orthonormal? Course-unitary?
Step 1 — check Hermitian. Take the conjugate transpose : first transpose,
then conjugate every entry:
Since , is Hermitian.
Step 2 — check orthonormal. We need . Since is Hermitian, , so this is simply . Multiply it out entry by entry:
So
is not orthonormal.
Step 3 — combine. Course-unitary requires both conditions. Hermitian holds but orthonormal fails, so is not course-unitary.
Independent sanity check (eigenvalues). For a matrix to be orthonormal, every eigenvalue must have modulus 1. Here and , so the eigenvalues solve , giving and . Neither has modulus 1, which independently confirms cannot be orthonormal — consistent with Step 2.
Q2. Is the phase gate Hermitian? Orthonormal? Course-unitary?
Step 1 — check Hermitian. is diagonal, so transposing changes nothing. Conjugating each entry gives
Compare to itself: the entry flipped from to , so . is not Hermitian.
Step 2 — check orthonormal. Multiply :
is orthonormal.
Step 3 — combine. Orthonormal holds but Hermitian fails, so is not course-unitary. It is still a perfectly valid, physically realizable, reversible gate — it is simply not in the narrower “unitary” category this course reserves for the Hermitian-and-orthonormal intersection, unlike , , below.
Q3. Check the Pauli gates and for Hermitian, orthonormal, and course-unitary.
, Step 1 — Hermitian. Transposing gives , unchanged (it is already symmetric), and conjugating does nothing since every entry is real. So : Hermitian.
, Step 2 — orthonormal.
Orthonormal.
, Step 3 — combine. Both hold, so is course-unitary.
, Step 1 — Hermitian. Transpose: . Conjugate each entry: . So : Hermitian.
, Step 2 — orthonormal. Multiply entry by entry:
Off-diagonal entries both work out to , so : orthonormal.
, Step 3 — combine. Both hold, so is course-unitary.
Connection to Why Q3. Both and being course-unitary is exactly why they are self-inverse: , unlike from Q2, which is orthonormal but not Hermitian and therefore not self-inverse.
Q4. Check whether the columns of from Q1 are orthonormal, using the conjugated dot product directly on the columns.
Step 1 — name the columns. , .
Step 2 — check orthogonality. Compute :
This is not , so the columns are not orthogonal.
Step 3 — check unit length. Compute :
The columns are not even unit length.
Conclusion. Both requirements of orthonormality (orthogonal columns, unit-length columns) fail. This gives a second, independent confirmation that is not orthonormal, agreeing with the eigenvalue argument at the end of Q1.
Q5. Given , compute directly, then compute and confirm the two match.
Step 1 — compute directly.
Since , this reduces to by the Pythagorean identity.
Step 2 — form the globally-phased state.
Step 3 — compute its norm squared.
because every factor of the form equals , regardless of what phase angle sits inside the exponent.
Conclusion. Both computations give exactly . This is a direct numerical confirmation of the general argument in Why Q4: multiplying a state by a global phase changes nothing about its norm.
Q6. Let satisfy (Hermitian) and (orthonormal) simultaneously — i.e. is course-unitary — as required by the generalized rotation-gate construction on Chapter 04 slide 12. Using as a concrete instance of , verify both conditions and state why qualifies while (from Q2) does not.
Step 1 — recall the construction. Chapter 04 slide 12 defines a generalized rotation gate
and requires to be course-unitary for to come out orthonormal (a valid gate) for every real .
Step 2 — check against both conditions. Q3 above already showed (Hermitian) and (orthonormal), holding simultaneously. So is course-unitary, and is a legal choice: can be plugged directly into .
Step 3 — check against both conditions. Q2 above showed (orthonormal) but (not Hermitian). fails the Hermitian half of course-unitarity, so it does not qualify as an for this construction.
Conclusion. Only matrices in the intersection of Hermitian and orthonormal — such as the Pauli matrices , , — can serve as the generator of a generalized rotation gate. Being merely orthonormal, as is, is not enough.