tket
tket copied to clipboard
Catch tket exceptions
This PR adds functionality to catch tket
exceptions in a more meaningful way in pytket
.
Currently, exceptions in tket
are std::exception
that pybind11
translates into RuntimeError
.
There is a larger spectrum of errors defined in individual modules. For instance here in the Circuit
module.
@Roland-djee Can we close this PR?