Approximation ratio for QAOA - Public Tests validity

Hi everyone,

By using a warm start and the Adam optimizer on public test #1, I got an approximation ratio of ~0.89 (beating the expected ~0.58). However, my solution failed because the grader uses np.allclose() to demand an exact match.

Since the goal of QAOA is to optimize performance, shouldn’t the pass condition be approximation_ratio >= target_threshold? It makes you wonder if an exact-match checker is really the fairest way to evaluate a variational algorithm, since it actively penalizes you for finding a better minimum.

Has anyone else run into this?

Same problem, I don’t understand how others have managed
to pass the grader?

For anyone still stuck on this…

There’s an exploit in how the grader checks the result, think about how broadcasting
would behave if you compare a scalar with an empty list…

Insane find bro, how did they leave such vulnerabilities on checker? This competition is a joke at this point…

Don’t know if using exploits should be way to go in these code challenges. I got the same ratio as @jajapuramshivasai by improving the initial parameters selection method; at the end, its a better ratio and my probabilities-vs-state plot shows the yielded answer is a solution for the problem. I think this QAOA challenge should be checked by the reviewers.

I agree it’s embarrassing almost to the point that you start to wonder
if they intentionally left it in to try and trip up the AI sloppers.

in my case public test passed but it is saying that one or more private test failed, i have tried multiple approach but nothing works.

That doesn’t make sense. AI wouldn’t suddenly write “return []” as the solution for such a problem, and I don’t even think they’ll rejudge the solutions if they ever fix the checker.