Skip to content

QASM3 to use Affine for loops and passing optimization CLI options

Created by: tnguyen-ornl

Fixed https://github.com/ORNL-QCI/qcor/issues/178

Partially https://github.com/ORNL-QCI/qcor/issues/172

  • Convert the range-based for loops into affine for loops if possible. This is the first step to convert the whole QASM3 handler to use the affine dialect for control flows.

  • Passing -Ox from main qcor command line to the mlir tool and a couple of other useful options. Turn on quantum optimization if any Clang optimization level is set or the q-optimize flag is set.

Merge request reports

Loading