libqasm 0.6.0__cp311-cp311-macosx_10_10_universal2.whl → 0.6.2__cp311-cp311-macosx_10_10_universal2.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/primitives.py CHANGED
@@ -4,23 +4,10 @@ import cqasm.v3x.types
4
4
  Str = str
5
5
  Bool = bool
6
6
  Int = int
7
- Real = float
7
+ Float = float
8
8
  Complex = complex
9
9
 
10
10
 
11
- class Axis:
12
-
13
- def __init__(self):
14
- self._x = 1.0
15
- self._y = 0.0
16
- self._z = 0.0
17
-
18
- def __init__(self, x, y, z):
19
- self._x = x
20
- self._y = y
21
- self._z = z
22
-
23
-
24
11
  class Version(tuple):
25
12
  """cQASM file version number."""
26
13
 
@@ -39,12 +26,8 @@ def serialize(typ, val):
39
26
  return {'x': val}
40
27
  elif typ is Int:
41
28
  return {'x': val}
42
- elif typ is Real:
29
+ elif typ is Float:
43
30
  return {'x': val}
44
- elif typ is Complex:
45
- return {'r': val.real, 'i': val.imag}
46
- elif typ is Axis:
47
- return {'x': val.x, 'y': val.y, 'z': val.z}
48
31
  elif typ is Version:
49
32
  return {'x': list(val)}
50
33
  elif typ is cqasm.v3x.instruction.InstructionRef:
@@ -68,12 +51,8 @@ def deserialize(typ, val):
68
51
  return Bool(val['x'])
69
52
  elif typ is Int:
70
53
  return Int(val['x'])
71
- elif typ is Real:
72
- return Real(val['x'])
73
- elif typ is Complex:
74
- return Complex(val['r'], val['i'])
75
- elif typ is Axis:
76
- return Axis(val['x'], val['y'], val['z'])
54
+ elif typ is Float:
55
+ return Float(val['x'])
77
56
  elif typ is Version:
78
57
  return Version(val['x'])
79
58
  elif typ is cqasm.v3x.instruction.InstructionRef:
Binary file
libQasm/libQasm.py CHANGED
@@ -1,5 +1,5 @@
1
1
  # This file was automatically generated by SWIG (https://www.swig.org).
2
- # Version 4.2.0
2
+ # Version 4.2.1
3
3
  #
4
4
  # Do not make changes to this file unless you know what you are doing - modify
5
5
  # the SWIG interface file instead.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: libqasm
3
- Version: 0.6.0
3
+ Version: 0.6.2
4
4
  Summary: libQasm Python Package
5
5
  Home-page: https://github.com/QuTech-Delft/libqasm
6
6
  Author: QuTech, TU Delft
@@ -2,15 +2,15 @@ cqasm/__init__.py,sha256=MsSFjiLMLJZ7QhUPpVBWKiyDnCzryquRyr329NoCACI,2
2
2
  cqasm/v3x/__init__.py,sha256=vZyVREhVeJdxipgSMSHGhKfyg70x1ISKn1v2bFO2734,2785
3
3
  cqasm/v3x/ast.py,sha256=bo4yd7N9LMdvo63xNF1kfm_xpdZ74y9B6wQ3URmV0J0,412186
4
4
  cqasm/v3x/instruction.py,sha256=AEOwKV2riafpyTiJvgq7azwOhyhhZfpKV12uWWJ5M2A,1177
5
- cqasm/v3x/primitives.py,sha256=dFwVm9KmY-CVFnuqaAI4ew8J3d3sUy8JJwzZg15pwIs,2144
5
+ cqasm/v3x/primitives.py,sha256=ESCsMHP1GeuKh2gHQSP0ha24Abp453U-I7JSGK9dZas,1664
6
6
  cqasm/v3x/semantic.py,sha256=8zWB24LKxPymLW4lPgxmURGol2LXh7mqBKtZWo1GNKs,86535
7
7
  cqasm/v3x/types.py,sha256=NBp3uh23nnGNzKHtOrJBafDJ2wKqhQJ5eJSJtsr0uMk,51593
8
8
  cqasm/v3x/values.py,sha256=YY_41YQ7iU2te7FqtstGnQJd4W3CFH7LmkawSKh5e_A,61680
9
9
  libQasm/__init__.py,sha256=qxoyhS4wo8oA5cwO4IIbrLuCHztOJAT2MrpCOR2mSF4,727
10
- libQasm/_libQasm.cpython-311-darwin.so,sha256=zj4eYXxAsaIiFo0RqIS8JrWhM9hioQumqFDa72XIgTY,4124320
11
- libQasm/libQasm.py,sha256=knqWeWpJjulWaV3eTdDILUW4gvX-Rn5W6Abaad32m5g,30595
12
- libqasm-0.6.0.dist-info/LICENSE.md,sha256=duRlJgy46W8Cw_IQjOmud5xJUvgJkX6pkBmBJkoKi4I,566
13
- libqasm-0.6.0.dist-info/METADATA,sha256=zRo-GEwa_u_TjNUHoG7NGezOdZYjGJ8IleDHMHzopCY,5913
14
- libqasm-0.6.0.dist-info/WHEEL,sha256=4F58ZCesPOUjwzTHMKuwuydHHOQLmBKJtTM5AtvBHqQ,116
15
- libqasm-0.6.0.dist-info/top_level.txt,sha256=w7QwYbOjqjU8FE8PSUGSKMILn4kqQEJWKNLvab5ehEg,14
16
- libqasm-0.6.0.dist-info/RECORD,,
10
+ libQasm/_libQasm.cpython-311-darwin.so,sha256=-9-Mtc_AC3sWWKtBKNYauCPzVDwptBLsYh1U7GflAQM,4124320
11
+ libQasm/libQasm.py,sha256=hzX-iSOvyoM2FBHbKvvol76Mt1lS2F3FweDm37Y-3RM,30595
12
+ libqasm-0.6.2.dist-info/LICENSE.md,sha256=duRlJgy46W8Cw_IQjOmud5xJUvgJkX6pkBmBJkoKi4I,566
13
+ libqasm-0.6.2.dist-info/METADATA,sha256=-mdg0pdGUNaqaoxpgqnaYDS92fNaFFiW4-F-2c_7umc,5913
14
+ libqasm-0.6.2.dist-info/WHEEL,sha256=4F58ZCesPOUjwzTHMKuwuydHHOQLmBKJtTM5AtvBHqQ,116
15
+ libqasm-0.6.2.dist-info/top_level.txt,sha256=w7QwYbOjqjU8FE8PSUGSKMILn4kqQEJWKNLvab5ehEg,14
16
+ libqasm-0.6.2.dist-info/RECORD,,