qir-alliance / qat

QIR compiler tools and optimization passes for targeting QIR to different hardware backends
https://qir-alliance.github.io/qat/
MIT License
26 stars 14 forks source link

Improved diagnostics and code refactor #81

Closed troelsfr closed 2 years ago

troelsfr commented 2 years ago

This PR introduces improved diagnostics and pre validation of input code to ensure that it is compliant with requirements for the selected flags. To accomplish this, this PR introduces deferred configuration flags which can be referenced by other configurations to determine how they operate. The pre-validation pass ensures that only straight-line code is accepted in the case where we request QAT to replace qubits after resets. This PR also substantially improves the error reporting and removes many stderr messages.

Amongst minor updates, it deprecates the name "base" profile and introduces "default" profile instead.