Closed DRovara closed 1 month ago
Thanks for catching this! I fully agree that this should not be causing a server crash! I would suspect that this is an issue with not catching an exception being thrown from the QASM parser in mqt-core.
I'll take a look!
This is being fixed in https://github.com/cda-tum/mqt-core/pull/700
This is now live at https://www.cda.cit.tum.de/app/ddvis/ 🚀
Description:
Trying to create a new register (
qreg
orcreg
) inside a custom gate definition causes the entire server to crash. It seems that the server's background process gets stuck in some very resource-intensive loop (eventually, it caused my entire system to crash), as the terminal displays no further logs and even trying to connect again through a new browser window or reloading the page doesn't work.Expected Behavior:
While creating new registers inside a custom gate definition is not supported, it should not be enough to cause the server to crash. Instead, some error message should be displayed.
How to Reproduce:
The following minimal OpenQASM code example is enough to make the process crash:
It will also crash if I create a
creg
instead.