nicole 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 (102) hide show
  1. nicole-0.1.0/.gitattributes +1 -0
  2. nicole-0.1.0/.gitignore +279 -0
  3. nicole-0.1.0/.vscode/settings.json +7 -0
  4. nicole-0.1.0/LICENSE +674 -0
  5. nicole-0.1.0/PKG-INFO +759 -0
  6. nicole-0.1.0/README.md +51 -0
  7. nicole-0.1.0/bench/inf_tebd.ipynb +346 -0
  8. nicole-0.1.0/bench/inf_tebd.py +500 -0
  9. nicole-0.1.0/bench/iter_diag.ipynb +467 -0
  10. nicole-0.1.0/bench/iter_diag.m +63 -0
  11. nicole-0.1.0/bench/iter_diag.py +302 -0
  12. nicole-0.1.0/bench/iter_diag2.m +109 -0
  13. nicole-0.1.0/bench/scalene-profile-1.json +8844 -0
  14. nicole-0.1.0/bench/scalene-profile-2.json +9253 -0
  15. nicole-0.1.0/bench/scalene-profile-diag.json +10605 -0
  16. nicole-0.1.0/bench/scalene-profile.html +11157 -0
  17. nicole-0.1.0/bench/scalene-profile.json +1302 -0
  18. nicole-0.1.0/docs/api/arithmetic/addition.md +47 -0
  19. nicole-0.1.0/docs/api/arithmetic/diag.md +45 -0
  20. nicole-0.1.0/docs/api/arithmetic/inv.md +66 -0
  21. nicole-0.1.0/docs/api/arithmetic/oplus.md +28 -0
  22. nicole-0.1.0/docs/api/contraction/contract.md +33 -0
  23. nicole-0.1.0/docs/api/contraction/trace.md +32 -0
  24. nicole-0.1.0/docs/api/core/direction.md +65 -0
  25. nicole-0.1.0/docs/api/core/index-class.md +56 -0
  26. nicole-0.1.0/docs/api/core/sector.md +43 -0
  27. nicole-0.1.0/docs/api/core/tensor.md +49 -0
  28. nicole-0.1.0/docs/api/creation/identity.md +28 -0
  29. nicole-0.1.0/docs/api/creation/isometry.md +30 -0
  30. nicole-0.1.0/docs/api/creation/isometry_n.md +76 -0
  31. nicole-0.1.0/docs/api/creation/random.md +24 -0
  32. nicole-0.1.0/docs/api/creation/zeros.md +22 -0
  33. nicole-0.1.0/docs/api/decomposition/decomp.md +79 -0
  34. nicole-0.1.0/docs/api/decomposition/svd.md +29 -0
  35. nicole-0.1.0/docs/api/index.md +138 -0
  36. nicole-0.1.0/docs/api/manipulation/conjugate.md +26 -0
  37. nicole-0.1.0/docs/api/manipulation/merge_axes.md +62 -0
  38. nicole-0.1.0/docs/api/manipulation/permute.md +22 -0
  39. nicole-0.1.0/docs/api/manipulation/retag.md +29 -0
  40. nicole-0.1.0/docs/api/manipulation/subsector.md +29 -0
  41. nicole-0.1.0/docs/api/manipulation/transpose.md +24 -0
  42. nicole-0.1.0/docs/api/symmetry/overview.md +72 -0
  43. nicole-0.1.0/docs/api/symmetry/product-group.md +45 -0
  44. nicole-0.1.0/docs/api/symmetry/u1-group.md +42 -0
  45. nicole-0.1.0/docs/api/symmetry/z2-group.md +42 -0
  46. nicole-0.1.0/docs/api/utilities/blocks.md +48 -0
  47. nicole-0.1.0/docs/api/utilities/display.md +49 -0
  48. nicole-0.1.0/docs/api/utilities/load_space.md +100 -0
  49. nicole-0.1.0/docs/examples/advanced/custom-operators.md +118 -0
  50. nicole-0.1.0/docs/examples/advanced/performance.md +132 -0
  51. nicole-0.1.0/docs/examples/basic/arithmetic.md +135 -0
  52. nicole-0.1.0/docs/examples/basic/first-tensor.md +153 -0
  53. nicole-0.1.0/docs/examples/basic/indexing.md +177 -0
  54. nicole-0.1.0/docs/examples/index.md +63 -0
  55. nicole-0.1.0/docs/examples/operations/contraction-examples.md +119 -0
  56. nicole-0.1.0/docs/examples/operations/decomposition-examples.md +124 -0
  57. nicole-0.1.0/docs/examples/operations/manipulation-examples.md +99 -0
  58. nicole-0.1.0/docs/examples/symmetries/product-examples.md +97 -0
  59. nicole-0.1.0/docs/examples/symmetries/u1-examples.md +93 -0
  60. nicole-0.1.0/docs/examples/symmetries/z2-examples.md +114 -0
  61. nicole-0.1.0/docs/getting-started.md +350 -0
  62. nicole-0.1.0/docs/images/nicole.png +0 -0
  63. nicole-0.1.0/docs/index.md +94 -0
  64. nicole-0.1.0/docs/stylesheets/extra.css +6 -0
  65. nicole-0.1.0/docs/tutorials/index.md +242 -0
  66. nicole-0.1.0/examples/product_group_examples.md +276 -0
  67. nicole-0.1.0/mkdocs.yml +192 -0
  68. nicole-0.1.0/pyproject.toml +67 -0
  69. nicole-0.1.0/src/nicole/__init__.py +60 -0
  70. nicole-0.1.0/src/nicole/blocks.py +117 -0
  71. nicole-0.1.0/src/nicole/contract.py +639 -0
  72. nicole-0.1.0/src/nicole/decomp.py +784 -0
  73. nicole-0.1.0/src/nicole/display.py +379 -0
  74. nicole-0.1.0/src/nicole/identity.py +321 -0
  75. nicole-0.1.0/src/nicole/index.py +277 -0
  76. nicole-0.1.0/src/nicole/operators.py +830 -0
  77. nicole-0.1.0/src/nicole/space.py +802 -0
  78. nicole-0.1.0/src/nicole/symmetry/__init__.py +31 -0
  79. nicole-0.1.0/src/nicole/symmetry/abelian.py +92 -0
  80. nicole-0.1.0/src/nicole/symmetry/base.py +79 -0
  81. nicole-0.1.0/src/nicole/symmetry/product.py +254 -0
  82. nicole-0.1.0/src/nicole/tensor.py +766 -0
  83. nicole-0.1.0/src/nicole/typing.py +68 -0
  84. nicole-0.1.0/tests/__init__.py +67 -0
  85. nicole-0.1.0/tests/test_arithmetic.py +608 -0
  86. nicole-0.1.0/tests/test_blocks.py +258 -0
  87. nicole-0.1.0/tests/test_construction.py +1030 -0
  88. nicole-0.1.0/tests/test_contract.py +1197 -0
  89. nicole-0.1.0/tests/test_copy_access.py +424 -0
  90. nicole-0.1.0/tests/test_decomp.py +2193 -0
  91. nicole-0.1.0/tests/test_diag_inv.py +873 -0
  92. nicole-0.1.0/tests/test_display.py +344 -0
  93. nicole-0.1.0/tests/test_group_elem.py +219 -0
  94. nicole-0.1.0/tests/test_group_prod.py +298 -0
  95. nicole-0.1.0/tests/test_identity.py +655 -0
  96. nicole-0.1.0/tests/test_index.py +491 -0
  97. nicole-0.1.0/tests/test_integration.py +369 -0
  98. nicole-0.1.0/tests/test_manipulation.py +1638 -0
  99. nicole-0.1.0/tests/test_oplus.py +657 -0
  100. nicole-0.1.0/tests/test_space.py +970 -0
  101. nicole-0.1.0/tests/test_types.py +128 -0
  102. nicole-0.1.0/tests/utils.py +66 -0
@@ -0,0 +1 @@
1
+ *.pdf filter=lfs diff=lfs merge=lfs -text
@@ -0,0 +1,279 @@
1
+ # ------------------------------------------------------- #
2
+ # .gitignore for Nicole #
3
+ # ------------------------------------------------------- #
4
+
5
+ refs/
6
+
7
+
8
+
9
+ # ------------------------------------------------------- #
10
+ # .gitignore for Cursor and VS Code Editors #
11
+ # ------------------------------------------------------- #
12
+
13
+ .cursor/
14
+ .cursorignore
15
+ .cursorindexingignore
16
+
17
+ .vscode/
18
+ !.vscode/settings.json
19
+ !.vscode/tasks.json
20
+ !.vscode/launch.json
21
+ !.vscode/extensions.json
22
+ !.vscode/*.code-snippets
23
+ !*.code-workspace
24
+
25
+ # Built Visual Studio Code Extensions
26
+ *.vsix
27
+
28
+
29
+
30
+ # ------------------------------------------------------- #
31
+ # .gitignore for Python #
32
+ # ------------------------------------------------------- #
33
+
34
+ # Byte-compiled / optimized / DLL files
35
+ __pycache__/
36
+ *.py[cod]
37
+ *$py.class
38
+
39
+ # C extensions
40
+ *.so
41
+
42
+ # Distribution / packaging
43
+ .Python
44
+ build/
45
+ develop-eggs/
46
+ dist/
47
+ downloads/
48
+ eggs/
49
+ .eggs/
50
+ lib/
51
+ lib64/
52
+ parts/
53
+ sdist/
54
+ var/
55
+ wheels/
56
+ share/python-wheels/
57
+ *.egg-info/
58
+ .installed.cfg
59
+ *.egg
60
+ MANIFEST
61
+
62
+ # PyInstaller
63
+ # Usually these files are written by a python script from a template
64
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
65
+ *.manifest
66
+ *.spec
67
+
68
+ # Installer logs
69
+ pip-log.txt
70
+ pip-delete-this-directory.txt
71
+
72
+ # Unit test / coverage reports
73
+ htmlcov/
74
+ .tox/
75
+ .nox/
76
+ .coverage
77
+ .coverage.*
78
+ .cache
79
+ nosetests.xml
80
+ coverage.xml
81
+ *.cover
82
+ *.py,cover
83
+ .hypothesis/
84
+ .pytest_cache/
85
+ cover/
86
+
87
+ # Translations
88
+ *.mo
89
+ *.pot
90
+
91
+ # Django stuff:
92
+ *.log
93
+ local_settings.py
94
+ db.sqlite3
95
+ db.sqlite3-journal
96
+
97
+ # Flask stuff:
98
+ instance/
99
+ .webassets-cache
100
+
101
+ # Scrapy stuff:
102
+ .scrapy
103
+
104
+ # Sphinx documentation
105
+ docs/_build/
106
+
107
+ # PyBuilder
108
+ .pybuilder/
109
+ target/
110
+
111
+ # Jupyter Notebook
112
+ .ipynb_checkpoints
113
+
114
+ # IPython
115
+ profile_default/
116
+ ipython_config.py
117
+
118
+ # pyenv
119
+ # For a library or package, you might want to ignore these files since the code is
120
+ # intended to run in multiple environments; otherwise, check them in:
121
+ # .python-version
122
+
123
+ # pipenv
124
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
125
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
126
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
127
+ # install all needed dependencies.
128
+ #Pipfile.lock
129
+
130
+ # poetry
131
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
132
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
133
+ # commonly ignored for libraries.
134
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
135
+ #poetry.lock
136
+
137
+ # pdm
138
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
139
+ #pdm.lock
140
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
141
+ # in version control.
142
+ # https://pdm.fming.dev/#use-with-ide
143
+ .pdm.toml
144
+
145
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
146
+ __pypackages__/
147
+
148
+ # Celery stuff
149
+ celerybeat-schedule
150
+ celerybeat.pid
151
+
152
+ # SageMath parsed files
153
+ *.sage.py
154
+
155
+ # Environments
156
+ .env
157
+ .venv
158
+ env/
159
+ venv/
160
+ ENV/
161
+ env.bak/
162
+ venv.bak/
163
+
164
+ # Spyder project settings
165
+ .spyderproject
166
+ .spyproject
167
+
168
+ # Rope project settings
169
+ .ropeproject
170
+
171
+ # mkdocs documentation
172
+ /site
173
+
174
+ # mypy
175
+ .mypy_cache/
176
+ .dmypy.json
177
+ dmypy.json
178
+
179
+ # Pyre type checker
180
+ .pyre/
181
+
182
+ # pytype static type analyzer
183
+ .pytype/
184
+
185
+ # Cython debug symbols
186
+ cython_debug/
187
+
188
+ # PyCharm
189
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
190
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
191
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
192
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
193
+ #.idea/
194
+
195
+
196
+
197
+ # ------------------------------------------------------- #
198
+ # .gitignore for Windows #
199
+ # ------------------------------------------------------- #
200
+
201
+ # Windows thumbnail cache files
202
+ Thumbs.db
203
+ Thumbs.db:encryptable
204
+ ehthumbs.db
205
+ ehthumbs_vista.db
206
+
207
+ # Dump file
208
+ *.stackdump
209
+
210
+ # Folder config file
211
+ [Dd]esktop.ini
212
+
213
+ # Recycle Bin used on file shares
214
+ $RECYCLE.BIN/
215
+
216
+ # Windows Installer files
217
+ *.cab
218
+ *.msi
219
+ *.msix
220
+ *.msm
221
+ *.msp
222
+
223
+ # Windows shortcuts
224
+ *.lnk
225
+
226
+
227
+
228
+ # ------------------------------------------------------- #
229
+ # .gitignore for macOS #
230
+ # ------------------------------------------------------- #
231
+
232
+ # General
233
+ .DS_Store
234
+ .AppleDouble
235
+ .LSOverride
236
+ Icon[
237
+ ]
238
+
239
+ # Thumbnails
240
+ ._*
241
+
242
+ # Files that might appear in the root of a volume
243
+ .DocumentRevisions-V100
244
+ .fseventsd
245
+ .Spotlight-V100
246
+ .TemporaryItems
247
+ .Trashes
248
+ .VolumeIcon.icns
249
+ .com.apple.timemachine.donotpresent
250
+
251
+ # Directories potentially created on remote AFP share
252
+ .AppleDB
253
+ .AppleDesktop
254
+ Network Trash Folder
255
+ Temporary Items
256
+ .apdisk
257
+
258
+
259
+
260
+ # ------------------------------------------------------- #
261
+ # .gitignore for Linux #
262
+ # ------------------------------------------------------- #
263
+
264
+ *~
265
+
266
+ # temporary files which can be created if a process still has a handle open of a deleted file
267
+ .fuse_hidden*
268
+
269
+ # Metadata left by Dolphin file manager, which comes with KDE Plasma
270
+ .directory
271
+
272
+ # Linux trash folder which might appear on any partition or disk
273
+ .Trash-*
274
+
275
+ # .nfs files are created when an open file is removed but is still being accessed
276
+ .nfs*
277
+
278
+ # Log files created by default by the nohup command
279
+ nohup.out
@@ -0,0 +1,7 @@
1
+ {
2
+ "python.testing.pytestArgs": [
3
+ "tests"
4
+ ],
5
+ "python.testing.unittestEnabled": false,
6
+ "python.testing.pytestEnabled": true
7
+ }