|
245 | 245 | }, |
246 | 246 | { |
247 | 247 | "cell_type": "code", |
248 | | - "execution_count": 17, |
| 248 | + "execution_count": 3, |
249 | 249 | "metadata": {}, |
250 | 250 | "outputs": [], |
251 | 251 | "source": [ |
|
404 | 404 | }, |
405 | 405 | { |
406 | 406 | "cell_type": "code", |
407 | | - "execution_count": 18, |
| 407 | + "execution_count": 4, |
408 | 408 | "metadata": {}, |
409 | 409 | "outputs": [], |
410 | 410 | "source": [ |
|
512 | 512 | }, |
513 | 513 | { |
514 | 514 | "cell_type": "code", |
515 | | - "execution_count": 19, |
| 515 | + "execution_count": 5, |
516 | 516 | "metadata": {}, |
517 | 517 | "outputs": [], |
518 | 518 | "source": [ |
|
532 | 532 | }, |
533 | 533 | { |
534 | 534 | "cell_type": "code", |
535 | | - "execution_count": 20, |
| 535 | + "execution_count": 6, |
536 | 536 | "metadata": {}, |
537 | 537 | "outputs": [], |
538 | 538 | "source": [ |
|
572 | 572 | }, |
573 | 573 | { |
574 | 574 | "cell_type": "code", |
575 | | - "execution_count": 21, |
| 575 | + "execution_count": 7, |
576 | 576 | "metadata": {}, |
577 | 577 | "outputs": [], |
578 | 578 | "source": [ |
|
644 | 644 | }, |
645 | 645 | { |
646 | 646 | "cell_type": "code", |
647 | | - "execution_count": 22, |
| 647 | + "execution_count": 8, |
648 | 648 | "metadata": {}, |
649 | 649 | "outputs": [], |
650 | 650 | "source": [ |
|
670 | 670 | }, |
671 | 671 | { |
672 | 672 | "cell_type": "code", |
673 | | - "execution_count": 23, |
| 673 | + "execution_count": 9, |
674 | 674 | "metadata": {}, |
675 | 675 | "outputs": [ |
676 | 676 | { |
|
680 | 680 | "<IPython.core.display.Image object>" |
681 | 681 | ] |
682 | 682 | }, |
683 | | - "execution_count": 23, |
| 683 | + "execution_count": 9, |
684 | 684 | "metadata": {}, |
685 | 685 | "output_type": "execute_result" |
686 | 686 | } |
|
730 | 730 | }, |
731 | 731 | { |
732 | 732 | "cell_type": "code", |
733 | | - "execution_count": 24, |
| 733 | + "execution_count": 10, |
734 | 734 | "metadata": {}, |
735 | 735 | "outputs": [ |
736 | 736 | { |
|
757 | 757 | "<PIL.PngImagePlugin.PngImageFile image mode=RGB size=300x300>" |
758 | 758 | ] |
759 | 759 | }, |
760 | | - "execution_count": 24, |
| 760 | + "execution_count": 10, |
761 | 761 | "metadata": {}, |
762 | 762 | "output_type": "execute_result" |
763 | 763 | } |
|
788 | 788 | }, |
789 | 789 | { |
790 | 790 | "cell_type": "code", |
791 | | - "execution_count": 25, |
| 791 | + "execution_count": 11, |
792 | 792 | "metadata": {}, |
793 | 793 | "outputs": [], |
794 | 794 | "source": [ |
|
891 | 891 | }, |
892 | 892 | { |
893 | 893 | "cell_type": "code", |
894 | | - "execution_count": 26, |
| 894 | + "execution_count": 12, |
895 | 895 | "metadata": {}, |
896 | 896 | "outputs": [], |
897 | 897 | "source": [ |
|
939 | 939 | }, |
940 | 940 | { |
941 | 941 | "cell_type": "code", |
942 | | - "execution_count": 27, |
| 942 | + "execution_count": 13, |
943 | 943 | "metadata": {}, |
944 | 944 | "outputs": [ |
945 | 945 | { |
|
957 | 957 | "<IPython.core.display.Image object>" |
958 | 958 | ] |
959 | 959 | }, |
960 | | - "execution_count": 27, |
| 960 | + "execution_count": 13, |
961 | 961 | "metadata": {}, |
962 | 962 | "output_type": "execute_result" |
963 | 963 | } |
|
984 | 984 | }, |
985 | 985 | { |
986 | 986 | "cell_type": "code", |
987 | | - "execution_count": 28, |
| 987 | + "execution_count": 14, |
988 | 988 | "metadata": {}, |
989 | 989 | "outputs": [ |
990 | 990 | { |
|
994 | 994 | "<IPython.core.display.Image object>" |
995 | 995 | ] |
996 | 996 | }, |
997 | | - "execution_count": 28, |
| 997 | + "execution_count": 14, |
998 | 998 | "metadata": {}, |
999 | 999 | "output_type": "execute_result" |
1000 | 1000 | } |
|
1012 | 1012 | }, |
1013 | 1013 | { |
1014 | 1014 | "cell_type": "code", |
1015 | | - "execution_count": 29, |
| 1015 | + "execution_count": 15, |
1016 | 1016 | "metadata": {}, |
1017 | 1017 | "outputs": [], |
1018 | 1018 | "source": [ |
|
1088 | 1088 | }, |
1089 | 1089 | { |
1090 | 1090 | "cell_type": "code", |
1091 | | - "execution_count": 30, |
| 1091 | + "execution_count": 16, |
1092 | 1092 | "metadata": {}, |
1093 | 1093 | "outputs": [ |
1094 | 1094 | { |
|
1098 | 1098 | "<IPython.core.display.Image object>" |
1099 | 1099 | ] |
1100 | 1100 | }, |
1101 | | - "execution_count": 30, |
| 1101 | + "execution_count": 16, |
1102 | 1102 | "metadata": {}, |
1103 | 1103 | "output_type": "execute_result" |
1104 | 1104 | } |
|
1110 | 1110 | }, |
1111 | 1111 | { |
1112 | 1112 | "cell_type": "code", |
1113 | | - "execution_count": 31, |
| 1113 | + "execution_count": 17, |
1114 | 1114 | "metadata": {}, |
1115 | 1115 | "outputs": [], |
1116 | 1116 | "source": [ |
|
1176 | 1176 | }, |
1177 | 1177 | { |
1178 | 1178 | "cell_type": "code", |
1179 | | - "execution_count": 32, |
| 1179 | + "execution_count": 18, |
1180 | 1180 | "metadata": {}, |
1181 | 1181 | "outputs": [ |
1182 | 1182 | { |
|
1369 | 1369 | }, |
1370 | 1370 | { |
1371 | 1371 | "cell_type": "code", |
1372 | | - "execution_count": 33, |
| 1372 | + "execution_count": 19, |
1373 | 1373 | "metadata": {}, |
1374 | 1374 | "outputs": [], |
1375 | 1375 | "source": [ |
|
1554 | 1554 | }, |
1555 | 1555 | { |
1556 | 1556 | "cell_type": "code", |
1557 | | - "execution_count": 34, |
| 1557 | + "execution_count": 20, |
1558 | 1558 | "metadata": {}, |
1559 | 1559 | "outputs": [ |
1560 | 1560 | { |
|
1570 | 1570 | "name": "stderr", |
1571 | 1571 | "output_type": "stream", |
1572 | 1572 | "text": [ |
1573 | | - "[08:52:22] Molecule does not have explicit Hs. Consider calling AddHs()\n" |
| 1573 | + "[08:58:36] Molecule does not have explicit Hs. Consider calling AddHs()\n" |
1574 | 1574 | ] |
1575 | 1575 | }, |
1576 | 1576 | { |
|
1627 | 1627 | }, |
1628 | 1628 | { |
1629 | 1629 | "cell_type": "code", |
1630 | | - "execution_count": 35, |
| 1630 | + "execution_count": 21, |
1631 | 1631 | "metadata": {}, |
1632 | 1632 | "outputs": [], |
1633 | 1633 | "source": [ |
|
1705 | 1705 | }, |
1706 | 1706 | { |
1707 | 1707 | "cell_type": "code", |
1708 | | - "execution_count": 36, |
| 1708 | + "execution_count": 22, |
1709 | 1709 | "metadata": {}, |
1710 | 1710 | "outputs": [ |
1711 | 1711 | { |
1712 | 1712 | "name": "stdout", |
1713 | 1713 | "output_type": "stream", |
1714 | 1714 | "text": [ |
1715 | | - "2.4309424285321684\n", |
| 1715 | + "The transition dipole moment of azulene (HOMO to LUMO) is [-0.01674969 -2.42803264 0.11772008] Debye.\n", |
| 1716 | + "The magnitude of the transition dipole moment is 2.4309424285321684 Debye.\n", |
1716 | 1717 | "The following plots correspond to the following atomic property labels:\n", |
1717 | 1718 | "product of HOMO and LUMO orbitals\n" |
1718 | 1719 | ] |
|
1721 | 1722 | "name": "stderr", |
1722 | 1723 | "output_type": "stream", |
1723 | 1724 | "text": [ |
1724 | | - "[08:52:23] Molecule does not have explicit Hs. Consider calling AddHs()\n" |
| 1725 | + "[08:58:36] Molecule does not have explicit Hs. Consider calling AddHs()\n" |
1725 | 1726 | ] |
1726 | 1727 | }, |
1727 | 1728 | { |
|
1736 | 1737 | } |
1737 | 1738 | ], |
1738 | 1739 | "source": [ |
1739 | | - "# Look at the excitation from the HOMO to the LUMO\n", |
| 1740 | + "# Look at the excitation from the HOMO to the LUMO and print out the dipole moment\n", |
| 1741 | + "# and its size\n", |
1740 | 1742 | "transition_dipole = compute_transition_dipole(azulene, mo_coeffs, 4, 5)\n", |
1741 | | - "print(np.linalg.norm(transition_dipole))\n", |
| 1743 | + "print(f\"The transition dipole moment of azulene (HOMO to LUMO) is {transition_dipole} Debye.\")\n", |
| 1744 | + "print(f\"The magnitude of the transition dipole moment is {np.linalg.norm(transition_dipole)} Debye.\")\n", |
1742 | 1745 | "\n", |
1743 | 1746 | "# Plot the orbital product\n", |
1744 | 1747 | "coeffs = mo_coeffs[:, 4] * mo_coeffs[:, 5]\n", |
|
0 commit comments