tket icon indicating copy to clipboard operation
tket copied to clipboard

Catch tket exceptions

Open Roland-djee opened this issue 2 years ago • 1 comments

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 avatar Jul 07 '22 16:07 Roland-djee

@Roland-djee Can we close this PR?

cqc-alec avatar Aug 04 '22 07:08 cqc-alec