ngnrsaa / qflex

Flexible Quantum Circuit Simulator (qFlex) implements an efficient tensor network, CPU-based simulator of large quantum circuits.
Apache License 2.0
97 stars 24 forks source link

Adding more context to tensor.cpp method calls #218

Closed alankao64 closed 4 years ago

alankao64 commented 4 years ago

Adding try-catch blocks to calls for methods in tensor.cpp for more context when a method fails. Addresses Issue #216

alankao64 commented 4 years ago

Sample error log:

ERROR (some_file.cpp: some_function:123) --> Failed to call another_function() Error:
      [ERROR (another_file.cpp: another_function:234) --> Error message thrown by another_function()]