Package for performing Piris Natural Orbital Functionals (PNOF)
Project description
PyNOF
Citation |
---|
Formally read as Python-Natural-Orbital-Functionals, PyNOF is based on the original DoNOF software written in Fortran by Prof. Mario Piris, but it takes advantage of the Python capabilities such as optimizers, vectorization via numpy and gpu compatibility via cupy.
Installation
We recommend to perform the installation inside an Anaconda enviroment:
conda create -y -n pynof
conda activate pynof
PyNOF uses Psi4 for integrals, so it is necessary to install it first:
conda install -y psi4 -c conda-forge/label/libint_dev -c conda-forge
then, you can simply install PyNOF using pip
pip install -y pynof
[Optional] Integrals transformations can benefit from a GPU. If available, just install cupy
conda install -y -c conda-forge cupy
Example
A pynof input has the following parts:
- Import pynof
- A declaration of the molecule geometry
- A parameter object
- The calculation instruction
import pynof
mol = pynof.molecule("""
0 1
O 0.0000 0.000 0.116
H 0.0000 0.749 -0.453
H 0.0000 -0.749 -0.453
""")
p = pynof.param(mol,"cc-pvdz")
p.autozeros()
p.ipnof=8
p.RI = True
#p.gpu = True
E,C,gamma,fmiug0 = pynof.compute_energy(mol,p,hfidr=True)
If everything worked, the job may be executed by
python -u test_energy.py
Note. The first run may be slightly slow due to jit precompilation.
For development
First, clone PyNOF from github and change to the project directory
git clone https://github.com/felipelewyee/PyNOF.git
cd PyNOF
In the PyNOF folder, execute the following code
conda create -y -n pynof
conda activate pynof
conda install -y psi4 -c conda-forge/label/libint_dev -c conda-forge
conda install -y -c conda-forge cupy # Optional
pip install build
python -m build && cd dist && pip install pynof*.whl && cd ..
Authors
The PyNOF code has been built by Juan Felipe Huan Lew Yee, Lizeth Franco Nolasco and Iván Alejandro Rivera under supervision of Jorge Martín del Campo Ramírez and Mario Piris.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pynof-1.3.tar.gz
.
File metadata
- Download URL: pynof-1.3.tar.gz
- Upload date:
- Size: 75.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6d93d0e53c499246be07ec547906b5bbea649cd35f1d16e7795b0e8f570b8c3 |
|
MD5 | 7f637d87cda700ec00a95051c7a5c0c8 |
|
BLAKE2b-256 | 8aaad05f02c26a8c92f293b9446452d3c8f675f27ea8679fe834ec199180c773 |
File details
Details for the file pynof-1.3-py3-none-any.whl
.
File metadata
- Download URL: pynof-1.3-py3-none-any.whl
- Upload date:
- Size: 48.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cc66c4573ccf0e2c80172b94cd43948a8fb521f7a4573832d0eff97c9e3a587 |
|
MD5 | 7359b619059f801b5a44899fdd8f47ba |
|
BLAKE2b-256 | 9838ed7472d9352d2f0516f21b50ed29dff783ec94e6ecb108321c8776be5d9f |