libqasm 0.6.0__cp311-cp311-macosx_10_10_universal2.whl → 0.6.1__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 +4 -25
- libQasm/_libQasm.cpython-311-darwin.so +0 -0
- libQasm/libQasm.py +1 -1
- {libqasm-0.6.0.dist-info → libqasm-0.6.1.dist-info}/METADATA +1 -1
- {libqasm-0.6.0.dist-info → libqasm-0.6.1.dist-info}/RECORD +8 -8
- {libqasm-0.6.0.dist-info → libqasm-0.6.1.dist-info}/LICENSE.md +0 -0
- {libqasm-0.6.0.dist-info → libqasm-0.6.1.dist-info}/WHEEL +0 -0
- {libqasm-0.6.0.dist-info → libqasm-0.6.1.dist-info}/top_level.txt +0 -0
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
|
-
|
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
|
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
|
72
|
-
return
|
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
@@ -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=
|
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=
|
11
|
-
libQasm/libQasm.py,sha256=
|
12
|
-
libqasm-0.6.
|
13
|
-
libqasm-0.6.
|
14
|
-
libqasm-0.6.
|
15
|
-
libqasm-0.6.
|
16
|
-
libqasm-0.6.
|
10
|
+
libQasm/_libQasm.cpython-311-darwin.so,sha256=CODVlnyi06Ew1KhEpOg_lTS77uScdk7gomU1eLf6f2o,4124320
|
11
|
+
libQasm/libQasm.py,sha256=hzX-iSOvyoM2FBHbKvvol76Mt1lS2F3FweDm37Y-3RM,30595
|
12
|
+
libqasm-0.6.1.dist-info/LICENSE.md,sha256=duRlJgy46W8Cw_IQjOmud5xJUvgJkX6pkBmBJkoKi4I,566
|
13
|
+
libqasm-0.6.1.dist-info/METADATA,sha256=WUEIXx7Eg87TjR5_nhpinoZabjgveZU129_d1QZAXxc,5913
|
14
|
+
libqasm-0.6.1.dist-info/WHEEL,sha256=4F58ZCesPOUjwzTHMKuwuydHHOQLmBKJtTM5AtvBHqQ,116
|
15
|
+
libqasm-0.6.1.dist-info/top_level.txt,sha256=w7QwYbOjqjU8FE8PSUGSKMILn4kqQEJWKNLvab5ehEg,14
|
16
|
+
libqasm-0.6.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|