libqasm 0.6.7__cp39-cp39-macosx_11_0_arm64.whl → 0.6.8__cp39-cp39-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.
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, *args):
1050
- return _libqasm.V3xAnalyzer_register_instruction(self, *args)
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.7
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
  ![OS](https://img.shields.io/badge/os-emscripten%20%7C%20linux%20%7C%20macos%20%7C%20windows-blue?style=flat-square)
27
27
  [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
28
28
 
29
- libQASM is a library to parse programs written in the cQASM quantum programming language, developed by QuTech.
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 within:
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 "v3/cqasm-py.hpp"
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/__init__.py,sha256=liVJFi24VHbmUU-9lBA6hm-xPpF1DgzXMsZ0f1dqO3E,727
10
+ libqasm/_libqasm.cpython-39-darwin.so,sha256=pdA2NqFXwPBlf4kbZe_CffmWYXnOjsqrXcu7EJE0-O0,4142744
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=qPSLW7RKkSazFLr9GqnCq82B2cy1OopxhNJnY83fx9k,107
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
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (73.0.1)
2
+ Generator: setuptools (75.2.0)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp39-cp39-macosx_11_0_arm64
5
5
 
@@ -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=TG9Y8sTXsya5EBQRS9x70hlbDIJFmENHUDctzT_gJ2g,107
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/__init__.py,sha256=liVJFi24VHbmUU-9lBA6hm-xPpF1DgzXMsZ0f1dqO3E,727
15
- libqasm/_libqasm.cpython-39-darwin.so,sha256=FG0cL8KiBJIipujwg2O5kd8eGiKq0J3WlIXVjUXpWP4,4015608
16
- libqasm/libqasm.py,sha256=io7NCBJdhdoguyRWGAWCKjc4fQnLL9Wngta4a9MXM9M,30595