Skip to content

Commit

Permalink
fix notebook failure
Browse files Browse the repository at this point in the history
  • Loading branch information
balopat committed May 10, 2021
1 parent bd02fb6 commit 8825c07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/tutorials/shor.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@
},
"outputs": [],
"source": [
"def process_measurement(result: cirq.TrialResult, x: int, n: int) -> Optional[int]:\n",
"def process_measurement(result: cirq.Result, x: int, n: int) -> Optional[int]:\n",
" \"\"\"Interprets the output of the order finding circuit.\n",
"\n",
" Specifically, it determines s/r such that exp(2πis/r) is an eigenvalue\n",
Expand All @@ -808,7 +808,7 @@
" then computes r (by continued fractions) if possible, and returns it.\n",
"\n",
" Args:\n",
" result: trial result obtained by sampling the output of the\n",
" result: result obtained by sampling the output of the\n",
" circuit built by make_order_finding_circuit\n",
"\n",
" Returns:\n",
Expand Down Expand Up @@ -1106,4 +1106,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}

0 comments on commit 8825c07

Please sign in to comment.