Let$ p$ and $ q$ be two probability densities a subset of $\mathbb{R}^d $. Assume I know how to generate samples from $ p $ and how to generate samples from $ q $, but I do so without actually being able to evaluate the densities.
How do I algorithmically generate samples from the distribution whose density is $\propto pq $?