@@ -422,7 +422,7 @@ def cmd_measure(self, cqc_header, cmd, xtra, inplace=False):
422422 msg = hdr .pack ()
423423 self .return_messages [cqc_header .app_id ].append (msg )
424424 # self.protocol.transport.write(msg)
425- logging .debug ("CQC %s: Notify %s" , self .name , hdr . printable () )
425+ logging .debug ("CQC %s: Notify %s" , self .name , hdr )
426426
427427 if not inplace :
428428 # Remove from active mapped qubits
@@ -482,7 +482,7 @@ def cmd_send(self, cqc_header, cmd, xtra):
482482 # Lookup the name of the remote node used within SimulaQron
483483 target_name = self .factory .lookup (xtra .remote_node , xtra .remote_port )
484484 if target_name is None :
485- logging .warning ("CQC %s: Remote node not found %s" , self .name , xtra . printable () )
485+ logging .warning ("CQC %s: Remote node not found %s" , self .name , xtra )
486486 err_msg = self .create_return_message (cqc_header .app_id , CQC_ERR_UNSUPP , cqc_version = cqc_header .version )
487487 self .return_messages [cqc_header .app_id ].append (err_msg )
488488 return False
@@ -654,7 +654,7 @@ def cmd_recv(self, cqc_header, cmd, xtra):
654654 hdr .setVals (qubit_id = q_id )
655655 msg = hdr .pack ()
656656 # self.protocol.transport.write(msg)
657- logging .debug ("CQC %s: Notify %s" , self .name , hdr . printable () )
657+ logging .debug ("CQC %s: Notify %s" , self .name , hdr )
658658 self .return_messages [cqc_header .app_id ].append (msg )
659659 return True
660660
@@ -677,7 +677,7 @@ def cmd_epr(self, cqc_header, cmd, xtra):
677677 # Lookup the name of the remote node used within SimulaQron
678678 target_name = self .factory .lookup (remote_node , remote_port )
679679 if target_name is None :
680- logging .warning ("CQC %s: Remote node not found %s" , self .name , xtra . printable () )
680+ logging .warning ("CQC %s: Remote node not found %s" , self .name , xtra )
681681 err_msg = self .create_return_message (cqc_header .app_id , CQC_ERR_UNSUPP , cqc_version = cqc_header .version )
682682 self .return_messages [cqc_header .app_id ].append (err_msg )
683683 return False
@@ -914,12 +914,12 @@ def cmd_epr(self, cqc_header, cmd, xtra):
914914 msg = hdr .pack ()
915915 self .return_messages [cqc_header .app_id ].append (msg )
916916
917- logging .debug ("CQC %s: Notify %s" , self .name , hdr . printable () )
917+ logging .debug ("CQC %s: Notify %s" , self .name , hdr )
918918
919919 # Send entanglement info
920920 msg_ent_info = ent_info .pack ()
921921 self .return_messages [cqc_header .app_id ].append (msg_ent_info )
922- logging .debug ("CQC %s: Entanglement information %s" , self .name , ent_info . printable () )
922+ logging .debug ("CQC %s: Entanglement information %s" , self .name , ent_info )
923923
924924 logging .debug ("CQC %s: EPR Pair ID %d qubit id %d" , self .name , cqc_header .app_id , cmd .qubit_id )
925925 return True
@@ -941,7 +941,7 @@ def send_epr_half(self, cqc_header, cmd, xtra, ent_info):
941941 # Lookup the name of the remote node used within SimulaQron
942942 target_name = self .factory .lookup (xtra .remote_node , xtra .remote_port )
943943 if target_name is None :
944- logging .debug ("CQC %s: Remote node not found %s" , self .name , xtra . printable () )
944+ logging .debug ("CQC %s: Remote node not found %s" , self .name , xtra )
945945 return False
946946
947947 # Prepare update raw entanglement information header
@@ -1064,18 +1064,18 @@ def cmd_epr_recv(self, cqc_header, cmd, xtra):
10641064 if cqc_header .version < 2 :
10651065 hdr = CQCNotifyHeader ()
10661066 hdr .setVals (q_id , 0 , 0 , 0 , 0 , 0 )
1067- logging .debug ("CQC %s: Notify %s" , self .name , hdr . printable () )
1067+ logging .debug ("CQC %s: Notify %s" , self .name , hdr )
10681068 else :
10691069 hdr = CQCXtraQubitHeader ()
10701070 hdr .setVals (qubit_id = q_id )
1071- logging .debug ("CQC %s: %s" , self .name , hdr . printable () )
1071+ logging .debug ("CQC %s: %s" , self .name , hdr )
10721072 msg = hdr .pack ()
10731073 self .return_messages [cqc_header .app_id ].append (msg )
10741074
10751075 # Send entanglement info
10761076 ent_info_msg = ent_info .pack ()
10771077 self .return_messages [cqc_header .app_id ].append (ent_info_msg )
1078- logging .debug ("CQC %s: Entanglement information %s" , self .name , ent_info . printable () )
1078+ logging .debug ("CQC %s: Entanglement information %s" , self .name , ent_info )
10791079
10801080 logging .debug ("CQC %s: EPR Pair ID %d qubit id %d" , self .name , cqc_header .app_id , cmd .qubit_id )
10811081 return True
@@ -1149,11 +1149,11 @@ def cmd_new(self, cqc_header, cmd, xtra, return_q_id=False, ignore_max_qubits=Fa
11491149 if cqc_header .version < 2 :
11501150 hdr = CQCNotifyHeader ()
11511151 hdr .setVals (q_id , 0 , 0 , 0 , 0 , 0 )
1152- logging .info ("CQC %s: Notify %s" , self .name , hdr . printable () )
1152+ logging .info ("CQC %s: Notify %s" , self .name , hdr )
11531153 else :
11541154 hdr = CQCXtraQubitHeader ()
11551155 hdr .setVals (qubit_id = q_id )
1156- logging .info ("CQC %s: %s" , self .name , hdr . printable () )
1156+ logging .info ("CQC %s: %s" , self .name , hdr )
11571157 msg = hdr .pack ()
11581158 self .return_messages [cqc_header .app_id ].append (msg )
11591159 finally :
0 commit comments