openqasm / qe-compiler

An MLIR based compiler dynamic circuit compiler for real-time control systems supporting OpenQASM 3
Other
46 stars 15 forks source link

Add control system resources exceeded error #256

Closed mbhealy closed 7 months ago

mbhealy commented 7 months ago

This PR adds a new QSSControlSystemResourcesExceeded error category. This can be raised as an error whenever the compiler detects that an input circuit will exceed the resources of the control system, such as instruction or waveform memory.

I've also added a new addDiagnostic() method to the target system that prevents unnecessary copies of diagnostic objects from being made.