On the reconstruction of a unitary matrix from its moduli