Skip to main content

A scientific module for vibrational coupling Hamiltonian analysis.

Project description

PyVCHAM

PyVCHAM is an open-source Python package designed to construct vibronic coupling (VC) Hamiltonians for complex molecular systems where the Born-Oppenheimer approximation fails. Leveraging machine learning techniques, specifically automatic differentiation via TensorFlow, PyVCHAM optimizes Hamiltonian parameters efficiently and accurately. It is built to integrate seamlessly with quantum chemistry tools, enabling high-dimensional nonadiabatic dynamics simulations with enhanced flexibility and precision.

Key Features

  • Automatic Differentiation: Uses TensorFlow to compute precise gradients of cost functions, improving optimization efficiency.
  • Quantum Chemistry Integration: Interfaces with tools such as OpenMolcas and ADC-connect for ab initio data input.
  • Standardized JSON Format: Proposes a structured JSON format for storing VC Hamiltonians, enhancing interoperability with dynamics software like MCTDH.
  • Modular Design: Supports custom diabatic or coupling functions to adapt to specific research needs.
  • Robust Optimization: Employs the Adam algorithm for parameter fitting, with support for linear and higher-order vibronic coupling terms.
  • Symmetry Handling: Incorporates symmetry constraints to ensure physically meaningful coupling terms.

Installation

For macOS Users

TensorFlow 2.17.0 or higher must be installed via Conda on macOS due to platform-specific requirements. Follow these steps:

  1. Install TensorFlow using Conda:
    conda install tensorflow
    
    Note: It takes around 1 or 2 minutes to import tensorflow for the first time.

PyVCHAM requires Python version 3.9 or later (lower than 3.13). Install it via pip:

pip install pyvcham

For the latest development version, install directly from GitLab:

pip install git+https://gitlab.com/tc-heidelberg/pyvcham

Usage

PyVCHAM enables the construction of VC Hamiltonians using a multi-point approach, fitting ab initio data to analytical potential energy surfaces. A typical workflow includes:

  1. Prepare Input Data: Gather normal mode data, ab initio energies, symmetry information, and harmonic frequencies.
  2. Build Database: Create a Python object containing the input data.
  3. Optimize Parameters: Use PyVCHAM to fit the VC Hamiltonian parameters, starting with linear vibronic coupling (LVC) and adding higher-order terms as needed.
  4. Export Results: Save the optimized Hamiltonian in the standardized JSON format.

For detailed examples and instructions, refer to the documentation.

Standardized JSON Format

PyVCHAM introduces a standardized JSON format to store VC Hamiltonians, promoting data exchange and compatibility with quantum dynamics tools. The format includes:

  • General Data: System-wide details, ab initio information, and custom functions.
  • VC Hamiltonian: Reference geometry, units, state and mode counts, symmetry data, vertical energies, dipole matrices, and LVC parameters.
  • Interactions (optional): Parameters for intermolecular interactions in multi-molecule systems.

This structure ensures portability and usability across platforms. Explore examples in the repository (e.g., Examples/li3/results/lvc_li3.json).

License

PyVCHAM is released under the MIT License.

Citations

If you use PyVCHAM in your research, please cite our paper:

[In preparation]

PyVCHAM builds on foundational work in vibronic coupling, including:

  • Köppel, H.; Domcke, W.; Cederbaum, L. S. "Multimode Molecular Dynamics Beyond the Born-Oppenheimer Approximation," Advances in Chemical Physics 1984, 57, 59–246.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyvcham-0.0.1.tar.gz (44.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyvcham-0.0.1-py3-none-any.whl (40.6 kB view details)

Uploaded Python 3

File details

Details for the file pyvcham-0.0.1.tar.gz.

File metadata

  • Download URL: pyvcham-0.0.1.tar.gz
  • Upload date:
  • Size: 44.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.0

File hashes

Hashes for pyvcham-0.0.1.tar.gz
Algorithm Hash digest
SHA256 807985952a9978ef7cee3e9030dc49a10a64f1f6dafdafb507d5d1166f590bce
MD5 b24f3b0519451cd74c62022788574991
BLAKE2b-256 dbcb0fc57203645b1e6642e50fef7d35e33abe2424e8fffd366a744f4a1be5aa

See more details on using hashes here.

File details

Details for the file pyvcham-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pyvcham-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 40.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.0

File hashes

Hashes for pyvcham-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7fc62796feba9b4859cc33510b911e7f208f383adb06f615a62d2e2034b4e063
MD5 a7c4c4a9ab6e34e5ab944ea540d21fb2
BLAKE2b-256 e22312959db28e6794661e41cd45006c64da214aa3da0e72e180a54cb6f17b40

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page