|
1203 | 1203 | "id": "8d63241a" |
1204 | 1204 | }, |
1205 | 1205 | "source": [ |
1206 | | - "In this notebook, we want to solve a Quantum Harmonic Oscillator consisting of a superposition of two states.\n", |
1207 | | - "Note: We will use atomic units unless specified: $\\hbar=m=e=1$. \n", |
| 1206 | + "Next, we want to solve a Quantum Harmonic Oscillator consisting of a superposition of two states. Note: We will use atomic units unless specified: $\\hbar=m=e=1$. \n", |
1208 | 1207 | "\n", |
1209 | 1208 | "The governing equation is time-dependent Schrödinger equation\n", |
1210 | 1209 | "\n", |
|
1315 | 1314 | "source": [ |
1316 | 1315 | "We will restrict our domain to $\\mathbf{x} \\in [-\\pi,\\pi], t \\in [0,T]$, with fixed boundary conditions $x_0, x_b = 0$ in this notebook. \n", |
1317 | 1316 | "\n", |
1318 | | - "After you go through the notebook, feel free to play with the code for other domains. Let's create some data using the function you just wrote." |
| 1317 | + "After you go through the notebook, feel free to play with the code for other domains. Let's create some data using the function we just wrote." |
1319 | 1318 | ] |
1320 | 1319 | }, |
1321 | 1320 | { |
|
1378 | 1377 | "id": "7668a65e", |
1379 | 1378 | "metadata": {}, |
1380 | 1379 | "source": [ |
1381 | | - "Here `delta_T` and `delta_X` are the grid spacing in our domain. Data will be generated on this grid. You cna move the slider to see how the probabilty density of the QHO evolves in time. Our system looks like this:\n" |
| 1380 | + "Here `delta_T` and `delta_X` are the grid spacing in our domain. Data will be generated on this grid. The probabilty density of the QHO evolves in time and our system looks like this:" |
1382 | 1381 | ] |
1383 | 1382 | }, |
1384 | 1383 | { |
|
2249 | 2248 | "id": "f15b1afe" |
2250 | 2249 | }, |
2251 | 2250 | "source": [ |
2252 | | - "___<span style=\"color:Violet\">Exercise</span>___: What will the loss terms look like in this case? Hint: Split the Schrodinger equation in real and imaginary parts to calculate the equation loss.\n", |
| 2251 | + "___<span style=\"color:Violet\">Exercise</span>___: What will the loss terms look like in this case? \n", |
| 2252 | + "\n", |
| 2253 | + "Hint: Split the Schrodinger equation in real and imaginary parts to calculate the equation loss.\n", |
2253 | 2254 | "\n", |
2254 | 2255 | "Solution: The time-dependent Schrödinger equation can be written as\n", |
2255 | 2256 | "\n", |
|
2565 | 2566 | "\n", |
2566 | 2567 | "Training time and accuracy both increase exponentially with collocation grid size.\n", |
2567 | 2568 | "\n", |
2568 | | - "<img src=\"https://raw.githubusercontent.com/GDS-Education-Community-of-Practice/DSECOP/main/Learning_the_Schrodinger_Equation/res/fig/pinn_colloc_time.png\" alt=\"Domain\" width=\"300\"/>\n", |
| 2569 | + "<img src=\"https://raw.githubusercontent.com/GDS-Education-Community-of-Practice/DSECOP/main/Learning_the_Schrodinger_Equation/res/fig/pinn_colloc_time.png\" alt=\"Domain\" width=\"400\"/>\n", |
2569 | 2570 | "\n", |
2570 | | - "<img src=\"https://raw.githubusercontent.com/GDS-Education-Community-of-Practice/DSECOP/main/Learning_the_Schrodinger_Equation/res/fig/pinn_colloc_performance.png\" alt=\"Domain\" width=\"300\"/>\n", |
| 2571 | + "<img src=\"https://raw.githubusercontent.com/GDS-Education-Community-of-Practice/DSECOP/main/Learning_the_Schrodinger_Equation/res/fig/pinn_colloc_performance.png\" alt=\"Domain\" width=\"400\"/>\n", |
2571 | 2572 | "\n", |
2572 | 2573 | "---\n" |
2573 | 2574 | ] |
|
2589 | 2590 | "source": [ |
2590 | 2591 | "We will now check the performance of NNs on systems with higher energy states. For demonstration, the system used is $\\psi_{1,3}(x,t)$. The analytic solution is implemented in the method below (I will leave it to you to derive it)\n", |
2591 | 2592 | "\n", |
2592 | | - "let's write some code to compute it for arbitrary values of $x,t,\\omega$" |
| 2593 | + "Let's write some code to compute it for arbitrary values of $x,t,\\omega$" |
2593 | 2594 | ] |
2594 | 2595 | }, |
2595 | 2596 | { |
|
0 commit comments