libqasm 0.6.7__cp312-cp312-macosx_11_0_arm64.whl → 0.6.8__cp312-cp312-macosx_11_0_arm64.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.
- cqasm/v3x/__init__.py +2 -2
- cqasm/v3x/ast.py +665 -675
- cqasm/v3x/semantic.py +771 -25
- libqasm/_libqasm.cpython-312-darwin.so +0 -0
- libqasm/libqasm.py +2 -2
- {libqasm-0.6.7.dist-info → libqasm-0.6.8.dist-info}/METADATA +6 -5
- libqasm-0.6.8.dist-info/RECORD +16 -0
- {libqasm-0.6.7.dist-info → libqasm-0.6.8.dist-info}/WHEEL +1 -1
- libqasm-0.6.7.dist-info/RECORD +0 -16
- {libqasm-0.6.7.dist-info → libqasm-0.6.8.dist-info}/LICENSE.md +0 -0
- {libqasm-0.6.7.dist-info → libqasm-0.6.8.dist-info}/top_level.txt +0 -0
Binary file
|
libqasm/libqasm.py
CHANGED
@@ -1046,8 +1046,8 @@ class V3xAnalyzer(object):
|
|
1046
1046
|
_libqasm.V3xAnalyzer_swiginit(self, _libqasm.new_V3xAnalyzer(*args))
|
1047
1047
|
__swig_destroy__ = _libqasm.delete_V3xAnalyzer
|
1048
1048
|
|
1049
|
-
def register_instruction(self,
|
1050
|
-
return _libqasm.V3xAnalyzer_register_instruction(self,
|
1049
|
+
def register_instruction(self, name, param_types):
|
1050
|
+
return _libqasm.V3xAnalyzer_register_instruction(self, name, param_types)
|
1051
1051
|
|
1052
1052
|
@staticmethod
|
1053
1053
|
def parse_file(file_name):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: libqasm
|
3
|
-
Version: 0.6.
|
3
|
+
Version: 0.6.8
|
4
4
|
Summary: libqasm Python Package
|
5
5
|
Home-page: https://github.com/QuTech-Delft/libqasm
|
6
6
|
Author: QuTech, TU Delft
|
@@ -26,8 +26,9 @@ Requires-Dist: numpy
|
|
26
26
|

|
27
27
|
[](https://opensource.org/licenses/Apache-2.0)
|
28
28
|
|
29
|
-
libQASM is a library to parse
|
30
|
-
At the moment, libQASM only supports cQASM v3.0 programs
|
29
|
+
libQASM is a library to parse cQASM programs, developed by QuTech.
|
30
|
+
At the moment, libQASM only supports cQASM v3.0 programs
|
31
|
+
(see [cQASM-spec](https://qutech-delft.github.io/cQASM-spec/latest/) for the language specification).
|
31
32
|
|
32
33
|
It performs lexical, syntactic, and semantic analysis of an input program received via a file or a string.
|
33
34
|
It produces one of the following results:
|
@@ -36,7 +37,7 @@ It produces one of the following results:
|
|
36
37
|
- A list of parsing or analysing errors. In case the input program was malformed.
|
37
38
|
- A JSON representation of either the AST or the list of errors.
|
38
39
|
|
39
|
-
It can be used
|
40
|
+
It can be used from:
|
40
41
|
|
41
42
|
- C++ projects (as a [Conan package](https://conan.io/center/recipes/libqasm)).
|
42
43
|
- Python projects (as a [Python package](https://pypi.org/project/libqasm/)).
|
@@ -66,7 +67,7 @@ We can parse or analyze this circuit, using libQASM through the following progra
|
|
66
67
|
### C++
|
67
68
|
|
68
69
|
```cpp
|
69
|
-
#include "
|
70
|
+
#include "libqasm/v3x/cqasm-python.hpp"
|
70
71
|
|
71
72
|
int main() {
|
72
73
|
auto parse_result = V3xAnalyzer::parse_file("example.cq");
|
@@ -0,0 +1,16 @@
|
|
1
|
+
cqasm/__init__.py,sha256=MsSFjiLMLJZ7QhUPpVBWKiyDnCzryquRyr329NoCACI,2
|
2
|
+
cqasm/v3x/values.py,sha256=YY_41YQ7iU2te7FqtstGnQJd4W3CFH7LmkawSKh5e_A,61680
|
3
|
+
cqasm/v3x/semantic.py,sha256=Zmi8Vx7-0NKw2VJnsqXUFlMXeoSF6oOu21PUVtAubG8,114603
|
4
|
+
cqasm/v3x/primitives.py,sha256=aB-srIVOWSAmEWfmDk9-kHgKqTcvHQzSXCfCivUj4ic,2038
|
5
|
+
cqasm/v3x/__init__.py,sha256=4MVCcT7wu69SVoJ6sQ_tXFeHdEUILyVDtvyZ_eqd3Tw,4774
|
6
|
+
cqasm/v3x/types.py,sha256=izXYdNmYvJUcRSZVLJ-blPnU2TmhOGR1Z3Rhtk8rTOQ,63328
|
7
|
+
cqasm/v3x/ast.py,sha256=jzywgJ3_x7eQ3Nq15rkzRoXidjHqWFHov42QKOgXt4o,420114
|
8
|
+
cqasm/v3x/instruction.py,sha256=AEOwKV2riafpyTiJvgq7azwOhyhhZfpKV12uWWJ5M2A,1177
|
9
|
+
libqasm/_libqasm.cpython-312-darwin.so,sha256=mNm65Ofnh2nmUPoCN-FwtKAUJFYyR1xkkgLepcPzdDg,4142744
|
10
|
+
libqasm/__init__.py,sha256=liVJFi24VHbmUU-9lBA6hm-xPpF1DgzXMsZ0f1dqO3E,727
|
11
|
+
libqasm/libqasm.py,sha256=WVRqVvVJY0MABhWZJrnuY9eyNJuZI5fQLYNevrQYPe4,30619
|
12
|
+
libqasm-0.6.8.dist-info/LICENSE.md,sha256=duRlJgy46W8Cw_IQjOmud5xJUvgJkX6pkBmBJkoKi4I,566
|
13
|
+
libqasm-0.6.8.dist-info/RECORD,,
|
14
|
+
libqasm-0.6.8.dist-info/WHEEL,sha256=T94HOVPNbYE6jyG6QmiIglWJ01nwJvHIWFgubY8hhjc,109
|
15
|
+
libqasm-0.6.8.dist-info/top_level.txt,sha256=iZ8PSLyg3lJwvSUCvWE8VCJGU-nmQY2YIrbMe7M7kLw,14
|
16
|
+
libqasm-0.6.8.dist-info/METADATA,sha256=E7LHVGvGudRBpwPi8yhqik2SbzYdpCRH4v1yKL9QJp4,4035
|
libqasm-0.6.7.dist-info/RECORD
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
cqasm/__init__.py,sha256=MsSFjiLMLJZ7QhUPpVBWKiyDnCzryquRyr329NoCACI,2
|
2
|
-
cqasm/v3x/values.py,sha256=YY_41YQ7iU2te7FqtstGnQJd4W3CFH7LmkawSKh5e_A,61680
|
3
|
-
cqasm/v3x/semantic.py,sha256=7JB7EU2QL6m4LZC8uPp-giGVRUa_RwKzlci1PA4LRIg,86312
|
4
|
-
cqasm/v3x/primitives.py,sha256=aB-srIVOWSAmEWfmDk9-kHgKqTcvHQzSXCfCivUj4ic,2038
|
5
|
-
cqasm/v3x/__init__.py,sha256=ZdGtSG6X-2byUSxg89qW6QM0eD2gI8Vy3ZruFSxVa5c,4776
|
6
|
-
cqasm/v3x/types.py,sha256=izXYdNmYvJUcRSZVLJ-blPnU2TmhOGR1Z3Rhtk8rTOQ,63328
|
7
|
-
cqasm/v3x/ast.py,sha256=6ywaD-iRbJJZY_NXsTSSln2cvxA56mpp6stvKg-fLzo,420404
|
8
|
-
cqasm/v3x/instruction.py,sha256=AEOwKV2riafpyTiJvgq7azwOhyhhZfpKV12uWWJ5M2A,1177
|
9
|
-
libqasm-0.6.7.dist-info/LICENSE.md,sha256=duRlJgy46W8Cw_IQjOmud5xJUvgJkX6pkBmBJkoKi4I,566
|
10
|
-
libqasm-0.6.7.dist-info/RECORD,,
|
11
|
-
libqasm-0.6.7.dist-info/WHEEL,sha256=stdCwhyjiC6LzHI-fEibiHQtTULEgvfCFF-5kawH9Pw,109
|
12
|
-
libqasm-0.6.7.dist-info/top_level.txt,sha256=iZ8PSLyg3lJwvSUCvWE8VCJGU-nmQY2YIrbMe7M7kLw,14
|
13
|
-
libqasm-0.6.7.dist-info/METADATA,sha256=-kdFhKv4um7dFYC7d0Gvn42J_bWgLIXlwTj1Ql4ELYE,3967
|
14
|
-
libqasm/_libqasm.cpython-312-darwin.so,sha256=N9KF4UD1gn9g31nQrlbOx3-eKUv6xN1t5jN05ZF_OrM,4015608
|
15
|
-
libqasm/__init__.py,sha256=liVJFi24VHbmUU-9lBA6hm-xPpF1DgzXMsZ0f1dqO3E,727
|
16
|
-
libqasm/libqasm.py,sha256=io7NCBJdhdoguyRWGAWCKjc4fQnLL9Wngta4a9MXM9M,30595
|
File without changes
|
File without changes
|