Solving the Advection Equation background cover

Solving the Advection Equation

Classiq Quantum Use-Case for Qinnovision World Challenge 2025 | Solving the Advection Equation Using Hamiltonian Simulation

Classiq

Hosted by

Classiq

quantotto
quantotto

2

Posted

Plots window

Hello,
As part of the solution, we are supposed to present the data in a graphical form. I am using matplotlib. When running aqora test, the execution shows each plot in a separate window and doesn't proceed to the next step until the plot window is closed. Is this something expected or are we supposed to use plots differently?
My concern is that if the notebook is running in an unattended mode, there won't be a user to close the plot windows and the run might get stuck.
Thanks!
Yev

Order by:

Julian (aqora)

2

Posted by julian

Hi @quantotto ! Thanks for question. I don't know how matplotlib works in a headless environment like we run the evaluator in, but I can check for you. I'll also check to see if there's a way for aqora to quiet matplotlib while running aqora test for convenience, but for right now, the easiest thing to do I guess is just to comment out plt.show() or similar before running aqora test

quantotto

1

Posted by quantotto

Thanks Julian! Less worried about the test, I can deal with the windows. More concerned about headless as you indicated. I guess this challenge is a bit different than usual. There is no expected output that can be measured and scored, but it is more of an open challenge and graphical presentation of the results. I assume there is going to be more reliance on human going over the notebook rather than automated tests. So, maybe it is not an issue at all. Am I correct? thank you!

Jannes Stubbemann

1

Posted by stubbi

Thanks for reaching out! Will come back to you on this! Let me confirm, but it should be good if you once execute your whole notebook manually before running test and upload with the cli to include the plots in your submission.
Alternatively, you could also store them as pngs in your submission folder to include them into your upload

quantotto

2

Posted by quantotto

Thanks! It would be very much appreciated if we could use the python plotting instead of the PNG images.
BTW I did run all the cell manually, saved the notebook and ran aqora test, but the plot windows are still popping up.
If you need a minimal reproduce notebook, let me know.
Thanks

Want to join this discussion?

Join our community today and start discussing with our members by participating in exciting events, competitions, and challenges. Sign up now to engage with quantum experts!