Skip to content

Commit

Permalink
clear up notenooks
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoRenaud committed Dec 1, 2023
1 parent 327e07e commit 2f4c361
Show file tree
Hide file tree
Showing 9 changed files with 102 additions and 1,490 deletions.
57 changes: 4 additions & 53 deletions docs/notebooks/combining_jastrow.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,9 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"INFO:QMCTorch|\n",
"INFO:QMCTorch| SCF Calculation\n",
"INFO:QMCTorch| Removing H2_pyscf_sto-3g.hdf5 and redo SCF calculations\n",
"INFO:QMCTorch| Running scf calculation\n",
"converged SCF energy = -1.06599946214331\n",
"INFO:QMCTorch| Molecule name : H2\n",
"INFO:QMCTorch| Number of electrons : 2\n",
"INFO:QMCTorch| SCF calculator : pyscf\n",
"INFO:QMCTorch| Basis set : sto-3g\n",
"INFO:QMCTorch| SCF : HF\n",
"INFO:QMCTorch| Number of AOs : 2\n",
"INFO:QMCTorch| Number of MOs : 2\n",
"INFO:QMCTorch| SCF Energy : -1.066 Hartree\n"
]
}
],
"outputs": [],
"source": [
"from qmctorch.scf import Molecule\n",
"from qmctorch.wavefunction import SlaterJastrow\n",
Expand Down Expand Up @@ -111,38 +91,9 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"INFO:QMCTorch|\n",
"INFO:QMCTorch| SCF Calculation\n",
"INFO:QMCTorch| Running scf calculation\n",
"converged SCF energy = -1.06599946214331\n",
"INFO:QMCTorch| Molecule name : H2\n",
"INFO:QMCTorch| Number of electrons : 2\n",
"INFO:QMCTorch| SCF calculator : pyscf\n",
"INFO:QMCTorch| Basis set : sto-3g\n",
"INFO:QMCTorch| SCF : HF\n",
"INFO:QMCTorch| Number of AOs : 2\n",
"INFO:QMCTorch| Number of MOs : 2\n",
"INFO:QMCTorch| SCF Energy : -1.066 Hartree\n",
"INFO:QMCTorch|\n",
"INFO:QMCTorch| Wave Function\n",
"INFO:QMCTorch| Jastrow factor : True\n",
"INFO:QMCTorch| Jastrow kernel : MyJastrow\n",
"INFO:QMCTorch| Highest MO included : 2\n",
"INFO:QMCTorch| Configurations : ground_state\n",
"INFO:QMCTorch| Number of confs : 1\n",
"INFO:QMCTorch| Kinetic energy : jacobi\n",
"INFO:QMCTorch| Number var param : 145\n",
"INFO:QMCTorch| Cuda support : False\n"
]
}
],
"outputs": [],
"source": [
"wf = SlaterJastrow(mol, jastrow=[jastrow_ee, jastrow_en])"
]
Expand Down
158 changes: 17 additions & 141 deletions docs/notebooks/correlation.ipynb

Large diffs are not rendered by default.

67 changes: 7 additions & 60 deletions docs/notebooks/create_backflow.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,9 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"INFO:QMCTorch|\n",
"INFO:QMCTorch| SCF Calculation\n",
"INFO:QMCTorch| Running scf calculation\n",
"converged SCF energy = -1.06599946214331\n",
"INFO:QMCTorch| Molecule name : H2\n",
"INFO:QMCTorch| Number of electrons : 2\n",
"INFO:QMCTorch| SCF calculator : pyscf\n",
"INFO:QMCTorch| Basis set : sto-3g\n",
"INFO:QMCTorch| SCF : HF\n",
"INFO:QMCTorch| Number of AOs : 2\n",
"INFO:QMCTorch| Number of MOs : 2\n",
"INFO:QMCTorch| SCF Energy : -1.066 Hartree\n"
]
}
],
"outputs": [],
"source": [
"import torch\n",
"from qmctorch.scf import Molecule\n",
Expand All @@ -56,7 +37,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -100,52 +81,18 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"INFO:QMCTorch|\n",
"INFO:QMCTorch| Wave Function\n",
"INFO:QMCTorch| Jastrow factor : True\n",
"INFO:QMCTorch| Jastrow kernel : PadeJastrowKernel\n",
"INFO:QMCTorch| Highest MO included : 2\n",
"INFO:QMCTorch| Configurations : ground_state\n",
"INFO:QMCTorch| Number of confs : 1\n",
"INFO:QMCTorch| Kinetic energy : jacobi\n",
"INFO:QMCTorch| Number var param : 146\n",
"INFO:QMCTorch| Cuda support : False\n"
]
}
],
"outputs": [],
"source": [
"wf = SlaterJastrow(mol, backflow=backflow)"
]
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"tensor([[0.1134],\n",
" [0.1509],\n",
" [0.1096],\n",
" [0.1093],\n",
" [0.2632],\n",
" [0.1523],\n",
" [0.1253],\n",
" [0.1424],\n",
" [0.1324],\n",
" [0.0665]], grad_fn=<MulBackward0>)\n"
]
}
],
"outputs": [],
"source": [
"pos = torch.rand(10, wf.nelec*3)\n",
"print(wf(pos))"
Expand Down
7 changes: 0 additions & 7 deletions docs/notebooks/create_jastrow.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,6 @@
"source": [
"wf = SlaterJastrow(mol, jastrow=jastrow)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
Loading

0 comments on commit 2f4c361

Please sign in to comment.