VeloxChem: quantum chemistry towards pre-exascale and beyond ============================================================ Quantum molecular modeling of complex molecular systems is an indispensable and integrated component in advanced material design, as such simulations provide a microscopic insight into the underlying physical processes. In this workshop, we will highlight efficient use of the `VeloxChem program package `_ on modern HPC architectures, such as the `Dardel system at PDC `_ and the `pre-exascale supercomputer LUMI `_, 50% of which is available to academic users of the consortium states, including Sweden and Denmark. You will learn how to: - Perform quantum chemical simulations of ground- and excited-state properties on large systems and with efficient use of HPC resources. - Understand the performance considerations that influence algorithm design in quantum chemistry. - Evaluate the best setup for large scale quantum chemical simulations on HPC hardware. .. prereq:: We will use the `Dardel `_ supercomputer for hands-on exercises. Please follow these :ref:`detailed instructions ` on how to use the VeloxChem module on Dardel. You can also install VeloxChem on your own computer, following these :ref:`detailed instructions `, or run `Jupyter notebooks `_ in the cloud using `Binder `_. .. toctree:: :hidden: :maxdepth: 1 setup hpc-setup .. _lesson: .. toctree:: :hidden: :maxdepth: 1 :caption: The lesson notebooks/first-steps modern-hpc-architectures performance-theory scf-scaling-study eri-overview linrsp-scaling-study x-ray-cpp exciton ntos .. csv-table:: :widths: auto :delim: ; 20 min ; :doc:`notebooks/first-steps` 30 min ; :doc:`modern-hpc-architectures` 30 min ; :doc:`performance-theory` 30 min ; :doc:`scf-scaling-study` 30 min ; :doc:`eri-overview` 30 min ; :doc:`linrsp-scaling-study` 30 min ; :doc:`x-ray-cpp` 30 min ; :doc:`exciton` 30 min ; :doc:`ntos` .. toctree:: :maxdepth: 1 :caption: Reference quick-reference zbibliography guide .. _learner-personas: Who is the course for? ---------------------- This lesson is for researchers and students already familiar with quantum chemistry that want to learn how to: - Perform quantum chemical simulations of ground- and excited-state properties on large systems and with efficient use of HPC resources. - Use an interactive, computationally-oriented approach to teaching quantum chemistry. We assume that participants have: - A sufficiently thorough prior knowledge of self-consistent field theory, at the level presented in the *Modern Quantum Chemistry* textbook by Szabo and Ostlund :cite:`Szabo1996-vl`. - Worked previously with other quantum chemical software packages. - Some familiarity with the Python programming language. :ref:`We have listed ` some online resources to refresh your Python knowledge. About the course ---------------- This lesson material is developed by the `EuroCC National Competence Center Sweden (ENCCS) `_ and the `PDC Center for High Performance Computing `_. Each lesson episode has clearly defined learning objectives and includes exercises and solutions, and is therefore also useful for self-learning. The lesson material is licensed under `CC-BY-4.0 `_ and can be reused in any form (with appropriate credit) in other courses and workshops. Instructors who wish to teach this lesson can refer to the :doc:`guide` for practical advice. Interacting with the notebooks ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `MyBinder `_ offers a free, customizable cloud computing environment and powers some of the contents of this lesson. You can run the exercises for Day 1 of this workshop entirely in the cloud. The MyBinder web interface ~~~~~~~~~~~~~~~~~~~~~~~~~~ You can access the JupyterLab instance for this workshop by clicking the "launch binder" button at the top of the ``README`` file displayed at https://github.com/ENCCS/veloxchem-workshop .. figure:: img/launch_binder_button.png :scale: 70% :alt: Launching the binder :align: center This will bring you to the loading page for the binder, which might take a few minutes to start up. Don't despair! .. figure:: img/binder_loading.png :scale: 50% :alt: The binder is loading :align: center Once loaded, you will see the introductory notebook already open: .. figure:: img/jupyterlab_landing.png :scale: 50% :alt: The Jupyter Lab landing page :align: center Accessing a terminal ++++++++++++++++++++ From the "Launcher" tab, you can access terminal, Python interpreter, and notebook launchers: .. figure:: img/launcher_menu.png :scale: 50% :alt: Launcher menu on Jupyter Lab :align: center You can open a text editor (for input files etc) by clicking "New" and select Text File. If you prefer a terminal editor, you can use ``nano`` or ``vim`` or ``emacs``. Starting the notebook from an episode ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ You can run the notebook directly from an episode in the lesson. Click on the rocket icon on the top right of the page and select which launcher to use: .. figure:: img/launchers.png :scale: 50% :alt: Launcher menu on Jupyter Lab :align: center "Binder" will redirect you the binder instance. The "Live code" option is disabled for this workshop. .. _see-also: See also -------- There are many free resources online regarding Python and Jupyter: - The `MolSSI `_ introductory course on `Python scripting for computational molecular science `_. - The `Aalto Scientific Computing `_ course on `Python for scientific computing `_. - The `CodeRefinery `_ course `Introduction to Jupyter and JupyterLab `_ For reference material on quantum chemistry: - Helgaker, T.; Jørgensen, P.; Olsen, J. *Molecular Electronic-Structure Theory* :cite:`Helgaker2000-yb` - Szabo, A.; Ostlund, N. S. *Modern Quantum Chemistry: Introduction to Advanced Electronic Structure Theory* :cite:`Szabo1996-vl` For reference materials on parallel programming: - McCool, M.; Robison, A.; Reinders, J. *Structured Parallel Programming: Patterns for Efficient Computation* :cite:`McCool2012-tx` - Mattson, T. G.; Sanders, B.; Massingill, B. *Patterns for Parallel Programming* :cite:`Mattson2004-oc` Credits ------- The lesson file structure and browsing layout is inspired by and derived from `work `_ by `CodeRefinery `_ licensed under the `MIT license `_. We have copied and adapted most of their license text. Instructional Material ^^^^^^^^^^^^^^^^^^^^^^ This instructional material is made available under the `Creative Commons Attribution license (CC-BY-4.0) `_. The following is a human-readable summary of (and not a substitute for) the `full legal text of the CC-BY-4.0 license `_. You are free: - to **share** - copy and redistribute the material in any medium or format - to **adapt** - remix, transform, and build upon the material for any purpose, even commercially. The licensor cannot revoke these freedoms as long as you follow these license terms: - **Attribution** - You must give appropriate credit (mentioning that your work is derived from work that is Copyright (c) ENCCS and, where practical, linking to ``_), provide a `link to the license `_, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use. - **No additional restrictions** - You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits. With the understanding that: - You do not have to comply with the license for elements of the material in the public domain or where your use is permitted by an applicable exception or limitation. - No warranties are given. The license may not give you all of the permissions necessary for your intended use. For example, other rights such as publicity, privacy, or moral rights may limit how you use the material. Software ^^^^^^^^ Except where otherwise noted, the example programs and other software provided with this repository are made available under the `OSI `_-approved `MIT license `_.