TeamGraphix / graphix

measurement-based quantum computing (MBQC) compiler and simulator
https://graphix.readthedocs.io
Apache License 2.0
55 stars 20 forks source link

Appropriate Exception classes #30

Closed shinich1 closed 7 months ago

shinich1 commented 1 year ago

Is your feature request related to a problem? Please describe. The exceptions raised (e.g. ValueError) are too generic (though there's message that helps).

Describe the solution you'd like Define Exception classes where appropriate and call them instead of e.g. ValueError. see e.g. https://www.pythontutorial.net/python-oop/python-custom-exception/

Describe alternatives you've considered na

Additional context na