Skip to content

Commit c26cc41

Browse files
committed
updates
1 parent 13ef710 commit c26cc41

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

_sources/lectures/LearningTheSchrodingerEquation.ipynb

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -999,6 +999,37 @@
999999
"wavefunction_plotter(V, params, x_min, x_max, N, n_state, true_wavefunction_fn=true_wavefunction_fn, true_energy_fn=true_energy_fn, sys_name=sys_name)"
10001000
]
10011001
},
1002+
{
1003+
"cell_type": "code",
1004+
"execution_count": null,
1005+
"id": "d1d078fa",
1006+
"metadata": {},
1007+
"outputs": [
1008+
{
1009+
"data": {
1010+
"application/vnd.jupyter.widget-view+json": {
1011+
"model_id": "18b7ac49027349009f9ba5eb8f82ce8f",
1012+
"version_major": 2,
1013+
"version_minor": 0
1014+
},
1015+
"text/plain": [
1016+
"interactive(children=(IntSlider(value=0, continuous_update=False, description='state_n:', max=10), Output()), …"
1017+
]
1018+
},
1019+
"metadata": {},
1020+
"output_type": "display_data"
1021+
}
1022+
],
1023+
"source": [
1024+
"state_n_slider = widgets.IntSlider( value=0, min=0, max=10, step=1, description='state_n:', continuous_update=False)\n",
1025+
"\n",
1026+
"def interactive_wavefunction_plotter(state_n):\n",
1027+
" wavefunction_plotter(V, params, x_min, x_max, N, state_n, true_wavefunction_fn, true_energy_fn, sys_name)\n",
1028+
"\n",
1029+
"interactive_plot = widgets.interactive(interactive_wavefunction_plotter, state_n=state_n_slider)\n",
1030+
"display(interactive_plot)"
1031+
]
1032+
},
10021033
{
10031034
"cell_type": "markdown",
10041035
"id": "170366c5",

0 commit comments

Comments
 (0)