Skip to content

Commit

Permalink
changed package name
Browse files Browse the repository at this point in the history
  • Loading branch information
ecignoni committed Feb 6, 2023
1 parent 46343dd commit 8b0b0f1
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

# exhale
# halex

Excited states Hamiltonian Learning
Hamiltonian Learning for Excited States
2 changes: 0 additions & 2 deletions exhale/std/integrals.py

This file was deleted.

File renamed without changes.
File renamed without changes.
15 changes: 15 additions & 0 deletions halex/std/integrals.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import torch

from .utils import isqrtm


def charge_density_monopole(ovlp, natm, ao_labels, mo_coeff_a, mo_coeff_b):
ovlp_i12 = isqrtm(ovlp)
coeff_orth_a = torch.matmul(ovlp_i12, mo_coeff_a)
coeff_orth_b = torch.matmul(ovlp_i12, mo_coeff_b)
nmo_a = coeff_orth_a.shape[1]
nmo_b = coeff_orth_b.shape[1]
q = torch.zeros((natm, nmo_a, nmo_b))
for i, (atidx, *_) in enumerate(ao_labels):
q[atidx] += torch.einsum("p,q->pq", coeff_orth_a[i], coeff_orth_b[i]).real
return q
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from setuptools import setup

setup(
name="exhale",
name="halex",
version="0.0.0",
url="https://github.com/ecignoni/exhale",
url="https://github.com/ecignoni/halex",
author="Edoardo Cignoni",
author_email="[email protected]",
description=open("README.md").read(),
packages=["exhale"],
packages=["halex"],
)
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ignore=
# Line too long (black uses 88 instead of 79)
E501
exclude=
exhale.egg_info
halex.egg_info
build
.git
__pycache__,
Expand Down

0 comments on commit 8b0b0f1

Please sign in to comment.