libqasm 0.6.0__cp38-cp38-win_amd64.whl → 0.6.1__cp38-cp38-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.
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: libqasm
3
- Version: 0.6.0
3
+ Version: 0.6.1
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=_6Yl-eMBve0mGQA-aiFg4qvQ7GUCV5eGvIcoRf4mEPw,3
2
2
  cqasm/v3x/__init__.py,sha256=6U8aKKMEfPjZmuptOiZ3MUqJ8PL-oRkb6hdO1TeK51s,2850
3
3
  cqasm/v3x/ast.py,sha256=Eba-aqEaudn3GKDsXm-EkrVT3s_SDGUMQ8MVTIXOcBM,423200
4
4
  cqasm/v3x/instruction.py,sha256=VAOqFpCH94CrutgMUZnQq8JXFIq_-C-ndTOjHLsg6_8,1219
5
- cqasm/v3x/primitives.py,sha256=feY0IqRBzQOcpECaR7lX4BV38pxZY_WmQgsgLxHFzWw,2232
5
+ cqasm/v3x/primitives.py,sha256=cR3SvCcG5lCzjSFMwHrMSRpf4Bj3Q1tkxUgaaltYJg8,1731
6
6
  cqasm/v3x/semantic.py,sha256=J5dgSs_sZE0nc7FuMuZf6r3b4cGNXrJiVDc-FMtKAQU,88893
7
7
  cqasm/v3x/types.py,sha256=mWLUtWn6MZsPmTu14X0uloC147PJxHdZQ9uQIXLNQMo,53029
8
8
  cqasm/v3x/values.py,sha256=SfKw6zIjpMrXJggvN_QGPqsoZXDR7HwUjgUMOBnIzuo,63394
9
9
  libQasm/__init__.py,sha256=2ZK4Wm7x8jrq819w9T7aHNbD598Btj-8YJzdYLaxUG8,752
10
- libQasm/_libQasm.cp38-win_amd64.pyd,sha256=48hk_odEmROP3SrkScKXEzPCt6xaZ8Kf4gvJB4dHSnI,2280960
10
+ libQasm/_libQasm.cp38-win_amd64.pyd,sha256=Gy5zhacvufqjaVMzSj9_dDl8Nsv9ssljykz72Q-g3SY,2280960
11
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=Wb4yjwIXVKEpht4JWFUZNCzpG7JLBNZnqtK2YNdqLkI,100
15
- libqasm-0.6.0.dist-info/top_level.txt,sha256=w7QwYbOjqjU8FE8PSUGSKMILn4kqQEJWKNLvab5ehEg,14
16
- libqasm-0.6.0.dist-info/RECORD,,
12
+ libqasm-0.6.1.dist-info/LICENSE.md,sha256=395F6Sje50f5Too7yWFAoS_owYO4aOtjbMeQd_go_sk,579
13
+ libqasm-0.6.1.dist-info/METADATA,sha256=NJca03_FrlVST1E2vw_91F4vUHSYFJ8vr0YajOM5RlU,6103
14
+ libqasm-0.6.1.dist-info/WHEEL,sha256=Wb4yjwIXVKEpht4JWFUZNCzpG7JLBNZnqtK2YNdqLkI,100
15
+ libqasm-0.6.1.dist-info/top_level.txt,sha256=w7QwYbOjqjU8FE8PSUGSKMILn4kqQEJWKNLvab5ehEg,14
16
+ libqasm-0.6.1.dist-info/RECORD,,