Skip to content

Commit

Permalink
Criado usando o Colab
Browse files Browse the repository at this point in the history
  • Loading branch information
fobos123deimos committed Nov 18, 2024
1 parent 94faac7 commit bff869d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/speed_tests_numba_and_cython.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,10 @@
"## Performance Comparison: Mr Mustard vs. Fast Wave for Single Fock & Multiple Position Wavefunctions\n",
"---\n",
"$$$$\n",
"**Explanation:** This analysis evaluates the computational efficiency of three approaches—Mr Mustard, Fast Wave (Numba), and Fast Wave (Cython)for calculating the squared amplitude $|\\psi_n(X_{m})|^2$ of a Single Fock & Multiple Position Wavefunction $\\psi_n(X_{m})$. The Single Fock & Multiple Position wavefunction, $\\psi_{i}(X)$, maps an array of position inputs $X_{m}$ to an array of corresponding outputs:\n",
"**Explanation:** This analysis evaluates the computational efficiency of three approaches—Mr Mustard, Fast Wave (Numba), and Fast Wave (Cython)for calculating the squared amplitude $|\\psi_n(X_{m})|^2$ of a Single Fock & Multiple Position Wavefunction $\\psi_n(X_{m})$. The Single Fock & Multiple Position wavefunction, $\\psi_{i}(X_{m})$, maps an array of position inputs $X_{m}$ to an array of corresponding outputs, this implies that:\n",
"\n",
"$$$$\n",
"$$[\\psi_{i}(x_{1}), \\psi_{i}(x_{2}), ..., \\psi_{i}(x_{m})]_{\\, m}$$\n",
"$$\\psi_{i}(X_{m}) = [\\psi_{i}(x_{1}), \\psi_{i}(x_{2}), ..., \\psi_{i}(x_{m})]_{\\, m}$$\n",
"$$$$\n",
"\n",
"Execution times for each method are plotted to facilitate comparison.\n",
Expand Down Expand Up @@ -267,14 +267,14 @@
"## Performance Comparison: Mr Mustard vs. Fast Wave for Multiple Fock & Multiple Position Wavefunctions\n",
"---\n",
"$$$$\n",
"**Explanation:** This analysis evaluates the computational efficiency of three approaches—Mr Mustard, Fast Wave (Numba), and Fast Wave (Cython)for calculating of a Multiple Fock & Multiple Position Wavefunction $\\psi_{\\,0\\rightarrow n}\\big(X_{m}\\big)$. The Single Fock & Multiple Position wavefunction, $\\psi_{\\,0\\rightarrow i}\\big(X_{m}\\big)$, maps an array of position inputs $X_{m}$ to an matrix of corresponding outputs:\n",
"**Explanation:** This analysis evaluates the computational efficiency of three approaches—Mr Mustard, Fast Wave (Numba), and Fast Wave (Cython)for calculating of a Multiple Fock & Multiple Position Wavefunction $\\psi_{\\,0\\rightarrow n}\\big(X_{m}\\big)$. The Single Fock & Multiple Position wavefunction, $\\psi_{\\,0\\rightarrow i}\\big(X_{m}\\big)$, maps an array of position inputs $X_{m}$ to an matrix of corresponding outputs, this implies that:\n",
"\n",
"$$$$\n",
"$$ \\begin{bmatrix}\n",
"$$ \\psi_{\\,0\\rightarrow i}\\big(X_{m}\\big) = \\begin{bmatrix}\n",
" \\psi_{0}(x_{1}) & \\cdots & \\psi_{0}(x_{m}) \\\\\n",
" \\vdots & \\ddots & \\vdots \\\\\n",
" \\psi_{n}(x_{1}) & \\cdots & \\psi_{n}(x_{m}) \\\\\n",
" \\end{bmatrix}_{(n+1) \\, \\times \\, m}$$\n",
" \\psi_{i}(x_{1}) & \\cdots & \\psi_{i}(x_{m}) \\\\\n",
" \\end{bmatrix}_{(i+1) \\, \\times \\, m}$$\n",
"$$$$\n",
"...\n",
"$$$$"
Expand Down

0 comments on commit bff869d

Please sign in to comment.