Matching-outcome projector (source code)

= Matching-outcome projector

For two labelled orthonormal bases, the event of equal labels is represented by $\sum_j|x_jy_j\rangle\langle x_jy_j|$.