Skip to content

Commit

Permalink
Fixed typo in toric code documentation (#53)
Browse files Browse the repository at this point in the history
actual_logical_flipped is determined by noise, not by the prediction. Fixed this one line in the documentation.
  • Loading branch information
quantumcharleshill committed Jan 10, 2023
1 parent 44819d2 commit 97e0d0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/toric-code-example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
"The actual logicals that were flipped are:\n",
"\n",
"```\n",
"actual_logicals_flipped = logicals@prediction % 2\n",
"actual_logicals_flipped = logicals@noise % 2\n",
"```\n",
"\n",
"Our decoder was successful if `actual_logical_observables` equals `predicted_logical_observables`.\n",
Expand Down

0 comments on commit 97e0d0a

Please sign in to comment.