diff --git a/algorithms/algebraic/shor/shor_modular_exponentiation.ipynb b/algorithms/algebraic/shor/shor_modular_exponentiation.ipynb index 203ed554..032abe3a 100644 --- a/algorithms/algebraic/shor/shor_modular_exponentiation.ipynb +++ b/algorithms/algebraic/shor/shor_modular_exponentiation.ipynb @@ -272,7 +272,7 @@ " allocate(1, aux)\n", "\n", " # set initial values for the addition\n", - " inplace_prepare_int(b_initial_value, b)\n", + " b ^= b_initial_value\n", " X(ctrl[0])\n", " X(ctrl[1])\n", "\n", @@ -553,7 +553,7 @@ " allocate(1, aux)\n", "\n", " hadamard_transform(power)\n", - " inplace_prepare_int(1, x)\n", + " x ^= 1\n", "\n", " mod_exp_func(\n", " modulo_num,\n", @@ -663,4 +663,4 @@ }, "nbformat": 4, "nbformat_minor": 5 -} +} \ No newline at end of file