Loading
Using consistent types in Quantum Dialect
We must make sure the types at the MLIR level self-consistent to be able to operate passes at the MLIR level:
- Measure => return Result
- Add a cast op to convert to i1 (bool)
- Proper use of I64 for q.extract (doesn't matter if we lower to LLVM, but will complain at MLIR level)
Signed-off-by:
Thien Nguyen <nguyentm@ornl.gov>