tket icon indicating copy to clipboard operation
tket copied to clipboard

Add option to `Backend.get_compiled_circuit()` to check backend predicates after compilation and fail if any are false

Open cqc-alec opened this issue 2 years ago • 4 comments

cqc-alec avatar Dec 12 '22 14:12 cqc-alec

Could this be a Boolean flag? i.e

Backend.get_compiled_circuit(check_predicates=True)

Or maybe just give a warning saying that not all predicates are satisfied and specifying which one?

CalMacCQ avatar Dec 12 '22 14:12 CalMacCQ

I think a boolean flag, but defaulting to False (for backwards-compatibility).

cqc-alec avatar Dec 12 '22 14:12 cqc-alec

I think a warning could also be informative here.

If your compiled circuit is invalid - it's probably useful to know which predicates are not satisfied.

CalMacCQ avatar Dec 12 '22 14:12 CalMacCQ

This issue has been automatically marked as stale.

github-actions[bot] avatar Jun 24 '24 05:06 github-actions[bot]