Skip to content

Commit

Permalink
apply feedback from reviewer
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomoRanieri authored and orsa-classiq committed Jun 24, 2024
1 parent 96cf669 commit c4d83a3
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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."
]
},
{
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit c4d83a3

Please sign in to comment.