Skip to content

Commit

Permalink
Update part5_grover.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
vivanwin authored and TomerGoldfriend committed May 6, 2024
1 parent 9694d5a commit c67564b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tutorials/getting_started/part5_grover.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@
"\n",
"Create it in multiple steps:\n",
"\n",
"1. Create a new `qfunc` called `my_grover_search(a: QInt, b: QInt)`\n",
"1. Create a new `qfunc` called `my_grover_search(a: QNum, b: QNum)`\n",
"2. Add the `my_oracle()` and `my_diffuser()` to the new function\n",
"3. In the main function, add a `repeat()` that will call the newly created function 2 times\n",
"4. validate everything works by executing the algorithm again in the IDE\n"
Expand All @@ -314,8 +314,8 @@
"source": [
"@qfunc\n",
"def main(\n",
" # a: Output[QInt],\n",
" # b: Output[QInt]\n",
" # a: Output[QNum],\n",
" # b: Output[QNum]\n",
"):\n",
" # Your code here\n",
" pass\n",
Expand Down Expand Up @@ -397,8 +397,8 @@
"Apply an operation to each qubit in an array\n",
"- ```\n",
" repeat(\n",
" count= QParam[int],\n",
" iteration= QCallable[QParam[int]],\n",
" count= CInt,\n",
" iteration= QCallable[CInt],\n",
" )\n",
" ```"
]
Expand Down

0 comments on commit c67564b

Please sign in to comment.