diff --git a/research/rainbow_options_bruteforce_method/rainbow_options_bruteforce_method.ipynb b/research/rainbow_options_bruteforce_method/rainbow_options_bruteforce_method.ipynb index 16c640a9..b1ee0e8d 100644 --- a/research/rainbow_options_bruteforce_method/rainbow_options_bruteforce_method.ipynb +++ b/research/rainbow_options_bruteforce_method/rainbow_options_bruteforce_method.ipynb @@ -6,7 +6,9 @@ "metadata": {}, "source": [ "# Rainbow options with bruteforce methodology\n", - "In this Notebook we will go through the implementation using QMOD for the rainbow option presented in https://arxiv.org/pdf/2402.05574.pdf\n" + "\n", + "In this Notebook we will go through the implementation using QMOD for the rainbow option.\n", + "This Notebook role is to verify result of different metodology on a smal scale problem, as it grows exponentially in the gate count." ] }, { @@ -177,9 +179,6 @@ "source": [ "FRAC_PLACES = 1\n", "\n", - "#def round_factor(a):\n", - "# precision_factor = 2 ** (FRAC_PLACES)\n", - "# return round(a * precision_factor) / precision_factor\n", "def round_factor(a):\n", " precision_factor = 2 ** (FRAC_PLACES)\n", " return np.floor(a * precision_factor) / precision_factor\n", @@ -310,6 +309,14 @@ "## Brute-Force Amplitude Loading Method" ] }, + { + "cell_type": "markdown", + "id": "71345ed8", + "metadata": {}, + "source": [ + "This type of amplitude loading has an exponential scale, is therefore used as a \"sanity check\" method for validating result from the direct method and integration method that are part of the paper [[1]](#QALROP)" + ] + }, { "cell_type": "code", "execution_count": 8,