Skip to content

Commit

Permalink
deploy: 7e544ab
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsung committed Oct 26, 2023
1 parent 6a2c8f1 commit 5183b4f
Show file tree
Hide file tree
Showing 30 changed files with 549 additions and 548 deletions.
Binary file modified .doctrees/api/ffsim.doctree
Binary file not shown.
Binary file modified .doctrees/environment.pickle
Binary file not shown.
24 changes: 12 additions & 12 deletions .doctrees/nbsphinx/tutorials/01-introduction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
"execution_count": 1,
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-25T22:49:45.728598Z",
"iopub.status.busy": "2023-10-25T22:49:45.728154Z",
"iopub.status.idle": "2023-10-25T22:49:46.110527Z",
"shell.execute_reply": "2023-10-25T22:49:46.109715Z"
"iopub.execute_input": "2023-10-26T02:07:48.438642Z",
"iopub.status.busy": "2023-10-26T02:07:48.438372Z",
"iopub.status.idle": "2023-10-26T02:07:48.803616Z",
"shell.execute_reply": "2023-10-26T02:07:48.802850Z"
}
},
"outputs": [],
Expand Down Expand Up @@ -62,10 +62,10 @@
"execution_count": 2,
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-25T22:49:46.115961Z",
"iopub.status.busy": "2023-10-25T22:49:46.114597Z",
"iopub.status.idle": "2023-10-25T22:49:46.120985Z",
"shell.execute_reply": "2023-10-25T22:49:46.120363Z"
"iopub.execute_input": "2023-10-26T02:07:48.808117Z",
"iopub.status.busy": "2023-10-26T02:07:48.807767Z",
"iopub.status.idle": "2023-10-26T02:07:48.813016Z",
"shell.execute_reply": "2023-10-26T02:07:48.812442Z"
}
},
"outputs": [],
Expand Down Expand Up @@ -93,10 +93,10 @@
"execution_count": 3,
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-25T22:49:46.125500Z",
"iopub.status.busy": "2023-10-25T22:49:46.124419Z",
"iopub.status.idle": "2023-10-25T22:49:46.129349Z",
"shell.execute_reply": "2023-10-25T22:49:46.128546Z"
"iopub.execute_input": "2023-10-26T02:07:48.816542Z",
"iopub.status.busy": "2023-10-26T02:07:48.816279Z",
"iopub.status.idle": "2023-10-26T02:07:48.820531Z",
"shell.execute_reply": "2023-10-26T02:07:48.819938Z"
}
},
"outputs": [],
Expand Down
32 changes: 16 additions & 16 deletions .doctrees/nbsphinx/tutorials/02-orbital-rotation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
"execution_count": 1,
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-25T22:49:48.191448Z",
"iopub.status.busy": "2023-10-25T22:49:48.191046Z",
"iopub.status.idle": "2023-10-25T22:49:48.607593Z",
"shell.execute_reply": "2023-10-25T22:49:48.606670Z"
"iopub.execute_input": "2023-10-26T02:07:50.556417Z",
"iopub.status.busy": "2023-10-26T02:07:50.555974Z",
"iopub.status.idle": "2023-10-26T02:07:50.909017Z",
"shell.execute_reply": "2023-10-26T02:07:50.908336Z"
}
},
"outputs": [],
Expand Down Expand Up @@ -111,10 +111,10 @@
"execution_count": 2,
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-25T22:49:48.612660Z",
"iopub.status.busy": "2023-10-25T22:49:48.611183Z",
"iopub.status.idle": "2023-10-25T22:49:48.690073Z",
"shell.execute_reply": "2023-10-25T22:49:48.689235Z"
"iopub.execute_input": "2023-10-26T02:07:50.913648Z",
"iopub.status.busy": "2023-10-26T02:07:50.913132Z",
"iopub.status.idle": "2023-10-26T02:07:50.943215Z",
"shell.execute_reply": "2023-10-26T02:07:50.942611Z"
}
},
"outputs": [],
Expand Down Expand Up @@ -158,10 +158,10 @@
"execution_count": 3,
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-25T22:49:48.695786Z",
"iopub.status.busy": "2023-10-25T22:49:48.694689Z",
"iopub.status.idle": "2023-10-25T22:49:48.709764Z",
"shell.execute_reply": "2023-10-25T22:49:48.709040Z"
"iopub.execute_input": "2023-10-26T02:07:50.947280Z",
"iopub.status.busy": "2023-10-26T02:07:50.946127Z",
"iopub.status.idle": "2023-10-26T02:07:50.958957Z",
"shell.execute_reply": "2023-10-26T02:07:50.958357Z"
}
},
"outputs": [],
Expand Down Expand Up @@ -201,10 +201,10 @@
"execution_count": 4,
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-25T22:49:48.714702Z",
"iopub.status.busy": "2023-10-25T22:49:48.713656Z",
"iopub.status.idle": "2023-10-25T22:49:48.720156Z",
"shell.execute_reply": "2023-10-25T22:49:48.719563Z"
"iopub.execute_input": "2023-10-26T02:07:50.963316Z",
"iopub.status.busy": "2023-10-26T02:07:50.962221Z",
"iopub.status.idle": "2023-10-26T02:07:50.968679Z",
"shell.execute_reply": "2023-10-26T02:07:50.968142Z"
}
},
"outputs": [],
Expand Down
133 changes: 65 additions & 68 deletions .doctrees/nbsphinx/tutorials/03-double-factorized.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
"execution_count": 1,
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-25T22:49:50.631452Z",
"iopub.status.busy": "2023-10-25T22:49:50.630936Z",
"iopub.status.idle": "2023-10-25T22:49:51.083516Z",
"shell.execute_reply": "2023-10-25T22:49:51.082556Z"
"iopub.execute_input": "2023-10-26T02:07:52.818189Z",
"iopub.status.busy": "2023-10-26T02:07:52.817955Z",
"iopub.status.idle": "2023-10-26T02:07:53.260463Z",
"shell.execute_reply": "2023-10-26T02:07:53.259837Z"
}
},
"outputs": [
Expand Down Expand Up @@ -92,10 +92,10 @@
"execution_count": 2,
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-25T22:49:51.087434Z",
"iopub.status.busy": "2023-10-25T22:49:51.086734Z",
"iopub.status.idle": "2023-10-25T22:49:51.094705Z",
"shell.execute_reply": "2023-10-25T22:49:51.093973Z"
"iopub.execute_input": "2023-10-26T02:07:53.264180Z",
"iopub.status.busy": "2023-10-26T02:07:53.263406Z",
"iopub.status.idle": "2023-10-26T02:07:53.270510Z",
"shell.execute_reply": "2023-10-26T02:07:53.269965Z"
}
},
"outputs": [
Expand All @@ -106,28 +106,28 @@
"Original representation\n",
"-----------------------\n",
"One-body tensor:\n",
"[[-8.27478830e-01 -1.09243819e-16]\n",
" [-7.48351655e-17 -6.77238770e-01]]\n",
"[[-8.27478830e-01 -8.52909490e-17]\n",
" [-5.57029092e-17 -6.77238770e-01]]\n",
"\n",
"Two-body tensor:\n",
"[[[[ 5.23173938e-01 -5.00678144e-19]\n",
" [-5.00678144e-19 5.33545754e-01]]\n",
"[[[[5.23173938e-01 3.58782168e-17]\n",
" [3.58782168e-17 5.33545754e-01]]\n",
"\n",
" [[ 5.85364508e-18 2.48240570e-01]\n",
" [ 2.48240570e-01 -1.17688164e-17]]]\n",
" [[2.49859013e-17 2.48240570e-01]\n",
" [2.48240570e-01 4.83067333e-17]]]\n",
"\n",
"\n",
" [[[ 5.85364508e-18 2.48240570e-01]\n",
" [ 2.48240570e-01 -1.17688164e-17]]\n",
" [[[2.49859013e-17 2.48240570e-01]\n",
" [2.48240570e-01 4.83067333e-17]]\n",
"\n",
" [[ 5.33545754e-01 1.05429868e-17]\n",
" [ 1.05429868e-17 5.53132024e-01]]]]\n",
" [[5.33545754e-01 4.01841799e-17]\n",
" [4.01841799e-17 5.53132024e-01]]]]\n",
"\n",
"Double-factorized representation\n",
"--------------------------------\n",
"One-body tensor:\n",
"[[-1.21318608e+00 -1.03109072e-16]\n",
" [-8.30334814e-17 -1.07792507e+00]]\n",
"[[-1.21318608e+00 -1.27383424e-16]\n",
" [-8.82879498e-17 -1.07792507e+00]]\n",
"\n",
"Diagonal Coulomb matrices:\n",
"[[[ 5.14653029e-01 5.33545754e-01]\n",
Expand All @@ -136,18 +136,18 @@
" [[ 2.48240570e-01 -2.48240570e-01]\n",
" [-2.48240570e-01 2.48240570e-01]]\n",
"\n",
" [[ 1.44655364e-30 -1.11022302e-16]\n",
" [-1.11022302e-16 8.52090881e-03]]]\n",
" [[ 2.27521846e-62 -1.39236953e-32]\n",
" [-1.39236953e-32 8.52090881e-03]]]\n",
"\n",
"Orbital rotations:\n",
"[[[ 1.00000000e+00 0.00000000e+00]\n",
" [ 0.00000000e+00 1.00000000e+00]]\n",
"\n",
" [[-7.07106781e-01 7.07106781e-01]\n",
" [ 7.07106781e-01 7.07106781e-01]]\n",
" [[-7.07106781e-01 -7.07106781e-01]\n",
" [ 7.07106781e-01 -7.07106781e-01]]\n",
"\n",
" [[ 7.45733039e-16 -1.00000000e+00]\n",
" [-1.00000000e+00 -7.45733039e-16]]]\n"
" [[-1.27830444e-15 -1.00000000e+00]\n",
" [-1.00000000e+00 1.27830444e-15]]]\n"
]
}
],
Expand Down Expand Up @@ -226,10 +226,10 @@
"execution_count": 3,
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-25T22:49:51.097615Z",
"iopub.status.busy": "2023-10-25T22:49:51.097224Z",
"iopub.status.idle": "2023-10-25T22:49:51.103382Z",
"shell.execute_reply": "2023-10-25T22:49:51.102656Z"
"iopub.execute_input": "2023-10-26T02:07:53.273496Z",
"iopub.status.busy": "2023-10-26T02:07:53.273047Z",
"iopub.status.idle": "2023-10-26T02:07:53.278381Z",
"shell.execute_reply": "2023-10-26T02:07:53.277882Z"
}
},
"outputs": [],
Expand Down Expand Up @@ -284,10 +284,10 @@
"execution_count": 4,
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-25T22:49:51.106760Z",
"iopub.status.busy": "2023-10-25T22:49:51.106190Z",
"iopub.status.idle": "2023-10-25T22:49:51.111174Z",
"shell.execute_reply": "2023-10-25T22:49:51.110496Z"
"iopub.execute_input": "2023-10-26T02:07:53.281185Z",
"iopub.status.busy": "2023-10-26T02:07:53.280756Z",
"iopub.status.idle": "2023-10-26T02:07:53.284978Z",
"shell.execute_reply": "2023-10-26T02:07:53.284487Z"
}
},
"outputs": [],
Expand Down Expand Up @@ -324,27 +324,24 @@
"execution_count": 5,
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-25T22:49:51.115052Z",
"iopub.status.busy": "2023-10-25T22:49:51.114792Z",
"iopub.status.idle": "2023-10-25T22:49:51.121182Z",
"shell.execute_reply": "2023-10-25T22:49:51.120373Z"
"iopub.execute_input": "2023-10-26T02:07:53.388945Z",
"iopub.status.busy": "2023-10-26T02:07:53.388090Z",
"iopub.status.idle": "2023-10-26T02:07:53.396526Z",
"shell.execute_reply": "2023-10-26T02:07:53.395944Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Hartree Fock energy: -0.837796382593709\n"
"Hartree Fock energy: -0.8377963825937084\n"
]
}
],
"source": [
"# Construct the Hartree-Fock state\n",
"n_alpha, n_beta = nelec\n",
"initial_state = ffsim.slater_determinant(\n",
" norb=norb, occupied_orbitals=(range(n_alpha), range(n_beta))\n",
")\n",
"initial_state = ffsim.hartree_fock_state(norb, nelec)\n",
"\n",
"# Get the Hamiltonian as a LinearOperator\n",
"hamiltonian = ffsim.linear_operator(mol_hamiltonian, norb=norb, nelec=nelec)\n",
Expand All @@ -366,18 +363,18 @@
"execution_count": 6,
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-25T22:49:51.125523Z",
"iopub.status.busy": "2023-10-25T22:49:51.124134Z",
"iopub.status.idle": "2023-10-25T22:49:51.137942Z",
"shell.execute_reply": "2023-10-25T22:49:51.137232Z"
"iopub.execute_input": "2023-10-26T02:07:53.399568Z",
"iopub.status.busy": "2023-10-26T02:07:53.398866Z",
"iopub.status.idle": "2023-10-26T02:07:53.409638Z",
"shell.execute_reply": "2023-10-26T02:07:53.408966Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Fidelity of evolved state w.r.t. initial state: 0.9696296369955065\n"
"Fidelity of evolved state w.r.t. initial state: 0.9696296369955066\n"
]
}
],
Expand Down Expand Up @@ -408,18 +405,18 @@
"execution_count": 7,
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-25T22:49:51.143052Z",
"iopub.status.busy": "2023-10-25T22:49:51.142490Z",
"iopub.status.idle": "2023-10-25T22:49:51.155779Z",
"shell.execute_reply": "2023-10-25T22:49:51.155041Z"
"iopub.execute_input": "2023-10-26T02:07:53.412511Z",
"iopub.status.busy": "2023-10-26T02:07:53.412280Z",
"iopub.status.idle": "2023-10-26T02:07:53.421504Z",
"shell.execute_reply": "2023-10-26T02:07:53.420828Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Fidelity of Trotter-evolved state with exact state: 0.9990275744083491\n"
"Fidelity of Trotter-evolved state with exact state: 0.9990275744083494\n"
]
}
],
Expand Down Expand Up @@ -449,18 +446,18 @@
"execution_count": 8,
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-25T22:49:51.160933Z",
"iopub.status.busy": "2023-10-25T22:49:51.159642Z",
"iopub.status.idle": "2023-10-25T22:49:51.211316Z",
"shell.execute_reply": "2023-10-25T22:49:51.210559Z"
"iopub.execute_input": "2023-10-26T02:07:53.425218Z",
"iopub.status.busy": "2023-10-26T02:07:53.424981Z",
"iopub.status.idle": "2023-10-26T02:07:53.477780Z",
"shell.execute_reply": "2023-10-26T02:07:53.476929Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Fidelity of Trotter-evolved state with exact state: 0.999990623310968\n"
"Fidelity of Trotter-evolved state with exact state: 0.9999906233109686\n"
]
}
],
Expand Down Expand Up @@ -492,18 +489,18 @@
"execution_count": 9,
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-25T22:49:51.215690Z",
"iopub.status.busy": "2023-10-25T22:49:51.214603Z",
"iopub.status.idle": "2023-10-25T22:49:51.254790Z",
"shell.execute_reply": "2023-10-25T22:49:51.254051Z"
"iopub.execute_input": "2023-10-26T02:07:53.480932Z",
"iopub.status.busy": "2023-10-26T02:07:53.480683Z",
"iopub.status.idle": "2023-10-26T02:07:53.519491Z",
"shell.execute_reply": "2023-10-26T02:07:53.518584Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Fidelity of Trotter-evolved state with exact state: 0.999990623310968\n"
"Fidelity of Trotter-evolved state with exact state: 0.9999906233109686\n"
]
}
],
Expand Down Expand Up @@ -534,18 +531,18 @@
"execution_count": 10,
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-25T22:49:51.259870Z",
"iopub.status.busy": "2023-10-25T22:49:51.258672Z",
"iopub.status.idle": "2023-10-25T22:49:51.277545Z",
"shell.execute_reply": "2023-10-25T22:49:51.276466Z"
"iopub.execute_input": "2023-10-26T02:07:53.522606Z",
"iopub.status.busy": "2023-10-26T02:07:53.522360Z",
"iopub.status.idle": "2023-10-26T02:07:53.540773Z",
"shell.execute_reply": "2023-10-26T02:07:53.540197Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Fidelity of Trotter-evolved state with exact state: 0.9999999336740071\n"
"Fidelity of Trotter-evolved state with exact state: 0.9999999336740067\n"
]
}
],
Expand Down
Loading

0 comments on commit 5183b4f

Please sign in to comment.