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

Add disable-straightline-code-requirement option #161

Closed cesarzc closed 1 year ago

cesarzc commented 1 year ago

This change adds a disable-straightline-code-requirement option. This new option controls whether QIR should be validated to have just one function implementation with a single block.

Before this change, it the behavior was as if this option was set to false by default and only set to true if both the replace-qubit-on-reset and defer-measurements options are set to true.