Skip to content

Commit

Permalink
Notebooks with documentation for BTC_02_AE
Browse files Browse the repository at this point in the history
  • Loading branch information
gonfeco committed Jan 16, 2024
1 parent f7db4d9 commit b3005a3
Show file tree
Hide file tree
Showing 5 changed files with 505 additions and 332 deletions.
18 changes: 14 additions & 4 deletions tnbs/BTC_01_PL/PL/notebooks/01_ProbabilityLoadingKernel.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"* Take a random uniform distribution with a particular mean, $\\tilde{\\mu}$ and standard deviation, $\\tilde{\\sigma}$, selected within the following ranges:\n",
" * $\\tilde{\\mu} \\in [-2, 2]$\n",
" * $\\tilde{\\sigma} \\in [0.1, 2]$\n",
"* So the normal \\textbf{PDF} is: $N_{\\tilde{\\mu},\\tilde{\\sigma}} (x)$ \n",
"* So the normal **PDF** is: $N_{\\tilde{\\mu},\\tilde{\\sigma}} (x)$ \n",
"* Set the number of qubits to $n$.\n",
"* Create an array of $2^n$ values: $\\mathbf{x}=\\{x_0, x_1, x_2, \\cdots, x_{2^n-1}\\}$ where\n",
" * $x_0$ such that $$\\int _{-\\infty} ^{x_0} N_{\\tilde{\\mu},\\tilde{\\sigma}}(x)dx = 0.05$$\n",
Expand Down Expand Up @@ -568,7 +568,9 @@
{
"cell_type": "markdown",
"id": "38bef876-ea3a-41e9-a1bc-ec0c527c5388",
"metadata": {},
"metadata": {
"jp-MarkdownHeadingCollapsed": true
},
"source": [
"## 05. Generating the JSON file.\n",
"\n",
Expand All @@ -590,13 +592,21 @@
"\n",
" bash benchmark_exe.sh"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "69e12ffb-e0dd-46ab-8b73-777026930673",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:tnbs2c] *",
"display_name": "Python [conda env:tnbs] *",
"language": "python",
"name": "conda-env-tnbs2c-py"
"name": "conda-env-tnbs-py"
},
"language_info": {
"codemirror_mode": {
Expand Down
2 changes: 1 addition & 1 deletion tnbs/BTC_01_PL/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ If you want a complete execution and create the complete **JSON** file with the
All the results files and the corresponding JSON will be stored in the **Results** folder.


For more information about the code impelementation, please refer to the jupyter notebooks inside the folder **PL/notebooks**
For more information about the code implementation, please refer to the jupyter notebooks inside the folder **PL/notebooks**
Loading

0 comments on commit b3005a3

Please sign in to comment.