Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions applications/plasma/vlasov_ampere/vlasov_ampere.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@
"-1 & 0 & 1 & 0 & \\cdots & 0 \\\\\n",
"0 & -1 & 0 & 1 & \\cdots & 0 \\\\\n",
"\\vdots & \\ddots & \\ddots & \\ddots & \\ddots & \\vdots \\\\\n",
"0 & \\cdots & -1 & 0 & 1 & 0 \\\\\n",
"0 & \\cdots & 0 & -1 & 0 & 1 \\\\\n",
"0 & \\cdots & 0 & 1 & -4 & 3\n",
"\\end{pmatrix} = \n",
"\\frac{1}{2\\Delta x}\\begin{pmatrix}\n",
Expand All @@ -269,7 +269,7 @@
"\\vdots & & & \\vdots \\\\\n",
"\\vdots & & & \\vdots \\\\\n",
"0 & 0 & 0 & 0 & \\cdots & 0 \\\\\n",
"0 & 0 & 0 & 3 & -3 & 1\n",
"0 & 0 & 0 & 1 & -3 & 3\n",
"\\end{pmatrix}$$"
]
},
Expand Down Expand Up @@ -529,7 +529,7 @@
"id": "35",
"metadata": {},
"source": [
"In our setting $$\\partial_v f_0(v) E(x) = \\frac{v}{\\sqrt{2 \\pi}} \\exp \\left(- \\frac{v^2}{2 } \\right)$$ It is a column vector in the matrix, and to load it we have several options. One is to first load one of them ($v$ or $H(v))$ as a state, then use amplitude loading of the other one to create a block encoding of the multiplication. A second option that we use here is to directly prepare the state of the multiplication. The advantage is a better scaling factor. It can be performed as suggested [here](https://github.com/Classiq/classiq-library/blob/main/community/paper_implementation_project/quantum_state_preparation_without_coherent_arithmetic/stateprep_guassian_using_qsvt.ipynb) [[3](#QSVTPrep)] (though for this specific method there would still be a scaling factor issue). For simplicity we use here the general state preparation method (which is not scallable). \n",
"In our setting $$\\partial_v f_0(v) E(x) = \\frac{v}{\\sqrt{2 \\pi}} \\exp \\left(- \\frac{v^2}{2 } \\right)E(x)$$ It is a column vector in the matrix, and to load it we have several options. One is to first load one of them ($v$ or $H(v))$ as a state, then use amplitude loading of the other one to create a block encoding of the multiplication. A second option that we use here is to directly prepare the state of the multiplication. The advantage is a better scaling factor. It can be performed as suggested [here](https://github.com/Classiq/classiq-library/blob/main/community/paper_implementation_project/quantum_state_preparation_without_coherent_arithmetic/stateprep_guassian_using_qsvt.ipynb) [[3](#QSVTPrep)] (though for this specific method there would still be a scaling factor issue). For simplicity we use here the general state preparation method (which is not scallable). \n",
"\n",
"Finally, we zero the columns for which `v != 0`, beacuse we want only columns that encode the field $E$."
]
Expand Down
Loading