Skip to content

Commit

Permalink
update grover tutorial equation (#1293)
Browse files Browse the repository at this point in the history
  • Loading branch information
kt474 authored Jan 2, 2024
1 parent e57edb3 commit 9abe0c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorials/grover_with_sampler.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
"outputs": [],
"source": [
"optimal_num_iterations = math.floor(\n",
" math.pi / 4 * math.sqrt(2**grover_op.num_qubits / len(marked_states))\n",
" math.pi / (4 * math.asin(math.sqrt(len(marked_states) / 2**grover_op.num_qubits)))\n",
")"
]
},
Expand Down

0 comments on commit 9abe0c1

Please sign in to comment.