|
3269 | 3269 | }, |
3270 | 3270 | { |
3271 | 3271 | "cell_type": "code", |
3272 | | - "execution_count": 14, |
| 3272 | + "execution_count": null, |
3273 | 3273 | "id": "ef026bb9", |
3274 | 3274 | "metadata": { |
3275 | 3275 | "colab": { |
|
3293 | 3293 | "\n", |
3294 | 3294 | "# Write a function to solve the self-consistent field equations using the Harris-functional guess.\n", |
3295 | 3295 | "\n", |
3296 | | - "def solve_scf(atnums, atcoords, ao_basis, n_electrons, guess_type='fermi-amaldi', method='fermi-amaldi', max_iter=100, tol=1e-6):\n", |
3297 | | - " r\"\"\"Solve the self-consistent field equations using the Harris-functional guess.\n", |
3298 | | - "\n", |
3299 | | - " Parameters\n", |
3300 | | - " ----------\n", |
3301 | | - " atnums : list of int\n", |
3302 | | - " Atomic numbers of the atoms in the molecule.\n", |
3303 | | - " atcoords : numpy.ndarray[float, shape=(n_atoms, 3)]\n", |
3304 | | - " Coordinates of the atoms in the molecule.\n", |
3305 | | - " ao_basis : list of `GeneralizedContractionShell` instances\n", |
3306 | | - " Atomic orbital basis set for the molecule.\n", |
3307 | | - " n_electrons : numpy.ndarray[int, shape=(2,)]\n", |
3308 | | - " Number of electrons in the molecule (of each spin channel).\n", |
3309 | | - " guess_type : {\"fermi-amaldi\", \"lsda\", \"hartree\"}\n", |
3310 | | - " Type of Harris-functional guess to compute. Choices are LSDA (exchange-only), Fermi-Amaldi, and Hartree." |
| 3296 | + "# def solve_scf(atnums, atcoords, ao_basis, n_electrons, guess_type='fermi-amaldi', method='fermi-amaldi', max_iter=100, tol=1e-6):\n", |
| 3297 | + "# r\"\"\"Solve the self-consistent field equations using the Harris-functional guess.\n", |
| 3298 | + "\n", |
| 3299 | + "# Parameters\n", |
| 3300 | + "# ----------\n", |
| 3301 | + "# atnums : list of int\n", |
| 3302 | + "# Atomic numbers of the atoms in the molecule.\n", |
| 3303 | + "# atcoords : numpy.ndarray[float, shape=(n_atoms, 3)]\n", |
| 3304 | + "# Coordinates of the atoms in the molecule.\n", |
| 3305 | + "# ao_basis : list of `GeneralizedContractionShell` instances\n", |
| 3306 | + "# Atomic orbital basis set for the molecule.\n", |
| 3307 | + "# n_electrons : numpy.ndarray[int, shape=(2,)]\n", |
| 3308 | + "# Number of electrons in the molecule (of each spin channel).\n", |
| 3309 | + "# guess_type : {\"fermi-amaldi\", \"lsda\", \"hartree\"}\n", |
| 3310 | + "# Type of Harris-functional guess to compute. Choices are LSDA (exchange-only), Fermi-Amaldi, and Hartree." |
3311 | 3311 | ] |
3312 | 3312 | }, |
| 3313 | + { |
| 3314 | + "cell_type": "code", |
| 3315 | + "execution_count": null, |
| 3316 | + "id": "83aadb06", |
| 3317 | + "metadata": {}, |
| 3318 | + "outputs": [], |
| 3319 | + "source": [] |
| 3320 | + }, |
3313 | 3321 | { |
3314 | 3322 | "cell_type": "markdown", |
3315 | 3323 | "id": "cd320950", |
|
0 commit comments