Skip to content

Commit

Permalink
added files prepared for twine: python3 -m build
Browse files Browse the repository at this point in the history
python3 -m pip install --upgrade build
python3 -m pip install --upgrade twine
twine upload dist/*
  • Loading branch information
marekgluza committed Nov 19, 2021
1 parent 05f16a8 commit 7933b94
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 3 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
recursive-include examples *.py
22 changes: 22 additions & 0 deletions examples/testing_import.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from simple_exact_diagonalization_routines.local_matrix_class import *

# You need to tell local_matrix_class what will be the ultimate system size
L = 3

# This is how to create objects of Pauli operators
X = X_class(L)
Y = Y_class(L)
Z = Z_class(L)
S_plus = S_plus_class(L)
S_minus = S_minus_class(L)

# As an example, use some of these objects to create a hopping Hamiltonian

# Trivial initialization of the right size matrix
H_hopping = 0*np.eye( 2**L )

# Iteratively add always more hopping terms
for x in range(1,L-1):
H_hopping = H_hopping + S_plus.at(x).dot(Z.at(x+1).dot(S_minus.at(x+2))) + S_minus.at(x).dot(Z.at(x+1).dot(S_plus.at(x+2)))


9 changes: 6 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
from setuptools import setup
from setuptools import setup, find_packages

setup(name='simple_exact_diagonalization_routines',
version='0.1',
description='A set of functions useful for quick exact diagonalization computations and checks.',
url='https://github.com/marekgluza/Gaussian_fermions.git',
url='https://github.com/marekgluza/simple_exact_diagonalization_routines',
author='Marek Gluza',
license='GPL-3.0',
packages=find_packages(),
packages=find_packages('src'),
package_dir={'': 'src'},
install_requires=['numpy',
],
zip_safe=False)
File renamed without changes.
File renamed without changes.

0 comments on commit 7933b94

Please sign in to comment.