| CPC G06N 10/20 (2022.01) | 18 Claims |

|
1. A method comprising:
obtaining a quantum program to be compiled, wherein the quantum program comprising a first input qubit having a first value and a second input qubit having a second value;
identifying an intermediate cycle after which the first input qubit is not used in the quantum program;
synthesizing a transformative quantum program that is applicable on a qubit being processed, wherein the transformative quantum program is a quantum program that is configured to update a value of the qubit being processed by subtracting from the qubit being processed the first value and by adding to the qubit being processed the second value, wherein said synthesizing is based on the first value and based on the second value, whereby performing controlled propagation on the qubit being processed having the first value and updating the qubit being processed to have the second value;
updating the quantum program, wherein said updating the quantum program comprises:
modifying the quantum program to perform the transformative quantum program on the first input qubit at the intermediate cycle;
causing the quantum program to utilize the first input qubit instead of the second input qubit.
|