Solution

ID: past-exam-of-the-mathematical-methods-i-course-of-the-university-of-oxford/2016/11/a/iv/solution

If and are Hermitian matrices, then . Therefore
The required condition is that the matrices commute.

New to topics? Read the docs here!