nano-qmflows


Namenano-qmflows JSON
Version 0.14.2 PyPI version JSON
download
home_page
SummaryDerivative coupling calculation
upload_time2023-10-11 17:57:18
maintainer
docs_urlNone
author
requires_python>=3.8
licenseApache-2.0
keywords chemistry photochemistry simulation
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. image:: https://readthedocs.org/projects/qmflows-namd/badge/?version=latest
   :target: https://qmflows-namd.readthedocs.io/en/latest/?badge=latest
.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.2576893.svg
   :target: https://doi.org/10.5281/zenodo.2576893
.. image:: https://github.com/SCM-NV/nano-qmflows/actions/workflows/pythonapp.yml/badge.svg
   :target: https://github.com/SCM-NV/nano-qmflows/actions
.. image:: https://codecov.io/gh/SCM-NV/nano-qmflows/branch/master/graph/badge.svg?token=L1W0fPrSUn
   :target: https://codecov.io/gh/SCM-NV/nano-qmflows
.. image:: https://badge.fury.io/py/nano-qmflows.svg
   :target: https://badge.fury.io/py/nano-qmflows

====================
nano-qmflows
====================

Nano-QMFlows is a generic python library for computing (numerically) electronic properties for nanomaterials like the non-adiabatic coupling vectors (NACV) using several quantum chemical (QM) packages.

One of the main problems to calculate (numerically) NACVs by standard QM software is the computation of the overlap matrices between two electronically excited states at two consecutive time-steps that are needed in the numerical differentiation to evaluate the coupling. This happens because most of these softwares are inherently static, i.e. properties are computed for a given structural configuration, and the computation of the overlap matrices at different times requires complicated scripting tools to handle input/outputs of several QM packages.

For further information on the theory behind nano-qmflows and how to use the program see the documentation_.

Installation
------------
Pre-compiled binaries are available on pypi and can be installed on MacOS and Linux as following:

.. code:: bash

   pip install nano-qmflows --upgrade

Building from source
--------------------
Building Nano-QMFlows from source first requires an installation of *Miniconda* as is detailed here_.

.. _here: https://docs.conda.io/en/latest/miniconda.html

Then, to install the **nano-qmflows** library type the following commands inside the conda environment:

.. code:: bash

   # Create the conda environment
   conda create -n qmflows -c conda-forge boost eigen "libint>=2.6.0" highfive
   conda activate qmflows

   # Clone the repo
   git clone https://github.com/SCM-NV/nano-qmflows
   cd nano-qmflows

   # Build and install nano-qmflows
   pip install -e . --upgrade

.. note::
   Older compilers, such as GCC <7, might not be compatible with the latest ``eigen`` version and require specification of *e.g.* ``eigen=3.3``.

Advantages and Limitations
--------------------------
nano-qmflows is based on the approximation that all excited states are represented by singly excited-state determinants. This means that the computation of the NACVs boils down to the computation of molecular orbitals (MOs) coefficients at given points of time using an electronic structure code and an overlap matrix S(t,t+dt) in atomic orbital basis (AO) computed between two consecutive time step. nano-qmflows main advantage is to use an internal module to compute efficiently the atomic overlap matrix S(t, t+dt) by employing the same basis-set used in the electronic structure calculation. In this way the QM codes are only needed to retrieve the MOs coefficients at time t and t+dt. This approach is very useful because the interfacing nano-qmflows to a QM code is reduced to writing a simple module that reads the MOs coefficients in the specific code format. At this moment, nano-qmflows handles output formats generated by CP2K, Orca, and Gamess, but, as said, it can be easily extended to other codes.

Finally, nano-qmflows can be also used in benchmarks studies to test new code developments in the field of excited state dynamics by providing a platform that uses all the functionalities of QMFlows, which automatizes the input preparation and execution of thousands of QM calculations.

In the near future, nano-qmflows is expected to offer new functionalities.


Interface to Pyxaid
-------------------

nano-qmflows has been designed mostly to be integrated with Pyxaid, a python program that performs non-adiabatic molecular dynamic (NAMD) simulations using the classical path approximation (CPA). The CPA is based on the assumption that nuclear dynamics of the system remains unaffected by the dynamics of the electronic degrees of freedom. Hence, the electronic dynamics remains driven by the ground state nuclear dynamics. CPA is usually valid for extended materials or cluster materials of nanometric size.

In this framework, nano-qmflows requires as input the coordinates of a pre-computed trajectory (at a lower level or at the same level of theory) in xyz format and the input parameters of the SCF code (HF and DFT). nano-qmflows will then calculate the overlap matrix between different MOs by correcting their phase and will also track the nature of each state at the crossing seam using a min-cost algorithm . The NACVs are computed using the Hammes-Schiffer-Tully (HST) 2-point approximation and the recent Meek-Levine approach. The NACVs are then written in Pyxaid format for subsequent NAMD simulations.


Overview
--------
 The Library contains a **C++** interface to the libint2_ library to compute the integrals and several numerical functions in Numpy_. While the scripts are set of workflows to compute different properties using different approximations that can be tuned by the user.

.. _libint2: https://github.com/evaleev/libint/wiki
.. _Numpy: http://www.numpy.org

Worflow to calculate Hamiltonians for nonadiabatic molecular simulations
************************************************************************
The figure represents schematically a Worflow to compute the **Hamiltonians** that described the behavior and coupling between the excited state of a molecular system. These **Hamiltonians** are used by thy PYXAID_ simulation package to carry out nonadiabatic molecular dynamics.

.. image:: docs/_images/nac_worflow.png

.. _PYXAID: https://www.acsu.buffalo.edu/~alexeyak/pyxaid/overview.html
.. _documentation: https://qmflows-namd.readthedocs.io/en/latest/

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "nano-qmflows",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "chemistry,Photochemistry,Simulation",
    "author": "",
    "author_email": "Felipe Zapata & Ivan Infante <f.zapata@esciencecenter.nl>",
    "download_url": "https://files.pythonhosted.org/packages/f2/1d/f56cf3f86c52f3d12c80b6409b17c39e8e7a6c7cd68bdc2ff6da22af6aa8/nano-qmflows-0.14.2.tar.gz",
    "platform": null,
    "description": ".. image:: https://readthedocs.org/projects/qmflows-namd/badge/?version=latest\n   :target: https://qmflows-namd.readthedocs.io/en/latest/?badge=latest\n.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.2576893.svg\n   :target: https://doi.org/10.5281/zenodo.2576893\n.. image:: https://github.com/SCM-NV/nano-qmflows/actions/workflows/pythonapp.yml/badge.svg\n   :target: https://github.com/SCM-NV/nano-qmflows/actions\n.. image:: https://codecov.io/gh/SCM-NV/nano-qmflows/branch/master/graph/badge.svg?token=L1W0fPrSUn\n   :target: https://codecov.io/gh/SCM-NV/nano-qmflows\n.. image:: https://badge.fury.io/py/nano-qmflows.svg\n   :target: https://badge.fury.io/py/nano-qmflows\n\n====================\nnano-qmflows\n====================\n\nNano-QMFlows is a generic python library for computing (numerically) electronic properties for nanomaterials like the non-adiabatic coupling vectors (NACV) using several quantum chemical (QM) packages.\n\nOne of the main problems to calculate (numerically) NACVs by standard QM software is the computation of the overlap matrices between two electronically excited states at two consecutive time-steps that are needed in the numerical differentiation to evaluate the coupling. This happens because most of these softwares are inherently static, i.e. properties are computed for a given structural configuration, and the computation of the overlap matrices at different times requires complicated scripting tools to handle input/outputs of several QM packages.\n\nFor further information on the theory behind nano-qmflows and how to use the program see the documentation_.\n\nInstallation\n------------\nPre-compiled binaries are available on pypi and can be installed on MacOS and Linux as following:\n\n.. code:: bash\n\n   pip install nano-qmflows --upgrade\n\nBuilding from source\n--------------------\nBuilding Nano-QMFlows from source first requires an installation of *Miniconda* as is detailed here_.\n\n.. _here: https://docs.conda.io/en/latest/miniconda.html\n\nThen, to install the **nano-qmflows** library type the following commands inside the conda environment:\n\n.. code:: bash\n\n   # Create the conda environment\n   conda create -n qmflows -c conda-forge boost eigen \"libint>=2.6.0\" highfive\n   conda activate qmflows\n\n   # Clone the repo\n   git clone https://github.com/SCM-NV/nano-qmflows\n   cd nano-qmflows\n\n   # Build and install nano-qmflows\n   pip install -e . --upgrade\n\n.. note::\n   Older compilers, such as GCC <7, might not be compatible with the latest ``eigen`` version and require specification of *e.g.* ``eigen=3.3``.\n\nAdvantages and Limitations\n--------------------------\nnano-qmflows is based on the approximation that all excited states are represented by singly excited-state determinants. This means that the computation of the NACVs boils down to the computation of molecular orbitals (MOs) coefficients at given points of time using an electronic structure code and an overlap matrix S(t,t+dt) in atomic orbital basis (AO) computed between two consecutive time step. nano-qmflows main advantage is to use an internal module to compute efficiently the atomic overlap matrix S(t, t+dt) by employing the same basis-set used in the electronic structure calculation. In this way the QM codes are only needed to retrieve the MOs coefficients at time t and t+dt. This approach is very useful because the interfacing nano-qmflows to a QM code is reduced to writing a simple module that reads the MOs coefficients in the specific code format. At this moment, nano-qmflows handles output formats generated by CP2K, Orca, and Gamess, but, as said, it can be easily extended to other codes.\n\nFinally, nano-qmflows can be also used in benchmarks studies to test new code developments in the field of excited state dynamics by providing a platform that uses all the functionalities of QMFlows, which automatizes the input preparation and execution of thousands of QM calculations.\n\nIn the near future, nano-qmflows is expected to offer new functionalities.\n\n\nInterface to Pyxaid\n-------------------\n\nnano-qmflows has been designed mostly to be integrated with Pyxaid, a python program that performs non-adiabatic molecular dynamic (NAMD) simulations using the classical path approximation (CPA). The CPA is based on the assumption that nuclear dynamics of the system remains unaffected by the dynamics of the electronic degrees of freedom. Hence, the electronic dynamics remains driven by the ground state nuclear dynamics. CPA is usually valid for extended materials or cluster materials of nanometric size.\n\nIn this framework, nano-qmflows requires as input the coordinates of a pre-computed trajectory (at a lower level or at the same level of theory) in xyz format and the input parameters of the SCF code (HF and DFT). nano-qmflows will then calculate the overlap matrix between different MOs by correcting their phase and will also track the nature of each state at the crossing seam using a min-cost algorithm . The NACVs are computed using the Hammes-Schiffer-Tully (HST) 2-point approximation and the recent Meek-Levine approach. The NACVs are then written in Pyxaid format for subsequent NAMD simulations.\n\n\nOverview\n--------\n The Library contains a **C++** interface to the libint2_ library to compute the integrals and several numerical functions in Numpy_. While the scripts are set of workflows to compute different properties using different approximations that can be tuned by the user.\n\n.. _libint2: https://github.com/evaleev/libint/wiki\n.. _Numpy: http://www.numpy.org\n\nWorflow to calculate Hamiltonians for nonadiabatic molecular simulations\n************************************************************************\nThe figure represents schematically a Worflow to compute the **Hamiltonians** that described the behavior and coupling between the excited state of a molecular system. These **Hamiltonians** are used by thy PYXAID_ simulation package to carry out nonadiabatic molecular dynamics.\n\n.. image:: docs/_images/nac_worflow.png\n\n.. _PYXAID: https://www.acsu.buffalo.edu/~alexeyak/pyxaid/overview.html\n.. _documentation: https://qmflows-namd.readthedocs.io/en/latest/\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Derivative coupling calculation",
    "version": "0.14.2",
    "project_urls": {
        "Bug Tracker": "https://github.com/SCM-NV/nano-qmflows/issues",
        "Documentation": "https://qmflows-namd.readthedocs.io/en/latest/",
        "Homepage": "https://github.com/SCM-NV/nano-qmflows"
    },
    "split_keywords": [
        "chemistry",
        "photochemistry",
        "simulation"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fe8ceb7ee278c8461823784e3f0d263a8670bdfd7b41913c2bf88ec56504d265",
                "md5": "e8f3d64cabf1a64dcc1c59e0509bcfca",
                "sha256": "10fa5873ede16ae2a62f2ee3c2d4d870f2bca267e8ae5cf0dd9b7c2357afd655"
            },
            "downloads": -1,
            "filename": "nano_qmflows-0.14.2-cp38-abi3-macosx_10_14_x86_64.whl",
            "has_sig": false,
            "md5_digest": "e8f3d64cabf1a64dcc1c59e0509bcfca",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 13490354,
            "upload_time": "2023-10-11T17:56:55",
            "upload_time_iso_8601": "2023-10-11T17:56:55.328039Z",
            "url": "https://files.pythonhosted.org/packages/fe/8c/eb7ee278c8461823784e3f0d263a8670bdfd7b41913c2bf88ec56504d265/nano_qmflows-0.14.2-cp38-abi3-macosx_10_14_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "45a2fa805863c063c8e72d020ee89956c497314bffd83f794f83c4a08188f5ee",
                "md5": "ced5830d13c74b8088830032018665f5",
                "sha256": "eff9249832008b567425873ad0b90573134b0de2e96fb945b6d6d3f5055ec8ed"
            },
            "downloads": -1,
            "filename": "nano_qmflows-0.14.2-cp38-abi3-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "ced5830d13c74b8088830032018665f5",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 13028226,
            "upload_time": "2023-10-11T17:57:02",
            "upload_time_iso_8601": "2023-10-11T17:57:02.364016Z",
            "url": "https://files.pythonhosted.org/packages/45/a2/fa805863c063c8e72d020ee89956c497314bffd83f794f83c4a08188f5ee/nano_qmflows-0.14.2-cp38-abi3-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d315cc9d7f0fef7cae5592ca852ae52f367bcdbdaf9d2f001889a9af0768964b",
                "md5": "a0a732468075667cced1d0f02e955e53",
                "sha256": "a5788f49a84a52b62667a8fd14a9b3638b0740a5ce205e217be52ae5e4b70b3a"
            },
            "downloads": -1,
            "filename": "nano_qmflows-0.14.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "has_sig": false,
            "md5_digest": "a0a732468075667cced1d0f02e955e53",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 13840789,
            "upload_time": "2023-10-11T17:57:08",
            "upload_time_iso_8601": "2023-10-11T17:57:08.120171Z",
            "url": "https://files.pythonhosted.org/packages/d3/15/cc9d7f0fef7cae5592ca852ae52f367bcdbdaf9d2f001889a9af0768964b/nano_qmflows-0.14.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2f397f0f2400129fe0bfaed573e93c13ce0d016209649de62d0cd764281905f0",
                "md5": "5f42956c066e6331e71e08c725d3f34a",
                "sha256": "37ca982bceeeb4b6534fd5c8c80248c7ba64c10a4792f335ad989e706309ff67"
            },
            "downloads": -1,
            "filename": "nano_qmflows-0.14.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "5f42956c066e6331e71e08c725d3f34a",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 13931589,
            "upload_time": "2023-10-11T17:57:14",
            "upload_time_iso_8601": "2023-10-11T17:57:14.628310Z",
            "url": "https://files.pythonhosted.org/packages/2f/39/7f0f2400129fe0bfaed573e93c13ce0d016209649de62d0cd764281905f0/nano_qmflows-0.14.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f21df56cf3f86c52f3d12c80b6409b17c39e8e7a6c7cd68bdc2ff6da22af6aa8",
                "md5": "5f68b40cd8ea6f35597cc607d47750d0",
                "sha256": "f3c2ffc7d34b04823dd30043d7bf3168d1a21eded4e6ca6e093c6cbb5eb9c7fa"
            },
            "downloads": -1,
            "filename": "nano-qmflows-0.14.2.tar.gz",
            "has_sig": false,
            "md5_digest": "5f68b40cd8ea6f35597cc607d47750d0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 3585115,
            "upload_time": "2023-10-11T17:57:18",
            "upload_time_iso_8601": "2023-10-11T17:57:18.096235Z",
            "url": "https://files.pythonhosted.org/packages/f2/1d/f56cf3f86c52f3d12c80b6409b17c39e8e7a6c7cd68bdc2ff6da22af6aa8/nano-qmflows-0.14.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-11 17:57:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "SCM-NV",
    "github_project": "nano-qmflows",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "test_requirements": [],
    "lcname": "nano-qmflows"
}
        
Elapsed time: 0.12619s