mailinglists-sa...@927589452.de
unread,Sep 19, 2019, 7:58:56 AM9/19/19Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sage-codi...@googlegroups.com, mailinglists-sa...@927589452.de
Hi,
maybe some of you have an idea on how to solve this
I am generating a list of decoders by doing this in a loop:
```
syndrome_decoders.append(decoder)
```
later I iterate over this list
and call a function to check their minimum distance i get the trace at
the end
Is there a way to prefill the lookup tables of this object?
(and please don't tell me it's fixed somewhere as I am stuck with
8.9.beta3 for my thesis)
Greets
J
```
<ipython-input-69-215ee9cff294> in test_decode(decoder, max_error, quiet)
20 def test_decode(decoder, max_error = Integer(0),quiet=false):
21 if max_error==Integer(0):
---> 22 max_error = decoder.decoding_radius()
23 if quiet!=false:
24 print ("testing decoding for "+str(decoder))
4960 1
4961 """
-> 4962 return (self.code().minimum_distance()-1) // 2
4963
4964
1947 return cache[k]
1948 except KeyError:
-> 1949 w = self._instance_call(*args, **kwds)
1950 cache[k] = w
1951 return w
1823 True
1824 """
-> 1825 return self.f(self._instance, *args, **kwds)
1826
1827 cdef fix_args_kwds(self, tuple args, dict kwds):
2762 d = C.MinimumWeight()
2763 return ZZ(d)
-> 2764 return self._minimum_weight_codeword(algorithm).hamming_weight()
2765
2766 def _minimum_weight_codeword(self, algorithm = None):
2822 ans = None
2823 dist_min = n + 1
-> 2824 gap.eval('Gmat:='+Gmat)
2825 gap.eval('K:=GF({})'.format(q))
2826 gap.eval('v:=Z({})*{}'.format(q,[0]*n))
581 if not input_line.endswith(';'):
582 input_line += ';'
--> 583 result = Expect.eval(self, input_line, **kwds)
584 if not newlines:
585 result = result.replace("\\\n","")
1347 if (split_lines == "nofile" and allow_use_file and
1348 self._eval_using_file_cutoff and len(code) > self._eval_using_file_cutoff):
-> 1349 return self._eval_line_using_file(code)
1350 elif split_lines:
1351 return '\n'.join([self._eval_line(L, allow_use_file=allow_use_file, **kwds)
1466 except RuntimeError:
1467 return ''
-> 1468 return Expect._eval_line_using_file(self, line)
1469
1470 def console(self):
819 # This occurs on non-linux machines
820 raise RuntimeError('%s terminated unexpectedly while reading in a large line' % self)
--> 821 raise RuntimeError('%s terminated unexpectedly while reading in a large line:\n%s' % (self, msg.args[0]))
822 return self._post_process_from_file(s)
823
```