If there are more number of qubits in the problem than are available on the device, OpenQAOA should raise an error before the problem is sent for routing to the routing function. This check was happening after the routing function was called. This PR fixes that and places the qubit number check before the routing function is called.
Description