# QAOA Fail tests

**URL:** <https://discuss.pennylane.ai/t/qaoa-fail-tests/9605>\
**Category:** QHack 2026\
**Created:** [October 21, 2026, 3:32am UTC](https://discuss.pennylane.ai/t/qaoa-fail-tests/9605 "2026-10-21T03:32:14Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ninoz](https://avatars.discourse-cdn.com/v4/letter/n/fbc32d/32.png) [@ninoz](https://discuss.pennylane.ai/u/ninoz)\
**Post date:** [October 21, 2026, 3:32am UTC](https://discuss.pennylane.ai/t/qaoa-fail-tests/9605/1 "2026-10-21T03:32:14Z")

</div>

Public tests pass with relative error ~2–3 %. Private tests fail. Code already handles non-contiguous labels, duplicate edges, isolated vertices and uses the warm-up + Adam settings that match the public numbers. Is there a timeout or a specific edge-case on the private graphs?”-every obvious edge case and parameter combination has been tested.

I have done everything that can be done with the information that is publicly available

---

<div class="post-metadata">

**Author:** ![Asmaa\_Ali](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/asmaa_ali/32/4436_2.png) [@Asmaa\_Ali](https://discuss.pennylane.ai/u/Asmaa_Ali)\
**Post date:** [October 21, 2026, 8:22am UTC](https://discuss.pennylane.ai/t/qaoa-fail-tests/9605/2 "2026-10-21T08:22:57Z")

</div>

No, it is not a runtime error, because if it is, you get this error clearly as ‘runtime error’ I think . The issue may be that: some optimisers are very sensitive to the start intial vector of parameters so make sure to test random points (it take long runtime of course) but to make sure that optimisation not stuck to local minia. make sure public tests pass smoothly with optimiser that converges finally with your set up to its learning rate and number of itertaions.

---

<div class="post-metadata">

**Author:** ![ninoz](https://avatars.discourse-cdn.com/v4/letter/n/fbc32d/32.png) [@ninoz](https://discuss.pennylane.ai/u/ninoz)\
**Post date:** [October 21, 2026, 8:29am UTC](https://discuss.pennylane.ai/t/qaoa-fail-tests/9605/3 "2026-10-21T08:29:55Z")

</div>

public tests are passing all the time the private ones are failing. what do you suggest here

---

<div class="post-metadata">

**Author:** ![Asmaa\_Ali](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/asmaa_ali/32/4436_2.png) [@Asmaa\_Ali](https://discuss.pennylane.ai/u/Asmaa_Ali)\
**Post date:** [October 21, 2026, 8:39am UTC](https://discuss.pennylane.ai/t/qaoa-fail-tests/9605/4 "2026-10-21T08:39:03Z")

</div>

yes that’s because the energies for the graphs of private tests are out from the accepted range by the grader while the public ones ok. Try random intial warmups of the Optimizer and for time sake, make the range narrow around the definite start point that allows the public tests Pass .

---

<div class="post-metadata">

**Author:** ![ninoz](https://avatars.discourse-cdn.com/v4/letter/n/fbc32d/32.png) [@ninoz](https://discuss.pennylane.ai/u/ninoz)\
**Post date:** [October 21, 2026, 9:13am UTC](https://discuss.pennylane.ai/t/qaoa-fail-tests/9605/5 "2026-10-21T09:13:19Z")

</div>

Ok will try this thanks asmaa

---

<div class="post-metadata">

**Author:** ![ninoz](https://avatars.discourse-cdn.com/v4/letter/n/fbc32d/32.png) [@ninoz](https://discuss.pennylane.ai/u/ninoz)\
**Post date:** [October 21, 2026, 9:38am UTC](https://discuss.pennylane.ai/t/qaoa-fail-tests/9605/6 "2026-10-21T09:38:09Z")

</div>

Hi @Asmaa_Ali it worked thanks

---

<div class="post-metadata">

**Author:** ![Tanay\_Jalan](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/tanay_jalan/32/4544_2.png) [@Tanay\_Jalan](https://discuss.pennylane.ai/u/Tanay_Jalan)\
**Post date:** [October 22, 2026, 12:40pm UTC](https://discuss.pennylane.ai/t/qaoa-fail-tests/9605/7 "2026-10-22T12:40:19Z")

</div>

@ninoz what approached did you try that it passed

---

<div class="post-metadata">

**Author:** ![ninoz](https://avatars.discourse-cdn.com/v4/letter/n/fbc32d/32.png) [@ninoz](https://discuss.pennylane.ai/u/ninoz)\
**Post date:** [October 22, 2026, 12:41pm UTC](https://discuss.pennylane.ai/t/qaoa-fail-tests/9605/8 "2026-10-22T12:41:28Z")

</div>

same which asmaa mentioned above

---

<div class="post-metadata">

**Author:** ![Tanay\_Jalan](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/tanay_jalan/32/4544_2.png) [@Tanay\_Jalan](https://discuss.pennylane.ai/u/Tanay_Jalan)\
**Post date:** [October 22, 2026, 12:47pm UTC](https://discuss.pennylane.ai/t/qaoa-fail-tests/9605/9 "2026-10-22T12:47:08Z")

</div>

tried but still private test case failed, any simpler way you can tell me, maybe i misunderstood

---

<div class="post-metadata">

**Author:** ![ninoz](https://avatars.discourse-cdn.com/v4/letter/n/fbc32d/32.png) [@ninoz](https://discuss.pennylane.ai/u/ninoz)\
**Post date:** [October 22, 2026, 12:49pm UTC](https://discuss.pennylane.ai/t/qaoa-fail-tests/9605/10 "2026-10-22T12:49:29Z")

</div>

I can but we are not allowed to do so as per the rules
