Say I have two density matrices, [[0.7, 0.2 + 0.1j], [0.2 - 0.1j, 0.3]]
and [0.5, 0.5j], [-0.5j, 0.5]]
.
Can anyone please help me with on how to compute the Hilbert-Schmdit distance between these these two matrices using a quantum circuit? It is my understanding that it can be implemented using SWAP test. However, I am not sure how to initialize the quantum circuit whose states is represented by the above density matrix.