libqasm 0.6.0__cp312-cp312-win_amd64.whl

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.
@@ -0,0 +1,13 @@
1
+ Copyright [2018] [QCA Lab, QuTech, TU Delft]
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
@@ -0,0 +1,190 @@
1
+ Metadata-Version: 2.1
2
+ Name: libqasm
3
+ Version: 0.6.0
4
+ Summary: libQasm Python Package
5
+ Home-page: https://github.com/QuTech-Delft/libqasm
6
+ Author: QuTech, TU Delft
7
+ Classifier: License :: OSI Approved :: Apache Software License
8
+ Classifier: Operating System :: POSIX :: Linux
9
+ Classifier: Operating System :: MacOS
10
+ Classifier: Operating System :: Microsoft :: Windows
11
+ Classifier: Programming Language :: Python :: 3 :: Only
12
+ Classifier: Topic :: Scientific/Engineering
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE.md
15
+ Requires-Dist: numpy
16
+
17
+ # libQASM: Library to parse cQASM v3.0 files
18
+
19
+ [![CI](https://github.com/QuTech-Delft/libqasm/workflows/Test/badge.svg)](https://github.com/qutech-delft/libqasm/actions)
20
+ [![PyPI](https://badgen.net/pypi/v/libqasm)](https://pypi.org/project/libqasm/)
21
+
22
+ ## File organization
23
+
24
+ For development, see:
25
+
26
+ - `include`: public headers.
27
+ - `src`: source files.
28
+ - `test`: test files.
29
+ - `python`: SWIG interface.
30
+ - `res`: resource files, for testing.
31
+
32
+ For build process, continuous integration, and documentation:
33
+
34
+ - `conan`: Conan profiles.
35
+ - `emscripten`: bindings and test for the emscripten binaries.
36
+ - `scripts`: helper scripts used during the build process.
37
+ - `.github`: GitHub Actions configuration files.
38
+ - `doc`: documentation.
39
+
40
+ Build outputs may go into:
41
+
42
+ - `build/<build type>`: the C++ library output files generated by Conan.
43
+ - `pybuild`: the Python library output files generated by `setup.py`.
44
+
45
+ ## Dependencies
46
+
47
+ * C++ compiler with C++20 support (gcc 11, clang 14, msvc 17)
48
+ * `CMake` >= 3.12
49
+ * `git`
50
+ * `Python` 3.x plus `pip`, with the following package:
51
+ * `conan` >= 2.0
52
+
53
+ ### ARM specific dependencies
54
+
55
+ We are having problems when using the `zulu-opendjk` Conan package on an ARMv8 architecture.
56
+ `zulu-openjdk` provides the Java JRE required by the ANTLR generator.
57
+ So, for the time being, we are installing Java manually for this platform.
58
+
59
+ * `Java JRE` >= 11
60
+
61
+ ## Build
62
+
63
+ This version of `libqasm` can only be compiled via the Conan package manager.
64
+ You'll need to create a default profile before using it for the first time.
65
+
66
+ The installation of dependencies, as well as the compilation, can be done in one go.
67
+
68
+ ```
69
+ git clone https://github.com/QuTech-Delft/libqasm.git
70
+ cd libqasm
71
+ conan profile detect
72
+ conan build . -pr:a=conan/profiles/tests-debug -b missing
73
+ ```
74
+
75
+ Notice:
76
+ - the `conan profile` command only has to be run only once, and not before every build.
77
+ - the `conan build` command is building `libqasm` in Debug mode with tests using the `tests-debug` profile.
78
+ - the `-b missing` parameter asks `conan` to build packages from sources
79
+ in case it cannot find the binary packages for the current configuration (platform, OS, compiler, build type...).
80
+
81
+ ### Build profiles
82
+
83
+ A group of predefined profiles is provided under the `conan/profiles` folder.
84
+ They follow the `[tests-](debug|release)[-compat]` naming convention. For example:
85
+ - `release` is a Release build without tests and compatibility with the original API.
86
+ - `tests-debug-compat` is a Debug build with tests and compatibility enabled.
87
+
88
+ All the profiles set the C++ standard to 20. All the `tests` profiles enable Address Sanitizer.
89
+
90
+ ### Build options
91
+
92
+ Profiles are a shorthand for command line options. The command above could be written as well as:
93
+
94
+ ```
95
+ conan build . -s:h compiler.cppstd=20 -s:h libqasm/*:build_type=Debug -o libqasm/*:build_tests=True -o libqasm/*:asan_enabled=True -b missing
96
+ ```
97
+
98
+ These are the list of options that could be specified whether in a profile or in the command line:
99
+
100
+ - `libqasm/*:asan_enabled={True,False}`: enables Address Sanitizer.
101
+ - `libqasm/*:build_tests={True,False}`: builds tests or not.
102
+ - `libqasm/*:build_type={Debug,Release}`: builds in debug or release mode.
103
+ - `libqasm/*:shared={True,False}`: builds a shared object library instead of a static library, if applicable.
104
+
105
+ ## Install
106
+
107
+ ### From Python
108
+
109
+ Install from the project root directory as follows:
110
+
111
+ ```
112
+ python3 -m pip install --verbose .
113
+ ```
114
+
115
+ You can test if it works by running:
116
+
117
+ ```
118
+ python3 -m pytest
119
+ ```
120
+
121
+ ### From C++
122
+
123
+ The `CMakeLists.txt` file in the root directory includes install targets:
124
+
125
+ ```
126
+ conan create --version 0.5.2 . -pr=tests-debug -b missing
127
+ ```
128
+
129
+ You can test if it works by doing:
130
+
131
+ ```
132
+ cd test/Debug
133
+ ctest -C Debug --output-on-failure
134
+ ```
135
+
136
+ ## Use from another project
137
+
138
+ ### From Python
139
+
140
+ After installation, you should be able to use the bindings for the original API by just `import libQasm`.
141
+ The new API doesn't have Python bindings yet.
142
+
143
+ ### From C++
144
+
145
+ The easiest way to use `libqasm` in a CMake project is to fetch the library and then link against it.
146
+
147
+ ```
148
+ include(FetchContent)
149
+ FetchContent_Declare(cqasm
150
+ GIT_REPOSITORY https://github.com/QuTech-Delft/libqasm.git
151
+ GIT_TAG "<a given cqasm git tag>"
152
+ )
153
+ FetchContent_MakeAvailable(cqasm)
154
+ target_include_directories(<your target> SYSTEM PRIVATE "${cqasm_SOURCE_DIR}/include")
155
+ target_link_libraries(<your target> PUBLIC cqasm)
156
+ ```
157
+
158
+ Note that the following dependency is required for `libqasm` to build:
159
+
160
+ * `Java JRE` >= 11
161
+
162
+ The original API headers are *not* included by default.
163
+ To enable those, pass <code><nobr>-o libqasm/*:compat=True</nobr></code> as a build option to Conan.
164
+
165
+ ## Docker
166
+
167
+ This tests the library in a container with the bare minimum requirements for `libqasm`.
168
+
169
+ ```
170
+ docker build .
171
+ ```
172
+
173
+ **Note for Windows users:** The above might fail on Windows to the autocrlf transformation that git does.
174
+ If you are having trouble with this just create new clone of this repository using:
175
+
176
+ ```
177
+ git clone --config core.autocrlf=input git@github.com:QuTech-Delft/libqasm.git
178
+ ```
179
+
180
+ ## Emscripten
181
+
182
+ The generation of emscripten binaries has been tested as a cross-compilation from an ubuntu/x64 platform.
183
+
184
+ ```
185
+ conan build . -pr=conan/profiles/emscripten -pr:b=conan/profiles/release -b missing
186
+ ```
187
+
188
+ The output of this build lives in `build/Release/emscripten`:
189
+ - `cqasm_emscripten.js`.
190
+ - `cqasm_emscripten.wasm`.
@@ -0,0 +1,16 @@
1
+ cqasm/__init__.py,sha256=_6Yl-eMBve0mGQA-aiFg4qvQ7GUCV5eGvIcoRf4mEPw,3
2
+ cqasm/v3x/__init__.py,sha256=6U8aKKMEfPjZmuptOiZ3MUqJ8PL-oRkb6hdO1TeK51s,2850
3
+ cqasm/v3x/ast.py,sha256=Eba-aqEaudn3GKDsXm-EkrVT3s_SDGUMQ8MVTIXOcBM,423200
4
+ cqasm/v3x/instruction.py,sha256=VAOqFpCH94CrutgMUZnQq8JXFIq_-C-ndTOjHLsg6_8,1219
5
+ cqasm/v3x/primitives.py,sha256=feY0IqRBzQOcpECaR7lX4BV38pxZY_WmQgsgLxHFzWw,2232
6
+ cqasm/v3x/semantic.py,sha256=J5dgSs_sZE0nc7FuMuZf6r3b4cGNXrJiVDc-FMtKAQU,88893
7
+ cqasm/v3x/types.py,sha256=mWLUtWn6MZsPmTu14X0uloC147PJxHdZQ9uQIXLNQMo,53029
8
+ cqasm/v3x/values.py,sha256=SfKw6zIjpMrXJggvN_QGPqsoZXDR7HwUjgUMOBnIzuo,63394
9
+ libQasm/__init__.py,sha256=2ZK4Wm7x8jrq819w9T7aHNbD598Btj-8YJzdYLaxUG8,752
10
+ libQasm/_libQasm.cp312-win_amd64.pyd,sha256=pq08EIKUlwkbS6n-j7siTQkcAWbRfDRia-0DQ6qtqFk,2276352
11
+ libQasm/libQasm.py,sha256=b4z05kHt-VsL2hKYcyfjCPMoJ0zj3ljPb6j_ZhJHh2E,31677
12
+ libqasm-0.6.0.dist-info/LICENSE.md,sha256=395F6Sje50f5Too7yWFAoS_owYO4aOtjbMeQd_go_sk,579
13
+ libqasm-0.6.0.dist-info/METADATA,sha256=XGuOsqiGzXdVSvIVKGggS9hxHuGC70_VaQmdDZbaEeM,6103
14
+ libqasm-0.6.0.dist-info/WHEEL,sha256=fZWyj_84lK0cA-ZNCsdwhbJl0OTrpWkxInEn424qrSs,102
15
+ libqasm-0.6.0.dist-info/top_level.txt,sha256=w7QwYbOjqjU8FE8PSUGSKMILn4kqQEJWKNLvab5ehEg,14
16
+ libqasm-0.6.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.43.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp312-cp312-win_amd64
5
+
@@ -0,0 +1,2 @@
1
+ cqasm
2
+ libQasm