We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4dd834c commit fa49097Copy full SHA for fa49097
1 file changed
Compiler/types.py
@@ -1387,6 +1387,17 @@ class cgf2n(_clear, _gf2n):
1387
instruction_type = 'gf2n'
1388
reg_type = 'cg'
1389
1390
+ @classmethod
1391
+ def write_to_socket(self, client_id, values,
1392
+ message_type=ClientMessageType.NoType):
1393
+ """ Send a list of values to a client by converting to 64-bit regint.
1394
+
1395
+ :param client_id: Client id (regint)
1396
+ :param values: list of cgf2n
1397
1398
+ """
1399
+ regint.write_to_socket(client_id, [regint.conv(x) for x in values])
1400
1401
@classmethod
1402
def bit_compose(cls, bits, step=None):
1403
r""" Clear :math:`\mathrm{GF}(2^n)` bit composition.
0 commit comments