Context: This pull request resolves issue #81 to ensure that local variables are correctly passed when converting qref to the bartiq routines.
Concise description of the implemented solution: This PR modifies the _routine_v1_to_bartiq_routine function to ensure that local variables are correctly passed and included in the resulting routine.
Dependencies: No new dependencies are added.
Please verify that you have completed the following steps
[x] I have self-reviewed my code.
[x] I have included test cases validating introduced feature/fix.
Description
Context: This pull request resolves issue #81 to ensure that local variables are correctly passed when converting qref to the bartiq routines.
Concise description of the implemented solution: This PR modifies the _routine_v1_to_bartiq_routine function to ensure that local variables are correctly passed and included in the resulting routine.
Dependencies: No new dependencies are added.
Please verify that you have completed the following steps
[x] I have self-reviewed my code.
[x] I have included test cases validating introduced feature/fix.
[ ] I have updated documentation.