Optimization problems in quantum computing