alice-net 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. alice_net-0.1.0/.gitignore +283 -0
  2. alice_net-0.1.0/LICENSE +674 -0
  3. alice_net-0.1.0/PKG-INFO +782 -0
  4. alice_net-0.1.0/README.md +69 -0
  5. alice_net-0.1.0/docs/images/Alice.png +0 -0
  6. alice_net-0.1.0/pyproject.toml +90 -0
  7. alice_net-0.1.0/src/alice/__init__.py +49 -0
  8. alice_net-0.1.0/src/alice/algorithm/__init__.py +25 -0
  9. alice_net-0.1.0/src/alice/algorithm/dmrg/__init__.py +36 -0
  10. alice_net-0.1.0/src/alice/algorithm/dmrg/complement.py +507 -0
  11. alice_net-0.1.0/src/alice/algorithm/dmrg/davidson.py +249 -0
  12. alice_net-0.1.0/src/alice/algorithm/dmrg/dmrg.py +454 -0
  13. alice_net-0.1.0/src/alice/algorithm/dmrg/environ.py +602 -0
  14. alice_net-0.1.0/src/alice/algorithm/dmrg/scheme_1s.py +133 -0
  15. alice_net-0.1.0/src/alice/algorithm/dmrg/scheme_2s.py +299 -0
  16. alice_net-0.1.0/src/alice/algorithm/dmrg/sweep.py +563 -0
  17. alice_net-0.1.0/src/alice/algorithm/interface.py +267 -0
  18. alice_net-0.1.0/src/alice/logging.py +174 -0
  19. alice_net-0.1.0/src/alice/network/__init__.py +40 -0
  20. alice_net-0.1.0/src/alice/network/autompo.py +207 -0
  21. alice_net-0.1.0/src/alice/network/interaction.py +351 -0
  22. alice_net-0.1.0/src/alice/network/network.py +666 -0
  23. alice_net-0.1.0/src/alice/network/observe.py +150 -0
  24. alice_net-0.1.0/src/alice/physics/__init__.py +39 -0
  25. alice_net-0.1.0/src/alice/physics/geometry.py +566 -0
  26. alice_net-0.1.0/src/alice/physics/models.py +331 -0
  27. alice_net-0.1.0/src/alice/physics/system.py +503 -0
  28. alice_net-0.1.0/tests/__init__.py +19 -0
  29. alice_net-0.1.0/tests/algorithm/__init__.py +19 -0
  30. alice_net-0.1.0/tests/algorithm/dmrg/__init__.py +19 -0
  31. alice_net-0.1.0/tests/algorithm/dmrg/conftest.py +130 -0
  32. alice_net-0.1.0/tests/algorithm/dmrg/test_davidson.py +210 -0
  33. alice_net-0.1.0/tests/algorithm/dmrg/test_dmrg.py +300 -0
  34. alice_net-0.1.0/tests/algorithm/dmrg/test_environ.py +587 -0
  35. alice_net-0.1.0/tests/algorithm/dmrg/test_scheme_1s.py +155 -0
  36. alice_net-0.1.0/tests/algorithm/dmrg/test_scheme_1sp.py +473 -0
  37. alice_net-0.1.0/tests/algorithm/dmrg/test_scheme_2s.py +235 -0
  38. alice_net-0.1.0/tests/algorithm/dmrg/test_sweep.py +197 -0
  39. alice_net-0.1.0/tests/algorithm/test_interface.py +146 -0
  40. alice_net-0.1.0/tests/diagonaliztn/__init__.py +19 -0
  41. alice_net-0.1.0/tests/diagonaliztn/assign.py +204 -0
  42. alice_net-0.1.0/tests/diagonaliztn/bosonic.py +178 -0
  43. alice_net-0.1.0/tests/diagonaliztn/conductor.py +262 -0
  44. alice_net-0.1.0/tests/diagonaliztn/conftest.py +120 -0
  45. alice_net-0.1.0/tests/diagonaliztn/fermionic.py +198 -0
  46. alice_net-0.1.0/tests/diagonaliztn/system.py +556 -0
  47. alice_net-0.1.0/tests/diagonaliztn/test_autompo.py +474 -0
  48. alice_net-0.1.0/tests/diagonaliztn/test_conductor.py +146 -0
  49. alice_net-0.1.0/tests/diagonaliztn/test_freefermion.py +89 -0
  50. alice_net-0.1.0/tests/diagonaliztn/test_heisenberg.py +146 -0
  51. alice_net-0.1.0/tests/network/__init__.py +19 -0
  52. alice_net-0.1.0/tests/network/conftest.py +240 -0
  53. alice_net-0.1.0/tests/network/test_network.py +1039 -0
  54. alice_net-0.1.0/tests/network/test_observe.py +126 -0
  55. alice_net-0.1.0/tests/physics/__init__.py +19 -0
  56. alice_net-0.1.0/tests/physics/test_chain.py +135 -0
  57. alice_net-0.1.0/tests/physics/test_geometry.py +138 -0
  58. alice_net-0.1.0/tests/physics/test_models.py +488 -0
  59. alice_net-0.1.0/tests/physics/test_square.py +458 -0
  60. alice_net-0.1.0/tests/physics/test_system.py +404 -0
@@ -0,0 +1,283 @@
1
+ # ------------------------------------------------------- #
2
+ # .gitignore for Alice #
3
+ # ------------------------------------------------------- #
4
+
5
+ # Logging directory for Alice
6
+ .logging/
7
+
8
+ # Yuzuha cache for canonical basis data
9
+ .yuzuha/
10
+
11
+
12
+
13
+ # ------------------------------------------------------- #
14
+ # .gitignore for Cursor and VS Code Editors #
15
+ # ------------------------------------------------------- #
16
+
17
+ .cursor/
18
+ .cursorignore
19
+ .cursorindexingignore
20
+
21
+ .vscode/
22
+ !.vscode/settings.json
23
+ !.vscode/tasks.json
24
+ !.vscode/launch.json
25
+ !.vscode/extensions.json
26
+ !.vscode/*.code-snippets
27
+ !*.code-workspace
28
+
29
+ # Built Visual Studio Code Extensions
30
+ *.vsix
31
+
32
+
33
+
34
+ # ------------------------------------------------------- #
35
+ # .gitignore for Python #
36
+ # ------------------------------------------------------- #
37
+
38
+ # Byte-compiled / optimized / DLL files
39
+ __pycache__/
40
+ *.py[cod]
41
+ *$py.class
42
+
43
+ # C extensions
44
+ *.so
45
+
46
+ # Distribution / packaging
47
+ .Python
48
+ build/
49
+ develop-eggs/
50
+ dist/
51
+ downloads/
52
+ eggs/
53
+ .eggs/
54
+ lib/
55
+ lib64/
56
+ parts/
57
+ sdist/
58
+ var/
59
+ wheels/
60
+ share/python-wheels/
61
+ *.egg-info/
62
+ .installed.cfg
63
+ *.egg
64
+ MANIFEST
65
+
66
+ # PyInstaller
67
+ # Usually these files are written by a python script from a template
68
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
69
+ *.manifest
70
+ *.spec
71
+
72
+ # Installer logs
73
+ pip-log.txt
74
+ pip-delete-this-directory.txt
75
+
76
+ # Unit test / coverage reports
77
+ htmlcov/
78
+ .tox/
79
+ .nox/
80
+ .coverage
81
+ .coverage.*
82
+ .cache
83
+ nosetests.xml
84
+ coverage.xml
85
+ *.cover
86
+ *.py,cover
87
+ .hypothesis/
88
+ .pytest_cache/
89
+ cover/
90
+
91
+ # Translations
92
+ *.mo
93
+ *.pot
94
+
95
+ # Django stuff:
96
+ *.log
97
+ local_settings.py
98
+ db.sqlite3
99
+ db.sqlite3-journal
100
+
101
+ # Flask stuff:
102
+ instance/
103
+ .webassets-cache
104
+
105
+ # Scrapy stuff:
106
+ .scrapy
107
+
108
+ # Sphinx documentation
109
+ docs/_build/
110
+
111
+ # PyBuilder
112
+ .pybuilder/
113
+ target/
114
+
115
+ # Jupyter Notebook
116
+ .ipynb_checkpoints
117
+
118
+ # IPython
119
+ profile_default/
120
+ ipython_config.py
121
+
122
+ # pyenv
123
+ # For a library or package, you might want to ignore these files since the code is
124
+ # intended to run in multiple environments; otherwise, check them in:
125
+ # .python-version
126
+
127
+ # pipenv
128
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
129
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
130
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
131
+ # install all needed dependencies.
132
+ #Pipfile.lock
133
+
134
+ # poetry
135
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
136
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
137
+ # commonly ignored for libraries.
138
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
139
+ #poetry.lock
140
+
141
+ # pdm
142
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
143
+ #pdm.lock
144
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
145
+ # in version control.
146
+ # https://pdm.fming.dev/#use-with-ide
147
+ .pdm.toml
148
+
149
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
150
+ __pypackages__/
151
+
152
+ # Celery stuff
153
+ celerybeat-schedule
154
+ celerybeat.pid
155
+
156
+ # SageMath parsed files
157
+ *.sage.py
158
+
159
+ # Environments
160
+ .env
161
+ .venv
162
+ env/
163
+ venv/
164
+ ENV/
165
+ env.bak/
166
+ venv.bak/
167
+
168
+ # Spyder project settings
169
+ .spyderproject
170
+ .spyproject
171
+
172
+ # Rope project settings
173
+ .ropeproject
174
+
175
+ # mkdocs documentation
176
+ /site
177
+
178
+ # mypy
179
+ .mypy_cache/
180
+ .dmypy.json
181
+ dmypy.json
182
+
183
+ # Pyre type checker
184
+ .pyre/
185
+
186
+ # pytype static type analyzer
187
+ .pytype/
188
+
189
+ # Cython debug symbols
190
+ cython_debug/
191
+
192
+ # PyCharm
193
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
194
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
195
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
196
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
197
+ #.idea/
198
+
199
+
200
+
201
+ # ------------------------------------------------------- #
202
+ # .gitignore for Windows #
203
+ # ------------------------------------------------------- #
204
+
205
+ # Windows thumbnail cache files
206
+ Thumbs.db
207
+ Thumbs.db:encryptable
208
+ ehthumbs.db
209
+ ehthumbs_vista.db
210
+
211
+ # Dump file
212
+ *.stackdump
213
+
214
+ # Folder config file
215
+ [Dd]esktop.ini
216
+
217
+ # Recycle Bin used on file shares
218
+ $RECYCLE.BIN/
219
+
220
+ # Windows Installer files
221
+ *.cab
222
+ *.msi
223
+ *.msix
224
+ *.msm
225
+ *.msp
226
+
227
+ # Windows shortcuts
228
+ *.lnk
229
+
230
+
231
+
232
+ # ------------------------------------------------------- #
233
+ # .gitignore for macOS #
234
+ # ------------------------------------------------------- #
235
+
236
+ # General
237
+ .DS_Store
238
+ .AppleDouble
239
+ .LSOverride
240
+ Icon[
241
+ ]
242
+
243
+ # Thumbnails
244
+ ._*
245
+
246
+ # Files that might appear in the root of a volume
247
+ .DocumentRevisions-V100
248
+ .fseventsd
249
+ .Spotlight-V100
250
+ .TemporaryItems
251
+ .Trashes
252
+ .VolumeIcon.icns
253
+ .com.apple.timemachine.donotpresent
254
+
255
+ # Directories potentially created on remote AFP share
256
+ .AppleDB
257
+ .AppleDesktop
258
+ Network Trash Folder
259
+ Temporary Items
260
+ .apdisk
261
+
262
+
263
+
264
+ # ------------------------------------------------------- #
265
+ # .gitignore for Linux #
266
+ # ------------------------------------------------------- #
267
+
268
+ *~
269
+
270
+ # temporary files which can be created if a process still has a handle open of a deleted file
271
+ .fuse_hidden*
272
+
273
+ # Metadata left by Dolphin file manager, which comes with KDE Plasma
274
+ .directory
275
+
276
+ # Linux trash folder which might appear on any partition or disk
277
+ .Trash-*
278
+
279
+ # .nfs files are created when an open file is removed but is still being accessed
280
+ .nfs*
281
+
282
+ # Log files created by default by the nohup command
283
+ nohup.out