-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added files prepared for twine: python3 -m build
python3 -m pip install --upgrade build python3 -m pip install --upgrade twine twine upload dist/*
- Loading branch information
1 parent
05f16a8
commit 7933b94
Showing
5 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
recursive-include examples *.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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))) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.