1. A method of solving a problem, the method comprising: generating a logic circuit representation of the problem using a computer processor; encoding the logic circuit representation as a discrete optimization problem using the computer processor; and solving the discrete optimization problem using a quantum processor.