Skip to content

Commit

Permalink
update contributing, add BV algo to algorithms.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
dakk committed Jul 6, 2024
1 parent 2fc84f2 commit 4bd8aa5
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ make html


```bash
rm -r dist/*
python -m build
python -m twine upload dist/*
```
34 changes: 32 additions & 2 deletions docs/source/algorithms.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"\n",
"- Grover search\n",
"- Simon periodicity\n",
"- Deutsch Jozsa"
"- Deutsch Jozsa\n",
"- Bernstein Vazirani"
]
},
{
Expand Down Expand Up @@ -121,7 +122,7 @@
"- [example_grover_subset.ipynb]()\n",
"- [example_grover_hash.ipynb]()\n",
"- [example_grover_sudoku.ipynb]()\n",
"- [example_grover_factorize.ipynb]()\n"
"- [example_grover_factors.ipynb]()\n"
]
},
{
Expand Down Expand Up @@ -191,6 +192,35 @@
"\n",
"- [example_deutsch_jozsa.ipynb]()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Bernstein Vazirani"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"from qlasskit.algorithms import BernsteinVazirani, secret_oracle\n",
"\n",
"oracle = secret_oracle(4, 14)\n",
"\n",
"q_algo = BernsteinVazirani(oracle)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Further examples can be found on the following notebooks:\n",
"\n",
"- [example_bernstein_vazirani.ipynb]()"
]
}
],
"metadata": {
Expand Down

0 comments on commit 4bd8aa5

Please sign in to comment.