# Submit same code twice, and got different outputs

**URL:** <https://discuss.pennylane.ai/t/submit-same-code-twice-and-got-different-outputs/9584>\
**Category:** QHack 2026\
**Created:** [October 19, 2026, 10:29am UTC](https://discuss.pennylane.ai/t/submit-same-code-twice-and-got-different-outputs/9584 "2026-10-19T10:29:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ring](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/ring/32/4429_2.png) [@Ring](https://discuss.pennylane.ai/u/Ring)\
**Post date:** [October 19, 2026, 10:29am UTC](https://discuss.pennylane.ai/t/submit-same-code-twice-and-got-different-outputs/9584/1 "2026-10-19T10:29:19Z")

</div>

Hi,

I submit same code twice, and got different outputs.

 ![截图 2026-10-19 18-28-33](https://canada1.discourse-cdn.com/flex012/uploads/pennylane/original/2X/e/e99d99cc5bbfe57f2b088e8c7d8c6ffd45845173.png)

 ![截图 2026-10-19 18-25-15](https://canada1.discourse-cdn.com/flex012/uploads/pennylane/original/2X/a/a46dc486237bfa620f3b094b5d05685d823c03f3.png)

---

<div class="post-metadata">

**Author:** ![gabriela](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@gabriela](https://discuss.pennylane.ai/u/gabriela)\
**Post date:** [October 19, 2026, 1:42pm UTC](https://discuss.pennylane.ai/t/submit-same-code-twice-and-got-different-outputs/9584/2 "2026-10-19T13:42:33Z")

</div>

Hi @Ring!

This seems odd 🤔 , the grader test for the “Diffuse and Conquer” challenge is deterministic.  
One thing I notice in your outputs though is that the `phi_qsvt` array is not the same between the two submissions, so this would explain why you are getting the different outputs.

Hope this helps clarify your doubt, and best of luck with the hackathon!

---

<div class="post-metadata">

**Author:** ![Ring](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/ring/32/4429_2.png) [@Ring](https://discuss.pennylane.ai/u/Ring)\
**Post date:** [October 20, 2026, 1:50am UTC](https://discuss.pennylane.ai/t/submit-same-code-twice-and-got-different-outputs/9584/3 "2026-10-20T01:50:52Z")

</div>

Thank you! Gabriela,

As you mentioned, the key is poly\_to\_angles,“routine=“QSVT”)[::-1]” and "“routine=“QSVT”)[::1]” ". I can now reproduce the best baseline from my debugging .

---

<div class="post-metadata">

**Author:** ![gabriela](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@gabriela](https://discuss.pennylane.ai/u/gabriela)\
**Post date:** [October 20, 2026, 2:13pm UTC](https://discuss.pennylane.ai/t/submit-same-code-twice-and-got-different-outputs/9584/4 "2026-10-20T14:13:43Z")

</div>

Hi @Ring, awesome! glad to have been able to help 🙂
