Skip to content

TREX-CoE/aiida-qp2

Repository files navigation

Build Status PyPI version

aiida-qp2

AiiDA plugin for Quantum Package 2.0 (QP2).

This plugin is the modified output of the AiiDA plugin cutter, intended to help developers get started with their AiiDA plugins.

Repository contents

Features

  • Initialize a wave function file (EZFIO) based on StructureData instance and qp_create_ezfio dictionary. This step can optionally use BasisSet and/or Pseudopotential nodes produced by the aiida-gaussian-datatypes plugin.
  • Run calculations (e.g. HF, CIPSI) in a given order according to the qp_commands list. Some pre- or post-processing (e.g. shell scripting) is also possible by providing a list of commands in qp_prepend or qp_append keys of the parameters Dict, respectively.
  • Export TREXIO file from the QP-native EZFIO format.

Installation

pip install aiida-qp2
verdi quicksetup  # better to set up a new profile
verdi plugin list aiida.calculations  # should now show your calclulation plugins

Usage

See Demo-aiida-qp.md and .py files in the examples/ directory.

For instance, the example_trexio_from_xyz.py is the 3-step workflow using the plugin.

verdi daemon start     # make sure the daemon is running
cd examples
python example_trexio_from_xyz.py   # prepare and submit the calculation
verdi process list -a  # check record of calculation
  1. Create the EZFIO wave function file from the hcn.xyz file using a given basis set.
  2. Run SCF calculation using the previously created wave function and parse the output file looking for the Hartree-Fock energy.
  3. Export TREXIO wave function file by converting EZFIO format using TREXIO_TEXT back end.

Development

git clone https://github.com/TREX-CoE/aiida-qp2 .
cd aiida-qp2
pip install -e .[pre-commit]  # install extra dependencies
pre-commit install  # install pre-commit hooks

License

MIT

Contact

posenitskiy@irsamc.ups-tlse.fr

scemama@irsamc.ups-tlse.fr