I am very new to quantum circuits and am unsure how to simplify them. Say I'm given a very simple circuit:
and I want to simplify it using basic quantum gates. I'm not looking for an answer, but more just how to go about it. I started by computing the outputs with $|0\rangle$, $|1\rangle$, $|+\rangle$ and $|-\rangle$ states and thought that a simple NOT gate would suffice because $|0\rangle \rightarrow |1\rangle$, $|1\rangle \rightarrow |0\rangle$, $|+\rangle \rightarrow |+\rangle$. However, when it comes to the $|-\rangle$ state, the output is $-|-\rangle$, and I don't know how to account for that when doing the simplification.
Very basic question but any help is appreciated.