wmcnicho / QCP_SP2015

A quantum computing emulator made by undergraduates at University of Edinburgh
0 stars 0 forks source link

Error Checking #22

Closed wmcnicho closed 9 years ago

wmcnicho commented 9 years ago

Okay so at this point the program is mostly complete and the GUI is done but the program is not quite bulletproof. The main way the user can mess up the program is by inputting invalid data. I can try to filter as much bad input data as possible in the Gui but it's possible some stuff will still get through to the model.

Here are the cases I can think of. Let me know if you think of others

Grovers

Shor's

There's also the issue that the program doesn't tell or warn the user about heap overloading. I can look into a way to redirect System error messages to the console.

Edit: I'm currently redirecting System errors to the console, if that is causing problems or issues comment out line 26 of QuantumGuiFrame.java

wmcnicho commented 9 years ago

As of commit 755e37c0fb28806509fa8c6b374d02ce548c96b4 the user can now only enter non-negative numbers. Hopefully this should resolve most issues

wmcnicho commented 9 years ago

Added additional error checks as of fd5f3689d298ed13bbb9881e22c75ff369faa440. This issue should be resolved