-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
168 changed files
with
9,391 additions
and
8,309 deletions.
There are no files selected for viewing
Binary file added
BIN
+24.7 KB
_images/12b3814ed61d8a4cab3532d3c45160654b6d53dfac7c0a3cc0caae8620dd4465.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-41 KB
_images/19e4587d12575c92ad47790881b4da1b8cdfa67a873ac94a94c009ac99248106.png
Binary file not shown.
Binary file added
BIN
+22.8 KB
_images/28f6e68aae912cff4c3b8ff3b68f8e80150beffd357feab8568faa423d874506.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-22.9 KB
_images/31c28b7a8a10eeb0f6a5f2c4bdf50506baf463aa38b182e338f4eab9927de545.png
Binary file not shown.
Binary file removed
BIN
-12.6 KB
_images/4d3372e808987716a4565290389126fe4feced1d23e2e1700ea4c596ebe62313.png
Binary file not shown.
Binary file added
BIN
+8.19 KB
_images/5a9e81644c7fb285e5d13a8b3a677d610c2ba67ae67a7ab7359bca586b86ebda.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+40.5 KB
_images/7fe6283902b09254f6b1fc36848f8c37733b14fc11bf348263e238c230675cee.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-22.7 KB
_images/968647805976da47decd11c59c8b7a62c2db6d96b1ad7798ec34d46f501bad4c.png
Binary file not shown.
Binary file removed
BIN
-35.4 KB
_images/9709992b8a2ea58ea7c37b2a0ca0b4257cc3161ccc241b788ab4ed67279fa5f6.png
Binary file not shown.
Binary file added
BIN
+35.4 KB
_images/ab972cf4103d0491dec2ea12c0061047951b3e38ccdf41b57e234219170fac2b.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-24.7 KB
_images/bef9b72d2aaf8838f7424cc03c47a1b5047e6ae974e819157874703fdfe22a71.png
Binary file not shown.
Binary file removed
BIN
-26.4 KB
_images/c205fb5fec4109eabea06a840025b34134b93a989155663086ed645cbafd31f5.png
Binary file not shown.
Binary file added
BIN
+12.7 KB
_images/c4fc58c7c9a4e9113ba918b28e5e7680a656396fe8342a75802278bcc72f91b7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-7.94 KB
_images/cf25e2d30b5d2945d243d977a2648f31592481b3441b2af7e1d39ef9e7486893.png
Binary file not shown.
Binary file added
BIN
+22.7 KB
_images/d92ad5bcc252a74d9e297457c1123b776e5f6d84724cbf1ac496e82ccfd0e4e6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+26.4 KB
_images/e0d7b4a9680171df4703f931bb3516f3bacae7d757ecc60f2577ba861236d18c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,230 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"id": "bf51bfd1-549a-46a0-81a5-f6e7e426c8bd", | ||
"metadata": { | ||
"editable": true, | ||
"slideshow": { | ||
"slide_type": "" | ||
}, | ||
"tags": [] | ||
}, | ||
"source": [ | ||
"# Dipole equivalence relations" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "8208fce5-8f6c-4d5a-a291-3deb97542ccd", | ||
"metadata": { | ||
"editable": true, | ||
"slideshow": { | ||
"slide_type": "" | ||
}, | ||
"tags": [] | ||
}, | ||
"source": [ | ||
"A molecular system subjected to an external field is described by the Hamiltonian\n", | ||
"\n", | ||
"$$\n", | ||
"\\hat{H} = \\hat{H}_0 + \\hat{V}(t)\n", | ||
"$$\n", | ||
"\n", | ||
"where field coupling is contained in the latter term\n", | ||
"\n", | ||
"$$\n", | ||
"\\hat{V}(t) = \\sum_\\omega \\hat{V}^\\omega_\\alpha F^\\omega_\\alpha e^{-i\\omega t}\n", | ||
"$$\n", | ||
"\n", | ||
"With use of a variational approach to study an observable described by the operator $\\hat{\\Omega}$, the following relation can be found for the associated linear responses {cite}(Norman2018)\n", | ||
"\n", | ||
"$$\n", | ||
"-i\\omega \\langle \\langle \\hat{\\Omega}; \\hat{V}^\\omega_\\alpha \\rangle \\rangle =\n", | ||
"\\frac{1}{i\\hbar}\n", | ||
"\\left(\n", | ||
"\\langle \\langle \\left[ \\hat{\\Omega}, \\hat{H}_0 \\right]; \\hat{V}^\\omega_\\alpha \\rangle \\rangle_\\omega\n", | ||
"+\n", | ||
"\\langle \\left[ \\hat{\\Omega}, \\hat{V}^\\omega_\\alpha \\right] \\rangle\n", | ||
"\\right)\n", | ||
"$$\n", | ||
"\n", | ||
"In the complete basis set limit, the following commutator relation holds true\n", | ||
"\n", | ||
"$$\n", | ||
"\\left[\n", | ||
"\\hat{r}_\\alpha, \\hat{H}_0\n", | ||
"\\right] =\n", | ||
"\\frac{i\\hbar}{m_\\mathrm{e}} \\hat{p}_\\alpha\n", | ||
"$$\n", | ||
"\n", | ||
"where $m_\\mathrm{e}$ is the electron mass.\n", | ||
"\n", | ||
"Combining the two equation for the case when $\\hat{\\Omega}$ and $\\hat{V}^\\omega_\\alpha$ are both equal to position operators, we are led to conclude\n", | ||
"\n", | ||
"$$\n", | ||
"\\omega \\langle \\langle \\hat{r}_\\alpha; \\hat{r}_\\beta \\rangle \\rangle_\\omega =\n", | ||
"\\frac{i}{m_\\mathrm{e}} \\langle \\langle \\hat{p}_\\alpha; \\hat{r}_\\beta \\rangle \\rangle_\\omega\n", | ||
"$$\n", | ||
"\n", | ||
"A residue analysis results in a similar relation for individual transition moments\n", | ||
"\n", | ||
"$$\n", | ||
"\\omega_f \\langle \\Psi_0 | \\hat{r}_\\alpha | \\Psi_f \\rangle =\n", | ||
"\\frac{i}{m_\\mathrm{e}} \\langle \\Psi_0 | \\hat{p}_\\alpha | \\Psi_f \\rangle \n", | ||
"$$\n", | ||
"\n", | ||
"Relations of this form are known as dipole length–dipole velocity equivalences, and they serve the computational chemist with a choice of adopting the length or velocity gauge in calculations of spectra and properties.\n", | ||
"\n", | ||
"As an example, let us calculate the polarizability of the neon atom in the length and velocity representations and see how results get to be in closer agreement with increasing quality of the employed basis set." | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 1, | ||
"id": "4d87ca18-bac9-4878-8ebb-875d75e62626", | ||
"metadata": { | ||
"editable": true, | ||
"slideshow": { | ||
"slide_type": "" | ||
}, | ||
"tags": [ | ||
"remove-output" | ||
] | ||
}, | ||
"outputs": [], | ||
"source": [ | ||
"import numpy as np\n", | ||
"import veloxchem as vlx" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 2, | ||
"id": "d6ba77f9-39f6-45da-afd6-962ef0ee0448", | ||
"metadata": { | ||
"editable": true, | ||
"slideshow": { | ||
"slide_type": "" | ||
}, | ||
"tags": [] | ||
}, | ||
"outputs": [], | ||
"source": [ | ||
"molecule = vlx.Molecule.read_str(\"Ne 0.000 0.000 0.000\")" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 3, | ||
"id": "038f9b63-4cbc-4c81-9cf6-a683279f6a2a", | ||
"metadata": { | ||
"editable": true, | ||
"scrolled": true, | ||
"slideshow": { | ||
"slide_type": "" | ||
}, | ||
"tags": [] | ||
}, | ||
"outputs": [], | ||
"source": [ | ||
"scf_drv = vlx.ScfRestrictedDriver()\n", | ||
"scf_drv.ostream.mute()\n", | ||
"\n", | ||
"lrf_drv = vlx.LinearResponseSolver()\n", | ||
"lrf_drv.ostream.mute()\n", | ||
"\n", | ||
"lrf_drv.b_operator = \"electric dipole\"\n", | ||
"\n", | ||
"lrf_drv.a_components = [\"z\"]\n", | ||
"lrf_drv.b_components = [\"z\"]\n", | ||
"\n", | ||
"w = 0.0656\n", | ||
"lrf_drv.frequencies = [w]" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 18, | ||
"id": "d455a439-e1cb-4d23-9569-7d3d92536829", | ||
"metadata": { | ||
"editable": true, | ||
"scrolled": true, | ||
"slideshow": { | ||
"slide_type": "" | ||
}, | ||
"tags": [] | ||
}, | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"--------------------------------------------\n", | ||
"Basis set -<<z;z>> -i/w*<<p_z;z>>\n", | ||
"--------------------------------------------\n", | ||
" aug-cc-pVDZ 1.837316 1.720512\n", | ||
"daug-cc-pVDZ 2.362190 2.377629\n", | ||
"--------------------------------------------\n" | ||
] | ||
} | ||
], | ||
"source": [ | ||
"result_string = \"\"\n", | ||
"\n", | ||
"for basis_set in [\"aug-cc-pVDZ\", \"daug-cc-pVDZ\"]:\n", | ||
" basis = vlx.MolecularBasis.read(molecule, basis_set, ostream=None)\n", | ||
"\n", | ||
" scf_results = scf_drv.compute(molecule, basis)\n", | ||
"\n", | ||
" lrf_drv.a_operator = \"electric dipole\"\n", | ||
" lrf_results = lrf_drv.compute(molecule, basis, scf_results)\n", | ||
" lrf_length = lrf_results[\"response_functions\"][(\"z\", \"z\", w)]\n", | ||
"\n", | ||
" lrf_drv.a_operator = \"linear momentum\"\n", | ||
" lrf_results = lrf_drv.compute(molecule, basis, scf_results)\n", | ||
" lrf_velocity = lrf_results[\"response_functions\"][(\"z\", \"z\", w)]\n", | ||
"\n", | ||
" result_string += f\"{basis_set :>12s}{-lrf_length :16.6f}{lrf_velocity / w :16.6f}\\n\"\n", | ||
"\n", | ||
"print(\"-\" * 44 + f\"\\n{'Basis set':12s}{'-<<z;z>>':>16s}{'-i/w*<<p_z;z>>':>16s}\\n\" + \"-\" * 44)\n", | ||
"print(result_string + \"-\" * 44)" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "7628e750-30ae-4a79-b66e-f0a744b9c758", | ||
"metadata": { | ||
"editable": true, | ||
"slideshow": { | ||
"slide_type": "" | ||
}, | ||
"tags": [] | ||
}, | ||
"source": [ | ||
"For a property such as the polarizability the addition of diffuse functions in the basis set is critical, and it is seen that with a double augmentation, results obtained in the length and velocity representations are in good mutual agreement." | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Python 3 (ipykernel)", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.11.6" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 5 | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.