Let ρ w = The similarity of some usage kets |u is obtained, as is common in the literature, by their inner product u j .
as this is a complex value, we multiply it with its complex conjugate, rendering the real value u Therefore, in total the expected similarity of w and v is: We see that the similarity function simply reduces to multiplying ρ w with ρ v and applying the trace function.