Loading
robust qubit extract and ssa fixing for loop unroll
The Affine loop unroll will result in:
- Duplicate q.extract in the main loop -> disconnect SSA chain and hence no optimization possible.
- Incorrect SSA chaining if the extract is outside the loop, e.g. qubit type (not qreg)
Hence, we need to fix up all of those issues.
Add test for optimizing trotter loop
Signed-off-by:
Thien Nguyen <nguyentm@ornl.gov>