Skip to content

Commit

Permalink
typo catch
Browse files Browse the repository at this point in the history
  • Loading branch information
meandmytram committed Dec 18, 2024
1 parent decdc48 commit b1c2038
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions examples/decoding/quantum_surface.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,12 @@
}
],
"source": [
"constraints_sites = css_code_constraint_sites(code)\n",
"constraint_sites = css_code_constraint_sites(code)\n",
"print(\"Full X-check lists of sites:\")\n",
"for string in constraints_sites[0]:\n",
"for string in constraint_sites[0]:\n",
" print(string)\n",
"print(\"Full Z-check lists of sites:\")\n",
"for string in constraints_sites[1]:\n",
"for string in constraint_sites[1]:\n",
" print(string)"
]
},
Expand Down Expand Up @@ -381,7 +381,7 @@
"for i in [0, 1]:\n",
" error_mps, entrps, bnd_dims = apply_constraints(\n",
" error_mps,\n",
" constraints_sites[i],\n",
" constraint_sites[i],\n",
" constraints_tensors,\n",
" renormalise=renormalise,\n",
" result_to_explicit=result_to_explicit,\n",
Expand Down Expand Up @@ -609,7 +609,7 @@
" for i in [0, 1]:\n",
" error_mps = apply_constraints(\n",
" error_mps,\n",
" constraints_sites[i],\n",
" constraint_sites[i],\n",
" constraints_tensors,\n",
" renormalise=renormalise,\n",
" result_to_explicit=result_to_explicit,\n",
Expand Down
8 changes: 4 additions & 4 deletions examples/decoding/shor.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,12 @@
}
],
"source": [
"constraints_sites = css_code_constraint_sites(code)\n",
"constraint_sites = css_code_constraint_sites(code)\n",
"print(\"Full X-check lists of sites:\")\n",
"for string in constraints_sites[0]:\n",
"for string in constraint_sites[0]:\n",
" print(string)\n",
"print(\"Full Z-check lists of sites:\")\n",
"for string in constraints_sites[1]:\n",
"for string in constraint_sites[1]:\n",
" print(string)"
]
},
Expand Down Expand Up @@ -362,7 +362,7 @@
"for i in [0, 1]:\n",
" error_mps = apply_constraints(\n",
" error_mps,\n",
" constraints_sites[i],\n",
" constraint_sites[i],\n",
" constraints_tensors,\n",
" renormalise=renormalise,\n",
" result_to_explicit=result_to_explicit,\n",
Expand Down

0 comments on commit b1c2038

Please sign in to comment.