Skip to content

Commit

Permalink
deploy: 4e2961f
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsung committed Apr 24, 2024
1 parent 7954f54 commit facd575
Show file tree
Hide file tree
Showing 31 changed files with 569 additions and 531 deletions.
Binary file modified .doctrees/environment.pickle
Binary file not shown.
Binary file modified .doctrees/explanations/hamiltonians.doctree
Binary file not shown.
Binary file modified .doctrees/explanations/orbital-rotation.doctree
Binary file not shown.
Binary file modified .doctrees/how-to-guides/entanglement-forging.doctree
Binary file not shown.
Binary file modified .doctrees/how-to-guides/fermion-operator.doctree
Binary file not shown.
Binary file modified .doctrees/how-to-guides/lucj.doctree
Binary file not shown.
64 changes: 34 additions & 30 deletions .doctrees/nbsphinx/explanations/hamiltonians.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"\n",
"This page explains how ffsim represents Hamiltonians.\n",
"\n",
"## Data representation\n",
"\n",
"ffsim includes several classes for representing Hamiltonians in different forms. In this page we'll focus on the molecular Hamiltonian of the form\n",
"\n",
"$$\n",
Expand All @@ -31,10 +33,10 @@
"execution_count": 1,
"metadata": {
"execution": {
"iopub.execute_input": "2024-04-24T06:38:10.418968Z",
"iopub.status.busy": "2024-04-24T06:38:10.418534Z",
"iopub.status.idle": "2024-04-24T06:38:11.111911Z",
"shell.execute_reply": "2024-04-24T06:38:11.111248Z"
"iopub.execute_input": "2024-04-24T07:11:33.963543Z",
"iopub.status.busy": "2024-04-24T07:11:33.963092Z",
"iopub.status.idle": "2024-04-24T07:11:34.576995Z",
"shell.execute_reply": "2024-04-24T07:11:34.576483Z"
}
},
"outputs": [],
Expand Down Expand Up @@ -66,10 +68,10 @@
"execution_count": 2,
"metadata": {
"execution": {
"iopub.execute_input": "2024-04-24T06:38:11.115073Z",
"iopub.status.busy": "2024-04-24T06:38:11.114598Z",
"iopub.status.idle": "2024-04-24T06:38:11.117604Z",
"shell.execute_reply": "2024-04-24T06:38:11.117129Z"
"iopub.execute_input": "2024-04-24T07:11:34.579833Z",
"iopub.status.busy": "2024-04-24T07:11:34.579366Z",
"iopub.status.idle": "2024-04-24T07:11:34.582338Z",
"shell.execute_reply": "2024-04-24T07:11:34.581878Z"
}
},
"outputs": [],
Expand All @@ -87,6 +89,8 @@
"source": [
"The arguments passed to the initialization are now available as attributes of the same name, i.e., `mol_hamiltonian.one_body_tensor` accesses the one-body tensor.\n",
"\n",
"## Operator action via SciPy LinearOperators\n",
"\n",
"The basic operation that a Hamiltonian represention should support is applying its action, as a linear operator, to a vector. This basic operation can be used to implement more complex ones, such as operator exponentiation and eigenvalue computation. ffsim uses Scipy's [LinearOperator](https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.linalg.LinearOperator.html) class to support these operations for Hamiltonians. To obtain a LinearOperator, call the `linear_operator` function:"
]
},
Expand All @@ -95,10 +99,10 @@
"execution_count": 3,
"metadata": {
"execution": {
"iopub.execute_input": "2024-04-24T06:38:11.119835Z",
"iopub.status.busy": "2024-04-24T06:38:11.119490Z",
"iopub.status.idle": "2024-04-24T06:38:11.123008Z",
"shell.execute_reply": "2024-04-24T06:38:11.122518Z"
"iopub.execute_input": "2024-04-24T07:11:34.584820Z",
"iopub.status.busy": "2024-04-24T07:11:34.584391Z",
"iopub.status.idle": "2024-04-24T07:11:34.587820Z",
"shell.execute_reply": "2024-04-24T07:11:34.587248Z"
}
},
"outputs": [],
Expand All @@ -123,10 +127,10 @@
"execution_count": 4,
"metadata": {
"execution": {
"iopub.execute_input": "2024-04-24T06:38:11.125574Z",
"iopub.status.busy": "2024-04-24T06:38:11.125084Z",
"iopub.status.idle": "2024-04-24T06:38:11.129540Z",
"shell.execute_reply": "2024-04-24T06:38:11.129004Z"
"iopub.execute_input": "2024-04-24T07:11:34.590114Z",
"iopub.status.busy": "2024-04-24T07:11:34.589754Z",
"iopub.status.idle": "2024-04-24T07:11:34.594821Z",
"shell.execute_reply": "2024-04-24T07:11:34.594265Z"
}
},
"outputs": [],
Expand All @@ -148,17 +152,17 @@
"execution_count": 5,
"metadata": {
"execution": {
"iopub.execute_input": "2024-04-24T06:38:11.133077Z",
"iopub.status.busy": "2024-04-24T06:38:11.132085Z",
"iopub.status.idle": "2024-04-24T06:38:11.165046Z",
"shell.execute_reply": "2024-04-24T06:38:11.164382Z"
"iopub.execute_input": "2024-04-24T07:11:34.598448Z",
"iopub.status.busy": "2024-04-24T07:11:34.597309Z",
"iopub.status.idle": "2024-04-24T07:11:34.629873Z",
"shell.execute_reply": "2024-04-24T07:11:34.629242Z"
}
},
"outputs": [
{
"data": {
"text/plain": [
"-99.5571707255153"
"-99.5571707255155"
]
},
"execution_count": 5,
Expand Down Expand Up @@ -187,18 +191,18 @@
"execution_count": 6,
"metadata": {
"execution": {
"iopub.execute_input": "2024-04-24T06:38:11.201768Z",
"iopub.status.busy": "2024-04-24T06:38:11.201332Z",
"iopub.status.idle": "2024-04-24T06:38:12.012056Z",
"shell.execute_reply": "2024-04-24T06:38:12.011403Z"
"iopub.execute_input": "2024-04-24T07:11:34.662981Z",
"iopub.status.busy": "2024-04-24T07:11:34.662594Z",
"iopub.status.idle": "2024-04-24T07:11:35.401883Z",
"shell.execute_reply": "2024-04-24T07:11:35.401266Z"
}
},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/tmp/ipykernel_4365/2190712273.py:2: UserWarning: Trace of LinearOperator not available, it will be estimated. Provide `traceA` to ensure performance.\n",
"/tmp/ipykernel_4332/2190712273.py:2: UserWarning: Trace of LinearOperator not available, it will be estimated. Provide `traceA` to ensure performance.\n",
" evolved_vec = scipy.sparse.linalg.expm_multiply(-1j * time * linop, vec)\n"
]
}
Expand All @@ -220,10 +224,10 @@
"execution_count": 7,
"metadata": {
"execution": {
"iopub.execute_input": "2024-04-24T06:38:12.015322Z",
"iopub.status.busy": "2024-04-24T06:38:12.014880Z",
"iopub.status.idle": "2024-04-24T06:38:12.888676Z",
"shell.execute_reply": "2024-04-24T06:38:12.888031Z"
"iopub.execute_input": "2024-04-24T07:11:35.406308Z",
"iopub.status.busy": "2024-04-24T07:11:35.405161Z",
"iopub.status.idle": "2024-04-24T07:11:36.293083Z",
"shell.execute_reply": "2024-04-24T07:11:36.292484Z"
}
},
"outputs": [],
Expand Down
10 changes: 5 additions & 5 deletions .doctrees/nbsphinx/explanations/orbital-rotation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"source": [
"# Orbital rotations and quadratic Hamiltonians\n",
"\n",
"In this page, we discuss orbital rotations and how they can be used to implement time evolution by a quadratic Hamiltonian.\n",
"This page discusses orbital rotations and how they can be used to implement time evolution by a quadratic Hamiltonian.\n",
"\n",
"## Orbital rotations\n",
"\n",
Expand Down Expand Up @@ -62,10 +62,10 @@
"execution_count": 1,
"metadata": {
"execution": {
"iopub.execute_input": "2024-04-24T06:38:14.729266Z",
"iopub.status.busy": "2024-04-24T06:38:14.729074Z",
"iopub.status.idle": "2024-04-24T06:38:15.361173Z",
"shell.execute_reply": "2024-04-24T06:38:15.360495Z"
"iopub.execute_input": "2024-04-24T07:11:38.021734Z",
"iopub.status.busy": "2024-04-24T07:11:38.021535Z",
"iopub.status.idle": "2024-04-24T07:11:38.638847Z",
"shell.execute_reply": "2024-04-24T07:11:38.638242Z"
}
},
"outputs": [],
Expand Down
48 changes: 24 additions & 24 deletions .doctrees/nbsphinx/explanations/state-vectors-and-gates.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
"execution_count": 1,
"metadata": {
"execution": {
"iopub.execute_input": "2024-04-24T06:38:16.998500Z",
"iopub.status.busy": "2024-04-24T06:38:16.998307Z",
"iopub.status.idle": "2024-04-24T06:38:17.636829Z",
"shell.execute_reply": "2024-04-24T06:38:17.636143Z"
"iopub.execute_input": "2024-04-24T07:11:40.151148Z",
"iopub.status.busy": "2024-04-24T07:11:40.150954Z",
"iopub.status.idle": "2024-04-24T07:11:40.761322Z",
"shell.execute_reply": "2024-04-24T07:11:40.760688Z"
}
},
"outputs": [
Expand Down Expand Up @@ -74,10 +74,10 @@
"execution_count": 2,
"metadata": {
"execution": {
"iopub.execute_input": "2024-04-24T06:38:17.639496Z",
"iopub.status.busy": "2024-04-24T06:38:17.639038Z",
"iopub.status.idle": "2024-04-24T06:38:17.645831Z",
"shell.execute_reply": "2024-04-24T06:38:17.645267Z"
"iopub.execute_input": "2024-04-24T07:11:40.764095Z",
"iopub.status.busy": "2024-04-24T07:11:40.763511Z",
"iopub.status.idle": "2024-04-24T07:11:40.770429Z",
"shell.execute_reply": "2024-04-24T07:11:40.769866Z"
}
},
"outputs": [
Expand Down Expand Up @@ -118,10 +118,10 @@
"execution_count": 3,
"metadata": {
"execution": {
"iopub.execute_input": "2024-04-24T06:38:17.647970Z",
"iopub.status.busy": "2024-04-24T06:38:17.647796Z",
"iopub.status.idle": "2024-04-24T06:38:17.651871Z",
"shell.execute_reply": "2024-04-24T06:38:17.651355Z"
"iopub.execute_input": "2024-04-24T07:11:40.772636Z",
"iopub.status.busy": "2024-04-24T07:11:40.772317Z",
"iopub.status.idle": "2024-04-24T07:11:40.776546Z",
"shell.execute_reply": "2024-04-24T07:11:40.775984Z"
}
},
"outputs": [
Expand Down Expand Up @@ -155,10 +155,10 @@
"execution_count": 4,
"metadata": {
"execution": {
"iopub.execute_input": "2024-04-24T06:38:17.654175Z",
"iopub.status.busy": "2024-04-24T06:38:17.653825Z",
"iopub.status.idle": "2024-04-24T06:38:17.657942Z",
"shell.execute_reply": "2024-04-24T06:38:17.657284Z"
"iopub.execute_input": "2024-04-24T07:11:40.778903Z",
"iopub.status.busy": "2024-04-24T07:11:40.778521Z",
"iopub.status.idle": "2024-04-24T07:11:40.782526Z",
"shell.execute_reply": "2024-04-24T07:11:40.782049Z"
}
},
"outputs": [
Expand Down Expand Up @@ -197,10 +197,10 @@
"execution_count": 5,
"metadata": {
"execution": {
"iopub.execute_input": "2024-04-24T06:38:17.660390Z",
"iopub.status.busy": "2024-04-24T06:38:17.660007Z",
"iopub.status.idle": "2024-04-24T06:38:17.665743Z",
"shell.execute_reply": "2024-04-24T06:38:17.665256Z"
"iopub.execute_input": "2024-04-24T07:11:40.784698Z",
"iopub.status.busy": "2024-04-24T07:11:40.784373Z",
"iopub.status.idle": "2024-04-24T07:11:40.790752Z",
"shell.execute_reply": "2024-04-24T07:11:40.790182Z"
}
},
"outputs": [
Expand Down Expand Up @@ -243,10 +243,10 @@
"execution_count": 6,
"metadata": {
"execution": {
"iopub.execute_input": "2024-04-24T06:38:17.668114Z",
"iopub.status.busy": "2024-04-24T06:38:17.667755Z",
"iopub.status.idle": "2024-04-24T06:38:17.672691Z",
"shell.execute_reply": "2024-04-24T06:38:17.672122Z"
"iopub.execute_input": "2024-04-24T07:11:40.793072Z",
"iopub.status.busy": "2024-04-24T07:11:40.792741Z",
"iopub.status.idle": "2024-04-24T07:11:40.798031Z",
"shell.execute_reply": "2024-04-24T07:11:40.797467Z"
}
},
"outputs": [
Expand Down
30 changes: 15 additions & 15 deletions .doctrees/nbsphinx/how-to-guides/entanglement-forging.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"execution_count": 1,
"metadata": {
"execution": {
"iopub.execute_input": "2024-04-24T06:38:19.506446Z",
"iopub.status.busy": "2024-04-24T06:38:19.506259Z",
"iopub.status.idle": "2024-04-24T06:38:20.317903Z",
"shell.execute_reply": "2024-04-24T06:38:20.317255Z"
"iopub.execute_input": "2024-04-24T07:11:42.297014Z",
"iopub.status.busy": "2024-04-24T07:11:42.296475Z",
"iopub.status.idle": "2024-04-24T07:11:43.109328Z",
"shell.execute_reply": "2024-04-24T07:11:43.108642Z"
}
},
"outputs": [
Expand Down Expand Up @@ -80,18 +80,18 @@
"execution_count": 2,
"metadata": {
"execution": {
"iopub.execute_input": "2024-04-24T06:38:20.321992Z",
"iopub.status.busy": "2024-04-24T06:38:20.320840Z",
"iopub.status.idle": "2024-04-24T06:38:20.401001Z",
"shell.execute_reply": "2024-04-24T06:38:20.400308Z"
"iopub.execute_input": "2024-04-24T07:11:43.113066Z",
"iopub.status.busy": "2024-04-24T07:11:43.112712Z",
"iopub.status.idle": "2024-04-24T07:11:43.191084Z",
"shell.execute_reply": "2024-04-24T07:11:43.190598Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Energy at initialialization: -74.20656273321636\n"
"Energy at initialialization: -74.20656273321637\n"
]
}
],
Expand Down Expand Up @@ -129,10 +129,10 @@
"execution_count": 3,
"metadata": {
"execution": {
"iopub.execute_input": "2024-04-24T06:38:20.403473Z",
"iopub.status.busy": "2024-04-24T06:38:20.403259Z",
"iopub.status.idle": "2024-04-24T06:38:28.272201Z",
"shell.execute_reply": "2024-04-24T06:38:28.271559Z"
"iopub.execute_input": "2024-04-24T07:11:43.193108Z",
"iopub.status.busy": "2024-04-24T07:11:43.192920Z",
"iopub.status.idle": "2024-04-24T07:11:50.993594Z",
"shell.execute_reply": "2024-04-24T07:11:50.992969Z"
}
},
"outputs": [
Expand All @@ -144,10 +144,10 @@
" message: STOP: TOTAL NO. of f AND g EVALUATIONS EXCEEDS LIMIT\n",
" success: False\n",
" status: 1\n",
" fun: -75.68085118013319\n",
" fun: -75.68085147140957\n",
" x: [ 2.996e+00 -7.549e-01 ... 2.650e+00 8.012e-01]\n",
" nit: 6\n",
" jac: [ 1.758e-03 9.118e-03 ... -1.192e-02 9.706e-04]\n",
" jac: [ 1.764e-03 9.121e-03 ... -1.192e-02 9.308e-04]\n",
" nfev: 112\n",
" njev: 7\n",
" hess_inv: <15x15 LbfgsInvHessProduct with dtype=float64>\n"
Expand Down
Loading

0 comments on commit facd575

Please sign in to comment.