The function _routine_v1_to_bartiq_routine(routine_v1) -> Routine: does not pass local variables to the resulting routine, which causes compilation errors when local variables are required for resource calculations.
How to Reproduce
Create a routine with local variables.
Use the qref_to_bartiq function to convert the routine.
Compile the resulting routine with compile_routine.
Observe that the compilation fails due to missing local variables.
Expected behavior
The local variables should be correctly passed to the resulting routine, allowing for accurate resource calculations and successful compilation.
Actual behavior
The local variables are not passed to the resulting routine, resulting in compilation errors due to unknown variables.
Describe the bug
The function _routine_v1_to_bartiq_routine(routine_v1) -> Routine: does not pass local variables to the resulting routine, which causes compilation errors when local variables are required for resource calculations.
How to Reproduce
Expected behavior
The local variables should be correctly passed to the resulting routine, allowing for accurate resource calculations and successful compilation.
Actual behavior
The local variables are not passed to the resulting routine, resulting in compilation errors due to unknown variables.