libqasm 0.6.7__cp310-cp310-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/__init__.py +1 -0
- cqasm/v3x/__init__.py +114 -0
- cqasm/v3x/ast.py +11261 -0
- cqasm/v3x/instruction.py +42 -0
- cqasm/v3x/primitives.py +72 -0
- cqasm/v3x/semantic.py +2367 -0
- cqasm/v3x/types.py +1742 -0
- cqasm/v3x/values.py +1714 -0
- libqasm/__init__.py +25 -0
- libqasm/_libqasm.cpython-310-darwin.so +0 -0
- libqasm/libqasm.py +1082 -0
- libqasm-0.6.7.dist-info/LICENSE.md +13 -0
- libqasm-0.6.7.dist-info/METADATA +127 -0
- libqasm-0.6.7.dist-info/RECORD +16 -0
- libqasm-0.6.7.dist-info/WHEEL +5 -0
- libqasm-0.6.7.dist-info/top_level.txt +2 -0
libqasm/libqasm.py
ADDED
@@ -0,0 +1,1082 @@
|
|
1
|
+
# This file was automatically generated by SWIG (https://www.swig.org).
|
2
|
+
# Version 4.2.1
|
3
|
+
#
|
4
|
+
# Do not make changes to this file unless you know what you are doing - modify
|
5
|
+
# the SWIG interface file instead.
|
6
|
+
|
7
|
+
from sys import version_info as _swig_python_version_info
|
8
|
+
# Import the low-level C/C++ module
|
9
|
+
if __package__ or "." in __name__:
|
10
|
+
from . import _libqasm
|
11
|
+
else:
|
12
|
+
import _libqasm
|
13
|
+
|
14
|
+
try:
|
15
|
+
import builtins as __builtin__
|
16
|
+
except ImportError:
|
17
|
+
import __builtin__
|
18
|
+
|
19
|
+
def _swig_repr(self):
|
20
|
+
try:
|
21
|
+
strthis = "proxy of " + self.this.__repr__()
|
22
|
+
except __builtin__.Exception:
|
23
|
+
strthis = ""
|
24
|
+
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
|
25
|
+
|
26
|
+
|
27
|
+
def _swig_setattr_nondynamic_instance_variable(set):
|
28
|
+
def set_instance_attr(self, name, value):
|
29
|
+
if name == "this":
|
30
|
+
set(self, name, value)
|
31
|
+
elif name == "thisown":
|
32
|
+
self.this.own(value)
|
33
|
+
elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
|
34
|
+
set(self, name, value)
|
35
|
+
else:
|
36
|
+
raise AttributeError("You cannot add instance attributes to %s" % self)
|
37
|
+
return set_instance_attr
|
38
|
+
|
39
|
+
|
40
|
+
def _swig_setattr_nondynamic_class_variable(set):
|
41
|
+
def set_class_attr(cls, name, value):
|
42
|
+
if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
|
43
|
+
set(cls, name, value)
|
44
|
+
else:
|
45
|
+
raise AttributeError("You cannot add class attributes to %s" % cls)
|
46
|
+
return set_class_attr
|
47
|
+
|
48
|
+
|
49
|
+
def _swig_add_metaclass(metaclass):
|
50
|
+
"""Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
|
51
|
+
def wrapper(cls):
|
52
|
+
return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
|
53
|
+
return wrapper
|
54
|
+
|
55
|
+
|
56
|
+
class _SwigNonDynamicMeta(type):
|
57
|
+
"""Meta class to enforce nondynamic attributes (no new attributes) for a class"""
|
58
|
+
__setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
|
59
|
+
|
60
|
+
|
61
|
+
class SwigPyIterator(object):
|
62
|
+
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
63
|
+
|
64
|
+
def __init__(self, *args, **kwargs):
|
65
|
+
raise AttributeError("No constructor defined - class is abstract")
|
66
|
+
__repr__ = _swig_repr
|
67
|
+
__swig_destroy__ = _libqasm.delete_SwigPyIterator
|
68
|
+
|
69
|
+
def value(self):
|
70
|
+
return _libqasm.SwigPyIterator_value(self)
|
71
|
+
|
72
|
+
def incr(self, n=1):
|
73
|
+
return _libqasm.SwigPyIterator_incr(self, n)
|
74
|
+
|
75
|
+
def decr(self, n=1):
|
76
|
+
return _libqasm.SwigPyIterator_decr(self, n)
|
77
|
+
|
78
|
+
def distance(self, x):
|
79
|
+
return _libqasm.SwigPyIterator_distance(self, x)
|
80
|
+
|
81
|
+
def equal(self, x):
|
82
|
+
return _libqasm.SwigPyIterator_equal(self, x)
|
83
|
+
|
84
|
+
def copy(self):
|
85
|
+
return _libqasm.SwigPyIterator_copy(self)
|
86
|
+
|
87
|
+
def next(self):
|
88
|
+
return _libqasm.SwigPyIterator_next(self)
|
89
|
+
|
90
|
+
def __next__(self):
|
91
|
+
return _libqasm.SwigPyIterator___next__(self)
|
92
|
+
|
93
|
+
def previous(self):
|
94
|
+
return _libqasm.SwigPyIterator_previous(self)
|
95
|
+
|
96
|
+
def advance(self, n):
|
97
|
+
return _libqasm.SwigPyIterator_advance(self, n)
|
98
|
+
|
99
|
+
def __eq__(self, x):
|
100
|
+
return _libqasm.SwigPyIterator___eq__(self, x)
|
101
|
+
|
102
|
+
def __ne__(self, x):
|
103
|
+
return _libqasm.SwigPyIterator___ne__(self, x)
|
104
|
+
|
105
|
+
def __iadd__(self, n):
|
106
|
+
return _libqasm.SwigPyIterator___iadd__(self, n)
|
107
|
+
|
108
|
+
def __isub__(self, n):
|
109
|
+
return _libqasm.SwigPyIterator___isub__(self, n)
|
110
|
+
|
111
|
+
def __add__(self, n):
|
112
|
+
return _libqasm.SwigPyIterator___add__(self, n)
|
113
|
+
|
114
|
+
def __sub__(self, *args):
|
115
|
+
return _libqasm.SwigPyIterator___sub__(self, *args)
|
116
|
+
def __iter__(self):
|
117
|
+
return self
|
118
|
+
|
119
|
+
# Register SwigPyIterator in _libqasm:
|
120
|
+
_libqasm.SwigPyIterator_swigregister(SwigPyIterator)
|
121
|
+
class ios_base(object):
|
122
|
+
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
123
|
+
|
124
|
+
def __init__(self, *args, **kwargs):
|
125
|
+
raise AttributeError("No constructor defined")
|
126
|
+
__repr__ = _swig_repr
|
127
|
+
erase_event = _libqasm.ios_base_erase_event
|
128
|
+
imbue_event = _libqasm.ios_base_imbue_event
|
129
|
+
copyfmt_event = _libqasm.ios_base_copyfmt_event
|
130
|
+
|
131
|
+
def register_callback(self, __fn, __index):
|
132
|
+
return _libqasm.ios_base_register_callback(self, __fn, __index)
|
133
|
+
|
134
|
+
def flags(self, *args):
|
135
|
+
return _libqasm.ios_base_flags(self, *args)
|
136
|
+
|
137
|
+
def setf(self, *args):
|
138
|
+
return _libqasm.ios_base_setf(self, *args)
|
139
|
+
|
140
|
+
def unsetf(self, __mask):
|
141
|
+
return _libqasm.ios_base_unsetf(self, __mask)
|
142
|
+
|
143
|
+
def precision(self, *args):
|
144
|
+
return _libqasm.ios_base_precision(self, *args)
|
145
|
+
|
146
|
+
def width(self, *args):
|
147
|
+
return _libqasm.ios_base_width(self, *args)
|
148
|
+
|
149
|
+
@staticmethod
|
150
|
+
def sync_with_stdio(__sync=True):
|
151
|
+
return _libqasm.ios_base_sync_with_stdio(__sync)
|
152
|
+
|
153
|
+
def imbue(self, __loc):
|
154
|
+
return _libqasm.ios_base_imbue(self, __loc)
|
155
|
+
|
156
|
+
def getloc(self):
|
157
|
+
return _libqasm.ios_base_getloc(self)
|
158
|
+
|
159
|
+
@staticmethod
|
160
|
+
def xalloc():
|
161
|
+
return _libqasm.ios_base_xalloc()
|
162
|
+
|
163
|
+
def iword(self, __ix):
|
164
|
+
return _libqasm.ios_base_iword(self, __ix)
|
165
|
+
|
166
|
+
def pword(self, __ix):
|
167
|
+
return _libqasm.ios_base_pword(self, __ix)
|
168
|
+
__swig_destroy__ = _libqasm.delete_ios_base
|
169
|
+
|
170
|
+
# Register ios_base in _libqasm:
|
171
|
+
_libqasm.ios_base_swigregister(ios_base)
|
172
|
+
cvar = _libqasm.cvar
|
173
|
+
ios_base.boolalpha = _libqasm.cvar.ios_base_boolalpha
|
174
|
+
ios_base.dec = _libqasm.cvar.ios_base_dec
|
175
|
+
ios_base.fixed = _libqasm.cvar.ios_base_fixed
|
176
|
+
ios_base.hex = _libqasm.cvar.ios_base_hex
|
177
|
+
ios_base.internal = _libqasm.cvar.ios_base_internal
|
178
|
+
ios_base.left = _libqasm.cvar.ios_base_left
|
179
|
+
ios_base.oct = _libqasm.cvar.ios_base_oct
|
180
|
+
ios_base.right = _libqasm.cvar.ios_base_right
|
181
|
+
ios_base.scientific = _libqasm.cvar.ios_base_scientific
|
182
|
+
ios_base.showbase = _libqasm.cvar.ios_base_showbase
|
183
|
+
ios_base.showpoint = _libqasm.cvar.ios_base_showpoint
|
184
|
+
ios_base.showpos = _libqasm.cvar.ios_base_showpos
|
185
|
+
ios_base.skipws = _libqasm.cvar.ios_base_skipws
|
186
|
+
ios_base.unitbuf = _libqasm.cvar.ios_base_unitbuf
|
187
|
+
ios_base.uppercase = _libqasm.cvar.ios_base_uppercase
|
188
|
+
ios_base.adjustfield = _libqasm.cvar.ios_base_adjustfield
|
189
|
+
ios_base.basefield = _libqasm.cvar.ios_base_basefield
|
190
|
+
ios_base.floatfield = _libqasm.cvar.ios_base_floatfield
|
191
|
+
ios_base.badbit = _libqasm.cvar.ios_base_badbit
|
192
|
+
ios_base.eofbit = _libqasm.cvar.ios_base_eofbit
|
193
|
+
ios_base.failbit = _libqasm.cvar.ios_base_failbit
|
194
|
+
ios_base.goodbit = _libqasm.cvar.ios_base_goodbit
|
195
|
+
ios_base.app = _libqasm.cvar.ios_base_app
|
196
|
+
ios_base.ate = _libqasm.cvar.ios_base_ate
|
197
|
+
ios_base.binary = _libqasm.cvar.ios_base_binary
|
198
|
+
ios_base.ios_base_in = _libqasm.cvar.ios_base_ios_base_in
|
199
|
+
ios_base.out = _libqasm.cvar.ios_base_out
|
200
|
+
ios_base.trunc = _libqasm.cvar.ios_base_trunc
|
201
|
+
ios_base.beg = _libqasm.cvar.ios_base_beg
|
202
|
+
ios_base.cur = _libqasm.cvar.ios_base_cur
|
203
|
+
ios_base.end = _libqasm.cvar.ios_base_end
|
204
|
+
|
205
|
+
class ios(ios_base):
|
206
|
+
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
207
|
+
__repr__ = _swig_repr
|
208
|
+
|
209
|
+
def rdstate(self):
|
210
|
+
return _libqasm.ios_rdstate(self)
|
211
|
+
|
212
|
+
def clear(self, *args):
|
213
|
+
return _libqasm.ios_clear(self, *args)
|
214
|
+
|
215
|
+
def setstate(self, __state):
|
216
|
+
return _libqasm.ios_setstate(self, __state)
|
217
|
+
|
218
|
+
def good(self):
|
219
|
+
return _libqasm.ios_good(self)
|
220
|
+
|
221
|
+
def eof(self):
|
222
|
+
return _libqasm.ios_eof(self)
|
223
|
+
|
224
|
+
def fail(self):
|
225
|
+
return _libqasm.ios_fail(self)
|
226
|
+
|
227
|
+
def bad(self):
|
228
|
+
return _libqasm.ios_bad(self)
|
229
|
+
|
230
|
+
def exceptions(self, *args):
|
231
|
+
return _libqasm.ios_exceptions(self, *args)
|
232
|
+
|
233
|
+
def __init__(self, __sb):
|
234
|
+
_libqasm.ios_swiginit(self, _libqasm.new_ios(__sb))
|
235
|
+
__swig_destroy__ = _libqasm.delete_ios
|
236
|
+
|
237
|
+
def tie(self, *args):
|
238
|
+
return _libqasm.ios_tie(self, *args)
|
239
|
+
|
240
|
+
def rdbuf(self, *args):
|
241
|
+
return _libqasm.ios_rdbuf(self, *args)
|
242
|
+
|
243
|
+
def copyfmt(self, __rhs):
|
244
|
+
return _libqasm.ios_copyfmt(self, __rhs)
|
245
|
+
|
246
|
+
def fill(self, *args):
|
247
|
+
return _libqasm.ios_fill(self, *args)
|
248
|
+
|
249
|
+
def imbue(self, __loc):
|
250
|
+
return _libqasm.ios_imbue(self, __loc)
|
251
|
+
|
252
|
+
def narrow(self, __c, __dfault):
|
253
|
+
return _libqasm.ios_narrow(self, __c, __dfault)
|
254
|
+
|
255
|
+
def widen(self, __c):
|
256
|
+
return _libqasm.ios_widen(self, __c)
|
257
|
+
|
258
|
+
# Register ios in _libqasm:
|
259
|
+
_libqasm.ios_swigregister(ios)
|
260
|
+
class string(object):
|
261
|
+
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
262
|
+
__repr__ = _swig_repr
|
263
|
+
|
264
|
+
def length(self):
|
265
|
+
return _libqasm.string_length(self)
|
266
|
+
|
267
|
+
def max_size(self):
|
268
|
+
return _libqasm.string_max_size(self)
|
269
|
+
|
270
|
+
def capacity(self):
|
271
|
+
return _libqasm.string_capacity(self)
|
272
|
+
|
273
|
+
def reserve(self, __res_arg):
|
274
|
+
return _libqasm.string_reserve(self, __res_arg)
|
275
|
+
|
276
|
+
def shrink_to_fit(self):
|
277
|
+
return _libqasm.string_shrink_to_fit(self)
|
278
|
+
|
279
|
+
def copy(self, __s, __n, __pos=0):
|
280
|
+
return _libqasm.string_copy(self, __s, __n, __pos)
|
281
|
+
|
282
|
+
def c_str(self):
|
283
|
+
return _libqasm.string_c_str(self)
|
284
|
+
|
285
|
+
def find(self, *args):
|
286
|
+
return _libqasm.string_find(self, *args)
|
287
|
+
|
288
|
+
def rfind(self, *args):
|
289
|
+
return _libqasm.string_rfind(self, *args)
|
290
|
+
|
291
|
+
def find_first_of(self, *args):
|
292
|
+
return _libqasm.string_find_first_of(self, *args)
|
293
|
+
|
294
|
+
def find_last_of(self, *args):
|
295
|
+
return _libqasm.string_find_last_of(self, *args)
|
296
|
+
|
297
|
+
def find_first_not_of(self, *args):
|
298
|
+
return _libqasm.string_find_first_not_of(self, *args)
|
299
|
+
|
300
|
+
def find_last_not_of(self, *args):
|
301
|
+
return _libqasm.string_find_last_not_of(self, *args)
|
302
|
+
|
303
|
+
def substr(self, *args):
|
304
|
+
return _libqasm.string_substr(self, *args)
|
305
|
+
|
306
|
+
def empty(self):
|
307
|
+
return _libqasm.string_empty(self)
|
308
|
+
|
309
|
+
def size(self):
|
310
|
+
return _libqasm.string_size(self)
|
311
|
+
|
312
|
+
def swap(self, v):
|
313
|
+
return _libqasm.string_swap(self, v)
|
314
|
+
|
315
|
+
def begin(self):
|
316
|
+
return _libqasm.string_begin(self)
|
317
|
+
|
318
|
+
def end(self):
|
319
|
+
return _libqasm.string_end(self)
|
320
|
+
|
321
|
+
def rbegin(self):
|
322
|
+
return _libqasm.string_rbegin(self)
|
323
|
+
|
324
|
+
def rend(self):
|
325
|
+
return _libqasm.string_rend(self)
|
326
|
+
|
327
|
+
def get_allocator(self):
|
328
|
+
return _libqasm.string_get_allocator(self)
|
329
|
+
|
330
|
+
def erase(self, *args):
|
331
|
+
return _libqasm.string_erase(self, *args)
|
332
|
+
|
333
|
+
def __init__(self, *args):
|
334
|
+
_libqasm.string_swiginit(self, _libqasm.new_string(*args))
|
335
|
+
|
336
|
+
def assign(self, *args):
|
337
|
+
return _libqasm.string_assign(self, *args)
|
338
|
+
|
339
|
+
def resize(self, *args):
|
340
|
+
return _libqasm.string_resize(self, *args)
|
341
|
+
|
342
|
+
def iterator(self):
|
343
|
+
return _libqasm.string_iterator(self)
|
344
|
+
def __iter__(self):
|
345
|
+
return self.iterator()
|
346
|
+
|
347
|
+
def __nonzero__(self):
|
348
|
+
return _libqasm.string___nonzero__(self)
|
349
|
+
|
350
|
+
def __bool__(self):
|
351
|
+
return _libqasm.string___bool__(self)
|
352
|
+
|
353
|
+
def __len__(self):
|
354
|
+
return _libqasm.string___len__(self)
|
355
|
+
|
356
|
+
def __getslice__(self, i, j):
|
357
|
+
return _libqasm.string___getslice__(self, i, j)
|
358
|
+
|
359
|
+
def __setslice__(self, *args):
|
360
|
+
return _libqasm.string___setslice__(self, *args)
|
361
|
+
|
362
|
+
def __delslice__(self, i, j):
|
363
|
+
return _libqasm.string___delslice__(self, i, j)
|
364
|
+
|
365
|
+
def __delitem__(self, *args):
|
366
|
+
return _libqasm.string___delitem__(self, *args)
|
367
|
+
|
368
|
+
def __getitem__(self, *args):
|
369
|
+
return _libqasm.string___getitem__(self, *args)
|
370
|
+
|
371
|
+
def __setitem__(self, *args):
|
372
|
+
return _libqasm.string___setitem__(self, *args)
|
373
|
+
|
374
|
+
def insert(self, *args):
|
375
|
+
return _libqasm.string_insert(self, *args)
|
376
|
+
|
377
|
+
def replace(self, *args):
|
378
|
+
return _libqasm.string_replace(self, *args)
|
379
|
+
|
380
|
+
def __iadd__(self, v):
|
381
|
+
return _libqasm.string___iadd__(self, v)
|
382
|
+
|
383
|
+
def __add__(self, v):
|
384
|
+
return _libqasm.string___add__(self, v)
|
385
|
+
|
386
|
+
def __radd__(self, v):
|
387
|
+
return _libqasm.string___radd__(self, v)
|
388
|
+
|
389
|
+
def __str__(self):
|
390
|
+
return _libqasm.string___str__(self)
|
391
|
+
|
392
|
+
def __rlshift__(self, out):
|
393
|
+
return _libqasm.string___rlshift__(self, out)
|
394
|
+
|
395
|
+
def __eq__(self, v):
|
396
|
+
return _libqasm.string___eq__(self, v)
|
397
|
+
|
398
|
+
def __ne__(self, v):
|
399
|
+
return _libqasm.string___ne__(self, v)
|
400
|
+
|
401
|
+
def __gt__(self, v):
|
402
|
+
return _libqasm.string___gt__(self, v)
|
403
|
+
|
404
|
+
def __lt__(self, v):
|
405
|
+
return _libqasm.string___lt__(self, v)
|
406
|
+
|
407
|
+
def __ge__(self, v):
|
408
|
+
return _libqasm.string___ge__(self, v)
|
409
|
+
|
410
|
+
def __le__(self, v):
|
411
|
+
return _libqasm.string___le__(self, v)
|
412
|
+
__swig_destroy__ = _libqasm.delete_string
|
413
|
+
|
414
|
+
# Register string in _libqasm:
|
415
|
+
_libqasm.string_swigregister(string)
|
416
|
+
string.npos = _libqasm.cvar.string_npos
|
417
|
+
|
418
|
+
class ostream(ios):
|
419
|
+
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
420
|
+
__repr__ = _swig_repr
|
421
|
+
|
422
|
+
def __init__(self, __sb):
|
423
|
+
_libqasm.ostream_swiginit(self, _libqasm.new_ostream(__sb))
|
424
|
+
__swig_destroy__ = _libqasm.delete_ostream
|
425
|
+
|
426
|
+
def __lshift__(self, *args):
|
427
|
+
return _libqasm.ostream___lshift__(self, *args)
|
428
|
+
|
429
|
+
def put(self, __c):
|
430
|
+
return _libqasm.ostream_put(self, __c)
|
431
|
+
|
432
|
+
def write(self, __s, __n):
|
433
|
+
return _libqasm.ostream_write(self, __s, __n)
|
434
|
+
|
435
|
+
def flush(self):
|
436
|
+
return _libqasm.ostream_flush(self)
|
437
|
+
|
438
|
+
def tellp(self):
|
439
|
+
return _libqasm.ostream_tellp(self)
|
440
|
+
|
441
|
+
def seekp(self, *args):
|
442
|
+
return _libqasm.ostream_seekp(self, *args)
|
443
|
+
|
444
|
+
# Register ostream in _libqasm:
|
445
|
+
_libqasm.ostream_swigregister(ostream)
|
446
|
+
class istream(ios):
|
447
|
+
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
448
|
+
__repr__ = _swig_repr
|
449
|
+
|
450
|
+
def __init__(self, __sb):
|
451
|
+
_libqasm.istream_swiginit(self, _libqasm.new_istream(__sb))
|
452
|
+
__swig_destroy__ = _libqasm.delete_istream
|
453
|
+
|
454
|
+
def __rshift__(self, *args):
|
455
|
+
return _libqasm.istream___rshift__(self, *args)
|
456
|
+
|
457
|
+
def gcount(self):
|
458
|
+
return _libqasm.istream_gcount(self)
|
459
|
+
|
460
|
+
def get(self, *args):
|
461
|
+
return _libqasm.istream_get(self, *args)
|
462
|
+
|
463
|
+
def getline(self, *args):
|
464
|
+
return _libqasm.istream_getline(self, *args)
|
465
|
+
|
466
|
+
def ignore(self, *args):
|
467
|
+
return _libqasm.istream_ignore(self, *args)
|
468
|
+
|
469
|
+
def peek(self):
|
470
|
+
return _libqasm.istream_peek(self)
|
471
|
+
|
472
|
+
def read(self, __s, __n):
|
473
|
+
return _libqasm.istream_read(self, __s, __n)
|
474
|
+
|
475
|
+
def readsome(self, __s, __n):
|
476
|
+
return _libqasm.istream_readsome(self, __s, __n)
|
477
|
+
|
478
|
+
def putback(self, __c):
|
479
|
+
return _libqasm.istream_putback(self, __c)
|
480
|
+
|
481
|
+
def unget(self):
|
482
|
+
return _libqasm.istream_unget(self)
|
483
|
+
|
484
|
+
def sync(self):
|
485
|
+
return _libqasm.istream_sync(self)
|
486
|
+
|
487
|
+
def tellg(self):
|
488
|
+
return _libqasm.istream_tellg(self)
|
489
|
+
|
490
|
+
def seekg(self, *args):
|
491
|
+
return _libqasm.istream_seekg(self, *args)
|
492
|
+
|
493
|
+
# Register istream in _libqasm:
|
494
|
+
_libqasm.istream_swigregister(istream)
|
495
|
+
class iostream(istream, ostream):
|
496
|
+
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
497
|
+
__repr__ = _swig_repr
|
498
|
+
|
499
|
+
def __init__(self, __sb):
|
500
|
+
_libqasm.iostream_swiginit(self, _libqasm.new_iostream(__sb))
|
501
|
+
__swig_destroy__ = _libqasm.delete_iostream
|
502
|
+
|
503
|
+
# Register iostream in _libqasm:
|
504
|
+
_libqasm.iostream_swigregister(iostream)
|
505
|
+
cin = cvar.cin
|
506
|
+
cout = cvar.cout
|
507
|
+
cerr = cvar.cerr
|
508
|
+
clog = cvar.clog
|
509
|
+
|
510
|
+
endl_cb_ptr = _libqasm.endl_cb_ptr
|
511
|
+
endl = _libqasm.endl
|
512
|
+
ends_cb_ptr = _libqasm.ends_cb_ptr
|
513
|
+
ends = _libqasm.ends
|
514
|
+
flush_cb_ptr = _libqasm.flush_cb_ptr
|
515
|
+
flush = _libqasm.flush
|
516
|
+
class vectori(object):
|
517
|
+
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
518
|
+
__repr__ = _swig_repr
|
519
|
+
|
520
|
+
def iterator(self):
|
521
|
+
return _libqasm.vectori_iterator(self)
|
522
|
+
def __iter__(self):
|
523
|
+
return self.iterator()
|
524
|
+
|
525
|
+
def __nonzero__(self):
|
526
|
+
return _libqasm.vectori___nonzero__(self)
|
527
|
+
|
528
|
+
def __bool__(self):
|
529
|
+
return _libqasm.vectori___bool__(self)
|
530
|
+
|
531
|
+
def __len__(self):
|
532
|
+
return _libqasm.vectori___len__(self)
|
533
|
+
|
534
|
+
def __getslice__(self, i, j):
|
535
|
+
return _libqasm.vectori___getslice__(self, i, j)
|
536
|
+
|
537
|
+
def __setslice__(self, *args):
|
538
|
+
return _libqasm.vectori___setslice__(self, *args)
|
539
|
+
|
540
|
+
def __delslice__(self, i, j):
|
541
|
+
return _libqasm.vectori___delslice__(self, i, j)
|
542
|
+
|
543
|
+
def __delitem__(self, *args):
|
544
|
+
return _libqasm.vectori___delitem__(self, *args)
|
545
|
+
|
546
|
+
def __getitem__(self, *args):
|
547
|
+
return _libqasm.vectori___getitem__(self, *args)
|
548
|
+
|
549
|
+
def __setitem__(self, *args):
|
550
|
+
return _libqasm.vectori___setitem__(self, *args)
|
551
|
+
|
552
|
+
def pop(self):
|
553
|
+
return _libqasm.vectori_pop(self)
|
554
|
+
|
555
|
+
def append(self, x):
|
556
|
+
return _libqasm.vectori_append(self, x)
|
557
|
+
|
558
|
+
def empty(self):
|
559
|
+
return _libqasm.vectori_empty(self)
|
560
|
+
|
561
|
+
def size(self):
|
562
|
+
return _libqasm.vectori_size(self)
|
563
|
+
|
564
|
+
def swap(self, v):
|
565
|
+
return _libqasm.vectori_swap(self, v)
|
566
|
+
|
567
|
+
def begin(self):
|
568
|
+
return _libqasm.vectori_begin(self)
|
569
|
+
|
570
|
+
def end(self):
|
571
|
+
return _libqasm.vectori_end(self)
|
572
|
+
|
573
|
+
def rbegin(self):
|
574
|
+
return _libqasm.vectori_rbegin(self)
|
575
|
+
|
576
|
+
def rend(self):
|
577
|
+
return _libqasm.vectori_rend(self)
|
578
|
+
|
579
|
+
def clear(self):
|
580
|
+
return _libqasm.vectori_clear(self)
|
581
|
+
|
582
|
+
def get_allocator(self):
|
583
|
+
return _libqasm.vectori_get_allocator(self)
|
584
|
+
|
585
|
+
def pop_back(self):
|
586
|
+
return _libqasm.vectori_pop_back(self)
|
587
|
+
|
588
|
+
def erase(self, *args):
|
589
|
+
return _libqasm.vectori_erase(self, *args)
|
590
|
+
|
591
|
+
def __init__(self, *args):
|
592
|
+
_libqasm.vectori_swiginit(self, _libqasm.new_vectori(*args))
|
593
|
+
|
594
|
+
def push_back(self, x):
|
595
|
+
return _libqasm.vectori_push_back(self, x)
|
596
|
+
|
597
|
+
def front(self):
|
598
|
+
return _libqasm.vectori_front(self)
|
599
|
+
|
600
|
+
def back(self):
|
601
|
+
return _libqasm.vectori_back(self)
|
602
|
+
|
603
|
+
def assign(self, n, x):
|
604
|
+
return _libqasm.vectori_assign(self, n, x)
|
605
|
+
|
606
|
+
def resize(self, *args):
|
607
|
+
return _libqasm.vectori_resize(self, *args)
|
608
|
+
|
609
|
+
def insert(self, *args):
|
610
|
+
return _libqasm.vectori_insert(self, *args)
|
611
|
+
|
612
|
+
def reserve(self, n):
|
613
|
+
return _libqasm.vectori_reserve(self, n)
|
614
|
+
|
615
|
+
def capacity(self):
|
616
|
+
return _libqasm.vectori_capacity(self)
|
617
|
+
__swig_destroy__ = _libqasm.delete_vectori
|
618
|
+
|
619
|
+
# Register vectori in _libqasm:
|
620
|
+
_libqasm.vectori_swigregister(vectori)
|
621
|
+
class vectorui(object):
|
622
|
+
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
623
|
+
__repr__ = _swig_repr
|
624
|
+
|
625
|
+
def iterator(self):
|
626
|
+
return _libqasm.vectorui_iterator(self)
|
627
|
+
def __iter__(self):
|
628
|
+
return self.iterator()
|
629
|
+
|
630
|
+
def __nonzero__(self):
|
631
|
+
return _libqasm.vectorui___nonzero__(self)
|
632
|
+
|
633
|
+
def __bool__(self):
|
634
|
+
return _libqasm.vectorui___bool__(self)
|
635
|
+
|
636
|
+
def __len__(self):
|
637
|
+
return _libqasm.vectorui___len__(self)
|
638
|
+
|
639
|
+
def __getslice__(self, i, j):
|
640
|
+
return _libqasm.vectorui___getslice__(self, i, j)
|
641
|
+
|
642
|
+
def __setslice__(self, *args):
|
643
|
+
return _libqasm.vectorui___setslice__(self, *args)
|
644
|
+
|
645
|
+
def __delslice__(self, i, j):
|
646
|
+
return _libqasm.vectorui___delslice__(self, i, j)
|
647
|
+
|
648
|
+
def __delitem__(self, *args):
|
649
|
+
return _libqasm.vectorui___delitem__(self, *args)
|
650
|
+
|
651
|
+
def __getitem__(self, *args):
|
652
|
+
return _libqasm.vectorui___getitem__(self, *args)
|
653
|
+
|
654
|
+
def __setitem__(self, *args):
|
655
|
+
return _libqasm.vectorui___setitem__(self, *args)
|
656
|
+
|
657
|
+
def pop(self):
|
658
|
+
return _libqasm.vectorui_pop(self)
|
659
|
+
|
660
|
+
def append(self, x):
|
661
|
+
return _libqasm.vectorui_append(self, x)
|
662
|
+
|
663
|
+
def empty(self):
|
664
|
+
return _libqasm.vectorui_empty(self)
|
665
|
+
|
666
|
+
def size(self):
|
667
|
+
return _libqasm.vectorui_size(self)
|
668
|
+
|
669
|
+
def swap(self, v):
|
670
|
+
return _libqasm.vectorui_swap(self, v)
|
671
|
+
|
672
|
+
def begin(self):
|
673
|
+
return _libqasm.vectorui_begin(self)
|
674
|
+
|
675
|
+
def end(self):
|
676
|
+
return _libqasm.vectorui_end(self)
|
677
|
+
|
678
|
+
def rbegin(self):
|
679
|
+
return _libqasm.vectorui_rbegin(self)
|
680
|
+
|
681
|
+
def rend(self):
|
682
|
+
return _libqasm.vectorui_rend(self)
|
683
|
+
|
684
|
+
def clear(self):
|
685
|
+
return _libqasm.vectorui_clear(self)
|
686
|
+
|
687
|
+
def get_allocator(self):
|
688
|
+
return _libqasm.vectorui_get_allocator(self)
|
689
|
+
|
690
|
+
def pop_back(self):
|
691
|
+
return _libqasm.vectorui_pop_back(self)
|
692
|
+
|
693
|
+
def erase(self, *args):
|
694
|
+
return _libqasm.vectorui_erase(self, *args)
|
695
|
+
|
696
|
+
def __init__(self, *args):
|
697
|
+
_libqasm.vectorui_swiginit(self, _libqasm.new_vectorui(*args))
|
698
|
+
|
699
|
+
def push_back(self, x):
|
700
|
+
return _libqasm.vectorui_push_back(self, x)
|
701
|
+
|
702
|
+
def front(self):
|
703
|
+
return _libqasm.vectorui_front(self)
|
704
|
+
|
705
|
+
def back(self):
|
706
|
+
return _libqasm.vectorui_back(self)
|
707
|
+
|
708
|
+
def assign(self, n, x):
|
709
|
+
return _libqasm.vectorui_assign(self, n, x)
|
710
|
+
|
711
|
+
def resize(self, *args):
|
712
|
+
return _libqasm.vectorui_resize(self, *args)
|
713
|
+
|
714
|
+
def insert(self, *args):
|
715
|
+
return _libqasm.vectorui_insert(self, *args)
|
716
|
+
|
717
|
+
def reserve(self, n):
|
718
|
+
return _libqasm.vectorui_reserve(self, n)
|
719
|
+
|
720
|
+
def capacity(self):
|
721
|
+
return _libqasm.vectorui_capacity(self)
|
722
|
+
__swig_destroy__ = _libqasm.delete_vectorui
|
723
|
+
|
724
|
+
# Register vectorui in _libqasm:
|
725
|
+
_libqasm.vectorui_swigregister(vectorui)
|
726
|
+
class vectorf(object):
|
727
|
+
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
728
|
+
__repr__ = _swig_repr
|
729
|
+
|
730
|
+
def iterator(self):
|
731
|
+
return _libqasm.vectorf_iterator(self)
|
732
|
+
def __iter__(self):
|
733
|
+
return self.iterator()
|
734
|
+
|
735
|
+
def __nonzero__(self):
|
736
|
+
return _libqasm.vectorf___nonzero__(self)
|
737
|
+
|
738
|
+
def __bool__(self):
|
739
|
+
return _libqasm.vectorf___bool__(self)
|
740
|
+
|
741
|
+
def __len__(self):
|
742
|
+
return _libqasm.vectorf___len__(self)
|
743
|
+
|
744
|
+
def __getslice__(self, i, j):
|
745
|
+
return _libqasm.vectorf___getslice__(self, i, j)
|
746
|
+
|
747
|
+
def __setslice__(self, *args):
|
748
|
+
return _libqasm.vectorf___setslice__(self, *args)
|
749
|
+
|
750
|
+
def __delslice__(self, i, j):
|
751
|
+
return _libqasm.vectorf___delslice__(self, i, j)
|
752
|
+
|
753
|
+
def __delitem__(self, *args):
|
754
|
+
return _libqasm.vectorf___delitem__(self, *args)
|
755
|
+
|
756
|
+
def __getitem__(self, *args):
|
757
|
+
return _libqasm.vectorf___getitem__(self, *args)
|
758
|
+
|
759
|
+
def __setitem__(self, *args):
|
760
|
+
return _libqasm.vectorf___setitem__(self, *args)
|
761
|
+
|
762
|
+
def pop(self):
|
763
|
+
return _libqasm.vectorf_pop(self)
|
764
|
+
|
765
|
+
def append(self, x):
|
766
|
+
return _libqasm.vectorf_append(self, x)
|
767
|
+
|
768
|
+
def empty(self):
|
769
|
+
return _libqasm.vectorf_empty(self)
|
770
|
+
|
771
|
+
def size(self):
|
772
|
+
return _libqasm.vectorf_size(self)
|
773
|
+
|
774
|
+
def swap(self, v):
|
775
|
+
return _libqasm.vectorf_swap(self, v)
|
776
|
+
|
777
|
+
def begin(self):
|
778
|
+
return _libqasm.vectorf_begin(self)
|
779
|
+
|
780
|
+
def end(self):
|
781
|
+
return _libqasm.vectorf_end(self)
|
782
|
+
|
783
|
+
def rbegin(self):
|
784
|
+
return _libqasm.vectorf_rbegin(self)
|
785
|
+
|
786
|
+
def rend(self):
|
787
|
+
return _libqasm.vectorf_rend(self)
|
788
|
+
|
789
|
+
def clear(self):
|
790
|
+
return _libqasm.vectorf_clear(self)
|
791
|
+
|
792
|
+
def get_allocator(self):
|
793
|
+
return _libqasm.vectorf_get_allocator(self)
|
794
|
+
|
795
|
+
def pop_back(self):
|
796
|
+
return _libqasm.vectorf_pop_back(self)
|
797
|
+
|
798
|
+
def erase(self, *args):
|
799
|
+
return _libqasm.vectorf_erase(self, *args)
|
800
|
+
|
801
|
+
def __init__(self, *args):
|
802
|
+
_libqasm.vectorf_swiginit(self, _libqasm.new_vectorf(*args))
|
803
|
+
|
804
|
+
def push_back(self, x):
|
805
|
+
return _libqasm.vectorf_push_back(self, x)
|
806
|
+
|
807
|
+
def front(self):
|
808
|
+
return _libqasm.vectorf_front(self)
|
809
|
+
|
810
|
+
def back(self):
|
811
|
+
return _libqasm.vectorf_back(self)
|
812
|
+
|
813
|
+
def assign(self, n, x):
|
814
|
+
return _libqasm.vectorf_assign(self, n, x)
|
815
|
+
|
816
|
+
def resize(self, *args):
|
817
|
+
return _libqasm.vectorf_resize(self, *args)
|
818
|
+
|
819
|
+
def insert(self, *args):
|
820
|
+
return _libqasm.vectorf_insert(self, *args)
|
821
|
+
|
822
|
+
def reserve(self, n):
|
823
|
+
return _libqasm.vectorf_reserve(self, n)
|
824
|
+
|
825
|
+
def capacity(self):
|
826
|
+
return _libqasm.vectorf_capacity(self)
|
827
|
+
__swig_destroy__ = _libqasm.delete_vectorf
|
828
|
+
|
829
|
+
# Register vectorf in _libqasm:
|
830
|
+
_libqasm.vectorf_swigregister(vectorf)
|
831
|
+
class vectord(object):
|
832
|
+
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
833
|
+
__repr__ = _swig_repr
|
834
|
+
|
835
|
+
def iterator(self):
|
836
|
+
return _libqasm.vectord_iterator(self)
|
837
|
+
def __iter__(self):
|
838
|
+
return self.iterator()
|
839
|
+
|
840
|
+
def __nonzero__(self):
|
841
|
+
return _libqasm.vectord___nonzero__(self)
|
842
|
+
|
843
|
+
def __bool__(self):
|
844
|
+
return _libqasm.vectord___bool__(self)
|
845
|
+
|
846
|
+
def __len__(self):
|
847
|
+
return _libqasm.vectord___len__(self)
|
848
|
+
|
849
|
+
def __getslice__(self, i, j):
|
850
|
+
return _libqasm.vectord___getslice__(self, i, j)
|
851
|
+
|
852
|
+
def __setslice__(self, *args):
|
853
|
+
return _libqasm.vectord___setslice__(self, *args)
|
854
|
+
|
855
|
+
def __delslice__(self, i, j):
|
856
|
+
return _libqasm.vectord___delslice__(self, i, j)
|
857
|
+
|
858
|
+
def __delitem__(self, *args):
|
859
|
+
return _libqasm.vectord___delitem__(self, *args)
|
860
|
+
|
861
|
+
def __getitem__(self, *args):
|
862
|
+
return _libqasm.vectord___getitem__(self, *args)
|
863
|
+
|
864
|
+
def __setitem__(self, *args):
|
865
|
+
return _libqasm.vectord___setitem__(self, *args)
|
866
|
+
|
867
|
+
def pop(self):
|
868
|
+
return _libqasm.vectord_pop(self)
|
869
|
+
|
870
|
+
def append(self, x):
|
871
|
+
return _libqasm.vectord_append(self, x)
|
872
|
+
|
873
|
+
def empty(self):
|
874
|
+
return _libqasm.vectord_empty(self)
|
875
|
+
|
876
|
+
def size(self):
|
877
|
+
return _libqasm.vectord_size(self)
|
878
|
+
|
879
|
+
def swap(self, v):
|
880
|
+
return _libqasm.vectord_swap(self, v)
|
881
|
+
|
882
|
+
def begin(self):
|
883
|
+
return _libqasm.vectord_begin(self)
|
884
|
+
|
885
|
+
def end(self):
|
886
|
+
return _libqasm.vectord_end(self)
|
887
|
+
|
888
|
+
def rbegin(self):
|
889
|
+
return _libqasm.vectord_rbegin(self)
|
890
|
+
|
891
|
+
def rend(self):
|
892
|
+
return _libqasm.vectord_rend(self)
|
893
|
+
|
894
|
+
def clear(self):
|
895
|
+
return _libqasm.vectord_clear(self)
|
896
|
+
|
897
|
+
def get_allocator(self):
|
898
|
+
return _libqasm.vectord_get_allocator(self)
|
899
|
+
|
900
|
+
def pop_back(self):
|
901
|
+
return _libqasm.vectord_pop_back(self)
|
902
|
+
|
903
|
+
def erase(self, *args):
|
904
|
+
return _libqasm.vectord_erase(self, *args)
|
905
|
+
|
906
|
+
def __init__(self, *args):
|
907
|
+
_libqasm.vectord_swiginit(self, _libqasm.new_vectord(*args))
|
908
|
+
|
909
|
+
def push_back(self, x):
|
910
|
+
return _libqasm.vectord_push_back(self, x)
|
911
|
+
|
912
|
+
def front(self):
|
913
|
+
return _libqasm.vectord_front(self)
|
914
|
+
|
915
|
+
def back(self):
|
916
|
+
return _libqasm.vectord_back(self)
|
917
|
+
|
918
|
+
def assign(self, n, x):
|
919
|
+
return _libqasm.vectord_assign(self, n, x)
|
920
|
+
|
921
|
+
def resize(self, *args):
|
922
|
+
return _libqasm.vectord_resize(self, *args)
|
923
|
+
|
924
|
+
def insert(self, *args):
|
925
|
+
return _libqasm.vectord_insert(self, *args)
|
926
|
+
|
927
|
+
def reserve(self, n):
|
928
|
+
return _libqasm.vectord_reserve(self, n)
|
929
|
+
|
930
|
+
def capacity(self):
|
931
|
+
return _libqasm.vectord_capacity(self)
|
932
|
+
__swig_destroy__ = _libqasm.delete_vectord
|
933
|
+
|
934
|
+
# Register vectord in _libqasm:
|
935
|
+
_libqasm.vectord_swigregister(vectord)
|
936
|
+
class vectors(object):
|
937
|
+
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
938
|
+
__repr__ = _swig_repr
|
939
|
+
|
940
|
+
def iterator(self):
|
941
|
+
return _libqasm.vectors_iterator(self)
|
942
|
+
def __iter__(self):
|
943
|
+
return self.iterator()
|
944
|
+
|
945
|
+
def __nonzero__(self):
|
946
|
+
return _libqasm.vectors___nonzero__(self)
|
947
|
+
|
948
|
+
def __bool__(self):
|
949
|
+
return _libqasm.vectors___bool__(self)
|
950
|
+
|
951
|
+
def __len__(self):
|
952
|
+
return _libqasm.vectors___len__(self)
|
953
|
+
|
954
|
+
def __getslice__(self, i, j):
|
955
|
+
return _libqasm.vectors___getslice__(self, i, j)
|
956
|
+
|
957
|
+
def __setslice__(self, *args):
|
958
|
+
return _libqasm.vectors___setslice__(self, *args)
|
959
|
+
|
960
|
+
def __delslice__(self, i, j):
|
961
|
+
return _libqasm.vectors___delslice__(self, i, j)
|
962
|
+
|
963
|
+
def __delitem__(self, *args):
|
964
|
+
return _libqasm.vectors___delitem__(self, *args)
|
965
|
+
|
966
|
+
def __getitem__(self, *args):
|
967
|
+
return _libqasm.vectors___getitem__(self, *args)
|
968
|
+
|
969
|
+
def __setitem__(self, *args):
|
970
|
+
return _libqasm.vectors___setitem__(self, *args)
|
971
|
+
|
972
|
+
def pop(self):
|
973
|
+
return _libqasm.vectors_pop(self)
|
974
|
+
|
975
|
+
def append(self, x):
|
976
|
+
return _libqasm.vectors_append(self, x)
|
977
|
+
|
978
|
+
def empty(self):
|
979
|
+
return _libqasm.vectors_empty(self)
|
980
|
+
|
981
|
+
def size(self):
|
982
|
+
return _libqasm.vectors_size(self)
|
983
|
+
|
984
|
+
def swap(self, v):
|
985
|
+
return _libqasm.vectors_swap(self, v)
|
986
|
+
|
987
|
+
def begin(self):
|
988
|
+
return _libqasm.vectors_begin(self)
|
989
|
+
|
990
|
+
def end(self):
|
991
|
+
return _libqasm.vectors_end(self)
|
992
|
+
|
993
|
+
def rbegin(self):
|
994
|
+
return _libqasm.vectors_rbegin(self)
|
995
|
+
|
996
|
+
def rend(self):
|
997
|
+
return _libqasm.vectors_rend(self)
|
998
|
+
|
999
|
+
def clear(self):
|
1000
|
+
return _libqasm.vectors_clear(self)
|
1001
|
+
|
1002
|
+
def get_allocator(self):
|
1003
|
+
return _libqasm.vectors_get_allocator(self)
|
1004
|
+
|
1005
|
+
def pop_back(self):
|
1006
|
+
return _libqasm.vectors_pop_back(self)
|
1007
|
+
|
1008
|
+
def erase(self, *args):
|
1009
|
+
return _libqasm.vectors_erase(self, *args)
|
1010
|
+
|
1011
|
+
def __init__(self, *args):
|
1012
|
+
_libqasm.vectors_swiginit(self, _libqasm.new_vectors(*args))
|
1013
|
+
|
1014
|
+
def push_back(self, x):
|
1015
|
+
return _libqasm.vectors_push_back(self, x)
|
1016
|
+
|
1017
|
+
def front(self):
|
1018
|
+
return _libqasm.vectors_front(self)
|
1019
|
+
|
1020
|
+
def back(self):
|
1021
|
+
return _libqasm.vectors_back(self)
|
1022
|
+
|
1023
|
+
def assign(self, n, x):
|
1024
|
+
return _libqasm.vectors_assign(self, n, x)
|
1025
|
+
|
1026
|
+
def resize(self, *args):
|
1027
|
+
return _libqasm.vectors_resize(self, *args)
|
1028
|
+
|
1029
|
+
def insert(self, *args):
|
1030
|
+
return _libqasm.vectors_insert(self, *args)
|
1031
|
+
|
1032
|
+
def reserve(self, n):
|
1033
|
+
return _libqasm.vectors_reserve(self, n)
|
1034
|
+
|
1035
|
+
def capacity(self):
|
1036
|
+
return _libqasm.vectors_capacity(self)
|
1037
|
+
__swig_destroy__ = _libqasm.delete_vectors
|
1038
|
+
|
1039
|
+
# Register vectors in _libqasm:
|
1040
|
+
_libqasm.vectors_swigregister(vectors)
|
1041
|
+
class V3xAnalyzer(object):
|
1042
|
+
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
1043
|
+
__repr__ = _swig_repr
|
1044
|
+
|
1045
|
+
def __init__(self, *args):
|
1046
|
+
_libqasm.V3xAnalyzer_swiginit(self, _libqasm.new_V3xAnalyzer(*args))
|
1047
|
+
__swig_destroy__ = _libqasm.delete_V3xAnalyzer
|
1048
|
+
|
1049
|
+
def register_instruction(self, *args):
|
1050
|
+
return _libqasm.V3xAnalyzer_register_instruction(self, *args)
|
1051
|
+
|
1052
|
+
@staticmethod
|
1053
|
+
def parse_file(file_name):
|
1054
|
+
return _libqasm.V3xAnalyzer_parse_file(file_name)
|
1055
|
+
|
1056
|
+
@staticmethod
|
1057
|
+
def parse_file_to_json(file_name):
|
1058
|
+
return _libqasm.V3xAnalyzer_parse_file_to_json(file_name)
|
1059
|
+
|
1060
|
+
@staticmethod
|
1061
|
+
def parse_string(*args):
|
1062
|
+
return _libqasm.V3xAnalyzer_parse_string(*args)
|
1063
|
+
|
1064
|
+
@staticmethod
|
1065
|
+
def parse_string_to_json(*args):
|
1066
|
+
return _libqasm.V3xAnalyzer_parse_string_to_json(*args)
|
1067
|
+
|
1068
|
+
def analyze_file(self, file_name):
|
1069
|
+
return _libqasm.V3xAnalyzer_analyze_file(self, file_name)
|
1070
|
+
|
1071
|
+
def analyze_file_to_json(self, file_name):
|
1072
|
+
return _libqasm.V3xAnalyzer_analyze_file_to_json(self, file_name)
|
1073
|
+
|
1074
|
+
def analyze_string(self, *args):
|
1075
|
+
return _libqasm.V3xAnalyzer_analyze_string(self, *args)
|
1076
|
+
|
1077
|
+
def analyze_string_to_json(self, *args):
|
1078
|
+
return _libqasm.V3xAnalyzer_analyze_string_to_json(self, *args)
|
1079
|
+
|
1080
|
+
# Register V3xAnalyzer in _libqasm:
|
1081
|
+
_libqasm.V3xAnalyzer_swigregister(V3xAnalyzer)
|
1082
|
+
|