I've been struggling with this for a while now, and whilst I suspect the answer is unknown or very complicated, I thought I'd ask regardless.
Suppose I have some states $|\psi_i\rangle = \sum_{j=1}^n a_{ij} |j\rangle : i,n\in\mathbb{Z}^+$, and $\langle\psi_i|\psi_i\rangle=1$ holds true (i.e., are normalsied). I also have some conditional statements about the measured values these states are allowed to take to be a valid solution to my problem, using only XOR ($\oplus$) and AND ($\land$).
For instance, I might have three states $|\psi_1\rangle$, $|\psi_2\rangle$, and $|\psi_3\rangle$, which, when measured, in order to satisfy my problem must also satisfy $(\psi_1\oplus \psi_2)\land(\psi_2\oplus\psi_3)\land(\psi_1\oplus \psi_3)$. Of course, when I talk about satisfying a condition after measurement, I mean to a high probability.
How does one, or can one, go about implementing this kind of logic in a quantum circuit? I feel that since each operation would entangle the states, that this is not possible.
I've thought about and tested a Swap test, but this has a number of issues.
Any help or thoughts would be greatly appreciated.