The Hadamard gate takes or (quantum states with probability 1.0 of measuring either 0 or 1), and produces states that have equal probability of 0 or 1.
Equation 1.
Hadamard gate matrix
. And when it can't, attempt to classify which subset of the integers can be reached. E.g. Legendre's three-square theorem.
Unlisted articles are being shown, click here to show only listed articles.