graph-state-sim 0.2.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 (110) hide show
  1. graph_state_sim-0.2.0/.gitattributes +1 -0
  2. graph_state_sim-0.2.0/.github/workflows/workflow.yml +0 -0
  3. graph_state_sim-0.2.0/.gitignore +289 -0
  4. graph_state_sim-0.2.0/.python-version +1 -0
  5. graph_state_sim-0.2.0/.travis.yml +14 -0
  6. graph_state_sim-0.2.0/.vscode/settings.json +7 -0
  7. graph_state_sim-0.2.0/CMakeLists.txt +20 -0
  8. graph_state_sim-0.2.0/COPYING +674 -0
  9. graph_state_sim-0.2.0/PKG-INFO +47 -0
  10. graph_state_sim-0.2.0/README.md +40 -0
  11. graph_state_sim-0.2.0/demo.py +22 -0
  12. graph_state_sim-0.2.0/doc/graphsim_py.html +1074 -0
  13. graph_state_sim-0.2.0/doc/html/annotated.html +23 -0
  14. graph_state_sim-0.2.0/doc/html/classGraphRegister-members.html +31 -0
  15. graph_state_sim-0.2.0/doc/html/classGraphRegister.html +390 -0
  16. graph_state_sim-0.2.0/doc/html/doxygen.css +169 -0
  17. graph_state_sim-0.2.0/doc/html/doxygen.png +0 -0
  18. graph_state_sim-0.2.0/doc/html/files.html +18 -0
  19. graph_state_sim-0.2.0/doc/html/functions.html +46 -0
  20. graph_state_sim-0.2.0/doc/html/functions_func.html +41 -0
  21. graph_state_sim-0.2.0/doc/html/functions_vars.html +23 -0
  22. graph_state_sim-0.2.0/doc/html/globals.html +45 -0
  23. graph_state_sim-0.2.0/doc/html/globals_func.html +22 -0
  24. graph_state_sim-0.2.0/doc/html/globals_type.html +23 -0
  25. graph_state_sim-0.2.0/doc/html/globals_vars.html +36 -0
  26. graph_state_sim-0.2.0/doc/html/graphsim_8h-source.html +143 -0
  27. graph_state_sim-0.2.0/doc/html/graphsim_8h.html +168 -0
  28. graph_state_sim-0.2.0/doc/html/index.html +24 -0
  29. graph_state_sim-0.2.0/doc/html/loccliff_8h-source.html +227 -0
  30. graph_state_sim-0.2.0/doc/html/loccliff_8h.html +139 -0
  31. graph_state_sim-0.2.0/doc/html/namespaceloccliff__tables.html +113 -0
  32. graph_state_sim-0.2.0/doc/html/namespaces.html +16 -0
  33. graph_state_sim-0.2.0/doc/html/stabilizer_8h-source.html +76 -0
  34. graph_state_sim-0.2.0/doc/html/stabilizer_8h.html +34 -0
  35. graph_state_sim-0.2.0/doc/html/structConnectionInfo-members.html +17 -0
  36. graph_state_sim-0.2.0/doc/html/structConnectionInfo.html +33 -0
  37. graph_state_sim-0.2.0/doc/html/structEdge-members.html +15 -0
  38. graph_state_sim-0.2.0/doc/html/structEdge.html +28 -0
  39. graph_state_sim-0.2.0/doc/html/structLocCliffOp-members.html +24 -0
  40. graph_state_sim-0.2.0/doc/html/structLocCliffOp.html +160 -0
  41. graph_state_sim-0.2.0/doc/html/structQubitVertex-members.html +17 -0
  42. graph_state_sim-0.2.0/doc/html/structQubitVertex.html +106 -0
  43. graph_state_sim-0.2.0/doc/html/structRightPhase-members.html +18 -0
  44. graph_state_sim-0.2.0/doc/html/structRightPhase.html +65 -0
  45. graph_state_sim-0.2.0/doc/html/structStabilizer-members.html +26 -0
  46. graph_state_sim-0.2.0/doc/html/structStabilizer.html +64 -0
  47. graph_state_sim-0.2.0/doc/html/structedge__hash-members.html +15 -0
  48. graph_state_sim-0.2.0/doc/html/structedge__hash.html +28 -0
  49. graph_state_sim-0.2.0/doc/latex/annotated.tex +11 -0
  50. graph_state_sim-0.2.0/doc/latex/classGraphRegister.tex +131 -0
  51. graph_state_sim-0.2.0/doc/latex/doxygen.sty +64 -0
  52. graph_state_sim-0.2.0/doc/latex/files.tex +6 -0
  53. graph_state_sim-0.2.0/doc/latex/graphsim_8h.tex +77 -0
  54. graph_state_sim-0.2.0/doc/latex/index.tex +19 -0
  55. graph_state_sim-0.2.0/doc/latex/loccliff_8h.tex +115 -0
  56. graph_state_sim-0.2.0/doc/latex/namespaceloccliff__tables.tex +63 -0
  57. graph_state_sim-0.2.0/doc/latex/namespaces.tex +4 -0
  58. graph_state_sim-0.2.0/doc/latex/refman.tex +54 -0
  59. graph_state_sim-0.2.0/doc/latex/stabilizer_8h.tex +24 -0
  60. graph_state_sim-0.2.0/doc/latex/structConnectionInfo.tex +26 -0
  61. graph_state_sim-0.2.0/doc/latex/structEdge.tex +21 -0
  62. graph_state_sim-0.2.0/doc/latex/structLocCliffOp.tex +82 -0
  63. graph_state_sim-0.2.0/doc/latex/structQubitVertex.tex +47 -0
  64. graph_state_sim-0.2.0/doc/latex/structRightPhase.tex +43 -0
  65. graph_state_sim-0.2.0/doc/latex/structStabilizer.tex +60 -0
  66. graph_state_sim-0.2.0/doc/latex/structedge__hash.tex +21 -0
  67. graph_state_sim-0.2.0/doc/timestamp.dummy +0 -0
  68. graph_state_sim-0.2.0/doc/xml/classGraphRegister.xml +544 -0
  69. graph_state_sim-0.2.0/doc/xml/compound.xsd +713 -0
  70. graph_state_sim-0.2.0/doc/xml/graphsim_8cpp.xml +605 -0
  71. graph_state_sim-0.2.0/doc/xml/graphsim_8h.xml +297 -0
  72. graph_state_sim-0.2.0/doc/xml/gstest_8cpp.xml +162 -0
  73. graph_state_sim-0.2.0/doc/xml/index.xml +152 -0
  74. graph_state_sim-0.2.0/doc/xml/index.xsd +62 -0
  75. graph_state_sim-0.2.0/doc/xml/indexpage.xml +9 -0
  76. graph_state_sim-0.2.0/doc/xml/loccliff_8cpp.xml +203 -0
  77. graph_state_sim-0.2.0/doc/xml/loccliff_8h.xml +643 -0
  78. graph_state_sim-0.2.0/doc/xml/namespaceloccliff__tables.xml +106 -0
  79. graph_state_sim-0.2.0/doc/xml/namespacestd.xml +11 -0
  80. graph_state_sim-0.2.0/doc/xml/stabilizer_8cpp.xml +352 -0
  81. graph_state_sim-0.2.0/doc/xml/stabilizer_8h.xml +154 -0
  82. graph_state_sim-0.2.0/doc/xml/structConnectionInfo.xml +52 -0
  83. graph_state_sim-0.2.0/doc/xml/structEdge.xml +35 -0
  84. graph_state_sim-0.2.0/doc/xml/structLocCliffOp.xml +200 -0
  85. graph_state_sim-0.2.0/doc/xml/structQState.xml +87 -0
  86. graph_state_sim-0.2.0/doc/xml/structQubitVertex.xml +73 -0
  87. graph_state_sim-0.2.0/doc/xml/structRightMatrix.xml +93 -0
  88. graph_state_sim-0.2.0/doc/xml/structRightPhase.xml +82 -0
  89. graph_state_sim-0.2.0/doc/xml/structStabilizer.xml +216 -0
  90. graph_state_sim-0.2.0/doc/xml/structedge__hash.xml +31 -0
  91. graph_state_sim-0.2.0/pyproject.toml +18 -0
  92. graph_state_sim-0.2.0/src/Makefile.MacOSX +137 -0
  93. graph_state_sim-0.2.0/src/bindings.cpp +79 -0
  94. graph_state_sim-0.2.0/src/cphase.tbl +193 -0
  95. graph_state_sim-0.2.0/src/graphsim/__init__.py +1 -0
  96. graph_state_sim-0.2.0/src/graphsim/_core.pyi +1 -0
  97. graph_state_sim-0.2.0/src/graphsim/py.typed +0 -0
  98. graph_state_sim-0.2.0/src/graphsim.cpp +568 -0
  99. graph_state_sim-0.2.0/src/graphsim.h +203 -0
  100. graph_state_sim-0.2.0/src/gstest.cpp +57 -0
  101. graph_state_sim-0.2.0/src/loccliff.cpp +151 -0
  102. graph_state_sim-0.2.0/src/loccliff.h +232 -0
  103. graph_state_sim-0.2.0/src/make_cphase_tbl2.nb +22394 -0
  104. graph_state_sim-0.2.0/src/multtbl.nb +696 -0
  105. graph_state_sim-0.2.0/src/multtbl.tbl +32 -0
  106. graph_state_sim-0.2.0/src/sqrt-gen.nb +3715 -0
  107. graph_state_sim-0.2.0/src/stabilizer.cpp +254 -0
  108. graph_state_sim-0.2.0/src/stabilizer.h +68 -0
  109. graph_state_sim-0.2.0/tests/test_bindings.py +47 -0
  110. graph_state_sim-0.2.0/uv.lock +8 -0
@@ -0,0 +1 @@
1
+ *.cpp linguist-language=C++
File without changes
@@ -0,0 +1,289 @@
1
+ *.pyc
2
+ *.ipynb
3
+
4
+ # Prerequisites
5
+ *.d
6
+
7
+ # Compiled Object files
8
+ *.slo
9
+ *.lo
10
+ *.o
11
+ *.obj
12
+
13
+ # Precompiled Headers
14
+ *.gch
15
+ *.pch
16
+
17
+ # Linker files
18
+ *.ilk
19
+
20
+ # Debugger Files
21
+ *.pdb
22
+
23
+ # Compiled Dynamic libraries
24
+ *.so
25
+ *.dylib
26
+ *.dll
27
+ *.so.*
28
+
29
+
30
+ # Fortran module files
31
+ *.mod
32
+ *.smod
33
+
34
+ # Compiled Static libraries
35
+ *.lai
36
+ *.la
37
+ *.a
38
+ *.lib
39
+
40
+ # Executables
41
+ *.exe
42
+ *.out
43
+ *.app
44
+
45
+ # Build directories
46
+ build/
47
+ Build/
48
+ build-*/
49
+
50
+ # CMake generated files
51
+ CMakeFiles/
52
+ CMakeCache.txt
53
+ cmake_install.cmake
54
+ Makefile
55
+ install_manifest.txt
56
+ compile_commands.json
57
+
58
+ # Temporary files
59
+ *.tmp
60
+ *.log
61
+ *.bak
62
+ *.swp
63
+
64
+ # vcpkg
65
+ vcpkg_installed/
66
+
67
+ # debug information files
68
+ *.dwo
69
+
70
+ # test output & cache
71
+ Testing/
72
+ .cache/
73
+
74
+ # Byte-compiled / optimized / DLL files
75
+ __pycache__/
76
+ *.py[codz]
77
+ *$py.class
78
+
79
+ # C extensions
80
+ *.so
81
+
82
+ # Distribution / packaging
83
+ .Python
84
+ build/
85
+ develop-eggs/
86
+ dist/
87
+ downloads/
88
+ eggs/
89
+ .eggs/
90
+ lib/
91
+ lib64/
92
+ parts/
93
+ sdist/
94
+ var/
95
+ wheels/
96
+ share/python-wheels/
97
+ *.egg-info/
98
+ .installed.cfg
99
+ *.egg
100
+ MANIFEST
101
+
102
+ # PyInstaller
103
+ # Usually these files are written by a python script from a template
104
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
105
+ *.manifest
106
+ *.spec
107
+
108
+ # Installer logs
109
+ pip-log.txt
110
+ pip-delete-this-directory.txt
111
+
112
+ # Unit test / coverage reports
113
+ htmlcov/
114
+ .tox/
115
+ .nox/
116
+ .coverage
117
+ .coverage.*
118
+ .cache
119
+ nosetests.xml
120
+ coverage.xml
121
+ *.cover
122
+ *.py.cover
123
+ .hypothesis/
124
+ .pytest_cache/
125
+ cover/
126
+
127
+ # Translations
128
+ *.mo
129
+ *.pot
130
+
131
+ # Django stuff:
132
+ *.log
133
+ local_settings.py
134
+ db.sqlite3
135
+ db.sqlite3-journal
136
+
137
+ # Flask stuff:
138
+ instance/
139
+ .webassets-cache
140
+
141
+ # Scrapy stuff:
142
+ .scrapy
143
+
144
+ # Sphinx documentation
145
+ docs/_build/
146
+
147
+ # PyBuilder
148
+ .pybuilder/
149
+ target/
150
+
151
+ # Jupyter Notebook
152
+ .ipynb_checkpoints
153
+
154
+ # IPython
155
+ profile_default/
156
+ ipython_config.py
157
+
158
+ # pyenv
159
+ # For a library or package, you might want to ignore these files since the code is
160
+ # intended to run in multiple environments; otherwise, check them in:
161
+ # .python-version
162
+
163
+ # pipenv
164
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
165
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
166
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
167
+ # install all needed dependencies.
168
+ # Pipfile.lock
169
+
170
+ # UV
171
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
172
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
173
+ # commonly ignored for libraries.
174
+ # uv.lock
175
+
176
+ # poetry
177
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
178
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
179
+ # commonly ignored for libraries.
180
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
181
+ # poetry.lock
182
+ # poetry.toml
183
+
184
+ # pdm
185
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
186
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
187
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
188
+ # pdm.lock
189
+ # pdm.toml
190
+ .pdm-python
191
+ .pdm-build/
192
+
193
+ # pixi
194
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
195
+ # pixi.lock
196
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
197
+ # in the .venv directory. It is recommended not to include this directory in version control.
198
+ .pixi
199
+
200
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
201
+ __pypackages__/
202
+
203
+ # Celery stuff
204
+ celerybeat-schedule
205
+ celerybeat.pid
206
+
207
+ # Redis
208
+ *.rdb
209
+ *.aof
210
+ *.pid
211
+
212
+ # RabbitMQ
213
+ mnesia/
214
+ rabbitmq/
215
+ rabbitmq-data/
216
+
217
+ # ActiveMQ
218
+ activemq-data/
219
+
220
+ # SageMath parsed files
221
+ *.sage.py
222
+
223
+ # Environments
224
+ .env
225
+ .envrc
226
+ .venv
227
+ env/
228
+ venv/
229
+ ENV/
230
+ env.bak/
231
+ venv.bak/
232
+
233
+ # Spyder project settings
234
+ .spyderproject
235
+ .spyproject
236
+
237
+ # Rope project settings
238
+ .ropeproject
239
+
240
+ # mkdocs documentation
241
+ /site
242
+
243
+ # mypy
244
+ .mypy_cache/
245
+ .dmypy.json
246
+ dmypy.json
247
+
248
+ # Pyre type checker
249
+ .pyre/
250
+
251
+ # pytype static type analyzer
252
+ .pytype/
253
+
254
+ # Cython debug symbols
255
+ cython_debug/
256
+
257
+ # PyCharm
258
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
259
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
260
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
261
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
262
+ # .idea/
263
+
264
+ # Abstra
265
+ # Abstra is an AI-powered process automation framework.
266
+ # Ignore directories containing user credentials, local state, and settings.
267
+ # Learn more at https://abstra.io/docs
268
+ .abstra/
269
+
270
+ # Visual Studio Code
271
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
272
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
273
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
274
+ # you could uncomment the following to ignore the entire vscode folder
275
+ # .vscode/
276
+
277
+ # Ruff stuff:
278
+ .ruff_cache/
279
+
280
+ # PyPI configuration file
281
+ .pypirc
282
+
283
+ # Marimo
284
+ marimo/_static/
285
+ marimo/_lsp/
286
+ __marimo__/
287
+
288
+ # Streamlit
289
+ .streamlit/secrets.toml
@@ -0,0 +1 @@
1
+ 3.12
@@ -0,0 +1,14 @@
1
+ language: cpp
2
+ compiler:
3
+ - clang
4
+ - gcc
5
+ notifications:
6
+ email: false
7
+ env:
8
+ matrix:
9
+ before_install:
10
+ - sudo apt-get update -qq -y
11
+ - sudo apt-get install python2.7 python2.7-dev -y
12
+ - sudo apt-get install swig
13
+ script:
14
+ - make all
@@ -0,0 +1,7 @@
1
+ {
2
+ "python.testing.pytestArgs": [
3
+ "."
4
+ ],
5
+ "python.testing.unittestEnabled": false,
6
+ "python.testing.pytestEnabled": true
7
+ }
@@ -0,0 +1,20 @@
1
+ cmake_minimum_required(VERSION 3.15)
2
+ project(${SKBUILD_PROJECT_NAME} LANGUAGES CXX)
3
+
4
+ set(PYBIND11_FINDPYTHON ON)
5
+ find_package(pybind11 CONFIG REQUIRED)
6
+
7
+ include_directories(src)
8
+
9
+ # Add all source files that contain the method implementations
10
+ set(SOURCES
11
+ src/bindings.cpp
12
+ src/graphsim.cpp
13
+ src/loccliff.cpp
14
+ src/stabilizer.cpp
15
+ )
16
+
17
+ # Build the Python module
18
+ pybind11_add_module(_core MODULE ${SOURCES})
19
+
20
+ install(TARGETS _core DESTINATION ${SKBUILD_PROJECT_NAME})